From b58288b7fb97f2dde216da38bbc5a83217aec0bc Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 7 Jul 2024 11:19:11 +0200 Subject: [PATCH 001/244] fixed rhbz#2293202, chromium Wayland UI regression --- chromium-browser.sh | 1 - chromium.conf | 22 ++++++++++++++++------ chromium.spec | 5 ++++- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/chromium-browser.sh b/chromium-browser.sh index 26f6a7c..4ed62f5 100755 --- a/chromium-browser.sh +++ b/chromium-browser.sh @@ -39,7 +39,6 @@ CHROMIUM_DISTRO_FLAGS=" --enable-plugins \ --enable-extensions \ --enable-user-scripts \ --enable-printing \ - --enable-gpu-rasterization \ --enable-sync \ --auto-ssl-client-auth @@EXTRA_FLAGS@@" diff --git a/chromium.conf b/chromium.conf index 267f62e..62cecce 100644 --- a/chromium.conf +++ b/chromium.conf @@ -1,17 +1,25 @@ # system wide chromium flags +ARCH="$(arch)" + # GRAPHIC_DRIVER=[amd|intel|nvidia|default] GRAPHIC_DRIVER=default # WEB_DARKMODE=[on|off] WEB_DARKMODE=off +# NATIVE_WAYLAND=[on|off] +NATIVE_WAYLAND=off + CHROMIUM_FLAGS="" -CHROMIUM_FLAGS+=" --enable-native-gpu-memory-buffers" -CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" -CHROMIUM_FLAGS+=" --enable-zero-copy" -CHROMIUM_FLAGS+=" --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround" -CHROMIUM_FLAGS+=" --enable-chrome-browser-cloud-management" +if [ "$NATIVE_WAYLAND" == "off" ] ; then + CHROMIUM_FLAGS+=" --enable-native-gpu-memory-buffers" + CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" + CHROMIUM_FLAGS+=" --enable-zero-copy" + CHROMIUM_FLAGS+=" --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround" + CHROMIUM_FLAGS+=" --enable-chrome-browser-cloud-management" + CHROMIUM_FLAGS+=" --enable-gpu-rasterization" +fi FEATURES="" @@ -45,4 +53,6 @@ if [ "$WEB_DARKMODE" == "on" ] ; then FEATURES+=",$darktype" fi -CHROMIUM_FLAGS+=" --enable-features=$FEATURES" +if [ "$ARCH" == "x86_64" ] ; then + CHROMIUM_FLAGS+=" --enable-features=$FEATURES" +fi diff --git a/chromium.spec b/chromium.spec index 8f1e924..5c6a9ed 100644 --- a/chromium.spec +++ b/chromium.spec @@ -311,7 +311,7 @@ Name: chromium%{chromium_channel} Version: 126.0.6478.126 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -2131,6 +2131,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Sun Jul 07 2024 Than Ngo - 126.0.6478.126-2 +- fixed rhbz#2293202, chromium Wayland UI regression + * Tue Jun 25 2024 Than Ngo - 126.0.6478.126-1 - update to 126.0.6478.126 * High CVE-2024-6290: Use after free in Dawn From 3e5a07d28047873d00d624df1041c7d9baf3f470 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 12 Jul 2024 16:25:45 +0200 Subject: [PATCH 002/244] drop qt5 ui i n rawhide --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 5c6a9ed..735f12a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -196,7 +196,7 @@ %if 0%{?rhel} > 9 || 0%{?fedora} > 39 %global use_qt6 1 -%global use_qt 1 +%global use_qt 0 %else %if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} %global use_qt6 0 From c5bf1b53c60711bd1ac5862dc2affb6299588821 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 13 Jul 2024 00:01:00 +0200 Subject: [PATCH 003/244] made qt5-ui and qt6-ui as subpackage --- chromium.spec | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/chromium.spec b/chromium.spec index 735f12a..fd3c031 100644 --- a/chromium.spec +++ b/chromium.spec @@ -196,7 +196,7 @@ %if 0%{?rhel} > 9 || 0%{?fedora} > 39 %global use_qt6 1 -%global use_qt 0 +%global use_qt 1 %else %if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} %global use_qt6 0 @@ -1125,6 +1125,20 @@ A minimal headless client built from Chromium. headless_shell is built without support for alsa, cups, dbus, gconf, gio, kerberos, pulseaudio, or udev. +%package qt5-ui +Summary: Qt5 UI built from Chromium +Requires: chromium%{_isa} = %{version}-%{release} + +%description qt5-ui +Qt5 UI for chromium. + +%package qt6-ui +Summary: Qt6 UI built from Chromium +Requires: chromium%{_isa} = %{version}-%{release} + +%description qt6-ui +Qt6 UI for chromium. + %prep %setup -q -n chromium-%{version} @@ -2005,18 +2019,22 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %{chromium_path}/%{chromium_browser_channel} %{chromium_path}/%{chromium_browser_channel}.sh %attr(4755, root, root) %{chromium_path}/chrome-sandbox -%if %{use_qt} -%{chromium_path}/libqt5_shim.so -%endif -%if %{use_qt6} -%{chromium_path}/libqt6_shim.so -%endif %{_mandir}/man1/%{chromium_browser_channel}.* %{_datadir}/icons/hicolor/*/apps/%{chromium_browser_channel}.png %{_datadir}/applications/*.desktop %{_datadir}/metainfo/*.appdata.xml %{_datadir}/gnome-control-center/default-apps/chromium-browser.xml +%if %{use_qt} +%files qt5-ui +%{chromium_path}/libqt5_shim.so +%endif + +%if %{use_qt6} +%files qt6-ui +%{chromium_path}/libqt6_shim.so +%endif + %files common %if %{build_clear_key_cdm} %{chromium_path}/libclearkeycdm.so From 8d635cb4c462aa487394ee490f525a59fa7eca71 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 17 Jul 2024 10:49:21 +0200 Subject: [PATCH 004/244] - update to 126.0.6478.182 * High CVE-2024-6772: Inappropriate implementation in V8 * High CVE-2024-6773: Type Confusion in V8 * High CVE-2024-6774: Use after free in Screen Capture * High CVE-2024-6775: Use after free in Media Stream * High CVE-2024-6776: Use after free in Audio * High CVE-2024-6777: Use after free in Navigation * High CVE-2024-6778: Race in DevTools * High CVE-2024-6779: Out of bounds memory access in V8 --- chromium.spec | 15 +++++++++++++-- sources | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index fd3c031..931b9c0 100644 --- a/chromium.spec +++ b/chromium.spec @@ -310,8 +310,8 @@ %endif Name: chromium%{chromium_channel} -Version: 126.0.6478.126 -Release: 2%{?dist} +Version: 126.0.6478.182 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -2149,6 +2149,17 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Tue Jul 16 2024 Than Ngo - 126.0.6478.182-1 +- update to 126.0.6478.182 + * High CVE-2024-6772: Inappropriate implementation in V8 + * High CVE-2024-6773: Type Confusion in V8 + * High CVE-2024-6774: Use after free in Screen Capture + * High CVE-2024-6775: Use after free in Media Stream + * High CVE-2024-6776: Use after free in Audio + * High CVE-2024-6777: Use after free in Navigation + * High CVE-2024-6778: Race in DevTools + * High CVE-2024-6779: Out of bounds memory access in V8 + * Sun Jul 07 2024 Than Ngo - 126.0.6478.126-2 - fixed rhbz#2293202, chromium Wayland UI regression diff --git a/sources b/sources index 15e82ef..6efdb7e 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-126.0.6478.126-clean.tar.xz) = 38a3df461cd883828e179d2e566a639030a600c08341a54d05062e30beab05fc2a49da8953d139c51090204551c3e2f7c204b3905c88db056c863b0ff8f444d8 +SHA512 (chromium-126.0.6478.182-clean.tar.xz) = f442fe2b8e79f9b48e29e7e122815142e6cff7d767cc21ce390e367ae8ee374c4bf6334477fe3fb2a5514d5b2d8a5d724542de7cf3adeafb6efda75e9ee157f7 From 8326e719e54f5a487c6946831430baa081746230 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 18 Jul 2024 20:57:20 +0200 Subject: [PATCH 005/244] fixed condition for is_cfi/use_thin_lto on aarch64/ppc64le --- chromium.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 931b9c0..35b8c4c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -311,7 +311,7 @@ Name: chromium%{chromium_channel} Version: 126.0.6478.182 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1496,6 +1496,8 @@ CHROMIUM_CORE_GN_DEFINES+=' chrome_pgo_phase=0' %if ! %{cfi} CHROMIUM_CORE_GN_DEFINES+=' is_cfi=false use_thin_lto=false' +%else +CHROMIUM_CORE_GN_DEFINES+=' is_cfi=true use_thin_lto=true' %endif %if %{useapikey} @@ -2149,6 +2151,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Jul 18 2024 Than Ngo - 126.0.6478.182-2 +- fixed condition for is_cfi/use_thin_lto on aarch64/ppc64le + * Tue Jul 16 2024 Than Ngo - 126.0.6478.182-1 - update to 126.0.6478.182 * High CVE-2024-6772: Inappropriate implementation in V8 From 2cd28e4a58f070609d87bea4e6f2353851597bcc Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 19 Jul 2024 11:12:09 +0200 Subject: [PATCH 006/244] disable is_cfi flag on ppc64le as it is not supported. https://bugzilla.redhat.com/show_bug.cgi?id=2298822 --- chromium.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chromium.spec b/chromium.spec index 35b8c4c..b59b152 100644 --- a/chromium.spec +++ b/chromium.spec @@ -177,11 +177,13 @@ # enable|disable control flow integrity support %global cfi 0 +%ifarch x86_64 aarch64 %if %{clang} %if 0%{?fedora} || 0%{?rhel} > 7 %global cfi 1 %endif %endif +%endif # set correct toolchain %if %{clang} From ebe9f27e237211517cc24bac020088548d1ec14e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 19 Jul 2024 11:20:28 +0200 Subject: [PATCH 007/244] there is new website for ppc64 patches, update url --- chromium.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index b59b152..c1372a4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -494,8 +494,8 @@ Patch355: chromium-126-system-libstdc++.patch Patch358: chromium-124-rust-clang_lib.patch # PowerPC64 LE support -# Patches taken from Debian, Timothy Pearson's patchset -# https://salsa.debian.org/chromium-team/chromium/-/tree/master/debian/patches/ppc64le?ref_type=heads +# Timothy Pearson's patchset +# https://gitlab.solidsilicon.io/public-development/open-source/chromium/openpower-patches/-/tree/chromium-126/patches/ppc64le Patch360: 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch Patch361: 0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch Patch362: 0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch From 19a0fb38ce003b18edda91cc8d70a66f4ad4b5bd Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 11:35:33 +0200 Subject: [PATCH 008/244] drop chromium support for el7 --- chromium-108-el7-wayland-strndup-error.patch | 11 - ...um-110-epel7-old-headers-workarounds.patch | 141 -- chromium-114-wireless-el7.patch | 22 - chromium-115-buildflag-el7.patch | 21 - chromium-115-el7-compiler-SkColor4f.patch | 26 - chromium-117-el7-string-convert.patch | 21 - chromium-118-el7_v4l2_quantization.patch | 24 - chromium-121-el7-clang-version-warning.patch | 15 - chromium-122-el7-extra-operator.patch | 11 - chromium-122-el7-inline-function.patch | 62 - chromium-123-el7-clang-build-failure.patch | 228 -- chromium-124-el7-size_t.patch | 16 - ...karound_clang_bug-structured_binding.patch | 78 - chromium-125-el7-assert.patch | 24 - ...onstructor-involving-anonymous-union.patch | 36 - chromium-125-el7-old-libdrm.patch | 18 - ...m-125-el7-optional-workaround-assert.patch | 11 - chromium-125-el7-typename.patch | 417 ---- chromium-126-el7-colormap.patch | 681 ------ chromium-126-el7-constexpr.patch | 248 --- chromium-126-el7-include-fcntl-memfd.patch | 47 - chromium-126-el7-interator.patch | 12 - ...mium-126-el7-no_matching_constructor.patch | 1961 ----------------- chromium-126-el7-old-cups.patch | 137 -- chromium-126-el7-rust-c_string.patch | 1667 -------------- chromium-126-el7-std_variant.patch | 96 - chromium-126-el7-stdformat.patch | 21 - chromium-126-el7-type-alias.patch | 30 - chromium-98.0.4758.80-epel7-erase-fix.patch | 20 - chromium.spec | 132 +- 30 files changed, 5 insertions(+), 6229 deletions(-) delete mode 100644 chromium-108-el7-wayland-strndup-error.patch delete mode 100644 chromium-110-epel7-old-headers-workarounds.patch delete mode 100644 chromium-114-wireless-el7.patch delete mode 100644 chromium-115-buildflag-el7.patch delete mode 100644 chromium-115-el7-compiler-SkColor4f.patch delete mode 100644 chromium-117-el7-string-convert.patch delete mode 100644 chromium-118-el7_v4l2_quantization.patch delete mode 100644 chromium-121-el7-clang-version-warning.patch delete mode 100644 chromium-122-el7-extra-operator.patch delete mode 100644 chromium-122-el7-inline-function.patch delete mode 100644 chromium-123-el7-clang-build-failure.patch delete mode 100644 chromium-124-el7-size_t.patch delete mode 100644 chromium-124-el7-workaround_clang_bug-structured_binding.patch delete mode 100644 chromium-125-el7-assert.patch delete mode 100644 chromium-125-el7-default-constructor-involving-anonymous-union.patch delete mode 100644 chromium-125-el7-old-libdrm.patch delete mode 100644 chromium-125-el7-optional-workaround-assert.patch delete mode 100644 chromium-125-el7-typename.patch delete mode 100644 chromium-126-el7-colormap.patch delete mode 100644 chromium-126-el7-constexpr.patch delete mode 100644 chromium-126-el7-include-fcntl-memfd.patch delete mode 100644 chromium-126-el7-interator.patch delete mode 100644 chromium-126-el7-no_matching_constructor.patch delete mode 100644 chromium-126-el7-old-cups.patch delete mode 100644 chromium-126-el7-rust-c_string.patch delete mode 100644 chromium-126-el7-std_variant.patch delete mode 100644 chromium-126-el7-stdformat.patch delete mode 100644 chromium-126-el7-type-alias.patch delete mode 100644 chromium-98.0.4758.80-epel7-erase-fix.patch diff --git a/chromium-108-el7-wayland-strndup-error.patch b/chromium-108-el7-wayland-strndup-error.patch deleted file mode 100644 index 1147867..0000000 --- a/chromium-108-el7-wayland-strndup-error.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c.me chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c ---- chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c.me 2022-12-27 16:14:22.507496575 +0100 -+++ chromium-108.0.5359.124/third_party/wayland/src/src/scanner.c 2022-12-27 16:35:17.617573610 +0100 -@@ -26,6 +26,7 @@ - */ - - #include "wayland-version.h" -+#include "config.h" // HAVE_STRNDUP - - #include - #include diff --git a/chromium-110-epel7-old-headers-workarounds.patch b/chromium-110-epel7-old-headers-workarounds.patch deleted file mode 100644 index cb91763..0000000 --- a/chromium-110-epel7-old-headers-workarounds.patch +++ /dev/null @@ -1,141 +0,0 @@ -diff -up chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc.me chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc ---- chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc.me 2023-02-08 20:34:02.700010846 +0100 -+++ chromium-110.0.5481.77/sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc 2023-02-08 20:35:30.455580670 +0100 -@@ -4,7 +4,9 @@ - - #include "sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.h" - --#include -+#ifndef KCMP_FILE -+#define KCMP_FILE 0 -+#endif - - #include "media/gpu/buildflags.h" - #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" -diff -up chromium-99.0.4844.51/mojo/core/channel_linux.cc.epel7-header-workarounds chromium-99.0.4844.51/mojo/core/channel_linux.cc ---- chromium-99.0.4844.51/mojo/core/channel_linux.cc.epel7-header-workarounds 2022-02-28 19:05:54.000000000 -0500 -+++ chromium-99.0.4844.51/mojo/core/channel_linux.cc 2022-03-05 14:50:49.876812909 -0500 -@@ -44,6 +44,25 @@ - #include "base/android/build_info.h" - #endif - -+#ifndef F_LINUX_SPECIFIC_BASE -+#define F_LINUX_SPECIFIC_BASE 1024 -+#endif -+#ifndef F_SEAL_SEAL -+#define F_SEAL_SEAL 0x0001 -+#endif -+#ifndef F_SEAL_SHRINK -+#define F_SEAL_SHRINK 0x0002 -+#endif -+#ifndef F_SEAL_GROW -+#define F_SEAL_GROW 0x0004 -+#endif -+#ifndef F_ADD_SEALS -+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) -+#endif -+#ifndef F_GET_SEALS -+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10) -+#endif -+ - #ifndef EFD_ZERO_ON_WAKE - #define EFD_ZERO_ON_WAKE O_NOFOLLOW - #endif -diff -up chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.epel7-header-workarounds chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ---- chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.epel7-header-workarounds 2022-03-05 14:50:49.877812915 -0500 -+++ chromium-99.0.4844.51/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2022-03-05 15:15:02.536867009 -0500 -@@ -53,6 +53,25 @@ - - #endif // BUILDFLAG(IS_ANDROID) - -+#ifndef F_LINUX_SPECIFIC_BASE -+#define F_LINUX_SPECIFIC_BASE 1024 -+#endif -+#ifndef F_SEAL_SEAL -+#define F_SEAL_SEAL 0x0001 -+#endif -+#ifndef F_SEAL_SHRINK -+#define F_SEAL_SHRINK 0x0002 -+#endif -+#ifndef F_SEAL_GROW -+#define F_SEAL_GROW 0x0004 -+#endif -+#ifndef F_ADD_SEALS -+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) -+#endif -+#ifndef F_GET_SEALS -+#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10) -+#endif -+ - #if defined(__arm__) && !defined(MAP_STACK) - #define MAP_STACK 0x20000 // Daisy build environment has old headers. - #endif -diff -up chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc.epel7-header-workarounds chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc ---- chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc.epel7-header-workarounds 2022-02-28 19:05:55.000000000 -0500 -+++ chromium-99.0.4844.51/sandbox/policy/linux/bpf_cros_amd_gpu_policy_linux.cc 2022-03-05 14:50:49.877812915 -0500 -@@ -6,7 +6,24 @@ - - #include - #include --#include -+#ifndef KCMP_FILE -+#define KCMP_FILE 0 -+#endif -+#ifndef F_LINUX_SPECIFIC_BASE -+#define F_LINUX_SPECIFIC_BASE 1024 -+#endif -+#ifndef F_SEAL_SEAL -+#define F_SEAL_SEAL 0x0001 -+#endif -+#ifndef F_SEAL_SHRINK -+#define F_SEAL_SHRINK 0x0002 -+#endif -+#ifndef F_SEAL_GROW -+#define F_SEAL_GROW 0x0004 -+#endif -+#ifndef F_ADD_SEALS -+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) -+#endif - #include - - // Some arch's (arm64 for instance) unistd.h don't pull in symbols used here -diff -up chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc.epel7-header-workarounds chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc ---- chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc.epel7-header-workarounds 2022-02-28 19:05:55.000000000 -0500 -+++ chromium-99.0.4844.51/sandbox/policy/linux/bpf_gpu_policy_linux.cc 2022-03-05 14:50:49.877812915 -0500 -@@ -22,6 +22,22 @@ - #include "sandbox/policy/linux/sandbox_linux.h" - #include "sandbox/policy/linux/sandbox_seccomp_bpf_linux.h" - -+#ifndef F_LINUX_SPECIFIC_BASE -+#define F_LINUX_SPECIFIC_BASE 1024 -+#endif -+#ifndef F_SEAL_SEAL -+#define F_SEAL_SEAL 0x0001 -+#endif -+#ifndef F_SEAL_SHRINK -+#define F_SEAL_SHRINK 0x0002 -+#endif -+#ifndef F_SEAL_GROW -+#define F_SEAL_GROW 0x0004 -+#endif -+#ifndef F_ADD_SEALS -+#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) -+#endif -+ - using sandbox::bpf_dsl::AllOf; - using sandbox::bpf_dsl::Allow; - using sandbox::bpf_dsl::Arg; -diff -up chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc.epel7-header-workarounds chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc ---- chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc.epel7-header-workarounds 2022-02-28 19:06:49.000000000 -0500 -+++ chromium-99.0.4844.51/ui/events/ozone/evdev/event_converter_evdev_impl.cc 2022-03-05 14:50:49.877812915 -0500 -@@ -23,6 +23,10 @@ - #include "ui/events/ozone/evdev/numberpad_metrics.h" - #endif - -+#ifndef SW_PEN_INSERTED -+#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ -+#endif -+ - namespace ui { - - namespace { diff --git a/chromium-114-wireless-el7.patch b/chromium-114-wireless-el7.patch deleted file mode 100644 index 9776e90..0000000 --- a/chromium-114-wireless-el7.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -up chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc.me chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc ---- chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc.me 2023-05-13 12:09:44.423727385 +0200 -+++ chromium-114.0.5735.26/sandbox/policy/linux/bpf_network_policy_linux.cc 2023-05-13 17:52:19.934347246 +0200 -@@ -11,7 +11,6 @@ - #include - #include - #include --#include - #include - #include - #include -@@ -48,6 +47,10 @@ using sandbox::syscall_broker::BrokerPro - #define F2FS_IOC_GET_FEATURES _IOR(0xf5, 12, uint32_t) - #endif - -+#if !defined(SIOCGIWNAME) -+#define SIOCGIWNAME 0x8B01 -+#endif -+ - namespace sandbox::policy { - - namespace { diff --git a/chromium-115-buildflag-el7.patch b/chromium-115-buildflag-el7.patch deleted file mode 100644 index d3e2a7d..0000000 --- a/chromium-115-buildflag-el7.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc.buildflag-el7 chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc ---- chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc.buildflag-el7 2023-06-07 21:48:29.000000000 +0200 -+++ chromium-115.0.5790.24/components/omnibox/browser/omnibox_edit_model.cc 2023-06-17 16:50:46.373867625 +0200 -@@ -79,7 +79,7 @@ - #include "ui/gfx/vector_icon_types.h" - #endif - --#if BUILDFLAG(GOOGLE_CHROME_BRANDING) -+#ifdef GOOGLE_CHROME_BRANDING - #include "components/vector_icons/vector_icons.h" // nogncheck - #endif - -@@ -631,7 +631,7 @@ bool OmniboxEditModel::ShouldShowCurrent - - ui::ImageModel OmniboxEditModel::GetSuperGIcon(int image_size, - bool dark_mode) const { --#if BUILDFLAG(GOOGLE_CHROME_BRANDING) -+#ifdef GOOGLE_CHROME_BRANDING - if (dark_mode) { - return ui::ImageModel::FromVectorIcon( - vector_icons::kGoogleGLogoMonochromeIcon, ui::kColorRefPrimary100, diff --git a/chromium-115-el7-compiler-SkColor4f.patch b/chromium-115-el7-compiler-SkColor4f.patch deleted file mode 100644 index 7e17cb0..0000000 --- a/chromium-115-el7-compiler-SkColor4f.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -up chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc.me chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc ---- chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc.me 2023-06-24 10:38:11.011511463 +0200 -+++ chromium-115.0.5790.40/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc 2023-06-24 13:07:35.865375884 +0200 -@@ -84,6 +84,7 @@ CanvasStyle::CanvasStyle(const CanvasSty - - void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags, - float global_alpha) const { -+ SkColor4f custom_color = SkColor4f{0.0f, 0.0f, 0.0f, global_alpha}; - switch (type_) { - case kColor: - ApplyColorToFlags(flags, global_alpha); -@@ -91,12 +92,12 @@ void CanvasStyle::ApplyToFlags(cc::Paint - case kGradient: - GetCanvasGradient()->GetGradient()->ApplyToFlags(flags, SkMatrix::I(), - ImageDrawOptions()); -- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha)); -+ flags.setColor(custom_color); - break; - case kImagePattern: - GetCanvasPattern()->GetPattern()->ApplyToFlags( - flags, AffineTransformToSkMatrix(GetCanvasPattern()->GetTransform())); -- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha)); -+ flags.setColor(custom_color); - break; - default: - NOTREACHED(); diff --git a/chromium-117-el7-string-convert.patch b/chromium-117-el7-string-convert.patch deleted file mode 100644 index cb48e4b..0000000 --- a/chromium-117-el7-string-convert.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up chromium-117.0.5938.62/net/dns/host_resolver_cache.cc.me chromium-117.0.5938.62/net/dns/host_resolver_cache.cc -diff -up chromium-117.0.5938.62/net/dns/host_resolver_cache.h.me chromium-117.0.5938.62/net/dns/host_resolver_cache.h ---- chromium-117.0.5938.62/net/dns/host_resolver_cache.h.me 2023-09-14 15:21:24.632965004 +0200 -+++ chromium-117.0.5938.62/net/dns/host_resolver_cache.h 2023-09-15 09:15:48.511300845 +0200 -@@ -143,12 +143,14 @@ class NET_EXPORT HostResolverCache final - } - - bool operator()(const Key& lhs, const KeyRef& rhs) const { -+ const std::string rhs_domain_name{rhs.domain_name}; - return std::tie(lhs.domain_name, lhs.network_anonymization_key) < -- std::tie(rhs.domain_name, *rhs.network_anonymization_key); -+ std::tie(rhs_domain_name, *rhs.network_anonymization_key); - } - - bool operator()(const KeyRef& lhs, const Key& rhs) const { -- return std::tie(lhs.domain_name, *lhs.network_anonymization_key) < -+ const std::string lhs_domain_name{lhs.domain_name}; -+ return std::tie(lhs_domain_name, *lhs.network_anonymization_key) < - std::tie(rhs.domain_name, rhs.network_anonymization_key); - } - }; diff --git a/chromium-118-el7_v4l2_quantization.patch b/chromium-118-el7_v4l2_quantization.patch deleted file mode 100644 index 638863b..0000000 --- a/chromium-118-el7_v4l2_quantization.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -up chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc.me chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc ---- chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc.me 2023-10-07 12:24:51.194618144 +0200 -+++ chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.cc 2023-10-07 12:26:30.727448581 +0200 -@@ -1219,7 +1219,7 @@ void V4L2CaptureDelegate::SetErrorState( - client_->OnError(error, from_here, reason); - } - --#if BUILDFLAG(IS_LINUX) -+#if 0 //BUILDFLAG(IS_LINUX) - gfx::ColorSpace V4L2CaptureDelegate::BuildColorSpaceFromv4l2() { - v4l2_colorspace v4l2_primary = (v4l2_colorspace)video_fmt_.fmt.pix.colorspace; - v4l2_quantization v4l2_range = -diff -up chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h.me chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h ---- chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h.me 2023-10-07 12:29:35.588406023 +0200 -+++ chromium-118.0.5993.54/media/capture/video/linux/v4l2_capture_delegate.h 2023-10-07 12:28:42.057036014 +0200 -@@ -133,7 +133,7 @@ class CAPTURE_EXPORT V4L2CaptureDelegate - const base::Location& from_here, - const std::string& reason); - --#if BUILDFLAG(IS_LINUX) -+#if 0 //BUILDFLAG(IS_LINUX) - // Systems which describe a "color space" usually map that to one or more of - // {primary, matrix, transfer, range}. BuildColorSpaceFromv4l2() will use the - // matched value as first priority. Otherwise, if there is no best matching diff --git a/chromium-121-el7-clang-version-warning.patch b/chromium-121-el7-clang-version-warning.patch deleted file mode 100644 index bc86eb2..0000000 --- a/chromium-121-el7-clang-version-warning.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- chromium-121.0.6167.57/third_party/libc++/src/include/__config.orig 2024-01-16 18:38:00.995930774 +0100 -+++ chromium-121.0.6167.57/third_party/libc++/src/include/__config 2024-01-16 18:43:47.056517289 +0100 -@@ -32,11 +32,7 @@ - - // Warn if a compiler version is used that is not supported anymore - // LLVM RELEASE Update the minimum compiler versions --# if defined(_LIBCPP_CLANG_VER) --# if _LIBCPP_CLANG_VER < 1600 --# warning "Libc++ only supports Clang 16 and later" --# endif --# elif defined(_LIBCPP_APPLE_CLANG_VER) -+# if defined(_LIBCPP_APPLE_CLANG_VER) - # if _LIBCPP_APPLE_CLANG_VER < 1500 - # warning "Libc++ only supports AppleClang 15 and later" - # endif diff --git a/chromium-122-el7-extra-operator.patch b/chromium-122-el7-extra-operator.patch deleted file mode 100644 index 0f65681..0000000 --- a/chromium-122-el7-extra-operator.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up chromium-122.0.6261.69/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h.me chromium-122.0.6261.69/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h ---- chromium-122.0.6261.69/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h.me 2024-02-24 13:02:58.931586003 +0100 -+++ chromium-122.0.6261.69/third_party/pdfium/core/fxcrt/fx_memory_wrappers.h 2024-02-24 13:03:33.152251546 +0100 -@@ -82,6 +82,7 @@ struct FxPartitionAllocAllocator { - } - - // There's no state, so they are all the same, -+ bool operator==(const FxPartitionAllocAllocator&) const { return true; } - bool operator==(const FxPartitionAllocAllocator& that) { return true; } - bool operator!=(const FxPartitionAllocAllocator& that) { return false; } - }; diff --git a/chromium-122-el7-inline-function.patch b/chromium-122-el7-inline-function.patch deleted file mode 100644 index fa3689c..0000000 --- a/chromium-122-el7-inline-function.patch +++ /dev/null @@ -1,62 +0,0 @@ - -ld.lld: error: undefined symbol: unsigned long cc::PaintOpWriter::SerializedSize() - -diff -up chromium-122.0.6261.69/cc/paint/paint_op_writer.h.me chromium-122.0.6261.69/cc/paint/paint_op_writer.h ---- chromium-122.0.6261.69/cc/paint/paint_op_writer.h.me 2024-02-25 12:04:07.008177603 +0100 -+++ chromium-122.0.6261.69/cc/paint/paint_op_writer.h 2024-02-25 12:14:45.972117522 +0100 -@@ -112,7 +112,17 @@ class CC_PAINT_EXPORT PaintOpWriter { - - private: - template -- static constexpr size_t SerializedSizeSimple(); -+ static constexpr size_t SerializedSizeSimple() { -+ static_assert(!std::is_pointer_v); -+ return base::bits::AlignUp(sizeof(T), kDefaultAlignment); -+ } -+ -+ // size_t is always serialized as two uint32_ts to make the serialized result -+ // portable between 32bit and 64bit processes. -+ template <> -+ constexpr size_t SerializedSizeSimple() { -+ return base::bits::AlignUp(2 * sizeof(uint32_t), kDefaultAlignment); -+ } - - public: - // SerializedSize() returns the maximum serialized size of the given type or -@@ -123,7 +133,10 @@ class CC_PAINT_EXPORT PaintOpWriter { - // deserialization, and make it possible to allow dynamic sizing for some - // data types (see the specialized/overloaded functions). - template -- static constexpr size_t SerializedSize(); -+ static constexpr size_t SerializedSize() { -+ static_assert(std::is_arithmetic_v || std::is_enum_v); -+ return SerializedSizeSimple(); -+ } - template - static constexpr size_t SerializedSize(const T& data); - static size_t SerializedSize(const PaintImage& image); -@@ -439,24 +452,6 @@ class CC_PAINT_EXPORT PaintOpWriter { - }; - - template --constexpr size_t PaintOpWriter::SerializedSizeSimple() { -- static_assert(!std::is_pointer_v); -- return base::bits::AlignUp(sizeof(T), kDefaultAlignment); --} -- --// size_t is always serialized as two uint32_ts to make the serialized result --// portable between 32bit and 64bit processes. --template <> --constexpr size_t PaintOpWriter::SerializedSizeSimple() { -- return base::bits::AlignUp(2 * sizeof(uint32_t), kDefaultAlignment); --} -- --template --constexpr size_t PaintOpWriter::SerializedSize() { -- static_assert(std::is_arithmetic_v || std::is_enum_v); -- return SerializedSizeSimple(); --} --template - constexpr size_t PaintOpWriter::SerializedSize(const T& data) { - return SerializedSizeSimple(); - } diff --git a/chromium-123-el7-clang-build-failure.patch b/chromium-123-el7-clang-build-failure.patch deleted file mode 100644 index 4b04d7a..0000000 --- a/chromium-123-el7-clang-build-failure.patch +++ /dev/null @@ -1,228 +0,0 @@ -commit 57526b8dc45b2e6c67bba7306f1dde73b1f2910c -Author: sisidovski -Date: Tue Oct 24 09:32:49 2023 +0000 - - Remove unused items from the RaceNetworkRequest hashmap - - When the AutoPreload or the race-network-and-fetch-handler option in the - static routing API is enabled, network requests are dispatched and - URLLoaderFactories are held in a hashmap in ServiceWorkerGlobalScope. - Those are consumed inside the fetch handler when fetch(e.request) is - called. But if the fetch handler doesn't call fetch() e.g. fallback, - those hashmap items does not have a chance to be removed. - - This CL changes the hashmap items to be removed when the fetch event - finishes, and the URLLoaderFactory is still not consumed at that time. - This may loose the dedupe capability if fetch() is called later e.g. - setTimeout(() => fetch()), but it makes sense to prioritize keeping the - hashmap small. - - Change-Id: I51bdc9d5eb5185f2b5b4df6ee785715b1180c848 - Bug: 1492640 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4964840 - Reviewed-by: Minoru Chikamune - Commit-Queue: Yoshisato Yanagisawa - Reviewed-by: Yoshisato Yanagisawa - Cr-Commit-Position: refs/heads/main@{#1214064} - -diff -up chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.cc.me chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.cc ---- chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.cc.me 2024-03-18 10:34:27.604707632 +0100 -+++ chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.cc 2024-03-18 11:52:14.309983505 +0100 -@@ -46,7 +46,6 @@ - #include "services/network/public/cpp/cross_origin_embedder_policy.h" - #include "services/network/public/mojom/cookie_manager.mojom-blink.h" - #include "services/network/public/mojom/cross_origin_embedder_policy.mojom.h" --#include "services/network/public/mojom/url_loader_factory.mojom-blink.h" - #include "third_party/blink/public/common/features.h" - #include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h" - #include "third_party/blink/public/mojom/notifications/notification.mojom-blink.h" -@@ -1097,10 +1096,6 @@ void ServiceWorkerGlobalScope::DidHandle - TRACE_ID_WITH_SCOPE(kServiceWorkerGlobalScopeTraceScope, - TRACE_ID_LOCAL(event_id)), - TRACE_EVENT_FLAG_FLOW_IN, "status", MojoEnumToString(status)); -- -- // Delete the URLLoaderFactory for the RaceNetworkRequest if it's not used. -- RemoveItemFromRaceNetworkRequests(event_id); -- - if (!RunEventCallback(&fetch_event_callbacks_, event_queue_.get(), event_id, - status)) { - // The event may have been aborted. Its response callback also needs to be -@@ -1500,7 +1495,6 @@ void ServiceWorkerGlobalScope::AbortCall - response_callback_iter->value->TakeValue().reset(); - fetch_response_callbacks_.erase(response_callback_iter); - } -- RemoveItemFromRaceNetworkRequests(event_id); - - // Run the event callback with the error code. - auto event_callback_iter = fetch_event_callbacks_.find(event_id); -@@ -1588,11 +1582,52 @@ void ServiceWorkerGlobalScope::StartFetc - - if (params->race_network_request_loader_factory && - params->request->service_worker_race_network_request_token) { -- InsertNewItemToRaceNetworkRequests( -- event_id, -- params->request->service_worker_race_network_request_token.value(), -- std::move(params->race_network_request_loader_factory), -- params->request->url); -+ auto insert_result = race_network_request_loader_factories_.insert( -+ String(params->request->service_worker_race_network_request_token -+ ->ToString()), -+ std::move(params->race_network_request_loader_factory)); -+ -+ // DumpWithoutCrashing if the token is empty, or not inserted as a new entry -+ // to |race_network_request_loader_factories_|. -+ // TODO(crbug.com/1492640) Remove DumpWithoutCrashing once we collect data -+ // and identify the cause. -+ static bool has_dumped_without_crashing_for_empty_token = false; -+ static bool has_dumped_without_crashing_for_not_new_entry = false; -+ if (!has_dumped_without_crashing_for_empty_token && -+ params->request->service_worker_race_network_request_token -+ ->is_empty()) { -+ has_dumped_without_crashing_for_empty_token = true; -+ SCOPED_CRASH_KEY_BOOL( -+ "SWGlobalScope", "empty_race_token", -+ params->request->service_worker_race_network_request_token -+ ->is_empty()); -+ SCOPED_CRASH_KEY_STRING64( -+ "SWGlobalScope", "race_token_string", -+ params->request->service_worker_race_network_request_token -+ ->ToString()); -+ SCOPED_CRASH_KEY_BOOL("SWGlobalScope", "race_insert_new_entry", -+ insert_result.is_new_entry); -+ SCOPED_CRASH_KEY_STRING256("SWGlobalScope", "race_request_url", -+ params->request->url.GetString().Utf8()); -+ base::debug::DumpWithoutCrashing(); -+ } -+ if (!has_dumped_without_crashing_for_not_new_entry && -+ !insert_result.is_new_entry) { -+ has_dumped_without_crashing_for_not_new_entry = true; -+ SCOPED_CRASH_KEY_BOOL( -+ "SWGlobalScope", "empty_race_token", -+ params->request->service_worker_race_network_request_token -+ ->is_empty()); -+ SCOPED_CRASH_KEY_STRING64( -+ "SWGlobalScope", "race_token_string", -+ params->request->service_worker_race_network_request_token -+ ->ToString()); -+ SCOPED_CRASH_KEY_BOOL("SWGlobalScope", "race_insert_new_entry", -+ insert_result.is_new_entry); -+ SCOPED_CRASH_KEY_STRING256("SWGlobalScope", "race_request_url", -+ params->request->url.GetString().Utf8()); -+ base::debug::DumpWithoutCrashing(); -+ } - } - - Request* request = Request::Create( -@@ -2805,71 +2840,12 @@ bool ServiceWorkerGlobalScope::SetAttrib - std::optional> - ServiceWorkerGlobalScope::FindRaceNetworkRequestURLLoaderFactory( - const base::UnguessableToken& token) { -- std::unique_ptr result = -- race_network_requests_.Take(String(token.ToString())); -+ mojo::PendingRemote result = -+ race_network_request_loader_factories_.Take(String(token.ToString())); - if (result) { -- race_network_request_fetch_event_ids_.erase(result->fetch_event_id); -- return std::optional< -- mojo::PendingRemote>( -- std::move(result->url_loader_factory)); -+ return result; - } - return std::nullopt; - } - --void ServiceWorkerGlobalScope::InsertNewItemToRaceNetworkRequests( -- int fetch_event_id, -- const base::UnguessableToken& token, -- mojo::PendingRemote -- url_loader_factory, -- const KURL& request_url) { -- auto race_network_request_token = String(token.ToString()); -- auto info = std::make_unique( -- fetch_event_id, race_network_request_token, -- std::move(url_loader_factory)); -- race_network_request_fetch_event_ids_.insert(fetch_event_id, info.get()); -- auto insert_result = race_network_requests_.insert(race_network_request_token, -- std::move(info)); -- -- // DumpWithoutCrashing if the token is empty, or not inserted as a new entry -- // to |race_network_request_loader_factories_|. -- // TODO(crbug.com/1492640) Remove DumpWithoutCrashing once we collect data -- // and identify the cause. -- static bool has_dumped_without_crashing_for_empty_token = false; -- static bool has_dumped_without_crashing_for_not_new_entry = false; -- if (!has_dumped_without_crashing_for_empty_token && token.is_empty()) { -- has_dumped_without_crashing_for_empty_token = true; -- SCOPED_CRASH_KEY_BOOL("SWGlobalScope", "empty_race_token", -- token.is_empty()); -- SCOPED_CRASH_KEY_STRING64("SWGlobalScope", "race_token_string", -- token.ToString()); -- SCOPED_CRASH_KEY_BOOL("SWGlobalScope", "race_insert_new_entry", -- insert_result.is_new_entry); -- SCOPED_CRASH_KEY_STRING256("SWGlobalScope", "race_request_url", -- request_url.GetString().Utf8()); -- base::debug::DumpWithoutCrashing(); -- } -- if (!has_dumped_without_crashing_for_not_new_entry && -- !insert_result.is_new_entry) { -- has_dumped_without_crashing_for_not_new_entry = true; -- SCOPED_CRASH_KEY_BOOL("SWGlobalScope", "empty_race_token", -- token.is_empty()); -- SCOPED_CRASH_KEY_STRING64("SWGlobalScope", "race_token_string", -- token.ToString()); -- SCOPED_CRASH_KEY_BOOL("SWGlobalScope", "race_insert_new_entry", -- insert_result.is_new_entry); -- SCOPED_CRASH_KEY_STRING256("SWGlobalScope", "race_request_url", -- request_url.GetString().Utf8()); -- base::debug::DumpWithoutCrashing(); -- } --} -- --void ServiceWorkerGlobalScope::RemoveItemFromRaceNetworkRequests( -- int fetch_event_id) { -- RaceNetworkRequestInfo* info = -- race_network_request_fetch_event_ids_.Take(fetch_event_id); -- if (info) { -- race_network_requests_.erase(info->token); -- } --} -- - } // namespace blink -diff -up chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.h.me chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.h ---- chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.h.me 2024-03-18 10:26:14.905817501 +0100 -+++ chromium-123.0.6312.46/third_party/blink/renderer/modules/service_worker/service_worker_global_scope.h 2024-03-18 11:47:58.202198028 +0100 -@@ -623,14 +623,6 @@ class MODULES_EXPORT ServiceWorkerGlobal - // ServiceWorker.FetchEvent.QueuingTime histogram. - void RecordQueuingTime(base::TimeTicks created_time); - -- void InsertNewItemToRaceNetworkRequests( -- int fetch_event_id, -- const base::UnguessableToken& token, -- mojo::PendingRemote -- url_loader_factory, -- const KURL& request_url); -- void RemoveItemFromRaceNetworkRequests(int fetch_event_id); -- - Member clients_; - Member registration_; - Member<::blink::ServiceWorker> service_worker_; -@@ -776,17 +768,10 @@ class MODULES_EXPORT ServiceWorkerGlobal - - blink::BlinkStorageKey storage_key_; - -- struct RaceNetworkRequestInfo { -- int fetch_event_id; -- String token; -- mojo::PendingRemote -- url_loader_factory; -- }; - // TODO(crbug.com/918702) WTF::HashMap cannot use base::UnguessableToken as a - // key. As a workaround uses WTF::String as a key instead. -- HashMap> -- race_network_requests_; -- HashMap race_network_request_fetch_event_ids_; -+ HashMap> -+ race_network_request_loader_factories_; - - HeapMojoAssociatedRemote - remote_associated_interfaces_{this}; diff --git a/chromium-124-el7-size_t.patch b/chromium-124-el7-size_t.patch deleted file mode 100644 index 3ca84ee..0000000 --- a/chromium-124-el7-size_t.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -up chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h.me chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h ---- chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h.me 2024-05-06 08:32:09.637210958 +0200 -+++ chromium-124.0.6367.118/third_party/perfetto/src/tracing/core/id_allocator.h 2024-05-06 08:32:26.485518448 +0200 -@@ -63,10 +63,10 @@ class IdAllocator : public IdAllocatorGe - - // Tries to allocate `n` IDs. Returns a vector of `n` valid IDs or an empty - // vector, if not enough IDs are available. -- std::vector AllocateMultiple(size_t n) { -+ std::vector AllocateMultiple(std::size_t n) { - std::vector res; - res.reserve(n); -- for (size_t i = 0; i < n; i++) { -+ for (std::size_t i = 0; i < n; i++) { - T id = Allocate(); - if (id) { - res.push_back(id); diff --git a/chromium-124-el7-workaround_clang_bug-structured_binding.patch b/chromium-124-el7-workaround_clang_bug-structured_binding.patch deleted file mode 100644 index 727e4f5..0000000 --- a/chromium-124-el7-workaround_clang_bug-structured_binding.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff -up chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc.workaround_clang_bug-structured_binding chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc ---- chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc.workaround_clang_bug-structured_binding 2023-06-07 21:48:37.000000000 +0200 -+++ chromium-115.0.5790.24/media/base/cdm_promise_adapter.cc 2023-06-17 16:53:20.216628557 +0200 -@@ -94,7 +94,9 @@ void CdmPromiseAdapter::RejectPromise(ui - void CdmPromiseAdapter::Clear(ClearReason reason) { - // Reject all outstanding promises. - DCHECK(thread_checker_.CalledOnValidThread()); -- for (auto& [promise_id, promise] : promises_) { -+ for (auto& [p_i, p_e] : promises_) { -+ auto& promise_id = p_i; -+ auto& promise = p_e; - TRACE_EVENT_NESTABLE_ASYNC_END1( - "media", "CdmPromise", TRACE_ID_WITH_SCOPE("CdmPromise", promise_id), - "status", "cleared"); -diff -up chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc.me chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc ---- chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc.me 2023-06-19 08:04:02.287072722 +0200 -+++ chromium-115.0.5790.32/content/browser/service_worker/service_worker_context_wrapper.cc 2023-06-19 08:18:24.576814950 +0200 -@@ -1393,7 +1393,8 @@ void ServiceWorkerContextWrapper::MaybeP - return; - } - -- auto [document_url, key, callback] = std::move(*request); -+ auto [d_u, key, callback] = std::move(*request); -+ auto document_url = d_u; - - DCHECK(document_url.is_valid()); - TRACE_EVENT1("ServiceWorker", -diff -up chromium-121.0.6167.16/third_party/blink/renderer/core/layout/grid/grid_layout_algorithm.cc.than chromium-121.0.6167.16/third_party/blink/renderer/core/layout/grid/grid_layout_algorithm.cc ---- chromium-121.0.6167.16/third_party/blink/renderer/core/layout/grid/grid_layout_algorithm.cc.than 2023-12-19 17:57:56.205197246 +0100 -+++ chromium-121.0.6167.16/third_party/blink/renderer/core/layout/grid/grid_layout_algorithm.cc 2023-12-19 18:10:13.778634531 +0100 -@@ -3527,8 +3527,8 @@ void GridLayoutAlgorithm::PlaceGridItems - DCHECK(out_row_break_between); - - const auto& container_space = GetConstraintSpace(); -- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData(); -- -+ const auto& [grid_items, l_d, tree_size] = sizing_tree.TreeRootData(); -+ const auto& layout_data = l_d; - const auto* cached_layout_subtree = container_space.GetGridLayoutSubtree(); - const auto container_writing_direction = - container_space.GetWritingDirection(); -@@ -3691,8 +3691,9 @@ void GridLayoutAlgorithm::PlaceGridItems - - // TODO(ikilpatrick): Update |SetHasSeenAllChildren| and early exit if true. - const auto& constraint_space = GetConstraintSpace(); -- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData(); -- -+ const auto& [g_i, l_d, tree_size] = sizing_tree.TreeRootData(); -+ const auto& grid_items = g_i; -+ const auto& layout_data = l_d; - const auto* cached_layout_subtree = constraint_space.GetGridLayoutSubtree(); - const auto container_writing_direction = - constraint_space.GetWritingDirection(); -diff -up chromium-122.0.6261.69/chrome/browser/predictors/lcp_critical_path_predictor/prewarm_http_disk_cache_manager.cc.me chromium-122.0.6261.69/chrome/browser/predictors/lcp_critical_path_predictor/prewarm_http_disk_cache_manager.cc ---- chromium-122.0.6261.69/chrome/browser/predictors/lcp_critical_path_predictor/prewarm_http_disk_cache_manager.cc.me 2024-02-25 18:03:51.654579579 +0100 -+++ chromium-122.0.6261.69/chrome/browser/predictors/lcp_critical_path_predictor/prewarm_http_disk_cache_manager.cc 2024-02-25 18:12:45.144287750 +0100 -@@ -136,7 +136,8 @@ void PrewarmHttpDiskCacheManager::MaybeP - std::pair origin_and_url; - std::swap(origin_and_url, queued_jobs_.front()); - queued_jobs_.pop(); -- const auto& [origin, url] = origin_and_url; -+ const auto& [origin, u] = origin_and_url; -+ const auto& url = u; - TRACE_EVENT_WITH_FLOW1( - "loading", "PrewarmHttpDiskCacheManager::MaybeProcessNextQueuedJob", - TRACE_ID_LOCAL(this), ---- chromium-124.0.6367.118/content/common/service_worker/race_network_request_url_loader_client.cc.workaround_clang_bug-structured_binding 2024-05-05 16:22:47.581070868 +0200 -+++ chromium-124.0.6367.118/content/common/service_worker/race_network_request_url_loader_client.cc 2024-05-05 16:27:18.859972481 +0200 -@@ -417,7 +417,8 @@ - } - - SCOPED_CRASH_KEY_STRING256("SWRace", "request_url", request_.url.spec()); -- auto [read_result, read_buffer] = read_buffer_manager_->ReadData(); -+ auto [r, read_buffer] = read_buffer_manager_->ReadData(); -+ auto read_result = r; - TRACE_EVENT_WITH_FLOW2("ServiceWorker", - "ServiceWorkerRaceNetworkRequestURLLoaderClient::Read", - TRACE_ID_LOCAL(this), diff --git a/chromium-125-el7-assert.patch b/chromium-125-el7-assert.patch deleted file mode 100644 index e76feda..0000000 --- a/chromium-125-el7-assert.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -up chromium-125.0.6422.60/chrome/browser/ui/webui/top_chrome/webui_contents_wrapper.h.assert chromium-125.0.6422.60/chrome/browser/ui/webui/top_chrome/webui_contents_wrapper.h ---- chromium-125.0.6422.60/chrome/browser/ui/webui/top_chrome/webui_contents_wrapper.h.assert 2024-05-18 19:33:37.165243577 +0200 -+++ chromium-125.0.6422.60/chrome/browser/ui/webui/top_chrome/webui_contents_wrapper.h 2024-05-18 19:45:51.224995489 +0200 -@@ -185,7 +185,7 @@ class WebUIContentsWrapperT : public Web - supports_draggable_regions, - T::GetWebUIName()), - webui_url_(webui_url) { -- static_assert( -+ assert( - views_metrics::IsValidWebUINameVariant("." + T::GetWebUIName())); - if (is_ready_to_show()) { - CHECK(GetWebUIController()); -diff -up chromium-125.0.6422.60/v8/src/base/small-vector.h.assert chromium-125.0.6422.60/v8/src/base/small-vector.h ---- chromium-125.0.6422.60/v8/src/base/small-vector.h.assert 2024-05-15 23:48:18.000000000 +0200 -+++ chromium-125.0.6422.60/v8/src/base/small-vector.h 2024-05-17 12:33:58.745651173 +0200 -@@ -22,7 +22,7 @@ template ::value); - - public: diff --git a/chromium-125-el7-default-constructor-involving-anonymous-union.patch b/chromium-125-el7-default-constructor-involving-anonymous-union.patch deleted file mode 100644 index fc38562..0000000 --- a/chromium-125-el7-default-constructor-involving-anonymous-union.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -up chromium-125.0.6422.60/components/variations/service/ui_string_overrider.cc.default-constructor-involving-anonymous-union chromium-125.0.6422.60/components/variations/service/ui_string_overrider.cc ---- chromium-125.0.6422.60/components/variations/service/ui_string_overrider.cc.default-constructor-involving-anonymous-union 2024-05-15 23:46:17.000000000 +0200 -+++ chromium-125.0.6422.60/components/variations/service/ui_string_overrider.cc 2024-05-17 12:33:58.684649909 +0200 -@@ -12,7 +12,7 @@ - - namespace variations { - --UIStringOverrider::UIStringOverrider() = default; -+UIStringOverrider::UIStringOverrider() {} - - UIStringOverrider::UIStringOverrider(base::span resource_hashes, - base::span resource_indices) -diff -up chromium-125.0.6422.60/content/browser/interest_group/header_direct_from_seller_signals.cc.default-constructor-involving-anonymous-union chromium-125.0.6422.60/content/browser/interest_group/header_direct_from_seller_signals.cc ---- chromium-125.0.6422.60/content/browser/interest_group/header_direct_from_seller_signals.cc.default-constructor-involving-anonymous-union 2024-05-15 23:46:17.000000000 +0200 -+++ chromium-125.0.6422.60/content/browser/interest_group/header_direct_from_seller_signals.cc 2024-05-17 12:33:58.685649929 +0200 -@@ -46,7 +46,7 @@ size_t GetResultSizeBytes(const HeaderDi - - } // namespace - --HeaderDirectFromSellerSignals::Result::Result() = default; -+HeaderDirectFromSellerSignals::Result::Result() {} - - HeaderDirectFromSellerSignals::Result::Result( - std::optional seller_signals, -diff -up chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/frozen_array.h.default-constructor-involving-anonymous-union chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/frozen_array.h ---- chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/frozen_array.h.default-constructor-involving-anonymous-union 2024-05-18 09:52:22.385330304 +0200 -+++ chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/frozen_array.h 2024-05-18 09:52:51.023891525 +0200 -@@ -36,7 +36,7 @@ class FrozenArray final : public binding - using const_iterator = typename VectorType::const_iterator; - using const_reverse_iterator = typename VectorType::const_reverse_iterator; - -- FrozenArray() = default; -+ FrozenArray() {} - explicit FrozenArray(VectorType array) : array_(std::move(array)) {} - ~FrozenArray() override = default; - diff --git a/chromium-125-el7-old-libdrm.patch b/chromium-125-el7-old-libdrm.patch deleted file mode 100644 index ab62977..0000000 --- a/chromium-125-el7-old-libdrm.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff -up chromium-125.0.6422.60/ui/gfx/linux/drm_util_linux.cc.el7-old-libdrm chromium-125.0.6422.60/ui/gfx/linux/drm_util_linux.cc ---- chromium-125.0.6422.60/ui/gfx/linux/drm_util_linux.cc.el7-old-libdrm 2024-05-16 20:43:26.619455300 +0200 -+++ chromium-125.0.6422.60/ui/gfx/linux/drm_util_linux.cc 2024-05-16 20:45:18.120716278 +0200 -@@ -9,6 +9,14 @@ - #include "base/logging.h" - #include "base/notreached.h" - -+// the libdrm in EL-7 is too old to have this define -+#ifndef DRM_FORMAT_P010 -+#define DRM_FORMAT_P010 fourcc_code('P', '0', '1', '0') -+#endif -+#ifndef DRM_FORMAT_ABGR16161616F -+#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H') -+#endif -+ - namespace ui { - - int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format) { diff --git a/chromium-125-el7-optional-workaround-assert.patch b/chromium-125-el7-optional-workaround-assert.patch deleted file mode 100644 index 7e78085..0000000 --- a/chromium-125-el7-optional-workaround-assert.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- chromium-125.0.6422.60/optional.orig 2024-05-20 00:12:50.152306289 +0200 -+++ chromium-125.0.6422.60/optional 2024-05-20 00:12:28.041823631 +0200 -@@ -474,7 +474,7 @@ - constexpr _Tp& - _M_get() noexcept - { -- __glibcxx_assert(this->_M_is_engaged()); -+ //__glibcxx_assert(this->_M_is_engaged()); - return static_cast<_Dp*>(this)->_M_payload._M_get(); - } - diff --git a/chromium-125-el7-typename.patch b/chromium-125-el7-typename.patch deleted file mode 100644 index fc86a52..0000000 --- a/chromium-125-el7-typename.patch +++ /dev/null @@ -1,417 +0,0 @@ -diff -up chromium-125.0.6422.60/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h.typename chromium-125.0.6422.60/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h ---- chromium-125.0.6422.60/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h.typename 2024-05-15 23:45:49.000000000 +0200 -+++ chromium-125.0.6422.60/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h 2024-05-17 12:33:58.735650966 +0200 -@@ -26,7 +26,7 @@ PartitionRoot& InternalAllocatorRoot(); - - // A class that meets C++ named requirements, Allocator. - template --InternalAllocator::value_type* InternalAllocator::allocate( -+typename InternalAllocator::value_type* InternalAllocator::allocate( - std::size_t count) { - PA_CHECK(count <= - std::numeric_limits::max() / sizeof(value_type)); -diff -up chromium-125.0.6422.60/base/containers/heap_array.h.typename chromium-125.0.6422.60/base/containers/heap_array.h ---- chromium-125.0.6422.60/base/containers/heap_array.h.typename 2024-05-17 13:51:39.923426461 +0200 -+++ chromium-125.0.6422.60/base/containers/heap_array.h 2024-05-17 13:54:01.866085730 +0200 -@@ -32,8 +32,8 @@ class TRIVIAL_ABI GSL_OWNER HeapArray { - static_assert(!std::is_reference_v, - "HeapArray cannot hold reference types"); - -- using iterator = base::span::iterator; -- using const_iterator = base::span::iterator; -+ using iterator = typename base::span::iterator; -+ using const_iterator = typename base::span::iterator; - // We don't put this default value in the template parameter list to allow the - // static_assert on is_reference_v to give a nicer error message. - using deleter_type = std:: -diff -up chromium-125.0.6422.60/base/containers/map_util.h.typename chromium-125.0.6422.60/base/containers/map_util.h ---- chromium-125.0.6422.60/base/containers/map_util.h.typename 2024-05-15 23:45:49.000000000 +0200 -+++ chromium-125.0.6422.60/base/containers/map_util.h 2024-05-17 12:33:58.735650966 +0200 -@@ -44,7 +44,7 @@ constexpr internal::MappedType* Fin - template >::element_type> -+ typename std::pointer_traits>::element_type> - constexpr const MappedElementType* FindPtrOrNull(const Map& map, - const Key& key) { - auto it = map.find(key); -@@ -60,7 +60,7 @@ constexpr const MappedElementType* FindP - template >::element_type> -+ typename std::pointer_traits>::element_type> - constexpr MappedElementType* FindPtrOrNull(Map& map, const Key& key) { - auto it = map.find(key); - return it != map.end() ? base::to_address(it->second) : nullptr; -diff -up chromium-125.0.6422.60/base/containers/to_vector.h.typename chromium-125.0.6422.60/base/containers/to_vector.h ---- chromium-125.0.6422.60/base/containers/to_vector.h.typename 2024-05-15 23:45:49.000000000 +0200 -+++ chromium-125.0.6422.60/base/containers/to_vector.h 2024-05-17 12:33:58.736650987 +0200 -@@ -30,7 +30,7 @@ template > - auto ToVector(Range&& range, Proj proj = {}) { - using ProjectedType = -- std::projected, Proj>::value_type; -+ typename std::projected, Proj>::value_type; - std::vector container; - container.reserve(std::size(range)); - ranges::transform(std::forward(range), std::back_inserter(container), -diff -up chromium-125.0.6422.60/base/functional/bind_internal.h.typename chromium-125.0.6422.60/base/functional/bind_internal.h ---- chromium-125.0.6422.60/base/functional/bind_internal.h.typename 2024-05-15 23:45:49.000000000 +0200 -+++ chromium-125.0.6422.60/base/functional/bind_internal.h 2024-05-17 12:33:58.736650987 +0200 -@@ -1505,11 +1505,11 @@ template - struct ParamCanBeBound { - private: -- using UnwrappedParam = BindArgument::template ForwardedAs< -+ using UnwrappedParam = typename BindArgument::template ForwardedAs< - Unwrapped>::template ToParamWithType; -- using ParamStorage = BindArgument::template ToParamWithType< -+ using ParamStorage = typename BindArgument::template ToParamWithType< - Param>::template StoredAs; -- using BoundStorage = -+ using BoundStorage = typename - BindArgument::template BoundAs::template StoredAs; - - template - class FunctionRef { - template ::RunType> -+ typename RunType = typename internal::FunctorTraits::RunType> - static constexpr bool kCompatibleFunctor = - std::convertible_to, R> && - std::same_as, internal::TypeList>; -diff -up chromium-125.0.6422.60/base/types/fixed_array.h.typename chromium-125.0.6422.60/base/types/fixed_array.h ---- chromium-125.0.6422.60/base/types/fixed_array.h.typename 2024-05-15 23:45:50.000000000 +0200 -+++ chromium-125.0.6422.60/base/types/fixed_array.h 2024-05-17 12:33:58.737651008 +0200 -@@ -27,8 +27,8 @@ template { - public: - using absl::FixedArray::FixedArray; -- explicit FixedArray(absl::FixedArray::size_type n, -- const absl::FixedArray::allocator_type& a = -+ explicit FixedArray(typename absl::FixedArray::size_type n, -+ const typename absl::FixedArray::allocator_type& a = - typename absl::FixedArray::allocator_type()) - : FixedArray(n, T(), a) {} - }; -diff -up chromium-125.0.6422.60/chrome/browser/download/bubble/download_bubble_update_service.cc.typename chromium-125.0.6422.60/chrome/browser/download/bubble/download_bubble_update_service.cc ---- chromium-125.0.6422.60/chrome/browser/download/bubble/download_bubble_update_service.cc.typename 2024-05-15 23:46:00.000000000 +0200 -+++ chromium-125.0.6422.60/chrome/browser/download/bubble/download_bubble_update_service.cc 2024-05-17 12:33:58.737651008 +0200 -@@ -94,7 +94,7 @@ ItemSortKey GetSortKey(const Item& item) - // Helper to get an iterator to the last element in the cache. The cache - // must not be empty. - template --SortedItems::const_iterator GetLastIter(const SortedItems& cache) { -+typename SortedItems::const_iterator GetLastIter(const SortedItems& cache) { - CHECK(!cache.empty()); - auto it = cache.end(); - return std::prev(it); -@@ -1173,9 +1173,9 @@ bool DownloadBubbleUpdateService::CacheM - } - - template --SortedItems::iterator -+typename SortedItems::iterator - DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter( -- SortedItems::iterator iter, -+ typename SortedItems::iterator iter, - SortedItems& cache, - IterMap& iter_map) { - CHECK(iter != cache.end()); -diff -up chromium-125.0.6422.60/chrome/browser/web_applications/commands/internal/command_internal.h.typename chromium-125.0.6422.60/chrome/browser/web_applications/commands/internal/command_internal.h ---- chromium-125.0.6422.60/chrome/browser/web_applications/commands/internal/command_internal.h.typename 2024-05-15 23:46:06.000000000 +0200 -+++ chromium-125.0.6422.60/chrome/browser/web_applications/commands/internal/command_internal.h 2024-05-17 12:33:58.737651008 +0200 -@@ -121,7 +121,7 @@ class CommandBase { - template - class CommandWithLock : public CommandBase { - public: -- using LockDescription = LockType::LockDescription; -+ using LockDescription = typename LockType::LockDescription; - explicit CommandWithLock(const std::string& name, - LockDescription initial_lock_request); - -diff -up chromium-125.0.6422.60/chrome/browser/web_applications/commands/web_app_command.h.typename chromium-125.0.6422.60/chrome/browser/web_applications/commands/web_app_command.h ---- chromium-125.0.6422.60/chrome/browser/web_applications/commands/web_app_command.h.typename 2024-05-15 23:46:06.000000000 +0200 -+++ chromium-125.0.6422.60/chrome/browser/web_applications/commands/web_app_command.h 2024-05-17 12:33:58.738651028 +0200 -@@ -106,7 +106,7 @@ class WebAppLockManager; - template - class WebAppCommand : public internal::CommandWithLock { - public: -- using LockDescription = LockType::LockDescription; -+ using LockDescription = typename LockType::LockDescription; - using CallbackType = base::OnceCallback; - using ShutdownArgumentsTuple = std::tuple...>; - -diff -up chromium-125.0.6422.60/chrome/browser/web_applications/web_app_command_scheduler.h.typename chromium-125.0.6422.60/chrome/browser/web_applications/web_app_command_scheduler.h ---- chromium-125.0.6422.60/chrome/browser/web_applications/web_app_command_scheduler.h.typename 2024-05-15 23:46:06.000000000 +0200 -+++ chromium-125.0.6422.60/chrome/browser/web_applications/web_app_command_scheduler.h 2024-05-17 12:33:58.738651028 +0200 -@@ -373,7 +373,7 @@ class WebAppCommandScheduler { - // command system. - template - void ScheduleCallback(const std::string& operation_name, -- LockType::LockDescription lock_description, -+ typename LockType::LockDescription lock_description, - CallbackCommand callback, - base::OnceClosure on_complete, - const base::Location& location = FROM_HERE) { -@@ -391,7 +391,7 @@ class WebAppCommandScheduler { - typename CallbackReturnValue = std::decay_t> - void ScheduleCallbackWithResult( - const std::string& operation_name, -- LockType::LockDescription lock_description, -+ typename LockType::LockDescription lock_description, - CallbackCommand callback, - base::OnceCallback on_complete, - CallbackReturnValue arg_for_shutdown, -diff -up chromium-125.0.6422.60/components/optimization_guide/core/model_execution/model_execution_util.h.typename chromium-125.0.6422.60/components/optimization_guide/core/model_execution/model_execution_util.h ---- chromium-125.0.6422.60/components/optimization_guide/core/model_execution/model_execution_util.h.typename 2024-05-15 23:46:13.000000000 +0200 -+++ chromium-125.0.6422.60/components/optimization_guide/core/model_execution/model_execution_util.h 2024-05-17 12:33:58.738651028 +0200 -@@ -26,7 +26,7 @@ void SetExecutionRequestTemplate( - - // Request is set by the feature and should always be typed. - auto typed_request = -- static_cast(request_metadata); -+ static_cast(request_metadata); - *(logging_data->mutable_request_data()) = typed_request; - } - -diff -up chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_log_entry.h.typename chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_log_entry.h ---- chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_log_entry.h.typename 2024-05-15 23:46:13.000000000 +0200 -+++ chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_log_entry.h 2024-05-17 12:33:58.738651028 +0200 -@@ -33,7 +33,7 @@ class ModelQualityLogEntry { - } - - template -- FeatureType::Quality* quality_data() { -+ typename FeatureType::Quality* quality_data() { - return FeatureType::GetLoggingData(*log_ai_data_request_) - ->mutable_quality_data(); - } -diff -up chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_util.h.typename chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_util.h ---- chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_util.h.typename 2024-05-15 23:46:13.000000000 +0200 -+++ chromium-125.0.6422.60/components/optimization_guide/core/model_quality/model_quality_util.h 2024-05-17 12:33:58.739651049 +0200 -@@ -20,7 +20,7 @@ std::optional Get - // Helper method to get the quality_data from `log_ai_data_request` for - // different features. - template --FeatureType::Quality* GetModelQualityData( -+typename FeatureType::Quality* GetModelQualityData( - proto::LogAiDataRequest* log_ai_data_request) { - return FeatureType::GetLoggingData(*log_ai_data_request) - ->mutable_quality_data(); -diff -up chromium-125.0.6422.60/components/optimization_guide/core/tflite_model_executor.h.typename chromium-125.0.6422.60/components/optimization_guide/core/tflite_model_executor.h ---- chromium-125.0.6422.60/components/optimization_guide/core/tflite_model_executor.h.typename 2024-05-15 23:46:13.000000000 +0200 -+++ chromium-125.0.6422.60/components/optimization_guide/core/tflite_model_executor.h 2024-05-17 12:33:58.739651049 +0200 -@@ -242,7 +242,7 @@ class TFLiteModelExecutor : public Model - void SendForBatchExecution( - BatchExecutionCallback callback_on_complete, - base::TimeTicks start_time, -- ModelExecutor::ConstRefInputVector inputs) -+ typename ModelExecutor::ConstRefInputVector inputs) - override { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -264,7 +264,7 @@ class TFLiteModelExecutor : public Model - // Starts the synchronous execution of the model. Returns model outputs. - // Model needs to be loaded. Synchronous calls do not load or unload model. - std::vector> SendForBatchExecutionSync( -- ModelExecutor::ConstRefInputVector inputs) -+ typename ModelExecutor::ConstRefInputVector inputs) - override { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -422,7 +422,7 @@ class TFLiteModelExecutor : public Model - // executes it on the model execution thread. - void LoadModelFileAndBatchExecute( - BatchExecutionCallback callback_on_complete, -- ModelExecutor::ConstRefInputVector inputs) { -+ typename ModelExecutor::ConstRefInputVector inputs) { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - -@@ -439,7 +439,7 @@ class TFLiteModelExecutor : public Model - - // Batch executes the loaded model for inputs. - void BatchExecuteLoadedModel( -- ModelExecutor::ConstRefInputVector inputs, -+ typename ModelExecutor::ConstRefInputVector inputs, - std::vector>* outputs) { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -499,7 +499,7 @@ class TFLiteModelExecutor : public Model - // Unloads the model if needed. - void BatchExecuteLoadedModelAndRunCallback( - BatchExecutionCallback callback_on_complete, -- ModelExecutor::ConstRefInputVector inputs, -+ typename ModelExecutor::ConstRefInputVector inputs, - ExecutionStatus execution_status) { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -diff -up chromium-125.0.6422.60/components/supervised_user/core/browser/proto_fetcher.h.typename chromium-125.0.6422.60/components/supervised_user/core/browser/proto_fetcher.h ---- chromium-125.0.6422.60/components/supervised_user/core/browser/proto_fetcher.h.typename 2024-05-15 23:46:15.000000000 +0200 -+++ chromium-125.0.6422.60/components/supervised_user/core/browser/proto_fetcher.h 2024-05-17 12:33:58.739651049 +0200 -@@ -458,7 +458,7 @@ class RetryingFetcherImpl final : public - RetryingFetcherImpl(const RetryingFetcherImpl&) = delete; - RetryingFetcherImpl& operator=(const RetryingFetcherImpl&) = delete; - -- void Start(ProtoFetcher::Callback callback) override { -+ void Start(typename ProtoFetcher::Callback callback) override { - callback_ = std::move(callback); - Retry(); - } -@@ -504,7 +504,7 @@ class RetryingFetcherImpl final : public - } - - // Client callback. -- TypedProtoFetcher::Callback callback_; -+ typename TypedProtoFetcher::Callback callback_; - - // Retry controls. - base::OneShotTimer timer_; -@@ -525,7 +525,7 @@ class ParallelFetchManager { - // Deferred fetcher is required because it should be started after it is - // stored internally. - using Fetcher = ProtoFetcher; -- using KeyType = base::IDMap>::KeyType; -+ using KeyType = typename base::IDMap>::KeyType; - - public: - // Provides fresh instances of a deferred fetcher for each fetch. -@@ -541,7 +541,7 @@ class ParallelFetchManager { - - // Starts the fetch. Underlying fetcher is stored internally, and will be - // cleaned up after finish or when this manager is destroyed. -- void Fetch(const Request& request, Fetcher::Callback callback) { -+ void Fetch(const Request& request, typename Fetcher::Callback callback) { - CHECK(callback) << "Use base::DoNothing() instead of empty callback."; - KeyType key = requests_in_flight_.Add(MakeFetcher(request)); - requests_in_flight_.Lookup(key)->Start( -diff -up chromium-125.0.6422.60/mojo/public/cpp/bindings/array_traits.h.typename chromium-125.0.6422.60/mojo/public/cpp/bindings/array_traits.h ---- chromium-125.0.6422.60/mojo/public/cpp/bindings/array_traits.h.typename 2024-05-15 23:46:29.000000000 +0200 -+++ chromium-125.0.6422.60/mojo/public/cpp/bindings/array_traits.h 2024-05-17 12:33:58.739651049 +0200 -@@ -90,7 +90,7 @@ template - { c[i] } -> std::same_as; - } - struct ArrayTraits { -- using Element = Container::value_type; -+ using Element = typename Container::value_type; - - // vector-like containers have no built-in null. - static bool IsNull(const Container& c) { return false; } -diff -up chromium-125.0.6422.60/mojo/public/cpp/bindings/type_converter.h.typename chromium-125.0.6422.60/mojo/public/cpp/bindings/type_converter.h ---- chromium-125.0.6422.60/mojo/public/cpp/bindings/type_converter.h.typename 2024-05-15 23:46:30.000000000 +0200 -+++ chromium-125.0.6422.60/mojo/public/cpp/bindings/type_converter.h 2024-05-17 12:33:58.740651070 +0200 -@@ -127,7 +127,7 @@ using VecValueType = typename Vec::value - - template - using VecPtrLikeUnderlyingValueType = -- std::pointer_traits>::element_type; -+ typename std::pointer_traits>::element_type; - - } // namespace internal - -diff -up chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/async_iterable.h.typename chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/async_iterable.h ---- chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/async_iterable.h.typename 2024-05-15 23:46:40.000000000 +0200 -+++ chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/async_iterable.h 2024-05-17 12:33:58.740651070 +0200 -@@ -245,7 +245,7 @@ class PairAsyncIterable { - private: - virtual IterationSource* CreateIterationSource( - ScriptState* script_state, -- IterationSource::Kind kind, -+ typename IterationSource::Kind kind, - InitArgs... args, - ExceptionState& exception_state) = 0; - }; -@@ -291,7 +291,7 @@ class ValueAsyncIterable { - private: - virtual IterationSource* CreateIterationSource( - ScriptState* script_state, -- IterationSource::Kind kind, -+ typename IterationSource::Kind kind, - InitArgs... args, - ExceptionState& exception_state) = 0; - }; -diff -up chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/script_promise_property.h.typename chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/script_promise_property.h ---- chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/script_promise_property.h.typename 2024-05-15 23:46:40.000000000 +0200 -+++ chromium-125.0.6422.60/third_party/blink/renderer/bindings/core/v8/script_promise_property.h 2024-05-17 12:33:58.740651070 +0200 -@@ -171,7 +171,7 @@ class ScriptPromiseProperty final - template - requires std::derived_from - static T DefaultPromiseResultValue() { -- return T(static_cast(0)); -+ return T(static_cast(0)); - } - - State state_ = kPending; -diff -up chromium-125.0.6422.60/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.typename chromium-125.0.6422.60/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc ---- chromium-125.0.6422.60/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.typename 2024-05-15 23:46:41.000000000 +0200 -+++ chromium-125.0.6422.60/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc 2024-05-17 12:33:58.741651090 +0200 -@@ -210,7 +210,7 @@ class HTMLFastPathParser { - using Span = base::span; - using USpan = base::span; - // 32 matches that used by HTMLToken::Attribute. -- typedef std::conditional, -+ typedef typename std::conditional, - UCharLiteralBuffer<32>, - LCharLiteralBuffer<32>>::type LiteralBufferType; - static_assert(std::is_same_v || std::is_same_v); -diff -up chromium-125.0.6422.60/third_party/blink/renderer/core/paint/object_paint_properties.h.typename chromium-125.0.6422.60/third_party/blink/renderer/core/paint/object_paint_properties.h ---- chromium-125.0.6422.60/third_party/blink/renderer/core/paint/object_paint_properties.h.typename 2024-05-15 23:46:41.000000000 +0200 -+++ chromium-125.0.6422.60/third_party/blink/renderer/core/paint/object_paint_properties.h 2024-05-17 12:33:58.741651090 +0200 -@@ -445,8 +445,8 @@ class CORE_EXPORT ObjectPaintProperties - PaintPropertyChangeType Update( - NodeId node_id, - const ParentType& parent, -- NodeType::State&& state, -- const NodeType::AnimationState& animation_state = -+ typename NodeType::State&& state, -+ const typename NodeType::AnimationState& animation_state = - NodeType::AnimationState()) { - // First, check if we need to add a new node. - if (!nodes_.HasField(node_id)) { -diff -up chromium-125.0.6422.60/third_party/blink/renderer/platform/wtf/hash_table.h.typename chromium-125.0.6422.60/third_party/blink/renderer/platform/wtf/hash_table.h ---- chromium-125.0.6422.60/third_party/blink/renderer/platform/wtf/hash_table.h.typename 2024-05-15 23:46:43.000000000 +0200 -+++ chromium-125.0.6422.60/third_party/blink/renderer/platform/wtf/hash_table.h 2024-05-17 12:33:58.742651111 +0200 -@@ -2013,7 +2013,7 @@ struct HashTableConstIteratorAdapter { - static_assert(!IsTraceable::value); - - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -@@ -2065,7 +2065,7 @@ struct HashTableConstIteratorAdapter< - - public: - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -@@ -2119,7 +2119,7 @@ struct HashTableIteratorAdapter { - static_assert(!IsTraceable::value); - - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -@@ -2167,7 +2167,7 @@ struct HashTableIteratorAdapter< - - public: - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; diff --git a/chromium-126-el7-colormap.patch b/chromium-126-el7-colormap.patch deleted file mode 100644 index 1c0002b..0000000 --- a/chromium-126-el7-colormap.patch +++ /dev/null @@ -1,681 +0,0 @@ -diff -up chromium-126.0.6478.26/ash/style/ash_color_mixer_unittest.cc.mee chromium-126.0.6478.26/ash/style/ash_color_mixer_unittest.cc ---- chromium-126.0.6478.26/ash/style/ash_color_mixer_unittest.cc.mee 2024-05-29 18:00:44.000000000 +0200 -+++ chromium-126.0.6478.26/ash/style/ash_color_mixer_unittest.cc 2024-06-03 16:22:10.549568854 +0200 -@@ -37,6 +37,9 @@ void InitializeColorProvider(const ui::C - // Roughly mimics the ColorMixer configuration for Ash. - ash::AddCrosStylesColorMixer(&color_provider, key); - ash::AddAshColorMixer(&color_provider, key); -+ -+ // Populates the color map with computed color values. -+ color_provider.GenerateColorMap(); - } - - // Initializes the `color_provider` with `seed_color` and the relevant -diff -up chromium-126.0.6478.26/chrome/browser/chrome_content_browser_client_browsertest.cc.mee chromium-126.0.6478.26/chrome/browser/chrome_content_browser_client_browsertest.cc ---- chromium-126.0.6478.26/chrome/browser/chrome_content_browser_client_browsertest.cc.mee 2024-05-29 18:00:52.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/chrome_content_browser_client_browsertest.cc 2024-06-03 16:22:10.550568873 +0200 -@@ -602,6 +602,7 @@ class PrefersColorSchemeTest - explicit MockColorProviderSource(bool is_dark) { - key_.color_mode = is_dark ? ui::ColorProviderKey::ColorMode::kDark - : ui::ColorProviderKey::ColorMode::kLight; -+ provider_.GenerateColorMap(); - } - MockColorProviderSource(const MockColorProviderSource&) = delete; - MockColorProviderSource& operator=(const MockColorProviderSource&) = delete; -diff -up chromium-126.0.6478.26/chrome/browser/themes/browser_theme_pack_unittest.cc.mee chromium-126.0.6478.26/chrome/browser/themes/browser_theme_pack_unittest.cc ---- chromium-126.0.6478.26/chrome/browser/themes/browser_theme_pack_unittest.cc.mee 2024-05-29 18:00:57.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/themes/browser_theme_pack_unittest.cc 2024-06-03 16:22:10.550568873 +0200 -@@ -750,6 +750,7 @@ TEST_F(BrowserThemePackTest, TestCreateC - "omnibox_background": [120, 140, 160] })"; - LoadColorJSON(color_json); - theme_pack().AddColorMixers(&provider, ui::ColorProviderKey()); -+ provider.GenerateColorMap(); - EXPECT_EQ(SkColorSetRGB(0, 20, 40), provider.GetColor(kColorToolbar)); - EXPECT_EQ(SkColorSetRGB(60, 80, 100), provider.GetColor(kColorOmniboxText)); - EXPECT_EQ(SkColorSetRGB(120, 140, 160), -diff -up chromium-126.0.6478.26/chrome/browser/ui/color/material_new_tab_page_color_mixer_unittest.cc.mee chromium-126.0.6478.26/chrome/browser/ui/color/material_new_tab_page_color_mixer_unittest.cc ---- chromium-126.0.6478.26/chrome/browser/ui/color/material_new_tab_page_color_mixer_unittest.cc.mee 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/color/material_new_tab_page_color_mixer_unittest.cc 2024-06-03 16:22:10.551568891 +0200 -@@ -26,6 +26,7 @@ class MaterialNewTabPageColorMixerTest : - void AddMaterialColorMixers() { - AddColorMixers(&color_provider_, color_provider_key_); - AddChromeColorMixers(&color_provider_, color_provider_key_); -+ color_provider_.GenerateColorMap(); - } - - private: -diff -up chromium-126.0.6478.26/chrome/browser/ui/color/new_tab_page_color_mixer_unittest.cc.mee chromium-126.0.6478.26/chrome/browser/ui/color/new_tab_page_color_mixer_unittest.cc ---- chromium-126.0.6478.26/chrome/browser/ui/color/new_tab_page_color_mixer_unittest.cc.mee 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/color/new_tab_page_color_mixer_unittest.cc 2024-06-03 16:22:10.551568891 +0200 -@@ -33,6 +33,7 @@ TEST(NewTabPageColorMixer, LightAndDarkT - if (color_utils::IsDark(toolbar_color)) - key.color_mode = ui::ColorProviderKey::ColorMode::kDark; - AddNewTabPageColorMixer(&provider, key); -+ provider.GenerateColorMap(); - - EXPECT_EQ(provider.GetColor(kColorToolbar), toolbar_color); - EXPECT_EQ(provider.GetColor(kColorNewTabPageBackground), toolbar_color); -@@ -51,6 +52,7 @@ TEST(NewTabPageColorMixer, CustomColorCo - key.custom_theme = - base::WrapRefCounted(new CustomThemeSupplier(ThemeType::kAutogenerated)); - AddNewTabPageColorMixer(&provider, key); -+ provider.GenerateColorMap(); - - EXPECT_EQ(provider.GetColor(kColorToolbar), gfx::kGoogleGreen300); - EXPECT_EQ(provider.GetColor(kColorNewTabPageBackground), -@@ -72,6 +74,7 @@ TEST(NewTabPageColorMixer, DefaultColorC - key.custom_theme = - base::WrapRefCounted(new CustomThemeSupplier(ThemeType::kAutogenerated)); - AddNewTabPageColorMixer(&provider, key); -+ provider.GenerateColorMap(); - - EXPECT_EQ(provider.GetColor(kColorToolbar), kSampleToolbarColor); - EXPECT_EQ(provider.GetColor(kColorNewTabPageBackground), kSampleToolbarColor); -diff -up chromium-126.0.6478.26/chrome/browser/ui/color/tools/dump_colors.cc.mee chromium-126.0.6478.26/chrome/browser/ui/color/tools/dump_colors.cc ---- chromium-126.0.6478.26/chrome/browser/ui/color/tools/dump_colors.cc.mee 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/color/tools/dump_colors.cc 2024-06-03 16:22:10.551568891 +0200 -@@ -56,6 +56,7 @@ int main(int argc, const char* argv[]) { - ui::AddColorMixers(provider, key); - color::AddComponentsColorMixers(provider, key); - AddChromeColorMixers(provider, key); -+ provider->GenerateColorMap(); - }; - ui::ColorProvider light_provider, dark_provider, light_high_contrast_provider, - dark_high_contrast_provider; -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/new_tab_page/new_tab_page_handler_unittest.cc.mee chromium-126.0.6478.26/chrome/browser/ui/webui/new_tab_page/new_tab_page_handler_unittest.cc ---- chromium-126.0.6478.26/chrome/browser/ui/webui/new_tab_page/new_tab_page_handler_unittest.cc.mee 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/new_tab_page/new_tab_page_handler_unittest.cc 2024-06-03 16:22:10.552568911 +0200 -@@ -117,7 +117,7 @@ class MockLogoService : public search_pr - - class MockColorProviderSource : public ui::ColorProviderSource { - public: -- MockColorProviderSource() = default; -+ MockColorProviderSource() { color_provider_.GenerateColorMap(); } - MockColorProviderSource(const MockColorProviderSource&) = delete; - MockColorProviderSource& operator=(const MockColorProviderSource&) = delete; - ~MockColorProviderSource() override = default; -diff -up chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_browsertest.cc.mee chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_browsertest.cc ---- chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_browsertest.cc.mee 2024-05-29 18:01:13.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_browsertest.cc 2024-06-03 16:22:10.553568929 +0200 -@@ -6300,7 +6300,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsImplSt - - class MockColorProviderSource : public ui::ColorProviderSource { - public: -- MockColorProviderSource() = default; -+ MockColorProviderSource() { provider_.GenerateColorMap(); } - MockColorProviderSource(const MockColorProviderSource&) = delete; - MockColorProviderSource& operator=(const MockColorProviderSource&) = delete; - ~MockColorProviderSource() override = default; -diff -up chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_unittest.cc.mee chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_unittest.cc ---- chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_unittest.cc.mee 2024-05-29 18:01:13.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/web_contents/web_contents_impl_unittest.cc 2024-06-03 16:22:10.554568949 +0200 -@@ -337,7 +337,7 @@ class MockPageBroadcast : public TestPag - - class TestColorProviderSource : public ui::ColorProviderSource { - public: -- TestColorProviderSource() = default; -+ TestColorProviderSource() { provider_.GenerateColorMap(); } - - const ui::ColorProvider* GetColorProvider() const override { - return &provider_; -diff -up chromium-126.0.6478.26/content/public/test/render_view_test.cc.mee chromium-126.0.6478.26/content/public/test/render_view_test.cc ---- chromium-126.0.6478.26/content/public/test/render_view_test.cc.mee 2024-05-29 18:01:14.000000000 +0200 -+++ chromium-126.0.6478.26/content/public/test/render_view_test.cc 2024-06-03 16:22:10.554568949 +0200 -@@ -150,7 +150,7 @@ class FailingURLLoaderFactory : public n - - class MockColorProviderSource : public ui::ColorProviderSource { - public: -- explicit MockColorProviderSource() = default; -+ explicit MockColorProviderSource() { provider_.GenerateColorMap(); } - MockColorProviderSource(const MockColorProviderSource&) = delete; - MockColorProviderSource& operator=(const MockColorProviderSource&) = delete; - ~MockColorProviderSource() override = default; -diff -up chromium-126.0.6478.26/extensions/browser/extension_host.cc.mee chromium-126.0.6478.26/extensions/browser/extension_host.cc ---- chromium-126.0.6478.26/extensions/browser/extension_host.cc.mee 2024-05-29 18:01:22.000000000 +0200 -+++ chromium-126.0.6478.26/extensions/browser/extension_host.cc 2024-06-03 16:22:10.555568967 +0200 -@@ -58,7 +58,7 @@ namespace { - // the UI-less extension background page. - class NoOpColorProviderSource : public ui::ColorProviderSource { - public: -- NoOpColorProviderSource() = default; -+ NoOpColorProviderSource() { color_provider_.GenerateColorMap(); } - NoOpColorProviderSource(const NoOpColorProviderSource&) = delete; - NoOpColorProviderSource& operator=(const NoOpColorProviderSource&) = delete; - ~NoOpColorProviderSource() override = default; -diff -up chromium-126.0.6478.26/third_party/blink/renderer/core/layout/layout_theme.cc.mee chromium-126.0.6478.26/third_party/blink/renderer/core/layout/layout_theme.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/core/layout/layout_theme.cc.mee 2024-05-29 18:01:39.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/core/layout/layout_theme.cc 2024-06-03 16:22:10.555568967 +0200 -@@ -677,7 +677,7 @@ Color LayoutTheme::SystemColorFromColorP - CSSValueID css_value_id, - mojom::blink::ColorScheme color_scheme, - const ui::ColorProvider* color_provider) const { -- CHECK(color_provider->HasMixers()); -+ CHECK(!color_provider->IsColorMapEmpty()); - SkColor system_theme_color; - switch (css_value_id) { - case CSSValueID::kActivetext: -diff -up chromium-126.0.6478.26/ui/base/models/image_model_unittest.cc.mee chromium-126.0.6478.26/ui/base/models/image_model_unittest.cc ---- chromium-126.0.6478.26/ui/base/models/image_model_unittest.cc.mee 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/base/models/image_model_unittest.cc 2024-06-03 16:22:10.555568967 +0200 -@@ -224,6 +224,7 @@ TEST(ImageModelTest, ShouldRasterizeEmpt - - TEST(ImageModelTest, ShouldRasterizeVectorIcon) { - ui::ColorProvider color_provider; -+ color_provider.GenerateColorMap(); - gfx::ImageSkia image_skia = - ui::ImageModel::FromVectorIcon(vector_icons::kSyncIcon) - .Rasterize(&color_provider); -diff -up chromium-126.0.6478.26/ui/color/color_provider.cc.mee chromium-126.0.6478.26/ui/color/color_provider.cc ---- chromium-126.0.6478.26/ui/color/color_provider.cc.mee 2024-06-03 16:03:15.596432761 +0200 -+++ chromium-126.0.6478.26/ui/color/color_provider.cc 2024-06-03 16:22:10.555568967 +0200 -@@ -4,7 +4,6 @@ - - #include "ui/color/color_provider.h" - --#include - #include - #include - #include -@@ -18,106 +17,6 @@ - - namespace ui { - --//////////////////////////////////////////////////////////////////////////////// --// ColorProvider::ColorProviderInternal: -- --class ColorProvider::ColorProviderInternal { -- public: -- using Mixers = std::forward_list; -- -- ColorProviderInternal() = default; -- ColorProviderInternal(const ColorProviderInternal&) = delete; -- ColorProviderInternal& operator=(const ColorProviderInternal&) = delete; -- ~ColorProviderInternal() = default; -- -- ColorMixer& AddMixer() { -- color_map_.clear(); -- mixers_.emplace_after( -- first_postprocessing_mixer_, -- base::BindRepeating([](const ColorMixer* mixer) { return mixer; }, -- GetLastNonPostprocessingMixer()), -- base::BindRepeating(&ColorProvider::ColorProviderInternal:: -- GetLastNonPostprocessingMixer, -- base::Unretained(this))); -- -- return *std::next(first_postprocessing_mixer_, 1); -- } -- -- ColorMixer& AddPostprocessingMixer() { -- color_map_.clear(); -- if (first_postprocessing_mixer_ == mixers_.before_begin()) { -- // The first postprocessing mixer points to the last regular mixer. -- auto previous_mixer_getter = base::BindRepeating( -- &ColorProvider::ColorProviderInternal::GetLastNonPostprocessingMixer, -- base::Unretained(this)); -- mixers_.emplace_front(previous_mixer_getter, previous_mixer_getter); -- first_postprocessing_mixer_ = mixers_.begin(); -- } else { -- // Other postprocessing mixers point to the next postprocessing mixer. -- auto previous_mixer_getter = -- base::BindRepeating([](const ColorMixer* mixer) { return mixer; }, -- base::Unretained(&mixers_.front())); -- mixers_.emplace_front(previous_mixer_getter, previous_mixer_getter); -- } -- return mixers_.front(); -- } -- -- SkColor GetColor(ColorId id) const { -- auto i = color_map_.find(id); -- if (i == color_map_.end()) { -- if (mixers_.empty()) { -- DVLOG(2) << "ColorProvider::GetColor: No mixers defined!"; -- return gfx::kPlaceholderColor; -- } -- DVLOG(2) << "ColorProvider::GetColor: Computing color for ColorId: " -- << ColorIdName(id); -- const SkColor color = mixers_.front().GetResultColor(id); -- if (color == gfx::kPlaceholderColor) { -- return gfx::kPlaceholderColor; -- } -- i = color_map_.insert({id, color}).first; -- } -- -- DVLOG(2) << "ColorProvider::GetColor: ColorId: " << ColorIdName(id) -- << " Value: " << SkColorName(i->second); -- return i->second; -- } -- -- const ColorMixer* GetLastNonPostprocessingMixer() const { -- const auto it = std::next(first_postprocessing_mixer_, 1); -- return (it == mixers_.cend()) ? nullptr : &(*it); -- } -- -- bool HasMixers() const { return !mixers_.empty(); } -- -- void SetColorForTesting(ColorId id, SkColor color) { color_map_[id] = color; } -- -- void GenerateColorMapForTesting() { -- for (const auto& mixer : mixers_) { -- const auto mixer_color_ids = mixer.GetDefinedColorIds(); -- for (const auto color_id : mixer_color_ids) { -- GetColor(color_id); -- } -- } -- } -- -- const ColorProvider::ColorMap& color_map_for_testing() { return color_map_; } -- -- private: -- // The entire color pipeline, in reverse order (that is, the "last" mixer is -- // at the front). -- Mixers mixers_; -- -- // The first mixer in the chain that is a "postprocessing" mixer. -- Mixers::iterator first_postprocessing_mixer_ = mixers_.before_begin(); -- -- // A cached map of ColorId => SkColor mappings for this provider. -- mutable ColorMap color_map_; --}; -- --//////////////////////////////////////////////////////////////////////////////// --// ColorProvider: -- - ColorProvider::ColorProvider() = default; - - ColorProvider::ColorProvider(ColorProvider&&) = default; -@@ -127,31 +26,96 @@ ColorProvider& ColorProvider::operator=( - ColorProvider::~ColorProvider() = default; - - ColorMixer& ColorProvider::AddMixer() { -- return internal_->AddMixer(); -+ DCHECK(!color_map_); -+ -+ mixers_.emplace_after( -+ first_postprocessing_mixer_, -+ base::BindRepeating([](const ColorMixer* mixer) { return mixer; }, -+ GetLastNonPostprocessingMixer()), -+ base::BindRepeating(&ColorProvider::GetLastNonPostprocessingMixer, -+ base::Unretained(this))); -+ -+ return *std::next(first_postprocessing_mixer_, 1); - } - - ColorMixer& ColorProvider::AddPostprocessingMixer() { -- return internal_->AddPostprocessingMixer(); -+ DCHECK(!color_map_); -+ -+ if (first_postprocessing_mixer_ == mixers_.before_begin()) { -+ // The first postprocessing mixer points to the last regular mixer. -+ auto previous_mixer_getter = base::BindRepeating( -+ &ColorProvider::GetLastNonPostprocessingMixer, base::Unretained(this)); -+ mixers_.emplace_front(previous_mixer_getter, previous_mixer_getter); -+ first_postprocessing_mixer_ = mixers_.begin(); -+ } else { -+ // Other postprocessing mixers point to the next postprocessing mixer. -+ auto previous_mixer_getter = -+ base::BindRepeating([](const ColorMixer* mixer) { return mixer; }, -+ base::Unretained(&mixers_.front())); -+ mixers_.emplace_front(previous_mixer_getter, previous_mixer_getter); -+ } -+ return mixers_.front(); - } - - SkColor ColorProvider::GetColor(ColorId id) const { -- return internal_->GetColor(id); --} -+ CHECK(color_map_); -+ auto i = color_map_->find(id); -+ return i == color_map_->end() ? gfx::kPlaceholderColor : i->second; -+} -+ -+void ColorProvider::GenerateColorMap() { -+ // This should only be called to generate the `color_map_` once. -+ DCHECK(!color_map_); -+ -+ if (mixers_.empty()) -+ DVLOG(2) << "ColorProvider::GenerateColorMap: No mixers defined!"; -+ -+ // Iterate over associated mixers and extract the ColorIds defined for this -+ // provider. -+ std::set color_ids; -+ for (const auto& mixer : mixers_) { -+ const auto mixer_color_ids = mixer.GetDefinedColorIds(); -+ color_ids.insert(mixer_color_ids.begin(), mixer_color_ids.end()); -+ } -+ -+ // Iterate through all defined ColorIds and seed the `color_map` with the -+ // computed values. Use a std::map rather than a base::flat_map since it has -+ // frequent inserts and could grow very large. -+ std::map color_map; -+ for (const auto& color_id : color_ids) { -+ SkColor resulting_color = mixers_.front().GetResultColor(color_id); -+ DVLOG(2) << "GenerateColorMap:" -+ << " Color Id: " << ColorIdName(color_id) -+ << " Resulting Color: " << SkColorName(resulting_color); -+ color_map.insert({color_id, resulting_color}); -+ } -+ -+ // Construct the color_map_. -+ color_map_ = ColorMap(color_map.begin(), color_map.end()); - --bool ColorProvider::HasMixers() const { -- return internal_->HasMixers(); -+ // Clear away all associated mixers as these are no longer needed. -+ mixers_.clear(); -+ first_postprocessing_mixer_ = mixers_.before_begin(); - } - --void ColorProvider::SetColorForTesting(ColorId id, SkColor color) { -- internal_->SetColorForTesting(id, color); // IN-TEST -+bool ColorProvider::IsColorMapEmpty() const { -+ DCHECK(color_map_); -+ return color_map_->empty(); - } - --void ColorProvider::GenerateColorMapForTesting() { -- internal_->GenerateColorMapForTesting(); // IN-TEST -+void ColorProvider::SetColorForTesting(ColorId id, SkColor color) { -+ if (color_map_) { -+ (*color_map_)[id] = color; -+ } else { -+ if (mixers_.empty()) -+ AddMixer(); -+ (*std::next(first_postprocessing_mixer_, 1))[id] = {color}; -+ } - } - --const ColorProvider::ColorMap& ColorProvider::color_map_for_testing() { -- return internal_->color_map_for_testing(); // IN-TEST -+const ColorMixer* ColorProvider::GetLastNonPostprocessingMixer() const { -+ const auto it = std::next(first_postprocessing_mixer_, 1); -+ return (it == mixers_.cend()) ? nullptr : &(*it); - } - - } // namespace ui -diff -up chromium-126.0.6478.26/ui/color/color_provider.h.mee chromium-126.0.6478.26/ui/color/color_provider.h ---- chromium-126.0.6478.26/ui/color/color_provider.h.mee 2024-06-03 16:13:48.739166275 +0200 -+++ chromium-126.0.6478.26/ui/color/color_provider.h 2024-06-03 16:22:10.555568967 +0200 -@@ -5,11 +5,12 @@ - #ifndef UI_COLOR_COLOR_PROVIDER_H_ - #define UI_COLOR_COLOR_PROVIDER_H_ - --#include -+#include - #include - #include - - #include "base/component_export.h" -+#include "base/containers/flat_map.h" - #include "third_party/skia/include/core/SkColor.h" - #include "ui/color/color_id.h" - #include "ui/color/color_mixer.h" -@@ -24,7 +25,7 @@ namespace ui { - // TODO(pkasting): Figure out ownership model and lifetime. - class COMPONENT_EXPORT(COLOR) ColorProvider { - public: -- using ColorMap = std::map; -+ using ColorMap = base::flat_map; - - ColorProvider(); - ColorProvider(const ColorProvider&) = delete; -@@ -48,25 +49,39 @@ class COMPONENT_EXPORT(COLOR) ColorProvi - // |id|. - SkColor GetColor(ColorId id) const; - -- // Returns true if mixers is not empty. It's the case for some browser -+ // Generates the `color_map_` used by this provider for all ColorIds defined -+ // by attached mixers. After the map is generated attached mixers and their -+ // associated objects are discarded. Mixers should not be added to the -+ // provider after this has been called. -+ void GenerateColorMap(); -+ -+ // Returns true if the color_map_ is empty. It's the case for some browser - // tests that run in single process mode but access colors that are - // initialized on renderer process launch, for example, controls in - // NaiveThemeBase and its children classes. Please see more details: - // https://crbug.com/1376775. -- bool HasMixers() const; -+ bool IsColorMapEmpty() const; - - void SetColorForTesting(ColorId id, SkColor color); -- void GenerateColorMapForTesting(); -- const ColorMap& color_map_for_testing(); -+ const ColorMap& color_map_for_testing() { return *color_map_; } - - private: -- // ColorProviderInternal provides the actual implementation of ColorProvider. -- // It's non-movable and non-copyable so that ColorMixer's callbacks can safely -- // bind to it. -- class ColorProviderInternal; -+ using Mixers = std::forward_list; - -- std::unique_ptr internal_ = -- std::make_unique(); -+ // Returns the last mixer in the chain that is not a "postprocessing" mixer, -+ // or nullptr. -+ const ColorMixer* GetLastNonPostprocessingMixer() const; -+ -+ // The entire color pipeline, in reverse order (that is, the "last" mixer is -+ // at the front). -+ Mixers mixers_; -+ -+ // The first mixer in the chain that is a "postprocessing" mixer. -+ Mixers::iterator first_postprocessing_mixer_ = mixers_.before_begin(); -+ -+ // A cached map of ColorId => SkColor mappings for this provider. This will be -+ // generated in the call to `GenerateColorMap()`. -+ std::optional color_map_; - }; - - } // namespace ui -diff -up chromium-126.0.6478.26/ui/color/color_provider_manager.cc.mee chromium-126.0.6478.26/ui/color/color_provider_manager.cc ---- chromium-126.0.6478.26/ui/color/color_provider_manager.cc.mee 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/color/color_provider_manager.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -109,6 +109,7 @@ ColorProvider* ColorProviderManager::Get - if (!initializer_list_->empty()) - initializer_list_->Notify(provider.get(), key); - -+ provider->GenerateColorMap(); - RecordTimeSpentInitializingColorProvider(timer.Elapsed()); - ++num_providers_initialized_; - -diff -up chromium-126.0.6478.26/ui/color/color_provider_unittest.cc.mee chromium-126.0.6478.26/ui/color/color_provider_unittest.cc ---- chromium-126.0.6478.26/ui/color/color_provider_unittest.cc.mee 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/color/color_provider_unittest.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -17,6 +17,7 @@ namespace { - // Tests that when there are no mixers, GetColor() returns a placeholder value. - TEST(ColorProviderTest, GetColorNoMixers) { - ColorProvider provider; -+ provider.GenerateColorMap(); - EXPECT_EQ(gfx::kPlaceholderColor, provider.GetColor(kColorTest0)); - } - -@@ -25,6 +26,7 @@ TEST(ColorProviderTest, GetColorNoMixers - TEST(ColorProviderTest, SingleMixer) { - ColorProvider provider; - provider.AddMixer()[kColorTest0] = {SK_ColorGREEN}; -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorGREEN, provider.GetColor(kColorTest0)); - EXPECT_EQ(gfx::kPlaceholderColor, provider.GetColor(kColorTest1)); - } -@@ -35,6 +37,7 @@ TEST(ColorProviderTest, NonOverlappingMi - ColorProvider provider; - provider.AddMixer()[kColorTest0] = {SK_ColorGREEN}; - provider.AddMixer()[kColorTest1] = {SK_ColorRED}; -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorGREEN, provider.GetColor(kColorTest0)); - EXPECT_EQ(SK_ColorRED, provider.GetColor(kColorTest1)); - } -@@ -45,6 +48,7 @@ TEST(ColorProviderTest, OverlappingMixer - ColorProvider provider; - provider.AddMixer()[kColorTest0] = {SK_ColorGREEN}; - provider.AddMixer()[kColorTest0] = {SK_ColorRED}; -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorRED, provider.GetColor(kColorTest0)); - } - -@@ -55,6 +59,7 @@ TEST(ColorProviderTest, WithProcessing) - provider.AddMixer()[kColorTest0] = {SK_ColorBLACK}; - provider.AddPostprocessingMixer()[kColorTest0] = - GetColorWithMaxContrast(FromTransformInput()); -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorWHITE, provider.GetColor(kColorTest0)); - } - -@@ -65,6 +70,7 @@ TEST(ColorProviderTest, WithProcessingAd - provider.AddPostprocessingMixer()[kColorTest0] = - GetColorWithMaxContrast(FromTransformInput()); - provider.AddMixer()[kColorTest0] = {SK_ColorBLACK}; -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorWHITE, provider.GetColor(kColorTest0)); - } - -@@ -76,6 +82,7 @@ TEST(ColorProviderTest, Redefinition) { - mixer0[kColorTest0] = {SK_ColorBLACK}; - mixer0[kColorTest1] = AlphaBlend(SK_ColorRED, kColorTest0, 0x01); - provider.AddMixer()[kColorTest0] = {SK_ColorWHITE}; -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorWHITE, provider.GetColor(kColorTest0)); - EXPECT_FALSE(color_utils::IsDark(provider.GetColor(kColorTest1))); - } -@@ -90,6 +97,7 @@ TEST(ColorProviderTest, RedefinitionWith - provider.AddMixer()[kColorTest0] = {SK_ColorWHITE}; - provider.AddPostprocessingMixer()[kColorTest0] = - GetColorWithMaxContrast(FromTransformInput()); -+ provider.GenerateColorMap(); - EXPECT_NE(SK_ColorWHITE, provider.GetColor(kColorTest0)); - EXPECT_FALSE(color_utils::IsDark(provider.GetColor(kColorTest1))); - } -@@ -97,6 +105,7 @@ TEST(ColorProviderTest, RedefinitionWith - TEST(ColorProviderTest, SetColorForTesting) { - ColorProvider provider; - provider.SetColorForTesting(kColorTest0, SK_ColorGREEN); -+ provider.GenerateColorMap(); - EXPECT_EQ(SK_ColorGREEN, provider.GetColor(kColorTest0)); - EXPECT_EQ(gfx::kPlaceholderColor, provider.GetColor(kColorTest1)); - provider.SetColorForTesting(kColorTest1, SK_ColorBLUE); -diff -up chromium-126.0.6478.26/ui/color/color_provider_utils.cc.mee chromium-126.0.6478.26/ui/color/color_provider_utils.cc ---- chromium-126.0.6478.26/ui/color/color_provider_utils.cc.mee 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/color/color_provider_utils.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -367,6 +367,7 @@ ColorProvider CreateColorProviderFromRen - - for (const auto& table : kRendererColorIdMap) - mixer[table.color_id] = {renderer_color_map.at(table.renderer_color_id)}; -+ color_provider.GenerateColorMap(); - - return color_provider; - } -@@ -425,6 +426,7 @@ ColorProvider CreateEmulatedForcedColors - mixer[kColorSeparator] = {kColorMidground}; - CompleteDefaultNonWebNativeRendererColorIdsDefinition(mixer); - -+ color_provider.GenerateColorMap(); - return color_provider; - } - -@@ -479,6 +481,7 @@ ColorProvider CreateEmulatedForcedColors - mixer[kColorWebNativeControlSliderHovered] = {SK_ColorCYAN}; - mixer[kColorWebNativeControlSliderPressed] = {SK_ColorCYAN}; - -+ color_provider.GenerateColorMap(); - return color_provider; - } - -@@ -652,6 +655,7 @@ ColorProvider COMPONENT_EXPORT(COLOR) - SkColorSetRGB(0x37, 0x93, 0xFF)}; - } - -+ color_provider.GenerateColorMap(); - return color_provider; - } - -diff -up chromium-126.0.6478.26/ui/color/color_provider_utils_unittest.cc.mee chromium-126.0.6478.26/ui/color/color_provider_utils_unittest.cc ---- chromium-126.0.6478.26/ui/color/color_provider_utils_unittest.cc.mee 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/color/color_provider_utils_unittest.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -49,6 +49,7 @@ TEST_F(ColorProviderUtilsTest, RendererC - ui::ColorMixer& mixer = color_provider.AddMixer(); - for (int i = ui::kUiColorsStart + 1; i < ui::kUiColorsEnd; ++i) - mixer[i] = {static_cast(i)}; -+ color_provider.GenerateColorMap(); - - // The size of the RendererColorMap should match number of defined - // RendererColorIds. -@@ -60,7 +61,6 @@ TEST_F(ColorProviderUtilsTest, RendererC - // also match the number of defined RendererColorIds. - auto new_color_provider = - ui::CreateColorProviderFromRendererColorMap(renderer_color_map); -- new_color_provider.GenerateColorMapForTesting(); - EXPECT_EQ(kTotaltRendererColorIds, - new_color_provider.color_map_for_testing().size()); - } -@@ -73,6 +73,7 @@ TEST_F(ColorProviderUtilsTest, ColorProv - for (int i = ui::kUiColorsStart + 1; i < ui::kUiColorsEnd; ++i) { - mixer[i] = {static_cast(i)}; - } -+ color_provider.GenerateColorMap(); - - // A renderer color map generated from its source provider should have - // equivalent mappings. -@@ -84,6 +85,7 @@ TEST_F(ColorProviderUtilsTest, ColorProv - // Providers with different renderer color mappings should not be flagged as - // equivalent. - ui::ColorProvider new_color_provider; -+ new_color_provider.GenerateColorMap(); - EXPECT_FALSE(IsRendererColorMappingEquivalent(&new_color_provider, - renderer_color_map)); - } -@@ -119,6 +121,7 @@ TEST_F(ColorProviderUtilsTest, DefaultBl - ui::ColorProvider random_color_provider; - ui::ColorMixer& mixer = random_color_provider.AddMixer(); - mixer[ui::kColorPrimaryBackground] = {SK_ColorWHITE}; -+ random_color_provider.GenerateColorMap(); - ui::RendererColorMap random_color_map = - ui::CreateRendererColorMap(random_color_provider); - -diff -up chromium-126.0.6478.26/ui/color/sys_color_mixer_unittest.cc.mee chromium-126.0.6478.26/ui/color/sys_color_mixer_unittest.cc ---- chromium-126.0.6478.26/ui/color/sys_color_mixer_unittest.cc.mee 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/color/sys_color_mixer_unittest.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -36,6 +36,7 @@ class SysColorMixerTest - - AddRefColorMixer(&color_provider_, key); - AddSysColorMixer(&color_provider_, key); -+ color_provider_.GenerateColorMap(); - } - - protected: -diff -up chromium-126.0.6478.26/ui/native_theme/native_theme_base.cc.mee chromium-126.0.6478.26/ui/native_theme/native_theme_base.cc ---- chromium-126.0.6478.26/ui/native_theme/native_theme_base.cc.mee 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/native_theme/native_theme_base.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -1763,9 +1763,8 @@ bool NativeThemeBase::IsColorPipelineSup - ControlColorId color_id) const { - // Color providers are not yet supported on Android so we need to check that - // the color_provider is not null here. -- if (!color_provider || !color_provider->HasMixers()) { -+ if (!color_provider || color_provider->IsColorMapEmpty()) - return false; -- } - - static constexpr auto kControlColorIdsSet = - base::MakeFixedFlatSet({kBorder, -diff -up chromium-126.0.6478.26/ui/native_theme/native_theme_fluent_unittest.cc.mee chromium-126.0.6478.26/ui/native_theme/native_theme_fluent_unittest.cc ---- chromium-126.0.6478.26/ui/native_theme/native_theme_fluent_unittest.cc.mee 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/native_theme/native_theme_fluent_unittest.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -134,6 +134,7 @@ TEST_P(NativeThemeFluentTest, VerifyArro - TEST_F(NativeThemeFluentTest, PaintThumbRoundedCorners) { - cc::RecordPaintCanvas canvas; - ColorProvider color_provider; -+ color_provider.GenerateColorMap(); - constexpr gfx::Rect kRect(15, 100); - // `is_web_test` is `false` by default. - const NativeTheme::ScrollbarThumbExtraParams extra_params; -diff -up chromium-126.0.6478.26/ui/wm/core/shadow_controller_unittest.cc.mee chromium-126.0.6478.26/ui/wm/core/shadow_controller_unittest.cc ---- chromium-126.0.6478.26/ui/wm/core/shadow_controller_unittest.cc.mee 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/wm/core/shadow_controller_unittest.cc 2024-06-03 16:22:10.556568986 +0200 -@@ -285,6 +285,7 @@ TEST_F(ShadowControllerTest, SetColorsMa - mixer[ui::kColorShadowValueAmbientShadowElevationTwelve] = {SK_ColorRED}; - mixer[ui::kColorShadowValueKeyShadowElevationTwentyFour] = {SK_ColorGREEN}; - mixer[ui::kColorShadowValueAmbientShadowElevationTwentyFour] = {SK_ColorBLUE}; -+ color_provider.GenerateColorMap(); - - shadow->SetElevationToColorsMap( - ShadowController::GenerateShadowColorsMap(&color_provider)); diff --git a/chromium-126-el7-constexpr.patch b/chromium-126-el7-constexpr.patch deleted file mode 100644 index 45042fe..0000000 --- a/chromium-126-el7-constexpr.patch +++ /dev/null @@ -1,248 +0,0 @@ -diff -up chromium-126.0.6478.26/chrome/browser/ui/lens/lens_untrusted_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/lens/lens_untrusted_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/lens/lens_untrusted_ui.h.constexpr 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/lens/lens_untrusted_ui.h 2024-06-02 23:51:25.539916606 +0200 -@@ -47,7 +47,7 @@ class LensUntrustedUI : public Untrusted - mojo::PendingReceiver - receiver); - -- static constexpr std::string GetWebUIName() { return "LensUntrusted"; } -+ static const std::string GetWebUIName() { return "LensUntrusted"; } - - private: - // lens::mojom::LensPageHandlerFactory: -diff -up chromium-126.0.6478.26/chrome/browser/ui/lens/search_bubble_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/lens/search_bubble_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/lens/search_bubble_ui.h.constexpr 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/lens/search_bubble_ui.h 2024-06-02 23:51:25.539916606 +0200 -@@ -25,7 +25,7 @@ class SearchBubbleUI : public TopChromeW - mojo::PendingReceiver - receiver); - -- static constexpr std::string GetWebUIName() { return "LensSearchBubble"; } -+ static const std::string GetWebUIName() { return "LensSearchBubble"; } - - private: - // lens::mojom::SearchBubblePageHandlerFactory -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/commerce/shopping_insights_side_panel_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/commerce/shopping_insights_side_panel_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/commerce/shopping_insights_side_panel_ui.h.constexpr 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/commerce/shopping_insights_side_panel_ui.h 2024-06-02 23:51:25.539916606 +0200 -@@ -55,7 +55,7 @@ class ShoppingInsightsSidePanelUI - mojo::PendingReceiver< - shopping_service::mojom::ShoppingServiceHandlerFactory> receiver); - -- static constexpr std::string GetWebUIName() { -+ static const std::string GetWebUIName() { - return "ShoppingInsightsSidePanel"; - } - -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/compose/compose_untrusted_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/compose/compose_untrusted_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/compose/compose_untrusted_ui.h.constexpr 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/compose/compose_untrusted_ui.h 2024-06-02 23:51:25.540916630 +0200 -@@ -58,7 +58,7 @@ class ComposeUntrustedUI - triggering_web_contents_ = web_contents->GetWeakPtr(); - } - -- static constexpr std::string GetWebUIName() { return "Compose"; } -+ static const std::string GetWebUIName() { return "Compose"; } - - private: - void CreateComposeSessionUntrustedPageHandler( -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/bookmarks/bookmarks_side_panel_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/bookmarks/bookmarks_side_panel_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/bookmarks/bookmarks_side_panel_ui.h.constexpr 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/bookmarks/bookmarks_side_panel_ui.h 2024-06-02 23:51:25.540916630 +0200 -@@ -75,7 +75,7 @@ class BookmarksSidePanelUI - commerce::ShoppingListContextMenuController* - GetShoppingListContextMenuController(); - -- static constexpr std::string GetWebUIName() { return "BookmarksSidePanel"; } -+ static const std::string GetWebUIName() { return "BookmarksSidePanel"; } - - private: - // side_panel::mojom::BookmarksPageHandlerFactory: -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/companion/companion_side_panel_untrusted_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/companion/companion_side_panel_untrusted_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/companion/companion_side_panel_untrusted_ui.h.constexpr 2024-06-03 18:20:28.504604071 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/companion/companion_side_panel_untrusted_ui.h 2024-06-03 18:20:44.559016497 +0200 -@@ -34,7 +34,7 @@ class CompanionSidePanelUntrustedUI - // Gets a weak pointer to this object. - base::WeakPtr GetWeakPtr(); - -- static constexpr std::string GetWebUIName() { -+ static const std::string GetWebUIName() { - return "CompanionSidePanelUntrusted"; - } - -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/customize_chrome/customize_chrome_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/customize_chrome/customize_chrome_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/customize_chrome/customize_chrome_ui.h.constexpr 2024-06-03 18:13:52.741282949 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/customize_chrome/customize_chrome_ui.h 2024-06-03 18:14:34.718442888 +0200 -@@ -111,7 +111,7 @@ class CustomizeChromeUI - side_panel::customize_chrome::mojom::CustomizeToolbarHandlerFactory> - receiver); - -- static constexpr std::string GetWebUIName() { return "CustomizeChrome"; } -+ static const std::string GetWebUIName() { return "CustomizeChrome"; } - - private: - // side_panel::mojom::CustomizeChromePageHandlerFactory -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/history_clusters/history_clusters_side_panel_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/history_clusters/history_clusters_side_panel_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/history_clusters/history_clusters_side_panel_ui.h.constexpr 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/history_clusters/history_clusters_side_panel_ui.h 2024-06-02 23:51:25.540916630 +0200 -@@ -70,7 +70,7 @@ class HistoryClustersSidePanelUI : publi - void DidFinishNavigation( - content::NavigationHandle* navigation_handle) override; - -- static constexpr std::string GetWebUIName() { -+ static const std::string GetWebUIName() { - return "HistoryClustersSidePanel"; - } - -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/performance_controls/performance_side_panel_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/performance_controls/performance_side_panel_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/performance_controls/performance_side_panel_ui.h.constexpr 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/performance_controls/performance_side_panel_ui.h 2024-06-02 23:51:25.540916630 +0200 -@@ -41,7 +41,7 @@ class PerformanceSidePanelUI - mojo::PendingReceiver - pending_receiver); - -- static constexpr std::string GetWebUIName() { return "PerformanceSidePanel"; } -+ static const std::string GetWebUIName() { return "PerformanceSidePanel"; } - - private: - // side_panel::mojom::PerformancePageHandlerFactory: -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/read_anything/read_anything_untrusted_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/read_anything/read_anything_untrusted_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/read_anything/read_anything_untrusted_ui.h.constexpr 2024-05-29 18:01:00.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/read_anything/read_anything_untrusted_ui.h 2024-06-02 23:51:25.541916654 +0200 -@@ -55,7 +55,7 @@ class ReadAnythingUntrustedUI - mojo::PendingReceiver - receiver); - -- static constexpr std::string GetWebUIName() { -+ static const std::string GetWebUIName() { - return "ReadAnythingUntrusted"; - } - -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/reading_list/reading_list_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/reading_list/reading_list_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/reading_list/reading_list_ui.h.constexpr 2024-05-29 18:01:00.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/reading_list/reading_list_ui.h 2024-06-02 23:51:25.541916654 +0200 -@@ -58,7 +58,7 @@ class ReadingListUI : public TopChromeWe - - void SetActiveTabURL(const GURL& url); - -- static constexpr std::string GetWebUIName() { return "ReadingList"; } -+ static const std::string GetWebUIName() { return "ReadingList"; } - - private: - // reading_list::mojom::PageHandlerFactory: -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/user_notes/user_notes_side_panel_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/user_notes/user_notes_side_panel_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/user_notes/user_notes_side_panel_ui.h.constexpr 2024-05-29 18:01:00.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/side_panel/user_notes/user_notes_side_panel_ui.h 2024-06-02 23:51:25.541916654 +0200 -@@ -35,7 +35,7 @@ class UserNotesSidePanelUI - - void set_browser(Browser* browser) { browser_ = browser; } - -- static constexpr std::string GetWebUIName() { return "UserNotesSidePanel"; } -+ static const std::string GetWebUIName() { return "UserNotesSidePanel"; } - - private: - // user_notes::mojom::UserNotesPageHandlerFactory -diff -up chromium-126.0.6478.26/chrome/browser/ui/webui/tab_search/tab_search_ui.h.constexpr chromium-126.0.6478.26/chrome/browser/ui/webui/tab_search/tab_search_ui.h ---- chromium-126.0.6478.26/chrome/browser/ui/webui/tab_search/tab_search_ui.h.constexpr 2024-05-29 18:01:00.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/webui/tab_search/tab_search_ui.h 2024-06-02 23:51:25.542916677 +0200 -@@ -58,7 +58,7 @@ class TabSearchUI : public TopChromeWebU - return page_handler_.get(); - } - -- static constexpr std::string GetWebUIName() { return "TabSearch"; } -+ static const std::string GetWebUIName() { return "TabSearch"; } - - private: - // tab_search::mojom::PageHandlerFactory -diff -up chromium-126.0.6478.26/components/autofill/core/browser/data_model/autofill_i18n_api.h.constexpr chromium-126.0.6478.26/components/autofill/core/browser/data_model/autofill_i18n_api.h ---- chromium-126.0.6478.26/components/autofill/core/browser/data_model/autofill_i18n_api.h.constexpr 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/autofill/core/browser/data_model/autofill_i18n_api.h 2024-06-02 23:51:25.542916677 +0200 -@@ -16,8 +16,8 @@ namespace autofill::i18n_model_definitio - // Country code that represents autofill's legacy address hierarchy model as - // stored `kAutofillModelRules`. As a workaround for GCC we declare the - // std::string constexpr first. --constexpr inline std::string kLegacyHierarchyCountryCodeString{"XX"}; --constexpr AddressCountryCode kLegacyHierarchyCountryCode = -+const inline std::string kLegacyHierarchyCountryCodeString{"XX"}; -+const AddressCountryCode kLegacyHierarchyCountryCode = - AddressCountryCode(kLegacyHierarchyCountryCodeString); - - // Creates an instance of the address hierarchy model corresponding to the -diff -up chromium-126.0.6478.26/components/autofill/core/browser/form_parsing/transpile_regex_patterns.py.constexpr chromium-126.0.6478.26/components/autofill/core/browser/form_parsing/transpile_regex_patterns.py ---- chromium-126.0.6478.26/components/autofill/core/browser/form_parsing/transpile_regex_patterns.py.constexpr 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/autofill/core/browser/form_parsing/transpile_regex_patterns.py 2024-06-02 23:51:36.322172739 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/opt/rh/rh-python38/root/usr/bin/python - - # Copyright 2020 The Chromium Authors - # Use of this source code is governed by a BSD-style license that can be -@@ -54,7 +54,7 @@ def generate_matching_pattern_equals(nam - yield '// Checks if all the matching patterns for the given PatternSources' - yield '// and language are the same - meaning that computing predictions for' - yield '// both is unnecessary, since it will yield the same result.' -- yield 'constexpr bool AreMatchingPatternsEqualImpl(PatternSource a,' -+ yield 'const bool AreMatchingPatternsEqualImpl(PatternSource a,' - yield ' PatternSource b,' - yield ' LanguageCode lang_code) {' - yield ' if (a == b) {' -diff -up chromium-126.0.6478.26/components/autofill/core/browser/metrics/log_event.h.constexpr chromium-126.0.6478.26/components/autofill/core/browser/metrics/log_event.h ---- chromium-126.0.6478.26/components/autofill/core/browser/metrics/log_event.h.constexpr 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/autofill/core/browser/metrics/log_event.h 2024-06-02 23:51:25.542916677 +0200 -@@ -57,7 +57,7 @@ struct IsRequired { - // This function is not defined and consteval. Therefore, any evaluation will - // fail and fail at compile time. - template -- consteval operator T(); // NOLINT -+ operator T(); // NOLINT - }; - - } // namespace internal -diff -up chromium-126.0.6478.26/components/history/core/browser/history_types.h.constexpr chromium-126.0.6478.26/components/history/core/browser/history_types.h ---- chromium-126.0.6478.26/components/history/core/browser/history_types.h.constexpr 2024-05-29 18:01:06.000000000 +0200 -+++ chromium-126.0.6478.26/components/history/core/browser/history_types.h 2024-06-02 23:51:25.542916677 +0200 -@@ -70,7 +70,7 @@ constexpr VisitedLinkID kInvalidVisitedL - typedef std::map VisitSourceMap; - - // Constant used to represent that no app_id is used for matching. --inline constexpr std::optional kNoAppIdFilter = std::nullopt; -+inline const std::optional kNoAppIdFilter = std::nullopt; - - // VisitRow ------------------------------------------------------------------- - -diff -up chromium-126.0.6478.26/components/omnibox/browser/on_device_tail_model_service.cc.constexpr chromium-126.0.6478.26/components/omnibox/browser/on_device_tail_model_service.cc ---- chromium-126.0.6478.26/components/omnibox/browser/on_device_tail_model_service.cc.constexpr 2024-05-29 18:01:07.000000000 +0200 -+++ chromium-126.0.6478.26/components/omnibox/browser/on_device_tail_model_service.cc 2024-06-02 23:51:25.543916702 +0200 -@@ -30,7 +30,7 @@ namespace { - // The maximum idle time before the model executor is unloaded from memory. - constexpr base::TimeDelta kMaxExecutorIdleSeconds = base::Seconds(60); - // Constants for TFlite model validation. --constexpr std::string kTestPrefix = "face"; -+const std::string kTestPrefix = "face"; - constexpr std::string_view kModelValidationSwitchName = - "omnibox-on-device-tail-model-validation"; - -diff -up chromium-126.0.6478.26/services/network/shared_dictionary/simple_url_pattern_matcher.cc.constexpr chromium-126.0.6478.26/services/network/shared_dictionary/simple_url_pattern_matcher.cc ---- chromium-126.0.6478.26/services/network/shared_dictionary/simple_url_pattern_matcher.cc.constexpr 2024-05-29 18:01:36.000000000 +0200 -+++ chromium-126.0.6478.26/services/network/shared_dictionary/simple_url_pattern_matcher.cc 2024-06-02 23:51:25.543916702 +0200 -@@ -28,17 +28,17 @@ namespace network { - namespace { - - // https://urlpattern.spec.whatwg.org/#default-options --constexpr liburlpattern::Options kDefaultOptions = {.delimiter_list = "", -+const liburlpattern::Options kDefaultOptions = {.delimiter_list = "", - .prefix_list = "", - .sensitive = true, - .strict = true}; - // https://urlpattern.spec.whatwg.org/#hostname-options --constexpr liburlpattern::Options kHostnameOptions = {.delimiter_list = ".", -+const liburlpattern::Options kHostnameOptions = {.delimiter_list = ".", - .prefix_list = "", - .sensitive = true, - .strict = true}; - // https://urlpattern.spec.whatwg.org/#pathname-options --constexpr liburlpattern::Options kPathnameOptions = {.delimiter_list = "/", -+const liburlpattern::Options kPathnameOptions = {.delimiter_list = "/", - .prefix_list = "/", - .sensitive = true, - .strict = true}; diff --git a/chromium-126-el7-include-fcntl-memfd.patch b/chromium-126-el7-include-fcntl-memfd.patch deleted file mode 100644 index 3bafca4..0000000 --- a/chromium-126-el7-include-fcntl-memfd.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -up chromium-126.0.6478.26/third_party/wayland/src/cursor/os-compatibility.c.el7-memfd-fcntl-include chromium-126.0.6478.26/third_party/wayland/src/cursor/os-compatibility.c ---- chromium-126.0.6478.26/third_party/wayland/src/cursor/os-compatibility.c.el7-memfd-fcntl-include 2024-05-29 18:03:08.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/wayland/src/cursor/os-compatibility.c 2024-06-02 15:13:21.636638066 +0200 -@@ -29,7 +29,8 @@ - - #include - #include --#include -+#include // for F_SEAL_SHRINK, F_ADD_SEALS, F_SEAL_SEAL -+#include // for MFD_CLOEXEC - #include - #include - #include -diff -up chromium-126.0.6478.26/third_party/wayland/src/src/wayland-shm.c.el7-memfd-fcntl-include chromium-126.0.6478.26/third_party/wayland/src/src/wayland-shm.c ---- chromium-126.0.6478.26/third_party/wayland/src/src/wayland-shm.c.el7-memfd-fcntl-include 2024-05-29 18:03:08.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/wayland/src/src/wayland-shm.c 2024-06-02 15:13:21.635638045 +0200 -@@ -44,7 +44,7 @@ - #include - #include - #include --#include -+#include - - #include "wayland-os.h" - #include "wayland-util.h" -diff -up chromium-126.0.6478.26/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.el7-memfd-fcntl-include chromium-126.0.6478.26/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc ---- chromium-126.0.6478.26/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.el7-memfd-fcntl-include 2024-06-02 15:13:21.636638066 +0200 -+++ chromium-126.0.6478.26/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc 2024-06-02 15:16:18.202679909 +0200 -@@ -5,6 +5,7 @@ - #include "ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.h" - - #include -+#include - - #include - #include -diff -up chromium-126.0.6478.26/v8/src/base/platform/platform-posix.cc.el7-memfd-fcntl-include chromium-126.0.6478.26/v8/src/base/platform/platform-posix.cc ---- chromium-126.0.6478.26/v8/src/base/platform/platform-posix.cc.el7-memfd-fcntl-include 2024-05-29 18:03:35.000000000 +0200 -+++ chromium-126.0.6478.26/v8/src/base/platform/platform-posix.cc 2024-06-02 15:13:21.635638045 +0200 -@@ -60,6 +60,7 @@ - - #if V8_OS_LINUX - #include // for prctl -+#include // for MFD_CLOEXEC - #endif - - #if defined(V8_OS_FUCHSIA) diff --git a/chromium-126-el7-interator.patch b/chromium-126-el7-interator.patch deleted file mode 100644 index 9b630a8..0000000 --- a/chromium-126-el7-interator.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-126.0.6478.26/net/third_party/quiche/src/quiche/quic/core/quic_interval_deque.h.me chromium-126.0.6478.26/net/third_party/quiche/src/quiche/quic/core/quic_interval_deque.h ---- chromium-126.0.6478.26/net/third_party/quiche/src/quiche/quic/core/quic_interval_deque.h.me 2024-06-03 15:01:54.724207324 +0200 -+++ chromium-126.0.6478.26/net/third_party/quiche/src/quiche/quic/core/quic_interval_deque.h 2024-06-03 14:58:16.244189794 +0200 -@@ -144,7 +144,7 @@ class QUICHE_NO_EXPORT QuicIntervalDeque - // for efficient std::lower_bound() calls. - class QUICHE_NO_EXPORT Iterator { - public: -- using iterator_category = std::random_access_iterator_tag; -+ using iterator_category = std::forward_iterator_tag; - using value_type = T; - using difference_type = std::ptrdiff_t; - using pointer = T*; diff --git a/chromium-126-el7-no_matching_constructor.patch b/chromium-126-el7-no_matching_constructor.patch deleted file mode 100644 index fdc351a..0000000 --- a/chromium-126-el7-no_matching_constructor.patch +++ /dev/null @@ -1,1961 +0,0 @@ -diff -up chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/lightweight_quarantine.cc.no_matching_constructor chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/lightweight_quarantine.cc ---- chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/lightweight_quarantine.cc.no_matching_constructor 2024-05-29 18:00:45.000000000 +0200 -+++ chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/lightweight_quarantine.cc 2024-06-02 23:51:25.487915366 +0200 -@@ -86,7 +86,7 @@ bool LightweightQuarantineBranch::Quaran - - // Put the entry onto the list. - branch_size_in_bytes_ += usable_size; -- slots_.emplace_back(slot_start, usable_size); -+ slots_.emplace_back() = {slot_start, usable_size}; - - // Swap randomly so that the quarantine list remain shuffled. - // This is not uniformly random, but sufficiently random. -diff -up chromium-126.0.6478.26/base/metrics/persistent_histogram_allocator.cc.no_matching_constructor chromium-126.0.6478.26/base/metrics/persistent_histogram_allocator.cc ---- chromium-126.0.6478.26/base/metrics/persistent_histogram_allocator.cc.no_matching_constructor 2024-05-29 18:00:45.000000000 +0200 -+++ chromium-126.0.6478.26/base/metrics/persistent_histogram_allocator.cc 2024-06-02 23:51:25.487915366 +0200 -@@ -225,13 +225,13 @@ PersistentSparseHistogramDataManager::Lo - // The sample-record could be for any sparse histogram. Add the reference - // to the appropriate collection for later use. - if (found_id == match_id) { -- found_records.emplace_back(ref, value); -+ found_records.emplace_back() = {ref, value}; - found = true; - } else { - std::vector* samples = - GetSampleMapRecordsWhileLocked(found_id); - CHECK(samples); -- samples->emplace_back(ref, value); -+ samples->emplace_back() = {ref, value}; - } - } - -diff -up chromium-126.0.6478.26/base/nix/mime_util_xdg.cc.no_matching_constructor chromium-126.0.6478.26/base/nix/mime_util_xdg.cc ---- chromium-126.0.6478.26/base/nix/mime_util_xdg.cc.no_matching_constructor 2024-05-29 18:00:45.000000000 +0200 -+++ chromium-126.0.6478.26/base/nix/mime_util_xdg.cc 2024-06-02 23:51:25.488915391 +0200 -@@ -56,7 +56,7 @@ void LoadAllMimeCacheFiles(MimeTypeMap& - for (const auto& path : GetXDGDataSearchLocations(env.get())) { - FilePath mime_cache = path.Append("mime/mime.cache"); - if (GetFileInfo(mime_cache, &info) && ParseMimeTypes(mime_cache, map)) { -- files.emplace_back(mime_cache, info.last_modified); -+ files.emplace_back() = {mime_cache, info.last_modified}; - } - } - } -diff -up chromium-126.0.6478.26/base/trace_event/trace_log.cc.no_matching_constructor chromium-126.0.6478.26/base/trace_event/trace_log.cc ---- chromium-126.0.6478.26/base/trace_event/trace_log.cc.no_matching_constructor 2024-05-29 18:00:45.000000000 +0200 -+++ chromium-126.0.6478.26/base/trace_event/trace_log.cc 2024-06-02 23:51:25.489915414 +0200 -@@ -2026,8 +2026,8 @@ void TraceLog::SetTraceBufferForTesting( - - void TraceLog::OnSetup(const perfetto::DataSourceBase::SetupArgs& args) { - AutoLock lock(track_event_lock_); -- track_event_sessions_.emplace_back(args.internal_instance_index, *args.config, -- args.backend_type); -+ track_event_sessions_.emplace_back() = {args.internal_instance_index, *args.config, -+ args.backend_type}; - } - - void TraceLog::OnStart(const perfetto::DataSourceBase::StartArgs&) { -diff -up chromium-126.0.6478.26/chrome/browser/content_settings/one_time_permission_provider.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/content_settings/one_time_permission_provider.cc ---- chromium-126.0.6478.26/chrome/browser/content_settings/one_time_permission_provider.cc.no_matching_constructor 2024-05-29 18:00:52.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/content_settings/one_time_permission_provider.cc 2024-06-02 23:51:25.489915414 +0200 -@@ -259,8 +259,8 @@ void OneTimePermissionProvider::OnSuspen - - while (rule_iterator && rule_iterator->HasNext()) { - auto rule = rule_iterator->Next(); -- patterns_to_delete.emplace_back(setting_type, rule->primary_pattern, -- rule->secondary_pattern); -+ patterns_to_delete.emplace_back() = {setting_type, rule->primary_pattern, -+ rule->secondary_pattern}; - permissions::PermissionUmaUtil::RecordOneTimePermissionEvent( - setting_type, - permissions::OneTimePermissionEvent::EXPIRED_ON_SUSPEND); -@@ -362,8 +362,8 @@ void OneTimePermissionProvider::DeleteEn - auto rule = rule_iterator->Next(); - if (rule->primary_pattern.Matches(origin_gurl) && - rule->secondary_pattern.Matches(origin_gurl)) { -- patterns_to_delete.emplace_back( -- content_setting_type, rule->primary_pattern, rule->secondary_pattern); -+ patterns_to_delete.emplace_back() = { -+ content_setting_type, rule->primary_pattern, rule->secondary_pattern}; - permissions::PermissionUmaUtil::RecordOneTimePermissionEvent( - content_setting_type, trigger_event); - } -diff -up chromium-126.0.6478.26/chrome/browser/dips/dips_bounce_detector.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/dips/dips_bounce_detector.cc ---- chromium-126.0.6478.26/chrome/browser/dips/dips_bounce_detector.cc.no_matching_constructor 2024-06-03 23:39:30.778285708 +0200 -+++ chromium-126.0.6478.26/chrome/browser/dips/dips_bounce_detector.cc 2024-06-03 23:42:17.873038214 +0200 -@@ -511,11 +511,11 @@ UrlAndSourceId RedirectChainDetector::Ge - // We can't use RenderFrameHost::GetLastCommittedURL() because that returns an - // empty URL while the tab is closing (i.e. within - // WebContentsObserver::WebContentsDestroyed) -- return UrlAndSourceId( -+ return UrlAndSourceId{ - WebContentsObserver::web_contents()->GetLastCommittedURL(), - WebContentsObserver::web_contents() - ->GetPrimaryMainFrame() -- ->GetPageUkmSourceId()); -+ ->GetPageUkmSourceId()}; - } - - void RedirectChainDetector::HandleRedirectChain( -@@ -619,8 +619,8 @@ void DIPSBounceDetector::DidStartNavigat - !client_detection_state_.has_value()) { - server_bounce_detection_state->navigation_start = - delegate_->GetLastCommittedURL().url.is_empty() -- ? UrlAndSourceId(navigation_handle->GetInitiator(), -- ukm::kInvalidSourceId) -+ ? UrlAndSourceId{navigation_handle->GetInitiator(), -+ ukm::kInvalidSourceId} - : delegate_->GetLastCommittedURL(); - return; - } -@@ -961,8 +961,8 @@ void DIPSBounceDetector::DidFinishNaviga - - for (size_t i = 0; i < access_types.size() - 1; i++) { - redirects.push_back(std::make_unique( -- /*url=*/UrlAndSourceId(navigation_handle->GetRedirectChain()[i], -- navigation_handle->GetRedirectSourceId(i)), -+ /*url=*/UrlAndSourceId{navigation_handle->GetRedirectChain()[i], -+ navigation_handle->GetRedirectSourceId(i)}, - /*redirect_type=*/DIPSRedirectType::kServer, - /*access_type=*/access_types[i], - /*time=*/clock_->Now())); -@@ -971,16 +971,16 @@ void DIPSBounceDetector::DidFinishNaviga - if (navigation_handle->HasCommitted()) { - committed_redirect_context_.AppendCommitted( - std::move(server_state->navigation_start), std::move(redirects), -- UrlAndSourceId(navigation_handle->GetURL(), -- navigation_handle->GetNextPageUkmSourceId()), -+ UrlAndSourceId{navigation_handle->GetURL(), -+ navigation_handle->GetNextPageUkmSourceId()}, - current_page_has_sticky_activation); - } else { - // For uncommitted navigations, treat the last URL visited as a server - // redirect, so it is considered a potential tracker. - const size_t i = access_types.size() - 1; - redirects.push_back(std::make_unique( -- /*url=*/UrlAndSourceId(navigation_handle->GetRedirectChain()[i], -- navigation_handle->GetRedirectSourceId(i)), -+ /*url=*/UrlAndSourceId{navigation_handle->GetRedirectChain()[i], -+ navigation_handle->GetRedirectSourceId(i)}, - /*redirect_type=*/DIPSRedirectType::kServer, - /*access_type=*/access_types[i], - /*time=*/clock_->Now())); -diff -up chromium-126.0.6478.26/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc ---- chromium-126.0.6478.26/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc.no_matching_constructor 2024-05-29 18:00:52.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.cc 2024-06-02 23:51:25.489915414 +0200 -@@ -67,8 +67,8 @@ base::flat_mapinsert(std::make_pair( - "supported.test", -- SAMLProfileAttributes("placeholderName", "placeholderDomain", -- "placeholderToken"))); -+ SAMLProfileAttributes{"placeholderName", "placeholderDomain", -+ "placeholderToken"})); - - // Extract domains and attributes from the command line switch. - const base::CommandLine& command_line = -diff -up chromium-126.0.6478.26/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc ---- chromium-126.0.6478.26/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc.no_matching_constructor 2024-05-29 18:00:53.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc 2024-06-02 23:51:25.490915438 +0200 -@@ -385,7 +385,7 @@ bool ShouldBlockAccessToPath(const base: - DCHECK(block.path); - blocked_path = base::FilePath(block.path); - } -- rules.emplace_back(blocked_path, block.type); -+ rules.emplace_back() = {blocked_path, block.type}; - } - - base::FilePath nearest_ancestor; -@@ -1685,11 +1685,11 @@ void ChromeFileSystemAccessPermissionCon - // profile's directory, assuming the profile dir is a child of the user data - // dir. - std::vector extra_rules; -- extra_rules.emplace_back(profile_->GetPath().DirName(), kBlockAllChildren); -+ extra_rules.emplace_back() = {profile_->GetPath().DirName(), kBlockAllChildren}; - if (g_browser_process->profile_manager()) { -- extra_rules.emplace_back( -+ extra_rules.emplace_back() = { - g_browser_process->profile_manager()->user_data_dir(), -- kBlockAllChildren); -+ kBlockAllChildren}; - } - - base::ThreadPool::PostTaskAndReplyWithResult( -diff -up chromium-126.0.6478.26/chrome/browser/performance_manager/mechanisms/page_discarder.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/performance_manager/mechanisms/page_discarder.cc ---- chromium-126.0.6478.26/chrome/browser/performance_manager/mechanisms/page_discarder.cc.no_matching_constructor 2024-05-29 18:00:54.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/performance_manager/mechanisms/page_discarder.cc 2024-06-02 23:51:25.490915438 +0200 -@@ -53,7 +53,7 @@ std::vector - if (lifecycle_unit->DiscardTab( - discard_reason, - /*memory_footprint_estimate=*/proxy.second)) { -- discard_events.emplace_back(base::TimeTicks::Now(), proxy.second); -+ discard_events.emplace_back() = {base::TimeTicks::Now(), proxy.second}; - } - } - return discard_events; -diff -up chromium-126.0.6478.26/chrome/browser/renderer_context_menu/render_view_context_menu.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/renderer_context_menu/render_view_context_menu.cc ---- chromium-126.0.6478.26/chrome/browser/renderer_context_menu/render_view_context_menu.cc.no_matching_constructor 2024-05-29 18:00:54.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/renderer_context_menu/render_view_context_menu.cc 2024-06-02 23:51:25.492915486 +0200 -@@ -4044,10 +4044,10 @@ void RenderViewContextMenu::ExecOpenComp - autofill::LocalFrameToken frame_token = driver->GetFrameToken(); - client->GetManager().OpenCompose( - *driver, -- autofill::FormGlobalId( -- frame_token, autofill::FormRendererId(params_.form_renderer_id)), -- autofill::FieldGlobalId( -- frame_token, autofill::FieldRendererId(params_.field_renderer_id)), -+ autofill::FormGlobalId{ -+ frame_token, autofill::FormRendererId(params_.form_renderer_id)}, -+ autofill::FieldGlobalId{ -+ frame_token, autofill::FieldRendererId(params_.field_renderer_id)}, - compose::ComposeManagerImpl::UiEntryPoint::kContextMenu); - GetBrowser()->window()->NotifyPromoFeatureUsed( - compose::features::kEnableCompose); -diff -up chromium-126.0.6478.26/chrome/browser/ui/autofill/autofill_context_menu_manager.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/autofill/autofill_context_menu_manager.cc ---- chromium-126.0.6478.26/chrome/browser/ui/autofill/autofill_context_menu_manager.cc.no_matching_constructor 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/autofill/autofill_context_menu_manager.cc 2024-06-02 23:51:25.492915486 +0200 -@@ -383,8 +383,8 @@ void AutofillContextMenuManager::Execute - AutofillManager& manager) { - auto& driver = static_cast(manager.driver()); - driver.browser_events().RendererShouldTriggerSuggestions( -- FieldGlobalId(driver.GetFrameToken(), -- FieldRendererId(params_.field_renderer_id)), -+ FieldGlobalId{driver.GetFrameToken(), -+ FieldRendererId(params_.field_renderer_id)}, - AutofillSuggestionTriggerSource::kManualFallbackPayments); - LogManualFallbackContextMenuEntryAccepted( - static_cast(manager), -diff -up chromium-126.0.6478.26/chrome/browser/ui/omnibox/chrome_omnibox_client.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/omnibox/chrome_omnibox_client.cc ---- chromium-126.0.6478.26/chrome/browser/ui/omnibox/chrome_omnibox_client.cc.no_matching_constructor 2024-05-29 18:00:58.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/omnibox/chrome_omnibox_client.cc 2024-06-02 23:51:25.492915486 +0200 -@@ -512,10 +512,10 @@ void ChromeOmniboxClient::OnAutocomplete - alternative_nav_match); - - // Store the details necessary to open the omnibox match via browser commands. -- location_bar_->set_navigation_params(LocationBar::NavigationParams( -+ location_bar_->set_navigation_params(LocationBar::NavigationParams{ - destination_url, disposition, transition, match_selection_timestamp, - destination_url_entered_without_scheme, -- destination_url_entered_with_http_scheme, match.extra_headers)); -+ destination_url_entered_with_http_scheme, match.extra_headers}); - - if (browser_) { - auto navigation = chrome::OpenCurrentURL(browser_); -diff -up chromium-126.0.6478.26/chrome/browser/ui/safety_hub/menu_notification_service.h.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/safety_hub/menu_notification_service.h ---- chromium-126.0.6478.26/chrome/browser/ui/safety_hub/menu_notification_service.h.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/safety_hub/menu_notification_service.h 2024-06-02 23:51:25.493915509 +0200 -@@ -24,6 +24,7 @@ struct MenuNotificationEntry { - int command = 0; - std::u16string label; - safety_hub::SafetyHubModuleType module; -+ MenuNotificationEntry(auto c, auto l, auto m) : command(c), label(l), module(m) { } - }; - - namespace { -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/frame/contents_layout_manager.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/frame/contents_layout_manager.cc ---- chromium-126.0.6478.26/chrome/browser/ui/views/frame/contents_layout_manager.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/frame/contents_layout_manager.cc 2024-06-02 23:51:25.493915509 +0200 -@@ -44,20 +44,20 @@ views::ProposedLayout ContentsLayoutMana - - // DevTools cares about the specific position, so we have to compensate RTL - // layout here. -- layouts.child_layouts.emplace_back( -+ layouts.child_layouts.emplace_back() = { - devtools_view_.get(), devtools_view_->GetVisible(), - host_view()->GetMirroredRect(new_devtools_bounds), -- views::SizeBounds(container_size)); -- layouts.child_layouts.emplace_back( -+ views::SizeBounds(container_size)}; -+ layouts.child_layouts.emplace_back() = { - contents_view_.get(), contents_view_->GetVisible(), - host_view()->GetMirroredRect(new_contents_bounds), -- views::SizeBounds(container_size)); -+ views::SizeBounds(container_size)}; - - // Enterprise watermark view is always overlaid, even when empty. - if (watermark_view_) { -- layouts.child_layouts.emplace_back( -+ layouts.child_layouts.emplace_back() = { - watermark_view_.get(), watermark_view_->GetVisible(), -- gfx::Rect(0, 0, width, height), views::SizeBounds(container_size)); -+ gfx::Rect(0, 0, width, height), views::SizeBounds(container_size)}; - } - layouts.host_size = gfx::Size(width, height); - return layouts; -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc ---- chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_ask_view.cc 2024-06-03 18:31:02.456804349 +0200 -@@ -78,8 +78,8 @@ EmbeddedPermissionPromptAskView::GetButt - buttons.push_back(allow_always); - } - } else { -- buttons.emplace_back(l10n_util::GetStringUTF16(IDS_PERMISSION_ALLOW), -- ButtonType::kAllow, ui::ButtonStyle::kTonal, kAllowId); -+ buttons.emplace_back() = {l10n_util::GetStringUTF16(IDS_PERMISSION_ALLOW), -+ ButtonType::kAllow, ui::ButtonStyle::kTonal, kAllowId}; - } - return buttons; - } -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h ---- chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_base_view.h 2024-06-02 23:51:25.494915534 +0200 -@@ -87,6 +87,7 @@ class EmbeddedPermissionPromptBaseView : - struct RequestLineConfiguration { - const raw_ptr icon; - std::u16string message; -+ RequestLineConfiguration(auto i, auto m) : icon(i), message(m) { } - }; - - struct ButtonConfiguration { -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc ---- chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_policy_view.cc 2024-06-02 23:51:25.494915534 +0200 -@@ -88,8 +88,8 @@ EmbeddedPermissionPromptPolicyView::GetR - std::vector - EmbeddedPermissionPromptPolicyView::GetButtonsConfiguration() const { - std::vector buttons; -- buttons.emplace_back(l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_OK_LABEL), -- ButtonType::kPolicyOK, ui::ButtonStyle::kTonal); -+ buttons.emplace_back() = {l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_OK_LABEL), -+ ButtonType::kPolicyOK, ui::ButtonStyle::kTonal}; - return buttons; - } - -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_denied_view.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_denied_view.cc ---- chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_denied_view.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_denied_view.cc 2024-06-02 23:51:25.494915534 +0200 -@@ -66,13 +66,13 @@ EmbeddedPermissionPromptPreviouslyDenied - std::vector - EmbeddedPermissionPromptPreviouslyDeniedView::GetButtonsConfiguration() const { - std::vector buttons; -- buttons.emplace_back( -+ buttons.emplace_back() = { - l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_CONTINUE_NOT_ALLOWING), -- ButtonType::kContinueNotAllowing, ui::ButtonStyle::kTonal); -+ ButtonType::kContinueNotAllowing, ui::ButtonStyle::kTonal}; - -- buttons.emplace_back( -+ buttons.emplace_back() = { - l10n_util::GetStringUTF16(IDS_PERMISSION_ALLOW_THIS_TIME), -- ButtonType::kAllowThisTime, ui::ButtonStyle::kTonal, kAllowThisTimeId); -+ ButtonType::kAllowThisTime, ui::ButtonStyle::kTonal, kAllowThisTimeId}; - - return buttons; - } -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc ---- chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.cc 2024-06-02 23:51:25.495915557 +0200 -@@ -77,13 +77,13 @@ EmbeddedPermissionPromptPreviouslyGrante - std::vector - EmbeddedPermissionPromptPreviouslyGrantedView::GetButtonsConfiguration() const { - std::vector buttons; -- buttons.emplace_back( -+ buttons.emplace_back() = { - l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_CONTINUE_ALLOWING), - ButtonType::kContinueAllowing, ui::ButtonStyle::kTonal, -- kContinueAllowingId); -+ kContinueAllowingId}; - -- buttons.emplace_back( -+ buttons.emplace_back() = { - l10n_util::GetStringUTF16(IDS_EMBEDDED_PROMPT_STOP_ALLOWING), -- ButtonType::kStopAllowing, ui::ButtonStyle::kTonal, kStopAllowingId); -+ ButtonType::kStopAllowing, ui::ButtonStyle::kTonal, kStopAllowingId}; - return buttons; - } -diff -up chromium-126.0.6478.26/chrome/browser/ui/views/tabs/tab_style_views.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/views/tabs/tab_style_views.cc ---- chromium-126.0.6478.26/chrome/browser/ui/views/tabs/tab_style_views.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/views/tabs/tab_style_views.cc 2024-06-02 23:51:25.495915557 +0200 -@@ -1214,10 +1214,10 @@ SkPath ChromeRefresh2023TabStyleViews::G - - // Radii are clockwise from top left. - const SkVector radii[4] = { -- SkVector(top_content_corner_radius, top_content_corner_radius), -- SkVector(top_content_corner_radius, top_content_corner_radius), -- SkVector(bottom_content_corner_radius, bottom_content_corner_radius), -- SkVector(bottom_content_corner_radius, bottom_content_corner_radius)}; -+ SkVector{top_content_corner_radius, top_content_corner_radius}, -+ SkVector{top_content_corner_radius, top_content_corner_radius}, -+ SkVector{bottom_content_corner_radius, bottom_content_corner_radius}, -+ SkVector{bottom_content_corner_radius, bottom_content_corner_radius}}; - SkRRect rrect; - rrect.setRectRadii(SkRect::MakeLTRB(left, top, right, bottom), radii); - SkPath path; -diff -up chromium-126.0.6478.26/chrome/browser/ui/web_applications/sub_apps_service_impl.cc.no_matching_constructor chromium-126.0.6478.26/chrome/browser/ui/web_applications/sub_apps_service_impl.cc ---- chromium-126.0.6478.26/chrome/browser/ui/web_applications/sub_apps_service_impl.cc.no_matching_constructor 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/web_applications/sub_apps_service_impl.cc 2024-06-02 23:51:25.496915581 +0200 -@@ -108,7 +108,7 @@ AddOptionsFromMojo( - ConvertPathToUrl(sub_app->manifest_id_path, origin)); - ASSIGN_OR_RETURN(GURL install_url, - ConvertPathToUrl(sub_app->install_url_path, origin)); -- sub_apps.emplace_back(std::move(manifest_id), std::move(install_url)); -+ sub_apps.emplace_back() = {std::move(manifest_id), std::move(install_url)}; - } - return sub_apps; - } -@@ -440,7 +440,7 @@ void SubAppsServiceImpl::ScheduleSubAppI - base::BindOnce( - [](webapps::ManifestId manifest_id, const webapps::AppId& app_id, - webapps::InstallResultCode result_code) { -- return SubAppInstallResult(manifest_id, app_id, result_code); -+ return SubAppInstallResult{manifest_id, app_id, result_code}; - }, - manifest_id) - .Then(concurrent.CreateCallback()), -diff -up chromium-126.0.6478.26/chrome/test/chromedriver/capabilities.cc.no_matching_constructor chromium-126.0.6478.26/chrome/test/chromedriver/capabilities.cc ---- chromium-126.0.6478.26/chrome/test/chromedriver/capabilities.cc.no_matching_constructor 2024-05-29 18:01:01.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/test/chromedriver/capabilities.cc 2024-06-02 23:51:25.496915581 +0200 -@@ -346,7 +346,7 @@ Status ParseMobileEmulation(const base:: - "'version' field of type string"); - } - -- brands.emplace_back(*brand, *version); -+ brands.emplace_back() = {*brand, *version}; - } - - client_hints.brands = std::move(brands); -@@ -384,7 +384,7 @@ Status ParseMobileEmulation(const base:: - "a 'version' field of type string"); - } - -- full_version_list.emplace_back(*brand, *version); -+ full_version_list.emplace_back() = {*brand, *version}; - } - - client_hints.full_version_list = std::move(full_version_list); -diff -up chromium-126.0.6478.26/components/attribution_reporting/aggregatable_utils.cc.no_matching_constructor chromium-126.0.6478.26/components/attribution_reporting/aggregatable_utils.cc ---- chromium-126.0.6478.26/components/attribution_reporting/aggregatable_utils.cc.no_matching_constructor 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/attribution_reporting/aggregatable_utils.cc 2024-06-02 23:51:25.497915604 +0200 -@@ -33,7 +33,7 @@ std::vector GetN - } - - if (generate_func(i)) { -- reports.emplace_back(fake_source_time); -+ reports.emplace_back() = {fake_source_time}; - } - } - return reports; -diff -up chromium-126.0.6478.26/components/attribution_reporting/registration_info.cc.no_matching_constructor chromium-126.0.6478.26/components/attribution_reporting/registration_info.cc ---- chromium-126.0.6478.26/components/attribution_reporting/registration_info.cc.no_matching_constructor 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/attribution_reporting/registration_info.cc 2024-06-02 23:51:25.497915604 +0200 -@@ -96,7 +96,7 @@ RegistrationInfo::ParseInfo(const net::s - - ASSIGN_OR_RETURN(bool report_header_errors, ParseReportHeaderErrors(dict)); - -- return RegistrationInfo(preferred_platform, report_header_errors); -+ return RegistrationInfo{preferred_platform, report_header_errors}; - } - - } // namespace attribution_reporting -diff -up chromium-126.0.6478.26/components/autofill/content/renderer/form_autofill_util.cc.no_matching_constructor chromium-126.0.6478.26/components/autofill/content/renderer/form_autofill_util.cc ---- chromium-126.0.6478.26/components/autofill/content/renderer/form_autofill_util.cc.no_matching_constructor 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/autofill/content/renderer/form_autofill_util.cc 2024-06-02 23:51:25.497915604 +0200 -@@ -2279,7 +2279,7 @@ std::vector Address - } - - base::span observations_data = s.ColumnBlob(3); -- field_type_values.emplace_back( -+ field_type_values.emplace_back() = { - type, s.ColumnString16(1), s.ColumnInt(2), - std::vector(observations_data.begin(), -- observations_data.end())); -+ observations_data.end())}; - - if (type == ADDRESS_HOME_COUNTRY) { - country_code = base::UTF16ToUTF8(s.ColumnString16(1)); -diff -up chromium-126.0.6478.26/components/autofill/core/browser/webdata/addresses/contact_info_sync_util.cc.no_matching_constructor chromium-126.0.6478.26/components/autofill/core/browser/webdata/addresses/contact_info_sync_util.cc ---- chromium-126.0.6478.26/components/autofill/core/browser/webdata/addresses/contact_info_sync_util.cc.no_matching_constructor 2024-05-29 18:01:05.000000000 +0200 -+++ chromium-126.0.6478.26/components/autofill/core/browser/webdata/addresses/contact_info_sync_util.cc 2024-06-02 23:51:25.498915629 +0200 -@@ -169,9 +169,9 @@ class ContactInfoProfileSetter { - CHECK(observations.empty()); - for (const sync_pb::ContactInfoSpecifics::Observation& proto_observation : - metadata.observations()) { -- observations.emplace_back(proto_observation.type(), -+ observations.emplace_back() = {proto_observation.type(), - ProfileTokenQuality::FormSignatureHash( -- proto_observation.form_hash())); -+ proto_observation.form_hash())}; - } - } - } -diff -up chromium-126.0.6478.26/components/invalidation/impl/fcm_invalidation_service.cc.no_matching_constructor chromium-126.0.6478.26/components/invalidation/impl/fcm_invalidation_service.cc ---- chromium-126.0.6478.26/components/invalidation/impl/fcm_invalidation_service.cc.no_matching_constructor 2024-05-29 18:01:06.000000000 +0200 -+++ chromium-126.0.6478.26/components/invalidation/impl/fcm_invalidation_service.cc 2024-06-02 23:51:25.498915629 +0200 -@@ -98,7 +98,7 @@ bool FCMInvalidationService::UpdateInter - DVLOG(2) << "Subscribing to topics: " << topic_set.size(); - TopicMap topic_map; - for (const auto& topic_name : topic_set) { -- topic_map[topic_name] = TopicMetadata(handler->IsPublicTopic(topic_name)); -+ topic_map[topic_name] = TopicMetadata{handler->IsPublicTopic(topic_name)}; - } - // TODO(crbug.com/40675708): UpdateRegisteredTopics() should be renamed to - // clarify that it actually updates whether topics need subscription (aka -diff -up chromium-126.0.6478.26/components/memory_pressure/unnecessary_discard_monitor.cc.no_matching_constructor chromium-126.0.6478.26/components/memory_pressure/unnecessary_discard_monitor.cc ---- chromium-126.0.6478.26/components/memory_pressure/unnecessary_discard_monitor.cc.no_matching_constructor 2024-05-29 18:01:07.000000000 +0200 -+++ chromium-126.0.6478.26/components/memory_pressure/unnecessary_discard_monitor.cc 2024-06-02 23:51:25.498915629 +0200 -@@ -92,8 +92,8 @@ void UnnecessaryDiscardMonitor::OnDiscar - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - if (current_reclaim_event_) { - // Cache this kill event along with the time it took place. -- current_reclaim_event_kills_.emplace_back(memory_freed_kb, -- discard_complete_time); -+ current_reclaim_event_kills_.emplace_back() = {memory_freed_kb, -+ discard_complete_time}; - } - } - -diff -up chromium-126.0.6478.26/components/password_manager/core/browser/password_manager.cc.no_matching_constructor chromium-126.0.6478.26/components/password_manager/core/browser/password_manager.cc ---- chromium-126.0.6478.26/components/password_manager/core/browser/password_manager.cc.no_matching_constructor 2024-05-29 18:01:07.000000000 +0200 -+++ chromium-126.0.6478.26/components/password_manager/core/browser/password_manager.cc 2024-06-02 23:51:25.498915629 +0200 -@@ -686,7 +686,7 @@ void PasswordManager::OnUserModifiedNonP - it->second.last_change = base::Time::Now(); - } else { - possible_usernames_.Put( -- PossibleUsernameFieldIdentifier(driver_id, renderer_id), -+ PossibleUsernameFieldIdentifier{driver_id, renderer_id}, - PossibleUsernameData(GetSignonRealm(driver->GetLastCommittedURL()), - renderer_id, value, base::Time::Now(), driver_id, - autocomplete_attribute_has_username, -diff -up chromium-126.0.6478.26/components/password_manager/core/browser/password_suggestion_generator.cc.no_matching_constructor chromium-126.0.6478.26/components/password_manager/core/browser/password_suggestion_generator.cc ---- chromium-126.0.6478.26/components/password_manager/core/browser/password_suggestion_generator.cc.no_matching_constructor 2024-05-29 18:01:07.000000000 +0200 -+++ chromium-126.0.6478.26/components/password_manager/core/browser/password_suggestion_generator.cc 2024-06-03 18:08:15.650577186 +0200 -@@ -156,7 +156,7 @@ void MaybeAppendManagePasswordsEntry(std - SuggestionType::kAllSavedPasswordsEntry); - // The UI code will pick up an icon from the resources based on the string. - suggestion.trailing_icon = Suggestion::Icon::kGooglePasswordManager; -- suggestions->emplace_back(std::move(suggestion)); -+ suggestions->emplace_back() = {std::move(suggestion)}; - } - - // If |field_suggestion| matches |field_content|, creates a Suggestion out of it -@@ -201,7 +201,7 @@ void AppendSuggestionIfMatching(const st - suggestion.trailing_icon = CreateStoreIcon(from_account_store); - } - #endif -- suggestions->emplace_back(std::move(suggestion)); -+ suggestions->emplace_back() = {std::move(suggestion)}; - } - } - -@@ -233,8 +233,8 @@ void GetSuggestions(const autofill::Pass - - void AddPasswordUsernameChildSuggestion(const std::u16string& username, - Suggestion& suggestion) { -- suggestion.children.emplace_back( -- username, SuggestionType::kPasswordFieldByFieldFilling); -+ suggestion.children.emplace_back() = { -+ username, SuggestionType::kPasswordFieldByFieldFilling}; - } - - void AddFillPasswordChildSuggestion(Suggestion& suggestion, -@@ -244,11 +244,11 @@ void AddFillPasswordChildSuggestion(Sugg - l10n_util::GetStringUTF16( - IDS_PASSWORD_MANAGER_MANUAL_FALLBACK_FILL_PASSWORD_ENTRY), - SuggestionType::kFillPassword); -- fill_password.payload = Suggestion::PasswordSuggestionDetails( -+ fill_password.payload = Suggestion::PasswordSuggestionDetails{ - credential.password, - GetHumanReadableRealm(credential.GetFirstSignonRealm()), -- is_cross_origin.value()); -- suggestion.children.emplace_back(std::move(fill_password)); -+ is_cross_origin.value()}; -+ suggestion.children.emplace_back() = {std::move(fill_password)}; - } - - void AddViewPasswordDetailsChildSuggestion(Suggestion& suggestion) { -@@ -257,7 +257,7 @@ void AddViewPasswordDetailsChildSuggesti - IDS_PASSWORD_MANAGER_MANUAL_FALLBACK_VIEW_DETAILS_ENTRY), - SuggestionType::kViewPasswordDetails); - view_password_details.icon = Suggestion::Icon::kKey; -- suggestion.children.emplace_back(std::move(view_password_details)); -+ suggestion.children.emplace_back() = {std::move(view_password_details)}; - } - - void AppendManualFallbackSuggestions(const CredentialUIEntry& credential, -@@ -278,9 +278,9 @@ void AppendManualFallbackSuggestions(con - const std::u16string maybe_username = - ReplaceEmptyUsername(credential.username, &replaced); - suggestion.additional_label = maybe_username; -- suggestion.payload = Suggestion::PasswordSuggestionDetails( -+ suggestion.payload = Suggestion::PasswordSuggestionDetails{ - credential.password, base::UTF8ToUTF16(kDisplaySingonRealm), -- is_cross_origin.value()); -+ is_cross_origin.value()}; - suggestion.is_acceptable = on_password_form.value(); - - if (!replaced) { -@@ -290,7 +290,7 @@ void AppendManualFallbackSuggestions(con - suggestion.children.emplace_back(SuggestionType::kSeparator); - AddViewPasswordDetailsChildSuggestion(suggestion); - -- suggestions->emplace_back(std::move(suggestion)); -+ suggestions->emplace_back() = {std::move(suggestion)}; - } - } - -@@ -363,27 +363,27 @@ std::vector PasswordSuggesti - if (uses_passkeys && delegate->OfferPasskeysFromAnotherDeviceOption()) { - bool listed_passkeys = delegate->GetPasskeys().has_value() && - delegate->GetPasskeys()->size() > 0; -- suggestions.emplace_back(CreateWebAuthnEntry(listed_passkeys)); -+ suggestions.emplace_back() = {CreateWebAuthnEntry(listed_passkeys)}; - } - #endif - - // Add password generation entry, if available. - if (offers_generation) { -- suggestions.emplace_back( -- show_account_storage_optin -+ suggestions.emplace_back() = -+ {show_account_storage_optin - ? CreateEntryToOptInToAccountStorageThenGenerate() -- : CreateGenerationEntry()); -+ : CreateGenerationEntry()}; - } - - // Add button to opt into using the account storage for passwords and then - // suggest. - if (show_account_storage_optin) { -- suggestions.emplace_back(CreateEntryToOptInToAccountStorageThenFill()); -+ suggestions.emplace_back() = {CreateEntryToOptInToAccountStorageThenFill()}; - } - - // Add button to sign-in which unlocks the previously used account store. - if (show_account_storage_resignin) { -- suggestions.emplace_back(CreateEntryToReSignin()); -+ suggestions.emplace_back() = {CreateEntryToReSignin()}; - } - - // Add "Manage all passwords" link to settings. -@@ -401,10 +401,10 @@ PasswordSuggestionGenerator::GetManualFa - const bool generate_sections = - !suggested_credentials.empty() && !credentials.empty(); - if (generate_sections) { -- suggestions.emplace_back( -+ suggestions.emplace_back() = { - l10n_util::GetStringUTF16( - IDS_PASSWORD_MANAGER_MANUAL_FALLBACK_SUGGESTED_PASSWORDS_SECTION_TITLE), -- SuggestionType::kTitle); -+ SuggestionType::kTitle}; - } - - std::set suggested_signon_realms; -@@ -415,10 +415,10 @@ PasswordSuggestionGenerator::GetManualFa - } - - if (generate_sections) { -- suggestions.emplace_back( -+ suggestions.emplace_back() = { - l10n_util::GetStringUTF16( - IDS_PASSWORD_MANAGER_MANUAL_FALLBACK_ALL_PASSWORDS_SECTION_TITLE), -- SuggestionType::kTitle); -+ SuggestionType::kTitle}; - } - - // Only the "All passwords" section should be sorted alphabetically. -diff -up chromium-126.0.6478.26/components/performance_manager/worker_watcher.cc.no_matching_constructor chromium-126.0.6478.26/components/performance_manager/worker_watcher.cc ---- chromium-126.0.6478.26/components/performance_manager/worker_watcher.cc.no_matching_constructor 2024-05-29 18:01:08.000000000 +0200 -+++ chromium-126.0.6478.26/components/performance_manager/worker_watcher.cc 2024-06-02 23:51:25.499915653 +0200 -@@ -244,7 +244,7 @@ void WorkerWatcher::OnWorkerCreated( - DCHECK(insertion_result.second); - - absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [&, - this](const content::GlobalRenderFrameHostId& render_frame_host_id) { - AddFrameClientConnection(insertion_result.first->second.get(), -@@ -253,7 +253,7 @@ void WorkerWatcher::OnWorkerCreated( - [&, this](blink::DedicatedWorkerToken dedicated_worker_token) { - ConnectDedicatedWorkerClient(insertion_result.first->second.get(), - dedicated_worker_token); -- }), -+ }}, - creator); - } - -@@ -270,7 +270,7 @@ void WorkerWatcher::OnBeforeWorkerDestro - // First disconnect the creator's node from this worker node. - - absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [&, - this](const content::GlobalRenderFrameHostId& render_frame_host_id) { - RemoveFrameClientConnection(worker_node.get(), -@@ -279,7 +279,7 @@ void WorkerWatcher::OnBeforeWorkerDestro - [&, this](blink::DedicatedWorkerToken dedicated_worker_token) { - DisconnectDedicatedWorkerClient(worker_node.get(), - dedicated_worker_token); -- }), -+ }}, - creator); - - // Disconnect all child workers before destroying the node. -@@ -456,7 +456,7 @@ void WorkerWatcher::OnControlleeAdded( - const std::string& client_uuid, - const content::ServiceWorkerClientInfo& client_info) { - absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [&, this](content::GlobalRenderFrameHostId render_frame_host_id) { - // For window clients, it is necessary to wait until the navigation - // has committed to a RenderFrameHost. -@@ -494,7 +494,7 @@ void WorkerWatcher::OnControlleeAdded( - ConnectSharedWorkerClient(service_worker_node, - shared_worker_token); - } -- }), -+ }}, - client_info); - } - -@@ -534,7 +534,7 @@ void WorkerWatcher::OnControlleeRemoved( - return; - - absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [&, this](content::GlobalRenderFrameHostId render_frame_host_id) { - RemoveFrameClientConnection(worker_node, render_frame_host_id); - }, -@@ -544,7 +544,7 @@ void WorkerWatcher::OnControlleeRemoved( - }, - [&, this](blink::SharedWorkerToken shared_worker_token) { - DisconnectSharedWorkerClient(worker_node, shared_worker_token); -- }), -+ }}, - client); - } - -@@ -820,7 +820,7 @@ void WorkerWatcher::ConnectAllServiceWor - - for (const auto& kv : it->second) { - absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [&, this](content::GlobalRenderFrameHostId render_frame_host_id) { - AddFrameClientConnection(service_worker_node, - render_frame_host_id); -@@ -832,7 +832,7 @@ void WorkerWatcher::ConnectAllServiceWor - [&, this](blink::SharedWorkerToken shared_worker_token) { - ConnectSharedWorkerClient(service_worker_node, - shared_worker_token); -- }), -+ }}, - kv.second); - } - } -@@ -847,7 +847,7 @@ void WorkerWatcher::DisconnectAllService - - for (const auto& kv : it->second) { - absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [&, this]( - const content::GlobalRenderFrameHostId& render_frame_host_id) { - RemoveFrameClientConnection(service_worker_node, -@@ -861,7 +861,7 @@ void WorkerWatcher::DisconnectAllService - [&, this](const blink::SharedWorkerToken& shared_worker_token) { - DisconnectSharedWorkerClient(service_worker_node, - shared_worker_token); -- }), -+ }}, - kv.second); - } - } -diff -up chromium-126.0.6478.26/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.no_matching_constructor chromium-126.0.6478.26/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc ---- chromium-126.0.6478.26/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc 2024-06-02 23:51:25.499915653 +0200 -@@ -1719,7 +1719,7 @@ void SkiaOutputSurfaceImplOnGpu::CopyOut - - // Issue readbacks from the surfaces: - for (size_t i = 0; i < CopyOutputResult::kNV12MaxPlanes; ++i) { -- SkISize size(plane_surfaces[i]->width(), plane_surfaces[i]->height()); -+ SkISize size{plane_surfaces[i]->width(), plane_surfaces[i]->height()}; - SkImageInfo dst_info = SkImageInfo::Make( - size, (i == 0) ? kAlpha_8_SkColorType : kR8G8_unorm_SkColorType, - kUnpremul_SkAlphaType); -diff -up chromium-126.0.6478.26/content/browser/download/save_package.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/download/save_package.cc ---- chromium-126.0.6478.26/content/browser/download/save_package.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/download/save_package.cc 2024-06-02 23:51:25.500915676 +0200 -@@ -802,8 +802,8 @@ void SavePackage::Finish() { - if (download_) { - std::vector files; - for (auto& item : saved_success_items_) { -- files.emplace_back(item.second->full_path(), item.second->url(), -- item.second->referrer().url); -+ files.emplace_back() = {item.second->full_path(), item.second->url(), -+ item.second->referrer().url}; - } - download::DownloadSaveItemData::AttachItemData(download_, std::move(files)); - } -diff -up chromium-126.0.6478.26/content/browser/fenced_frame/fenced_frame_config.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/fenced_frame/fenced_frame_config.cc ---- chromium-126.0.6478.26/content/browser/fenced_frame/fenced_frame_config.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/fenced_frame/fenced_frame_config.cc 2024-06-02 23:51:25.500915676 +0200 -@@ -407,7 +407,7 @@ void FencedFrameProperties::UpdateParent - feature, allow_list.AllowedOrigins(), allow_list.SelfIfMatches(), - allow_list.MatchesAll(), allow_list.MatchesOpaqueSrc()); - } -- parent_permissions_info_.emplace(parsed_policies, parent_origin); -+ parent_permissions_info_.emplace() = {parsed_policies, parent_origin}; - } - - } // namespace content -diff -up chromium-126.0.6478.26/content/browser/first_party_sets/first_party_set_parser.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/first_party_sets/first_party_set_parser.cc ---- chromium-126.0.6478.26/content/browser/first_party_sets/first_party_set_parser.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/first_party_sets/first_party_set_parser.cc 2024-06-02 23:51:25.501915701 +0200 -@@ -774,7 +774,7 @@ FirstPartySetParser::ParseSetsFromEnterp - context.GetPolicySetsFromList( - policy.FindList(kFirstPartySetPolicyAdditionsField), - PolicySetType::kAddition)); -- return ParsedPolicySetLists(std::move(replacements), std::move(additions)); -+ return ParsedPolicySetLists{std::move(replacements), std::move(additions)}; - }(); - - context.PostProcessSetLists(set_lists); -diff -up chromium-126.0.6478.26/content/browser/gpu/compositor_util.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/gpu/compositor_util.cc ---- chromium-126.0.6478.26/content/browser/gpu/compositor_util.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/gpu/compositor_util.cc 2024-06-02 23:51:25.501915701 +0200 -@@ -108,7 +108,7 @@ std::vector GetGpuFeatur - *base::CommandLine::ForCurrentProcess(); - - std::vector features; -- features.emplace_back( -+ features.emplace_back() = { - "2d_canvas", - SafeGetFeatureStatus( - gpu_feature_info, gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS, -@@ -116,13 +116,13 @@ std::vector GetGpuFeatur - DisableInfo::Problem( - "Accelerated 2D canvas is unavailable: either disabled " - "via blocklist or the command line."), -- true); -- features.emplace_back( -+ true}; -+ features.emplace_back() = { - "canvas_oop_rasterization", - SafeGetFeatureStatus( - gpu_feature_info, gpu::GPU_FEATURE_TYPE_CANVAS_OOP_RASTERIZATION, -- command_line.HasSwitch(switches::kDisableAccelerated2dCanvas))); -- features.emplace_back( -+ command_line.HasSwitch(switches::kDisableAccelerated2dCanvas))}; -+ features.emplace_back() = { - "gpu_compositing", - // TODO(rivr): Replace with a check to see which backend is used for - // compositing; do the same for GPU rasterization if it's enabled. For -@@ -136,16 +136,16 @@ std::vector GetGpuFeatur - "about:flags " - "or the command line. The browser will fall back to software " - "compositing and hardware acceleration will be unavailable."), -- true); -- features.emplace_back( -+ true}; -+ features.emplace_back() = { - "webgl", - SafeGetFeatureStatus(gpu_feature_info, - gpu::GPU_FEATURE_TYPE_ACCELERATED_WEBGL, - command_line.HasSwitch(switches::kDisableWebGL)), - DisableInfo::Problem( - "WebGL has been disabled via blocklist or the command line."), -- false); -- features.emplace_back( -+ false}; -+ features.emplace_back() = { - "video_decode", - SafeGetFeatureStatus( - gpu_feature_info, gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE, -@@ -156,8 +156,8 @@ std::vector GetGpuFeatur - DisableInfo::Problem( - "Accelerated video decode has been disabled, either via blocklist, " - "about:flags or the command line."), -- true); -- features.emplace_back( -+ true}; -+ features.emplace_back() = { - "video_encode", - SafeGetFeatureStatus( - gpu_feature_info, gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE, -@@ -169,33 +169,33 @@ std::vector GetGpuFeatur - DisableInfo::Problem( - "Accelerated video encode has been disabled, either via blocklist, " - "about:flags or the command line."), -- true); -- features.emplace_back( -+ true}; -+ features.emplace_back() = { - "rasterization", - SafeGetFeatureStatus(gpu_feature_info, - gpu::GPU_FEATURE_TYPE_GPU_TILE_RASTERIZATION), - DisableInfo::Problem( - "Accelerated rasterization has been disabled, either via blocklist, " - "about:flags or the command line."), -- true); -- features.emplace_back( -+ true}; -+ features.emplace_back() = { - "opengl", SafeGetFeatureStatus(gpu_feature_info, -- gpu::GPU_FEATURE_TYPE_ACCELERATED_GL)); -+ gpu::GPU_FEATURE_TYPE_ACCELERATED_GL)}; - #if BUILDFLAG(ENABLE_VULKAN) -- features.emplace_back( -+ features.emplace_back() = { - "vulkan", -- SafeGetFeatureStatus(gpu_feature_info, gpu::GPU_FEATURE_TYPE_VULKAN)); -+ SafeGetFeatureStatus(gpu_feature_info, gpu::GPU_FEATURE_TYPE_VULKAN)}; - #endif -- features.emplace_back( -+ features.emplace_back() = { - "multiple_raster_threads", -- GetFakeFeatureStatus(NumberOfRendererRasterThreads() > 1)); -+ GetFakeFeatureStatus(NumberOfRendererRasterThreads() > 1)}; - #if BUILDFLAG(IS_ANDROID) -- features.emplace_back( -+ features.emplace_back() = { - "surface_control", - SafeGetFeatureStatus(gpu_feature_info, -- gpu::GPU_FEATURE_TYPE_ANDROID_SURFACE_CONTROL)); -+ gpu::GPU_FEATURE_TYPE_ANDROID_SURFACE_CONTROL)}; - #endif -- features.emplace_back( -+ features.emplace_back() = { - "webgl2", - SafeGetFeatureStatus( - gpu_feature_info, gpu::GPU_FEATURE_TYPE_ACCELERATED_WEBGL2, -@@ -203,12 +203,12 @@ std::vector GetGpuFeatur - command_line.HasSwitch(switches::kDisableWebGL2)), - DisableInfo::Problem( - "WebGL2 has been disabled via blocklist or the command line."), -- false); -- features.emplace_back("raw_draw", -- GetFakeFeatureStatus(features::IsUsingRawDraw())); -- features.emplace_back("direct_rendering_display_compositor", -- GetFakeFeatureStatus(features::IsDrDcEnabled())); -- features.emplace_back( -+ false}; -+ features.emplace_back() = {"raw_draw", -+ GetFakeFeatureStatus(features::IsUsingRawDraw())}; -+ features.emplace_back() = {"direct_rendering_display_compositor", -+ GetFakeFeatureStatus(features::IsDrDcEnabled())}; -+ features.emplace_back() = { - "webgpu", - SafeGetFeatureStatus( - gpu_feature_info, gpu::GPU_FEATURE_TYPE_ACCELERATED_WEBGPU, -@@ -216,14 +216,14 @@ std::vector GetGpuFeatur - !base::FeatureList::IsEnabled(::features::kWebGPUService)), - DisableInfo::Problem( - "WebGPU has been disabled via blocklist or the command line."), -- false); -- features.emplace_back( -+ false}; -+ features.emplace_back() = { - "skia_graphite", - SafeGetFeatureStatus(gpu_feature_info, -- gpu::GPU_FEATURE_TYPE_SKIA_GRAPHITE)); -- features.emplace_back( -+ gpu::GPU_FEATURE_TYPE_SKIA_GRAPHITE)}; -+ features.emplace_back() = { - "webnn", -- SafeGetFeatureStatus(gpu_feature_info, gpu::GPU_FEATURE_TYPE_WEBNN)); -+ SafeGetFeatureStatus(gpu_feature_info, gpu::GPU_FEATURE_TYPE_WEBNN)}; - return features; - } - -diff -up chromium-126.0.6478.26/content/browser/interest_group/header_direct_from_seller_signals.h.no_matching_constructor chromium-126.0.6478.26/content/browser/interest_group/header_direct_from_seller_signals.h ---- chromium-126.0.6478.26/content/browser/interest_group/header_direct_from_seller_signals.h.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/interest_group/header_direct_from_seller_signals.h 2024-06-02 23:51:25.501915701 +0200 -@@ -133,6 +133,7 @@ class CONTENT_EXPORT HeaderDirectFromSel - - // The Ad-Auction-Signals response served by `origin`. - std::string response_json; -+ UnprocessedResponse(auto u, auto s) : origin(u), response_json(s) { } - }; - - // Information from ParseAndFind() calls used by ParseAndFindCompleted. -diff -up chromium-126.0.6478.26/content/browser/interest_group/interest_group_auction.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/interest_group/interest_group_auction.cc ---- chromium-126.0.6478.26/content/browser/interest_group/interest_group_auction.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/interest_group/interest_group_auction.cc 2024-06-02 23:51:25.503915748 +0200 -@@ -616,7 +616,7 @@ bool SampleDebugReport( - blink::features::kFledgeDebugReportRestrictedCooldown.Get() != - base::Milliseconds(0))) { - new_debug_report_lockout_and_cooldowns.debug_report_cooldown_map[origin] = -- DebugReportCooldown(now_nearest_next_hour, cooldown_type); -+ DebugReportCooldown{now_nearest_next_hour, cooldown_type}; - } - - return can_send_debug_report; -diff -up chromium-126.0.6478.26/content/browser/interest_group/interest_group_storage.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/interest_group/interest_group_storage.cc ---- chromium-126.0.6478.26/content/browser/interest_group/interest_group_storage.cc.no_matching_constructor 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/interest_group/interest_group_storage.cc 2024-06-04 13:23:48.279501017 +0200 -@@ -204,8 +204,8 @@ blink::InterestGroup::Ad FromInterestGro - for (const auto& origin : *maybe_allowed_reporting_origins) { - const std::string* origin_str = origin.GetIfString(); - DCHECK(origin_str); -- allowed_reporting_origins_vector.emplace_back( -- DeserializeOrigin(*origin_str)); -+ allowed_reporting_origins_vector.emplace_back() = { -+ DeserializeOrigin(*origin_str)}; - } - result.allowed_reporting_origins = - std::move(allowed_reporting_origins_vector); -@@ -249,7 +249,7 @@ std::optional(std::move(pairs)); - } -@@ -307,8 +307,8 @@ DeserializeInterestGroupAdVectorJson(con - for (const auto& ad_value : ads_value->GetList()) { - const base::Value::Dict* dict = ad_value.GetIfDict(); - if (dict) { -- result.emplace_back( -- FromInterestGroupAdValue(passkey, *dict, for_components)); -+ result.emplace_back() = { -+ FromInterestGroupAdValue(passkey, *dict, for_components)}; - } - } - return result; -@@ -352,8 +352,8 @@ DeserializeInterestGroupAdVectorProto(co - ad_proto.allowed_reporting_origins_size()); - for (const std::string& allowed_reporting_origin : - ad_proto.allowed_reporting_origins()) { -- allowed_reporting_origins_vector.emplace_back( -- DeserializeOrigin(allowed_reporting_origin)); -+ allowed_reporting_origins_vector.emplace_back() = { -+ DeserializeOrigin(allowed_reporting_origin)}; - } - ad.allowed_reporting_origins = - std::move(allowed_reporting_origins_vector); -@@ -400,13 +400,13 @@ DeserializeStringSizeMap(const std::stri - if (!width_val || !width_units_val || !height_val || !height_units_val) { - return std::nullopt; - } -- result.emplace_back(entry.first, -+ result.emplace_back() = {entry.first, - blink::AdSize(width_val->GetDouble(), - static_cast( - width_units_val->GetInt()), - height_val->GetDouble(), - static_cast( -- height_units_val->GetInt()))); -+ height_units_val->GetInt()))}; - } - return result; - } -@@ -440,9 +440,9 @@ DeserializeStringStringVectorMap(const s - DCHECK(list && list->is_list()); - std::vector result_sizes; - for (base::Value& size : list->GetList()) { -- result_sizes.emplace_back(size.GetString()); -+ result_sizes.emplace_back() = {size.GetString()}; - } -- result.emplace_back(entry.first, result_sizes); -+ result.emplace_back() = {entry.first, result_sizes}; - } - return result; - } -@@ -512,8 +512,8 @@ DeserializeSellerCapabilitiesMap(const s - if (!base::StringToInt64(*value_string, &value_bitmask)) { - return std::nullopt; - } -- result.emplace_back(DeserializeOrigin(entry.first), -- DeserializeSellerCapabilities(value_bitmask)); -+ result.emplace_back() = {DeserializeOrigin(entry.first), -+ DeserializeSellerCapabilities(value_bitmask)}; - } - return result; - } -@@ -2499,7 +2499,7 @@ std::optional> - if (!DoRemoveInterestGroup(db, blink::InterestGroupKey(owner, name))) { - return std::nullopt; - } -- cleared_interest_groups.emplace_back(std::move(name)); -+ cleared_interest_groups.emplace_back() = {std::move(name)}; - } - if (!transaction.Commit()) { - return std::nullopt; -@@ -3432,7 +3432,7 @@ bool DoRemoveInterestGroupsMatchingOwner - load.BindTime(2, expiring_after); - - while (load.Step()) { -- owner_joiner_names.emplace_back(load.ColumnString(0)); -+ owner_joiner_names.emplace_back() = {load.ColumnString(0)}; - } - - for (const auto& name : owner_joiner_names) { -@@ -3462,8 +3462,8 @@ DoGetAllInterestGroupOwnerJoinerPairs(sq - load.Reset(true); - load.BindTime(0, expiring_after); - while (load.Step()) { -- result.emplace_back(DeserializeOrigin(load.ColumnString(0)), -- DeserializeOrigin(load.ColumnString(1))); -+ result.emplace_back() = {DeserializeOrigin(load.ColumnString(0)), -+ DeserializeOrigin(load.ColumnString(1))}; - } - if (!load.Succeeded()) { - return std::nullopt; -@@ -3596,9 +3596,9 @@ std::optional DoGet - return std::nullopt; - } - -- return DebugReportCooldown(cooldown_debugging_only_report.ColumnTime(0), -+ return DebugReportCooldown{cooldown_debugging_only_report.ColumnTime(0), - static_cast( -- cooldown_debugging_only_report.ColumnInt(1))); -+ cooldown_debugging_only_report.ColumnInt(1))}; - } - - void DoGetDebugReportCooldowns( -@@ -3726,10 +3726,10 @@ DoGetKAnonymityData(sql::Database& db, - - std::vector k_anon_data; - while (interest_group_kanon_query.Step()) { -- k_anon_data.emplace_back( -+ k_anon_data.emplace_back() = { - /*hashed_key=*/interest_group_kanon_query.ColumnString(0), - /*is_k_anonymous=*/interest_group_kanon_query.ColumnBool(1), -- /*last_updated=*/interest_group_kanon_query.ColumnTime(2)); -+ /*last_updated=*/interest_group_kanon_query.ColumnTime(2)}; - } - if (!interest_group_kanon_query.Succeeded()) { - return std::nullopt; -@@ -3826,12 +3826,12 @@ DoGetInterestGroupsForUpdate(sql::Databa - continue; - } - -- result.emplace_back( -+ result.emplace_back() = { - blink::InterestGroupKey( - owner, get_interest_group_update_parameters.ColumnString(0)), - update_url.value(), - DeserializeOrigin( -- get_interest_group_update_parameters.ColumnString(2))); -+ get_interest_group_update_parameters.ColumnString(2))}; - } - if (!get_interest_group_update_parameters.Succeeded()) { - return std::nullopt; -@@ -4080,8 +4080,8 @@ DoGetInterestGroupNamesForJoiningOrigin( - load.BindTime(1, now); - - while (load.Step()) { -- result.emplace_back(DeserializeOrigin(load.ColumnString(0)), -- load.ColumnString(1)); -+ result.emplace_back() = {DeserializeOrigin(load.ColumnString(0)), -+ load.ColumnString(1)}; - } - if (!load.Succeeded()) { - return std::nullopt; -@@ -4319,9 +4319,9 @@ bool ClearExpiredInterestGroups(sql::Dat - expired_interest_group.BindTime(0, expiration_before); - std::vector expired_groups; - while (expired_interest_group.Step()) { -- expired_groups.emplace_back( -+ expired_groups.emplace_back() = { - DeserializeOrigin(expired_interest_group.ColumnString(0)), -- expired_interest_group.ColumnString(1)); -+ expired_interest_group.ColumnString(1)}; - } - if (!expired_interest_group.Succeeded()) { - DLOG(ERROR) << "ClearExpiredInterestGroups could not get expired groups."; -@@ -4377,8 +4377,8 @@ bool ClearExcessiveStorage(sql::Database - cum_size = 0; - } - if (cum_size + group_size > max_owner_storage_size) { -- groups_to_remove.emplace_back(std::move(group_owner), -- std::move(group_name)); -+ groups_to_remove.emplace_back() = {std::move(group_owner), -+ std::move(group_name)}; - } else { - cum_size += group_size; - } -@@ -4522,7 +4522,7 @@ DoGetBiddingAndAuctionServerKeys(sql::Da - std::vector keys; - keys.reserve(key_protos.keys_size()); - for (auto& key_proto : *key_protos.mutable_keys()) { -- keys.emplace_back(std::move(*key_proto.mutable_key()), key_proto.id()); -+ keys.emplace_back() = {std::move(*key_proto.mutable_key()), key_proto.id()}; - } - return {expiration, keys}; - } -diff -up chromium-126.0.6478.26/content/browser/renderer_host/render_frame_host_impl.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/renderer_host/render_frame_host_impl.cc ---- chromium-126.0.6478.26/content/browser/renderer_host/render_frame_host_impl.cc.no_matching_constructor 2024-05-29 18:01:13.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/renderer_host/render_frame_host_impl.cc 2024-06-02 23:51:25.507915843 +0200 -@@ -8964,7 +8964,7 @@ void RenderFrameHostImpl::SendFencedFram - for (const blink::FencedFrame::ReportingDestination& destination : - destinations) { - SendFencedFrameReportingBeaconInternal( -- DestinationEnumEvent(event_type, event_data, cross_origin_exposed), -+ DestinationEnumEvent{event_type, event_data, cross_origin_exposed}, - destination); - } - } -@@ -8995,7 +8995,7 @@ void RenderFrameHostImpl::SendFencedFram - } - - SendFencedFrameReportingBeaconInternal( -- DestinationURLEvent(destination_url, cross_origin_exposed), -+ DestinationURLEvent{destination_url, cross_origin_exposed}, - blink::FencedFrame::ReportingDestination::kBuyer); - } - -@@ -9126,7 +9126,7 @@ void RenderFrameHostImpl::MaybeSendFence - data = info->data; - } - initiator_rfh->SendFencedFrameReportingBeaconInternal( -- AutomaticBeaconEvent(event_type, data), destination, -+ AutomaticBeaconEvent{event_type, data}, destination, - navigation_request.GetNavigationId()); - } - } else { -@@ -9137,7 +9137,7 @@ void RenderFrameHostImpl::MaybeSendFence - for (blink::FencedFrame::ReportingDestination destination : - info->destinations) { - initiator_rfh->SendFencedFrameReportingBeaconInternal( -- AutomaticBeaconEvent(event_type, info->data), destination, -+ AutomaticBeaconEvent{event_type, info->data}, destination, - navigation_request.GetNavigationId()); - } - } -diff -up chromium-126.0.6478.26/content/browser/service_worker/service_worker_container_host.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/service_worker/service_worker_container_host.cc ---- chromium-126.0.6478.26/content/browser/service_worker/service_worker_container_host.cc.no_matching_constructor 2024-05-29 18:01:13.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/service_worker/service_worker_container_host.cc 2024-06-02 23:51:25.508915867 +0200 -@@ -1076,7 +1076,7 @@ blink::mojom::ServiceWorkerClientType Se - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - DCHECK(client_info_); - return absl::visit( -- base::Overloaded( -+ base::Overloaded{ - [](GlobalRenderFrameHostId render_frame_host_id) { - return blink::mojom::ServiceWorkerClientType::kWindow; - }, -@@ -1085,7 +1085,7 @@ blink::mojom::ServiceWorkerClientType Se - }, - [](blink::SharedWorkerToken shared_worker_token) { - return blink::mojom::ServiceWorkerClientType::kSharedWorker; -- }), -+ }}, - *client_info_); - } - -diff -up chromium-126.0.6478.26/content/browser/service_worker/service_worker_main_resource_loader_interceptor.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/service_worker/service_worker_main_resource_loader_interceptor.cc ---- chromium-126.0.6478.26/content/browser/service_worker/service_worker_main_resource_loader_interceptor.cc.no_matching_constructor 2024-05-29 18:01:13.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/service_worker/service_worker_main_resource_loader_interceptor.cc 2024-06-02 23:51:25.508915867 +0200 -@@ -370,10 +370,10 @@ ServiceWorkerMainResourceLoaderIntercept - } - auto* storage_partition = process->GetStoragePartition(); - -- return absl::visit(base::Overloaded([&, this](auto token) { -+ return absl::visit(base::Overloaded{[&, this](auto token) { - return GetStorageKeyFromWorkerHost(storage_partition, - token, origin); -- }), -+ }}, - *worker_token_); - } - -diff -up chromium-126.0.6478.26/content/browser/worker_host/dedicated_worker_host.cc.no_matching_constructor chromium-126.0.6478.26/content/browser/worker_host/dedicated_worker_host.cc ---- chromium-126.0.6478.26/content/browser/worker_host/dedicated_worker_host.cc.no_matching_constructor 2024-05-29 18:01:13.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/worker_host/dedicated_worker_host.cc 2024-06-02 23:51:25.509915891 +0200 -@@ -258,7 +258,7 @@ void DedicatedWorkerHost::StartScriptLoa - RenderFrameHostImpl* creator_render_frame_host = nullptr; - DedicatedWorkerHost* creator_worker = nullptr; - -- absl::visit(base::Overloaded( -+ absl::visit(base::Overloaded{ - [&](const GlobalRenderFrameHostId& render_frame_host_id) { - creator_render_frame_host = - RenderFrameHostImpl::FromID(render_frame_host_id); -@@ -266,7 +266,7 @@ void DedicatedWorkerHost::StartScriptLoa - [&](blink::DedicatedWorkerToken dedicated_worker_token) { - creator_worker = service_->GetDedicatedWorkerHostFromToken( - dedicated_worker_token); -- }), -+ }}, - creator_); - - if (!creator_render_frame_host && !creator_worker) { -diff -up chromium-126.0.6478.26/extensions/browser/service_worker/service_worker_task_queue.cc.no_matching_constructor chromium-126.0.6478.26/extensions/browser/service_worker/service_worker_task_queue.cc ---- chromium-126.0.6478.26/extensions/browser/service_worker/service_worker_task_queue.cc.no_matching_constructor 2024-05-29 18:01:23.000000000 +0200 -+++ chromium-126.0.6478.26/extensions/browser/service_worker/service_worker_task_queue.cc 2024-06-02 23:51:25.509915891 +0200 -@@ -394,8 +394,8 @@ bool ServiceWorkerTaskQueue::IsReadyToRu - return false; - } - -- const SequencedContextId context_id(extension->id(), browser_context_, -- *activation_token); -+ const SequencedContextId context_id{extension->id(), browser_context_, -+ *activation_token}; - const WorkerState* worker_state = GetWorkerState(context_id); - - if (!worker_state || !worker_state->worker_id_) { -diff -up chromium-126.0.6478.26/gpu/command_buffer/client/shared_image_interface.h.no_matching_constructor chromium-126.0.6478.26/gpu/command_buffer/client/shared_image_interface.h ---- chromium-126.0.6478.26/gpu/command_buffer/client/shared_image_interface.h.no_matching_constructor 2024-05-29 18:01:25.000000000 +0200 -+++ chromium-126.0.6478.26/gpu/command_buffer/client/shared_image_interface.h 2024-06-02 23:51:25.510915914 +0200 -@@ -64,19 +64,19 @@ struct SharedImageInfo { - SkAlphaType alpha_type, - uint32_t usage, - std::string_view debug_label) -- : meta(format, size, color_space, surface_origin, alpha_type, usage), -+ : meta{format, size, color_space, surface_origin, alpha_type, usage}, - debug_label(debug_label) {} - SharedImageInfo(const viz::SharedImageFormat& format, - gfx::Size size, - const gfx::ColorSpace& color_space, - uint32_t usage, - std::string_view debug_label) -- : meta(format, -+ : meta{format, - size, - color_space, - kTopLeft_GrSurfaceOrigin, - kPremul_SkAlphaType, -- usage), -+ usage}, - debug_label(debug_label) {} - // This constructor exists only to support the DEPRECATED CreareSharedImage - // call below that accepts a GpuMemoryBuffer. This should be removed when that -diff -up chromium-126.0.6478.26/gpu/command_buffer/service/shared_image_interface_in_process.cc.no_matching_constructor chromium-126.0.6478.26/gpu/command_buffer/service/shared_image_interface_in_process.cc ---- chromium-126.0.6478.26/gpu/command_buffer/service/shared_image_interface_in_process.cc.no_matching_constructor 2024-05-29 18:01:26.000000000 +0200 -+++ chromium-126.0.6478.26/gpu/command_buffer/service/shared_image_interface_in_process.cc 2024-06-02 23:51:25.510915914 +0200 -@@ -622,12 +622,12 @@ SharedImageInterfaceInProcess::CreateSha - - return base::MakeRefCounted( - mailbox, -- SharedImageMetadata( -+ SharedImageMetadata{ - viz::GetSinglePlaneSharedImageFormat( - GetPlaneBufferFormat(plane, gpu_memory_buffer->GetFormat())), - gpu_memory_buffer->GetSize(), si_info.meta.color_space, - si_info.meta.surface_origin, si_info.meta.alpha_type, -- si_info.meta.usage), -+ si_info.meta.usage}, - GenUnverifiedSyncToken(), holder_, gpu_memory_buffer->GetType()); - } - -diff -up chromium-126.0.6478.26/gpu/ipc/client/client_shared_image_interface.cc.no_matching_constructor chromium-126.0.6478.26/gpu/ipc/client/client_shared_image_interface.cc ---- chromium-126.0.6478.26/gpu/ipc/client/client_shared_image_interface.cc.no_matching_constructor 2024-05-29 18:01:26.000000000 +0200 -+++ chromium-126.0.6478.26/gpu/ipc/client/client_shared_image_interface.cc 2024-06-02 23:51:25.510915914 +0200 -@@ -251,11 +251,11 @@ scoped_refptr ClientS - AddMailbox(proxy_->CreateSharedImage( - buffer_format, plane, gpu_memory_buffer->GetSize(), si_info, - gpu_memory_buffer->CloneHandle())), -- SharedImageMetadata(viz::GetSinglePlaneSharedImageFormat( -+ SharedImageMetadata{viz::GetSinglePlaneSharedImageFormat( - GetPlaneBufferFormat(plane, buffer_format)), - gpu_memory_buffer->GetSize(), - si_info.meta.color_space, si_info.meta.surface_origin, -- si_info.meta.alpha_type, si_info.meta.usage), -+ si_info.meta.alpha_type, si_info.meta.usage}, - GenUnverifiedSyncToken(), holder_, gpu_memory_buffer->GetType()); - } - -@@ -297,13 +297,13 @@ ClientSharedImageInterface::CreateSwapCh - return ClientSharedImageInterface::SwapChainSharedImages( - base::MakeRefCounted( - mailboxes.front_buffer, -- SharedImageMetadata(format, size, color_space, surface_origin, -- alpha_type, usage), -+ SharedImageMetadata{format, size, color_space, surface_origin, -+ alpha_type, usage}, - sync_token, holder_, gfx::EMPTY_BUFFER), - base::MakeRefCounted( - mailboxes.back_buffer, -- SharedImageMetadata(format, size, color_space, surface_origin, -- alpha_type, usage), -+ SharedImageMetadata{format, size, color_space, surface_origin, -+ alpha_type, usage}, - sync_token, holder_, gfx::EMPTY_BUFFER)); - } - -@@ -361,8 +361,8 @@ scoped_refptr ClientS - - return base::MakeRefCounted( - mailbox, -- SharedImageMetadata(format, size, color_space, surface_origin, alpha_type, -- usage), -+ SharedImageMetadata{format, size, color_space, surface_origin, alpha_type, -+ usage}, - GenUnverifiedSyncToken(), holder_, gfx::EMPTY_BUFFER); - } - -diff -up chromium-126.0.6478.26/gpu/ipc/service/gpu_channel_shared_image_interface.cc.no_matching_constructor chromium-126.0.6478.26/gpu/ipc/service/gpu_channel_shared_image_interface.cc ---- chromium-126.0.6478.26/gpu/ipc/service/gpu_channel_shared_image_interface.cc.no_matching_constructor 2024-06-03 16:54:58.998196626 +0200 -+++ chromium-126.0.6478.26/gpu/ipc/service/gpu_channel_shared_image_interface.cc 2024-06-03 16:55:23.722729949 +0200 -@@ -392,12 +392,12 @@ GpuChannelSharedImageInterface::CreateSh - - return base::MakeRefCounted( - mailbox, -- SharedImageMetadata( -+ SharedImageMetadata{ - viz::GetSinglePlaneSharedImageFormat( - GetPlaneBufferFormat(plane, gpu_memory_buffer->GetFormat())), - gpu_memory_buffer->GetSize(), si_info.meta.color_space, - si_info.meta.surface_origin, si_info.meta.alpha_type, -- si_info.meta.usage), -+ si_info.meta.usage}, - GenUnverifiedSyncToken(), holder_, gpu_memory_buffer->GetType()); - } - -diff -up chromium-126.0.6478.26/net/dns/host_resolver_cache.cc.no_matching_constructor chromium-126.0.6478.26/net/dns/host_resolver_cache.cc ---- chromium-126.0.6478.26/net/dns/host_resolver_cache.cc.no_matching_constructor 2024-05-29 18:01:34.000000000 +0200 -+++ chromium-126.0.6478.26/net/dns/host_resolver_cache.cc 2024-06-02 23:51:25.511915939 +0200 -@@ -368,7 +368,7 @@ void HostResolverCache::Set( - - std::string domain_name = result->domain_name(); - entries_.emplace( -- Key(std::move(domain_name), network_anonymization_key), -+ Key{std::move(domain_name), network_anonymization_key}, - Entry(std::move(result), source, secure, staleness_generation)); - - if (entries_.size() > max_entries_) { -diff -up chromium-126.0.6478.26/third_party/blink/renderer/core/css/properties/css_parsing_utils.cc.no_matching_constructor chromium-126.0.6478.26/third_party/blink/renderer/core/css/properties/css_parsing_utils.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/core/css/properties/css_parsing_utils.cc.no_matching_constructor 2024-05-29 18:01:38.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/core/css/properties/css_parsing_utils.cc 2024-06-02 23:51:25.513915986 +0200 -@@ -8533,7 +8533,7 @@ std::optional ConsumeI - default: - return std::nullopt; - } -- return InsetAreaKeyword(css_parsing_utils::ConsumeIdent(range), type); -+ return InsetAreaKeyword{css_parsing_utils::ConsumeIdent(range), type}; - } - - } // namespace -diff -up chromium-126.0.6478.26/third_party/blink/renderer/core/layout/anchor_evaluator_impl.cc.no_matching_constructor chromium-126.0.6478.26/third_party/blink/renderer/core/layout/anchor_evaluator_impl.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/core/layout/anchor_evaluator_impl.cc.no_matching_constructor 2024-05-29 18:01:39.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/core/layout/anchor_evaluator_impl.cc 2024-06-02 23:51:25.513915986 +0200 -@@ -591,7 +591,7 @@ AnchorEvaluatorImpl::ComputeInsetAreaOff - right = Evaluate(query.value(), position_anchor, - /* inset_area_offsets */ std::nullopt); - } -- return InsetAreaOffsets(top, bottom, left, right); -+ return InsetAreaOffsets{top, bottom, left, right}; - } - - PhysicalRect AnchorEvaluatorImpl::InsetAreaModifiedContainingBlock( -diff -up chromium-126.0.6478.26/third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager.cc.no_matching_constructor chromium-126.0.6478.26/third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager.cc.no_matching_constructor 2024-05-29 18:01:40.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/modules/media/audio/audio_renderer_mixer_manager.cc 2024-06-02 23:51:25.514916010 +0200 -@@ -181,8 +181,8 @@ AudioRendererMixer* AudioRendererMixerMa - DVLOG(1) << "Not reusing mixer with errors: " << it->second.mixer; - - // Move bad mixers out of the reuse map. -- dead_mixers_.emplace_back(std::move(it->second.mixer), -- it->second.ref_count); -+ dead_mixers_.emplace_back() = {std::move(it->second.mixer), -+ it->second.ref_count}; - mixers_.erase(it); - } - -@@ -228,7 +228,7 @@ void AudioRendererMixerManager::ReturnMi - } - } else if (dead_it == dead_mixers_.end() && mixer_ref.mixer->HasSinkError()) { - // Move bad mixers out of the reuse map. -- dead_mixers_.emplace_back(std::move(mixer_ref.mixer), mixer_ref.ref_count); -+ dead_mixers_.emplace_back() = {std::move(mixer_ref.mixer), mixer_ref.ref_count}; - mixers_.erase(it); - } - } -diff -up chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/font_palette.h.no_matching_constructor chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/font_palette.h ---- chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/font_palette.h.no_matching_constructor 2024-05-29 18:01:41.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/font_palette.h 2024-06-02 23:51:25.514916010 +0200 -@@ -96,7 +96,7 @@ class PLATFORM_EXPORT FontPalette : publ - Color::ColorSpace color_interpolation_space, - std::optional hue_interpolation_method) { - return base::AdoptRef(new FontPalette( -- start, end, NonNormalizedPercentages(start_percentage, end_percentage), -+ start, end, NonNormalizedPercentages{start_percentage, end_percentage}, - normalized_percentage, alpha_multiplier, color_interpolation_space, - hue_interpolation_method)); - } -@@ -170,7 +170,7 @@ class PLATFORM_EXPORT FontPalette : publ - double normalized_percentage) { - double end_percentage = normalized_percentage * 100.0; - double start_percentage = 100.0 - end_percentage; -- return NonNormalizedPercentages(start_percentage, end_percentage); -+ return NonNormalizedPercentages{start_percentage, end_percentage}; - } - - double GetAlphaMultiplier() const { -diff -up chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/palette_interpolation.cc.no_matching_constructor chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/palette_interpolation.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/palette_interpolation.cc.no_matching_constructor 2024-05-29 18:01:41.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/palette_interpolation.cc 2024-06-02 23:51:25.515916034 +0200 -@@ -31,7 +31,7 @@ Vector - color_interpolation_space, hue_interpolation_method, start_color, - end_color, percentage, alpha_multiplier); - -- FontPalette::FontPaletteOverride result_color_record(i, result_color); -+ FontPalette::FontPaletteOverride result_color_record{static_cast(i), result_color}; - result_color_records.push_back(result_color_record); - } - return result_color_records; -diff -up chromium-126.0.6478.26/third_party/pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp.no_matching_constructor chromium-126.0.6478.26/third_party/pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp ---- chromium-126.0.6478.26/third_party/pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp.no_matching_constructor 2024-05-29 18:03:05.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp 2024-06-02 23:51:25.515916034 +0200 -@@ -512,7 +512,7 @@ void CPDF_RenderStatus::ProcessClipPath( - } else { - m_pDevice->SetClip_PathFill( - *pPath, &mtObj2Device, -- CFX_FillRenderOptions(ClipPath.GetClipType(i))); -+ CFX_FillRenderOptions{ClipPath.GetClipType(i)}); - } - } - -diff -up chromium-126.0.6478.26/ui/base/wayland/color_manager_util.h.no_matching_constructor chromium-126.0.6478.26/ui/base/wayland/color_manager_util.h ---- chromium-126.0.6478.26/ui/base/wayland/color_manager_util.h.no_matching_constructor 2024-05-29 18:02:31.000000000 +0200 -+++ chromium-126.0.6478.26/ui/base/wayland/color_manager_util.h 2024-06-03 12:58:12.205983691 +0200 -@@ -52,53 +52,53 @@ constexpr auto kChromaticityMap = base:: - zcr_color_manager_v1_chromaticity_names, - PrimaryVersion>( - {{ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT601_525_LINE, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::SMPTE170M, -- kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::SMPTE170M, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT601_625_LINE, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT470BG, -- kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT470BG, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE170M, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::SMPTE170M, -- kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::SMPTE170M, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT709, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT2020, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT2020, kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT2020, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SRGB, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::BT709, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_DISPLAYP3, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::P3, kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::P3, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_ADOBERGB, -- PrimaryVersion(gfx::ColorSpace::PrimaryID::ADOBE_RGB, -- kDefaultSinceVersion)}, -+ PrimaryVersion{gfx::ColorSpace::PrimaryID::ADOBE_RGB, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_WIDE_GAMUT_COLOR_SPIN_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::BT470M, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_BT470M_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::SMPTE240M, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTE240M_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::XYZ_D50, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_XYZ_D50_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::SMPTEST428_1, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST428_1_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::SMPTEST431_2, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_SMPTEST431_2_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM, -- PrimaryVersion( -+ PrimaryVersion{ - gfx::ColorSpace::PrimaryID::FILM, -- ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM_SINCE_VERSION)}}); -+ ZCR_COLOR_MANAGER_V1_CHROMATICITY_NAMES_FILM_SINCE_VERSION}}}); - - // A map from the zcr_color_manager_v1 eotf_names enum values - // representing well-known EOTFs, to their equivalent TransferIDs. -@@ -107,68 +107,68 @@ constexpr auto kEotfMap = base::MakeFixe - zcr_color_manager_v1_eotf_names, - TransferVersion>({ - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR, -- TransferVersion(gfx::ColorSpace::TransferID::LINEAR, -- kDefaultSinceVersion)}, -+ TransferVersion{gfx::ColorSpace::TransferID::LINEAR, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB, -- TransferVersion(gfx::ColorSpace::TransferID::SRGB, kDefaultSinceVersion)}, -+ TransferVersion{gfx::ColorSpace::TransferID::SRGB, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR, -- TransferVersion(gfx::ColorSpace::TransferID::SRGB_HDR, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::SRGB_HDR, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709, -- TransferVersion(gfx::ColorSpace::TransferID::BT709, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::BT709, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2087, -- TransferVersion(gfx::ColorSpace::TransferID::GAMMA24, -- kDefaultSinceVersion)}, -+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA24, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_ADOBERGB, - // This is ever so slightly inaccurate. The number ought to be - // 2.19921875f, not 2.2 -- TransferVersion(gfx::ColorSpace::TransferID::GAMMA22, -- kDefaultSinceVersion)}, -+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA22, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_PQ, -- TransferVersion(gfx::ColorSpace::TransferID::PQ, kDefaultSinceVersion)}, -+ TransferVersion{gfx::ColorSpace::TransferID::PQ, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG, -- TransferVersion(gfx::ColorSpace::TransferID::HLG, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::HLG, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M, -- TransferVersion(gfx::ColorSpace::TransferID::SMPTE170M, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::SMPTE170M, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE170M_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M, -- TransferVersion(gfx::ColorSpace::TransferID::SMPTE240M, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::SMPTE240M, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTE240M_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1, -- TransferVersion( -+ TransferVersion{ - gfx::ColorSpace::TransferID::SMPTEST428_1, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SMPTEST428_1_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG, -- TransferVersion(gfx::ColorSpace::TransferID::LOG, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::LOG, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT, -- TransferVersion(gfx::ColorSpace::TransferID::LOG_SQRT, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::LOG_SQRT, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LOG_SQRT_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4, -- TransferVersion( -+ TransferVersion{ - gfx::ColorSpace::TransferID::IEC61966_2_4, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_IEC61966_2_4_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG, -- TransferVersion(gfx::ColorSpace::TransferID::BT1361_ECG, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::BT1361_ECG, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT1361_ECG_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10, -- TransferVersion(gfx::ColorSpace::TransferID::BT2020_10, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::BT2020_10, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_10_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12, -- TransferVersion(gfx::ColorSpace::TransferID::BT2020_12, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::BT2020_12, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2020_12_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS, -- TransferVersion( -+ TransferVersion{ - gfx::ColorSpace::TransferID::SCRGB_LINEAR_80_NITS, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SCRGB_LINEAR_80_NITS_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18, -- TransferVersion(gfx::ColorSpace::TransferID::GAMMA18, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA18, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA18_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28, -- TransferVersion(gfx::ColorSpace::TransferID::GAMMA28, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28_SINCE_VERSION)}, -+ TransferVersion{gfx::ColorSpace::TransferID::GAMMA28, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_GAMMA28_SINCE_VERSION}}, - }); - - // A map from the SDR zcr_color_manager_v1 eotf_names enum values -@@ -177,18 +177,18 @@ constexpr auto kEotfMap = base::MakeFixe - constexpr auto kTransferMap = - base::MakeFixedFlatMap({ - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR, -- TransferFnVersion(SkNamedTransferFn::kLinear, kDefaultSinceVersion)}, -+ TransferFnVersion{SkNamedTransferFn::kLinear, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB, -- TransferFnVersion(SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion)}, -+ TransferFnVersion{SkNamedTransferFnExt::kSRGB, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709, -- TransferFnVersion( -+ TransferFnVersion{ - SkNamedTransferFnExt::kRec709, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT709_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_BT2087, -- TransferFnVersion(gamma24, kDefaultSinceVersion)}, -+ TransferFnVersion{gamma24, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_ADOBERGB, -- TransferFnVersion(SkNamedTransferFnExt::kA98RGB, -- kDefaultSinceVersion)}, -+ TransferFnVersion{SkNamedTransferFnExt::kA98RGB, -+ kDefaultSinceVersion}}, - }); - - // A map from the HDR zcr_color_manager_v1 eotf_names enum values -@@ -197,67 +197,67 @@ constexpr auto kTransferMap = - constexpr auto kHDRTransferMap = - base::MakeFixedFlatMap( - {{ZCR_COLOR_MANAGER_V1_EOTF_NAMES_LINEAR, -- TransferFnVersion(SkNamedTransferFn::kLinear, kDefaultSinceVersion)}, -+ TransferFnVersion{SkNamedTransferFn::kLinear, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR, -- TransferFnVersion( -+ TransferFnVersion{ - SkNamedTransferFnExt::kSRGB, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_SRGB_HDR_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_PQ, -- TransferFnVersion(SkNamedTransferFn::kPQ, kDefaultSinceVersion)}, -+ TransferFnVersion{SkNamedTransferFn::kPQ, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG, -- TransferFnVersion(SkNamedTransferFn::kHLG, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION)}, -+ TransferFnVersion{SkNamedTransferFn::kHLG, -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_HLG_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10, -- TransferFnVersion( -+ TransferFnVersion{ - SkNamedTransferFnExt::kSRGBExtended1023Over510, -- ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10_SINCE_VERSION)}}); -+ ZCR_COLOR_MANAGER_V1_EOTF_NAMES_EXTENDEDSRGB10_SINCE_VERSION}}}); - - // A map from zcr_color_manager_v1 matrix_names enum values to - // gfx::ColorSpace::MatrixIDs. - constexpr auto kMatrixMap = - base::MakeFixedFlatMap( - {{ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_RGB, -- MatrixVersion(gfx::ColorSpace::MatrixID::RGB, kDefaultSinceVersion)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::RGB, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT709, -- MatrixVersion(gfx::ColorSpace::MatrixID::BT709, -- kDefaultSinceVersion)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::BT709, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG, -- MatrixVersion( -+ MatrixVersion{ - gfx::ColorSpace::MatrixID::BT470BG, -- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG_SINCE_VERSION)}, -+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT470BG_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_BT2020_NCL, -- MatrixVersion(gfx::ColorSpace::MatrixID::BT2020_NCL, -- kDefaultSinceVersion)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::BT2020_NCL, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_FCC, -- MatrixVersion(gfx::ColorSpace::MatrixID::FCC, kDefaultSinceVersion)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::FCC, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG, -- MatrixVersion(gfx::ColorSpace::MatrixID::YCOCG, -- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG_SINCE_VERSION)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::YCOCG, -+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YCOCG_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX, -- MatrixVersion(gfx::ColorSpace::MatrixID::YDZDX, -- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX_SINCE_VERSION)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::YDZDX, -+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_YDZDX_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR, -- MatrixVersion(gfx::ColorSpace::MatrixID::GBR, -- ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR_SINCE_VERSION)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::GBR, -+ ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_GBR_SINCE_VERSION}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_SMPTE170M, -- MatrixVersion(gfx::ColorSpace::MatrixID::SMPTE170M, -- kDefaultSinceVersion)}, -+ MatrixVersion{gfx::ColorSpace::MatrixID::SMPTE170M, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_MATRIX_NAMES_SMPTE240M, -- MatrixVersion(gfx::ColorSpace::MatrixID::SMPTE240M, -- kDefaultSinceVersion)}}); -+ MatrixVersion{gfx::ColorSpace::MatrixID::SMPTE240M, -+ kDefaultSinceVersion}}}); - - // A map from zcr_color_manager_v1 range_names enum values to - // gfx::ColorSpace::RangeIDs. - constexpr auto kRangeMap = - base::MakeFixedFlatMap( - {{ZCR_COLOR_MANAGER_V1_RANGE_NAMES_LIMITED, -- RangeVersion(gfx::ColorSpace::RangeID::LIMITED, -- kDefaultSinceVersion)}, -+ RangeVersion{gfx::ColorSpace::RangeID::LIMITED, -+ kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_RANGE_NAMES_FULL, -- RangeVersion(gfx::ColorSpace::RangeID::FULL, kDefaultSinceVersion)}, -+ RangeVersion{gfx::ColorSpace::RangeID::FULL, kDefaultSinceVersion}}, - {ZCR_COLOR_MANAGER_V1_RANGE_NAMES_DERIVED, -- RangeVersion(gfx::ColorSpace::RangeID::DERIVED, -- kDefaultSinceVersion)}}); -+ RangeVersion{gfx::ColorSpace::RangeID::DERIVED, -+ kDefaultSinceVersion}}}); - - zcr_color_manager_v1_chromaticity_names ToColorManagerChromaticity( - gfx::ColorSpace::PrimaryID primaryID, -@@ -280,4 +280,4 @@ zcr_color_manager_v1_eotf_names ToColorM - - } // namespace ui::wayland - --#endif // UI_BASE_WAYLAND_COLOR_MANAGER_UTIL_H_ -\ Kein Zeilenumbruch am Dateiende. -+#endif // UI_BASE_WAYLAND_COLOR_MANAGER_UTIL_H_ -diff -up chromium-126.0.6478.26/ui/gtk/gtk_ui.cc.no_matching_constructor chromium-126.0.6478.26/ui/gtk/gtk_ui.cc ---- chromium-126.0.6478.26/ui/gtk/gtk_ui.cc.no_matching_constructor 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/gtk/gtk_ui.cc 2024-06-02 23:51:25.516916057 +0200 -@@ -1001,11 +1001,11 @@ display::DisplayConfig GtkUi::GetDisplay - GdkRectangle geometry; - gdk_monitor_get_geometry(monitor, &geometry); - int monitor_scale = std::max(1, gdk_monitor_get_scale_factor(monitor)); -- config.display_geometries.emplace_back( -+ config.display_geometries.emplace_back() = { - gfx::Rect(monitor_scale * geometry.x, monitor_scale * geometry.y, - monitor_scale * geometry.width, - monitor_scale * geometry.height), -- monitor_scale * font_scale); -+ static_cast(monitor_scale * font_scale)}; - } - return config; - } -diff -up chromium-126.0.6478.26/ui/views/controls/button/label_button.cc.no_matching_constructor chromium-126.0.6478.26/ui/views/controls/button/label_button.cc ---- chromium-126.0.6478.26/ui/views/controls/button/label_button.cc.no_matching_constructor 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/views/controls/button/label_button.cc 2024-06-02 23:51:25.516916057 +0200 -@@ -392,11 +392,11 @@ ProposedLayout LabelButton::CalculatePro - - gfx::Rect image_area = GetLocalBounds(); - -- layouts.child_layouts.emplace_back( -+ layouts.child_layouts.emplace_back() = { - ink_drop_container_.get(), - static_cast(GetLayoutManager()) - ->CanBeVisible(ink_drop_container_.get()), -- image_area, SizeBounds()); -+ image_area, SizeBounds()}; - - gfx::Insets insets = GetInsets(); - // If the button have a limited space to fit in, the image and the label -@@ -448,11 +448,11 @@ ProposedLayout LabelButton::CalculatePro - } else if (horizontal_alignment == gfx::ALIGN_RIGHT) { - image_origin.Offset(image_area.width() - image_size.width(), 0); - } -- layouts.child_layouts.emplace_back( -+ layouts.child_layouts.emplace_back() = { - const_cast(this)->image_container_view(), - static_cast(GetLayoutManager()) - ->CanBeVisible(image_container_view()), -- gfx::Rect(image_origin, image_size), SizeBounds()); -+ gfx::Rect(image_origin, image_size), SizeBounds()}; - - gfx::Rect label_bounds = label_area; - if (label_area.width() == label_size.width()) { -@@ -466,11 +466,11 @@ ProposedLayout LabelButton::CalculatePro - } - } - -- layouts.child_layouts.emplace_back( -+ layouts.child_layouts.emplace_back() = { - label_.get(), - static_cast(GetLayoutManager()) - ->CanBeVisible(label_.get()), -- label_bounds, SizeBounds()); -+ label_bounds, SizeBounds()}; - layouts.host_size = - gfx::Size(size_bounds.width().value(), size_bounds.height().value()); - -diff -up chromium-126.0.6478.26/ui/views/controls/editable_combobox/editable_combobox.cc.no_matching_constructor chromium-126.0.6478.26/ui/views/controls/editable_combobox/editable_combobox.cc ---- chromium-126.0.6478.26/ui/views/controls/editable_combobox/editable_combobox.cc.no_matching_constructor 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/views/controls/editable_combobox/editable_combobox.cc 2024-06-02 23:51:25.517916081 +0200 -@@ -492,16 +492,16 @@ ProposedLayout EditableCombobox::Calcula - layout.host_size = - gfx::Size(size_bounds.width().value(), size_bounds.height().value()); - } -- layout.child_layouts.emplace_back( -+ layout.child_layouts.emplace_back() = { - textfield_.get(), textfield_->GetVisible(), -- gfx::Rect(0, 0, layout.host_size.width(), layout.host_size.height())); -+ gfx::Rect(0, 0, layout.host_size.width(), layout.host_size.height())}; - const int preferred_width = - control_elements_container_->GetPreferredSize({}).width(); -- layout.child_layouts.emplace_back( -+ layout.child_layouts.emplace_back() = { - control_elements_container_.get(), - control_elements_container_->GetVisible(), - gfx::Rect(layout.host_size.width() - preferred_width, 0, preferred_width, -- layout.host_size.height())); -+ layout.host_size.height())}; - return layout; - } - -diff -up chromium-126.0.6478.26/ui/views/layout/box_layout.cc.no_matching_constructor chromium-126.0.6478.26/ui/views/layout/box_layout.cc ---- chromium-126.0.6478.26/ui/views/layout/box_layout.cc.no_matching_constructor 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/views/layout/box_layout.cc 2024-06-02 23:51:25.517916081 +0200 -@@ -325,7 +325,7 @@ void BoxLayout::InitializeChildData(BoxL - data.child_data.emplace_back(); - BoxChildData& child_data = data.child_data.back(); - -- data.layout.child_layouts.emplace_back(child, true); -+ data.layout.child_layouts.emplace_back() = {child, true}; - - gfx::Insets* margins = child ? child->GetProperty(kMarginsKey) : nullptr; - if (margins) { -diff -up chromium-126.0.6478.26/ui/views/window/dialog_client_view.cc.no_matching_constructor chromium-126.0.6478.26/ui/views/window/dialog_client_view.cc ---- chromium-126.0.6478.26/ui/views/window/dialog_client_view.cc.no_matching_constructor 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/views/window/dialog_client_view.cc 2024-06-02 23:51:25.518916106 +0200 -@@ -206,16 +206,16 @@ ProposedLayout DialogClientView::Calcula - const int container_height = - button_row_container_->GetHeightForWidth(size_bounds.width().value()); - const int container_y = size_bounds.height().value() - container_height; -- layouts.child_layouts.emplace_back( -+ layouts.child_layouts.emplace_back() = { - button_row_container_.get(), button_row_container_->GetVisible(), - gfx::Rect(0, container_y, size_bounds.width().value(), container_height), -- size_bounds); -+ size_bounds}; - if (contents_view()) { - gfx::Rect contents_bounds(size_bounds.width().value(), container_y); - contents_bounds.Inset(GetDialogDelegate()->margins()); -- layouts.child_layouts.emplace_back(contents_view(), -+ layouts.child_layouts.emplace_back() = {contents_view(), - contents_view()->GetVisible(), -- contents_bounds, size_bounds); -+ contents_bounds, size_bounds}; - } - layouts.host_size = - gfx::Size(size_bounds.width().value(), size_bounds.height().value()); diff --git a/chromium-126-el7-old-cups.patch b/chromium-126-el7-old-cups.patch deleted file mode 100644 index 6821086..0000000 --- a/chromium-126-el7-old-cups.patch +++ /dev/null @@ -1,137 +0,0 @@ -diff -up chromium-126.0.6478.26/printing/backend/cups_helper.cc.el7cups chromium-126.0.6478.26/printing/backend/cups_helper.cc ---- chromium-126.0.6478.26/printing/backend/cups_helper.cc.el7cups 2024-06-03 17:16:32.197509643 +0200 -+++ chromium-126.0.6478.26/printing/backend/cups_helper.cc 2024-06-03 17:32:23.028376333 +0200 -@@ -41,18 +41,6 @@ namespace printing { - // This section contains helper code for PPD parsing for semantic capabilities. - namespace { - --// Function availability can be tested by checking whether its address is not --// nullptr. Weak symbols remove the need for platform specific build flags and --// allow for appropriate CUPS usage on platforms with non-uniform version --// support, namely Linux. --#define WEAK_CUPS_FN(x) extern "C" __attribute__((weak)) decltype(x) x -- --WEAK_CUPS_FN(httpConnect2); -- --// Timeout for establishing a CUPS connection. It is expected that cupsd is --// able to start and respond on all systems within this duration. --constexpr base::TimeDelta kCupsTimeout = base::Seconds(5); -- - // CUPS default max copies value (parsed from kCupsMaxCopies PPD attribute). - constexpr int32_t kDefaultMaxCopies = 9999; - constexpr char kCupsMaxCopies[] = "cupsMaxCopies"; -@@ -761,8 +749,7 @@ const int kDefaultIPPServerPort = 631; - // Helper wrapper around http_t structure, with connection and cleanup - // functionality. - HttpConnectionCUPS::HttpConnectionCUPS(const GURL& print_server_url, -- http_encryption_t encryption, -- bool blocking) { -+ http_encryption_t encryption) { - // If we have an empty url, use default print server. - if (print_server_url.is_empty()) - return; -@@ -771,31 +758,22 @@ HttpConnectionCUPS::HttpConnectionCUPS(c - if (port == url::PORT_UNSPECIFIED) - port = kDefaultIPPServerPort; - -- if (httpConnect2) { -- http_.reset(httpConnect2(print_server_url.host().c_str(), port, -- /*addrlist=*/nullptr, AF_UNSPEC, encryption, -- blocking ? 1 : 0, kCupsTimeout.InMilliseconds(), -- /*cancel=*/nullptr)); -- } else { -- // Continue to use deprecated CUPS calls because because older Linux -- // distribution such as RHEL/CentOS 7 are shipped with CUPS 1.6. -- http_.reset( -+ http_.reset( - httpConnectEncrypt(print_server_url.host().c_str(), port, encryption)); -- } - - if (!http_) { - LOG(ERROR) << "CP_CUPS: Failed connecting to print server: " - << print_server_url; - return; - } -- -- if (!httpConnect2) { -- httpBlocking(http(), blocking ? 1 : 0); -- } - } - - HttpConnectionCUPS::~HttpConnectionCUPS() = default; - -+void HttpConnectionCUPS::SetBlocking(bool blocking) { -+ httpBlocking(http(), blocking ? 1 : 0); -+} -+ - http_t* HttpConnectionCUPS::http() { - return http_.get(); - } -diff -up chromium-126.0.6478.26/printing/backend/cups_helper.h.el7cups chromium-126.0.6478.26/printing/backend/cups_helper.h ---- chromium-126.0.6478.26/printing/backend/cups_helper.h.el7cups 2024-06-03 17:23:35.923307842 +0200 -+++ chromium-126.0.6478.26/printing/backend/cups_helper.h 2024-06-03 17:25:50.887855460 +0200 -@@ -36,10 +36,11 @@ constexpr cups_ptype_t kDestinationsFilt - class COMPONENT_EXPORT(PRINT_BACKEND) HttpConnectionCUPS { - public: - HttpConnectionCUPS(const GURL& print_server_url, -- http_encryption_t encryption, -- bool blocking); -+ http_encryption_t encryption); - ~HttpConnectionCUPS(); - -+ void SetBlocking(bool blocking); -+ - http_t* http(); - - private: -diff -up chromium-126.0.6478.26/printing/backend/print_backend_cups.cc.el7cups chromium-126.0.6478.26/printing/backend/print_backend_cups.cc ---- chromium-126.0.6478.26/printing/backend/print_backend_cups.cc.el7cups 2024-06-03 17:26:44.607871149 +0200 -+++ chromium-126.0.6478.26/printing/backend/print_backend_cups.cc 2024-06-03 17:29:15.889810651 +0200 -@@ -149,7 +149,7 @@ mojom::ResultCode PrintBackendCUPS::Enum - // not showing as available. Using cupsEnumDests() allows us to do our own - // filtering should any duplicates occur. - CupsDestsData dests_data = {0, nullptr}; -- ipp_status_t last_error = IPP_STATUS_OK; -+ ipp_status_t last_error = IPP_OK; - if (print_server_url_.is_empty()) { - VLOG(1) << "CUPS: using cupsEnumDests to enumerate printers"; - if (!cupsEnumDests(CUPS_DEST_FLAGS_NONE, kCupsTimeoutMs, -@@ -176,7 +176,7 @@ mojom::ResultCode PrintBackendCUPS::Enum - // no printer drivers installed. Rely upon CUPS error code to distinguish - // between these. - DCHECK(!dests_data.dests); -- if (last_error != IPP_STATUS_ERROR_NOT_FOUND) { -+ if (last_error != IPP_NOT_FOUND) { - VLOG(1) << "CUPS: Error getting printers from CUPS server" - << ", server: " << print_server_url_ - << ", error: " << static_cast(last_error) << " - " -@@ -311,7 +311,8 @@ int PrintBackendCUPS::GetDests(cups_dest - if (print_server_url_.is_empty()) - return cupsGetDests2(CUPS_HTTP_DEFAULT, dests); - -- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_); -+ HttpConnectionCUPS http(print_server_url_, cups_encryption_); -+ http.SetBlocking(blocking_); - - // This call must be made in the same scope as `http` because its destructor - // closes the connection. -@@ -337,7 +338,8 @@ base::FilePath PrintBackendCUPS::GetPPD( - // connection will timeout after 10 seconds of no data period. And it will - // return the same way as if data was completely and successfully - // downloaded. -- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_); -+ HttpConnectionCUPS http(print_server_url_, cups_encryption_); -+ http.SetBlocking(blocking_); - ppd_file_path = cupsGetPPD2(http.http(), name); - // Check if the get full PPD, since non-blocking call may simply return - // normally after timeout expired. -@@ -373,7 +375,8 @@ ScopedDestination PrintBackendCUPS::GetN - // Use default (local) print server. - dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, printer_name.c_str(), nullptr); - } else { -- HttpConnectionCUPS http(print_server_url_, cups_encryption_, blocking_); -+ HttpConnectionCUPS http(print_server_url_, cups_encryption_); -+ http.SetBlocking(blocking_); - dest = cupsGetNamedDest(http.http(), printer_name.c_str(), nullptr); - } - return ScopedDestination(dest); diff --git a/chromium-126-el7-rust-c_string.patch b/chromium-126-el7-rust-c_string.patch deleted file mode 100644 index 98817e5..0000000 --- a/chromium-126-el7-rust-c_string.patch +++ /dev/null @@ -1,1667 +0,0 @@ -replace c_string as it is not supported by old rust in el7 - -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/clone.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/clone.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/clone.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/clone.rs -@@ -1338,6 +1338,7 @@ impl Clone for crate::Lit { - match self { - crate::Lit::Str(v0) => crate::Lit::Str(v0.clone()), - crate::Lit::ByteStr(v0) => crate::Lit::ByteStr(v0.clone()), -+ crate::Lit::CStr(v0) => crate::Lit::CStr(v0.clone()), - crate::Lit::Byte(v0) => crate::Lit::Byte(v0.clone()), - crate::Lit::Char(v0) => crate::Lit::Char(v0.clone()), - crate::Lit::Int(v0) => crate::Lit::Int(v0.clone()), -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/debug.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/debug.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/debug.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/debug.rs -@@ -1958,6 +1958,7 @@ impl Debug for crate::Lit { - match self { - crate::Lit::Str(v0) => v0.debug(formatter, "Str"), - crate::Lit::ByteStr(v0) => v0.debug(formatter, "ByteStr"), -+ crate::Lit::CStr(v0) => v0.debug(formatter, "CStr"), - crate::Lit::Byte(v0) => v0.debug(formatter, "Byte"), - crate::Lit::Char(v0) => v0.debug(formatter, "Char"), - crate::Lit::Int(v0) => v0.debug(formatter, "Int"), -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/eq.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/eq.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/eq.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/eq.rs -@@ -1300,6 +1300,7 @@ impl PartialEq for crate::Lit { - match (self, other) { - (crate::Lit::Str(self0), crate::Lit::Str(other0)) => self0 == other0, - (crate::Lit::ByteStr(self0), crate::Lit::ByteStr(other0)) => self0 == other0, -+ (crate::Lit::CStr(self0), crate::Lit::CStr(other0)) => self0 == other0, - (crate::Lit::Byte(self0), crate::Lit::Byte(other0)) => self0 == other0, - (crate::Lit::Char(self0), crate::Lit::Char(other0)) => self0 == other0, - (crate::Lit::Int(self0), crate::Lit::Int(other0)) => self0 == other0, -@@ -1325,6 +1326,8 @@ impl Eq for crate::LitByte {} - #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] - impl Eq for crate::LitByteStr {} - #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] -+impl Eq for crate::LitCStr {} -+#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] - impl Eq for crate::LitChar {} - #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] - impl Eq for crate::LitFloat {} -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/fold.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/fold.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/fold.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/fold.rs -@@ -581,6 +581,9 @@ pub trait Fold { - fn fold_lit_byte_str(&mut self, i: crate::LitByteStr) -> crate::LitByteStr { - fold_lit_byte_str(self, i) - } -+ fn fold_lit_cstr(&mut self, i: crate::LitCStr) -> crate::LitCStr { -+ fold_lit_cstr(self, i) -+ } - fn fold_lit_char(&mut self, i: crate::LitChar) -> crate::LitChar { - fold_lit_char(self, i) - } -@@ -2628,6 +2631,7 @@ where - crate::Lit::ByteStr(_binding_0) => { - crate::Lit::ByteStr(f.fold_lit_byte_str(_binding_0)) - } -+ crate::Lit::CStr(_binding_0) => crate::Lit::CStr(f.fold_lit_cstr(_binding_0)), - crate::Lit::Byte(_binding_0) => crate::Lit::Byte(f.fold_lit_byte(_binding_0)), - crate::Lit::Char(_binding_0) => crate::Lit::Char(f.fold_lit_char(_binding_0)), - crate::Lit::Int(_binding_0) => crate::Lit::Int(f.fold_lit_int(_binding_0)), -@@ -2663,6 +2667,15 @@ where - node.set_span(span); - node - } -+pub fn fold_lit_cstr(f: &mut F, node: crate::LitCStr) -> crate::LitCStr -+where -+ F: Fold + ?Sized, -+{ -+ let span = f.fold_span(node.span()); -+ let mut node = node; -+ node.set_span(span); -+ node -+} - pub fn fold_lit_char(f: &mut F, node: crate::LitChar) -> crate::LitChar - where - F: Fold + ?Sized, -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/hash.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/hash.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/hash.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/hash.rs -@@ -1682,28 +1682,32 @@ impl Hash for crate::Lit { - state.write_u8(1u8); - v0.hash(state); - } -- crate::Lit::Byte(v0) => { -+ crate::Lit::CStr(v0) => { - state.write_u8(2u8); - v0.hash(state); - } -- crate::Lit::Char(v0) => { -+ crate::Lit::Byte(v0) => { - state.write_u8(3u8); - v0.hash(state); - } -- crate::Lit::Int(v0) => { -+ crate::Lit::Char(v0) => { - state.write_u8(4u8); - v0.hash(state); - } -- crate::Lit::Float(v0) => { -+ crate::Lit::Int(v0) => { - state.write_u8(5u8); - v0.hash(state); - } -- crate::Lit::Bool(v0) => { -+ crate::Lit::Float(v0) => { - state.write_u8(6u8); - v0.hash(state); - } -- crate::Lit::Verbatim(v0) => { -+ crate::Lit::Bool(v0) => { - state.write_u8(7u8); -+ v0.hash(state); -+ } -+ crate::Lit::Verbatim(v0) => { -+ state.write_u8(8u8); - v0.to_string().hash(state); - } - } -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/visit.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/visit.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/visit.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/visit.rs -@@ -547,6 +547,9 @@ pub trait Visit<'ast> { - fn visit_lit_byte_str(&mut self, i: &'ast crate::LitByteStr) { - visit_lit_byte_str(self, i); - } -+ fn visit_lit_cstr(&mut self, i: &'ast crate::LitCStr) { -+ visit_lit_cstr(self, i); -+ } - fn visit_lit_char(&mut self, i: &'ast crate::LitChar) { - visit_lit_char(self, i); - } -@@ -2694,6 +2697,9 @@ where - crate::Lit::ByteStr(_binding_0) => { - v.visit_lit_byte_str(_binding_0); - } -+ crate::Lit::CStr(_binding_0) => { -+ v.visit_lit_cstr(_binding_0); -+ } - crate::Lit::Byte(_binding_0) => { - v.visit_lit_byte(_binding_0); - } -@@ -2729,6 +2735,10 @@ pub fn visit_lit_byte_str<'ast, V>(v: &mut V, node: &'ast crate::LitByteStr) - where - V: Visit<'ast> + ?Sized, - {} -+pub fn visit_lit_cstr<'ast, V>(v: &mut V, node: &'ast crate::LitCStr) -+where -+ V: Visit<'ast> + ?Sized, -+{} - pub fn visit_lit_char<'ast, V>(v: &mut V, node: &'ast crate::LitChar) - where - V: Visit<'ast> + ?Sized, -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/visit_mut.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/visit_mut.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/gen/visit_mut.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/gen/visit_mut.rs -@@ -548,6 +548,9 @@ pub trait VisitMut { - fn visit_lit_byte_str_mut(&mut self, i: &mut crate::LitByteStr) { - visit_lit_byte_str_mut(self, i); - } -+ fn visit_lit_cstr_mut(&mut self, i: &mut crate::LitCStr) { -+ visit_lit_cstr_mut(self, i); -+ } - fn visit_lit_char_mut(&mut self, i: &mut crate::LitChar) { - visit_lit_char_mut(self, i); - } -@@ -2694,6 +2697,9 @@ where - crate::Lit::ByteStr(_binding_0) => { - v.visit_lit_byte_str_mut(_binding_0); - } -+ crate::Lit::CStr(_binding_0) => { -+ v.visit_lit_cstr_mut(_binding_0); -+ } - crate::Lit::Byte(_binding_0) => { - v.visit_lit_byte_mut(_binding_0); - } -@@ -2729,6 +2735,10 @@ pub fn visit_lit_byte_str_mut(v: &mut V, node: &mut crate::LitByteStr) - where - V: VisitMut + ?Sized, - {} -+pub fn visit_lit_cstr_mut(v: &mut V, node: &mut crate::LitCStr) -+where -+ V: VisitMut + ?Sized, -+{} - pub fn visit_lit_char_mut(v: &mut V, node: &mut crate::LitChar) - where - V: VisitMut + ?Sized, -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/lib.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/lib.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/lib.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/lib.rs -@@ -418,7 +418,9 @@ mod lit; - #[doc(hidden)] // https://github.com/dtolnay/syn/issues/1566 - pub use crate::lit::StrStyle; - #[doc(inline)] --pub use crate::lit::{Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr}; -+pub use crate::lit::{ -+ Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr, -+}; - - #[cfg(feature = "parsing")] - mod lookahead; -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/lit.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/lit.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/lit.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/lit.rs -@@ -6,6 +6,7 @@ use crate::{Error, Result}; - use proc_macro2::{Ident, Literal, Span}; - #[cfg(feature = "parsing")] - use proc_macro2::{TokenStream, TokenTree}; -+use std::ffi::{CStr, CString}; - use std::fmt::{self, Display}; - #[cfg(feature = "extra-traits")] - use std::hash::{Hash, Hasher}; -@@ -27,6 +28,9 @@ ast_enum_of_structs! { - /// A byte string literal: `b"foo"`. - ByteStr(LitByteStr), - -+ /// A nul-terminated C-string literal: `c"foo"`. -+ CStr(LitCStr), -+ - /// A byte literal: `b'f'`. - Byte(LitByte), - -@@ -63,6 +67,13 @@ ast_struct! { - } - } - -+ast_struct! { -+ /// A nul-terminated C-string literal: `c"foo"`. -+ pub struct LitCStr { -+ repr: Box, -+ } -+} -+ - ast_struct! { - /// A byte literal: `b'f'`. - pub struct LitByte { -@@ -294,6 +305,41 @@ impl LitByteStr { - } - } - -+impl LitCStr { -+ pub fn new(value: &CStr, span: Span) -> Self { -+ let mut token = Literal::c_string(value); -+ token.set_span(span); -+ LitCStr { -+ repr: Box::new(LitRepr { -+ token, -+ suffix: Box::::default(), -+ }), -+ } -+ } -+ -+ pub fn value(&self) -> CString { -+ let repr = self.repr.token.to_string(); -+ let (value, _suffix) = value::parse_lit_c_str(&repr); -+ value -+ } -+ -+ pub fn span(&self) -> Span { -+ self.repr.token.span() -+ } -+ -+ pub fn set_span(&mut self, span: Span) { -+ self.repr.token.set_span(span); -+ } -+ -+ pub fn suffix(&self) -> &str { -+ &self.repr.suffix -+ } -+ -+ pub fn token(&self) -> Literal { -+ self.repr.token.clone() -+ } -+} -+ - impl LitByte { - pub fn new(value: u8, span: Span) -> Self { - let mut token = Literal::u8_suffixed(value); -@@ -368,7 +414,7 @@ impl LitInt { - pub fn new(repr: &str, span: Span) -> Self { - let (digits, suffix) = match value::parse_lit_int(repr) { - Some(parse) => parse, -- None => panic!("Not an integer literal: `{}`", repr), -+ None => panic!("not an integer literal: `{}`", repr), - }; - - let mut token: Literal = repr.parse().unwrap(); -@@ -447,7 +493,7 @@ impl From for LitInt { - }), - } - } else { -- panic!("Not an integer literal: `{}`", repr); -+ panic!("not an integer literal: `{}`", repr); - } - } - } -@@ -462,7 +508,7 @@ impl LitFloat { - pub fn new(repr: &str, span: Span) -> Self { - let (digits, suffix) = match value::parse_lit_float(repr) { - Some(parse) => parse, -- None => panic!("Not a float literal: `{}`", repr), -+ None => panic!("not a float literal: `{}`", repr), - }; - - let mut token: Literal = repr.parse().unwrap(); -@@ -519,7 +565,7 @@ impl From for LitFloat { - }), - } - } else { -- panic!("Not a float literal: `{}`", repr); -+ panic!("not a float literal: `{}`", repr); - } - } - } -@@ -555,7 +601,7 @@ impl LitBool { - - #[cfg(feature = "extra-traits")] - mod debug_impls { -- use crate::lit::{LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr}; -+ use crate::lit::{LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr}; - use std::fmt::{self, Debug}; - - #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] -@@ -590,6 +636,22 @@ mod debug_impls { - } - } - -+ #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] -+ impl Debug for LitCStr { -+ fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { -+ self.debug(formatter, "LitCStr") -+ } -+ } -+ -+ impl LitCStr { -+ pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result { -+ formatter -+ .debug_struct(name) -+ .field("token", &format_args!("{}", self.repr.token)) -+ .finish() -+ } -+ } -+ - #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))] - impl Debug for LitByte { - fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { -@@ -750,6 +812,7 @@ macro_rules! lit_extra_traits { - - lit_extra_traits!(LitStr); - lit_extra_traits!(LitByteStr); -+lit_extra_traits!(LitCStr); - lit_extra_traits!(LitByte); - lit_extra_traits!(LitChar); - lit_extra_traits!(LitInt); -@@ -790,7 +853,7 @@ pub(crate) mod parsing { - use crate::buffer::Cursor; - use crate::error::Result; - use crate::lit::{ -- value, Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitFloatRepr, LitInt, -+ value, Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitFloatRepr, LitInt, - LitIntRepr, LitStr, - }; - use crate::parse::{Parse, ParseStream}; -@@ -889,6 +952,17 @@ pub(crate) mod parsing { - } - } - -+ #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] -+ impl Parse for LitCStr { -+ fn parse(input: ParseStream) -> Result { -+ let head = input.fork(); -+ match input.parse() { -+ Ok(Lit::CStr(lit)) => Ok(lit), -+ _ => Err(head.error("expected C string literal")), -+ } -+ } -+ } -+ - #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] - impl Parse for LitByte { - fn parse(input: ParseStream) -> Result { -@@ -947,7 +1021,7 @@ pub(crate) mod parsing { - - #[cfg(feature = "printing")] - mod printing { -- use crate::lit::{LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr}; -+ use crate::lit::{LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr}; - use proc_macro2::TokenStream; - use quote::{ToTokens, TokenStreamExt}; - -@@ -965,6 +1039,13 @@ mod printing { - } - } - -+ #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] -+ impl ToTokens for LitCStr { -+ fn to_tokens(&self, tokens: &mut TokenStream) { -+ self.repr.token.to_tokens(tokens); -+ } -+ } -+ - #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] - impl ToTokens for LitByte { - fn to_tokens(&self, tokens: &mut TokenStream) { -@@ -1004,11 +1085,13 @@ mod printing { - mod value { - use crate::bigint::BigInt; - use crate::lit::{ -- Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitFloatRepr, LitInt, LitIntRepr, -- LitRepr, LitStr, -+ Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitFloatRepr, LitInt, -+ LitIntRepr, LitRepr, LitStr, - }; - use proc_macro2::{Literal, Span}; -+ use std::ascii; - use std::char; -+ use std::ffi::CString; - use std::ops::{Index, RangeFrom}; - - impl Lit { -@@ -1041,6 +1124,13 @@ mod value { - } - _ => {} - }, -+ // c"...", cr"...", cr#"..."# -+ b'c' => { -+ let (_, suffix) = parse_lit_c_str(&repr); -+ return Lit::CStr(LitCStr { -+ repr: Box::new(LitRepr { token, suffix }), -+ }); -+ } - // '...' - b'\'' => { - let (_, suffix) = parse_lit_char(&repr); -@@ -1079,20 +1169,18 @@ mod value { - }); - } - } -- // c"...", cr"...", cr#"..."# -- // TODO: add a Lit::CStr variant? -- b'c' => return Lit::Verbatim(token), - b'(' if repr == "(/*ERROR*/)" => return Lit::Verbatim(token), - _ => {} - } - -- panic!("Unrecognized literal: `{}`", repr); -+ panic!("unrecognized literal: `{}`", repr); - } - - pub fn suffix(&self) -> &str { - match self { - Lit::Str(lit) => lit.suffix(), - Lit::ByteStr(lit) => lit.suffix(), -+ Lit::CStr(lit) => lit.suffix(), - Lit::Byte(lit) => lit.suffix(), - Lit::Char(lit) => lit.suffix(), - Lit::Int(lit) => lit.suffix(), -@@ -1105,6 +1193,7 @@ mod value { - match self { - Lit::Str(lit) => lit.span(), - Lit::ByteStr(lit) => lit.span(), -+ Lit::CStr(lit) => lit.span(), - Lit::Byte(lit) => lit.span(), - Lit::Char(lit) => lit.span(), - Lit::Int(lit) => lit.span(), -@@ -1118,6 +1207,7 @@ mod value { - match self { - Lit::Str(lit) => lit.set_span(span), - Lit::ByteStr(lit) => lit.set_span(span), -+ Lit::CStr(lit) => lit.set_span(span), - Lit::Byte(lit) => lit.set_span(span), - Lit::Char(lit) => lit.set_span(span), - Lit::Int(lit) => lit.set_span(span), -@@ -1170,13 +1260,13 @@ mod value { - b'x' => { - let (byte, rest) = backslash_x(s); - s = rest; -- assert!(byte <= 0x7F, "Invalid \\x byte in string literal"); -+ assert!(byte <= 0x7F, "invalid \\x byte in string literal"); - char::from_u32(u32::from(byte)).unwrap() - } - b'u' => { -- let (chr, rest) = backslash_u(s); -+ let (ch, rest) = backslash_u(s); - s = rest; -- chr -+ ch - } - b'n' => '\n', - b'r' => '\r', -@@ -1192,11 +1282,14 @@ mod value { - _ => continue 'outer, - } - }, -- b => panic!("unexpected byte {:?} after \\ character in byte literal", b), -+ b => panic!( -+ "unexpected byte '{}' after \\ character in string literal", -+ ascii::escape_default(b), -+ ), - } - } - b'\r' => { -- assert_eq!(byte(s, 1), b'\n', "Bare CR not allowed in string"); -+ assert_eq!(byte(s, 1), b'\n', "bare CR not allowed in string"); - s = &s[2..]; - '\n' - } -@@ -1283,11 +1376,14 @@ mod value { - continue 'outer; - } - }, -- b => panic!("unexpected byte {:?} after \\ character in byte literal", b), -+ b => panic!( -+ "unexpected byte '{}' after \\ character in byte-string literal", -+ ascii::escape_default(b), -+ ), - } - } - b'\r' => { -- assert_eq!(byte(v, 1), b'\n', "Bare CR not allowed in string"); -+ assert_eq!(byte(v, 1), b'\n', "bare CR not allowed in string"); - v = &v[2..]; - b'\n' - } -@@ -1310,6 +1406,92 @@ mod value { - (String::from(value).into_bytes(), suffix) - } - -+ // Returns (content, suffix). -+ pub(crate) fn parse_lit_c_str(s: &str) -> (CString, Box) { -+ assert_eq!(byte(s, 0), b'c'); -+ match byte(s, 1) { -+ b'"' => parse_lit_c_str_cooked(s), -+ b'r' => parse_lit_c_str_raw(s), -+ _ => unreachable!(), -+ } -+ } -+ -+ // Clippy false positive -+ // https://github.com/rust-lang-nursery/rust-clippy/issues/2329 -+ #[allow(clippy::needless_continue)] -+ fn parse_lit_c_str_cooked(mut s: &str) -> (CString, Box) { -+ assert_eq!(byte(s, 0), b'c'); -+ assert_eq!(byte(s, 1), b'"'); -+ s = &s[2..]; -+ -+ // We're going to want to have slices which don't respect codepoint boundaries. -+ let mut v = s.as_bytes(); -+ -+ let mut out = Vec::new(); -+ 'outer: loop { -+ let byte = match byte(v, 0) { -+ b'"' => break, -+ b'\\' => { -+ let b = byte(v, 1); -+ v = &v[2..]; -+ match b { -+ b'x' => { -+ let (b, rest) = backslash_x(v); -+ assert!(b != 0, "\\x00 is not allowed in C-string literal"); -+ v = rest; -+ b -+ } -+ b'u' => { -+ let (ch, rest) = backslash_u(v); -+ assert!(ch != '\0', "\\u{{0}} is not allowed in C-string literal"); -+ v = rest; -+ out.extend_from_slice(ch.encode_utf8(&mut [0u8; 4]).as_bytes()); -+ continue 'outer; -+ } -+ b'n' => b'\n', -+ b'r' => b'\r', -+ b't' => b'\t', -+ b'\\' => b'\\', -+ b'\'' => b'\'', -+ b'"' => b'"', -+ b'\r' | b'\n' => loop { -+ let byte = byte(v, 0); -+ if matches!(byte, b' ' | b'\t' | b'\n' | b'\r') { -+ v = &v[1..]; -+ } else { -+ continue 'outer; -+ } -+ }, -+ b => panic!( -+ "unexpected byte '{}' after \\ character in byte literal", -+ ascii::escape_default(b), -+ ), -+ } -+ } -+ b'\r' => { -+ assert_eq!(byte(v, 1), b'\n', "bare CR not allowed in string"); -+ v = &v[2..]; -+ b'\n' -+ } -+ b => { -+ v = &v[1..]; -+ b -+ } -+ }; -+ out.push(byte); -+ } -+ -+ assert_eq!(byte(v, 0), b'"'); -+ let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str(); -+ (CString::new(out).unwrap(), suffix) -+ } -+ -+ fn parse_lit_c_str_raw(s: &str) -> (CString, Box) { -+ assert_eq!(byte(s, 0), b'c'); -+ let (value, suffix) = parse_lit_str_raw(&s[1..]); -+ (CString::new(String::from(value)).unwrap(), suffix) -+ } -+ - // Returns (value, suffix). - pub(crate) fn parse_lit_byte(s: &str) -> (u8, Box) { - assert_eq!(byte(s, 0), b'b'); -@@ -1335,7 +1517,10 @@ mod value { - b'0' => b'\0', - b'\'' => b'\'', - b'"' => b'"', -- b => panic!("unexpected byte {:?} after \\ character in byte literal", b), -+ b => panic!( -+ "unexpected byte '{}' after \\ character in byte literal", -+ ascii::escape_default(b), -+ ), - } - } - b => { -@@ -1362,13 +1547,13 @@ mod value { - b'x' => { - let (byte, rest) = backslash_x(s); - s = rest; -- assert!(byte <= 0x80, "Invalid \\x byte in string literal"); -+ assert!(byte <= 0x7F, "invalid \\x byte in character literal"); - char::from_u32(u32::from(byte)).unwrap() - } - b'u' => { -- let (chr, rest) = backslash_u(s); -+ let (ch, rest) = backslash_u(s); - s = rest; -- chr -+ ch - } - b'n' => '\n', - b'r' => '\r', -@@ -1377,7 +1562,10 @@ mod value { - b'0' => '\0', - b'\'' => '\'', - b'"' => '"', -- b => panic!("unexpected byte {:?} after \\ character in byte literal", b), -+ b => panic!( -+ "unexpected byte '{}' after \\ character in character literal", -+ ascii::escape_default(b), -+ ), - } - } - _ => { -@@ -1414,7 +1602,10 @@ mod value { - (ch, &s[2..]) - } - -- fn backslash_u(mut s: &str) -> (char, &str) { -+ fn backslash_u(mut s: &S) -> (char, &S) -+ where -+ S: Index, Output = S> + AsRef<[u8]> + ?Sized, -+ { - if byte(s, 0) != b'{' { - panic!("{}", "expected { after \\u"); - } -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/whitespace.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/whitespace.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/src/whitespace.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/src/whitespace.rs -@@ -41,11 +41,11 @@ pub(crate) fn skip(mut s: &str) -> &str { - } - } - match byte { -- b' ' | 0x09..=0x0d => { -+ b' ' | 0x09..=0x0D => { - s = &s[1..]; - continue; - } -- b if b <= 0x7f => {} -+ b if b <= 0x7F => {} - _ => { - let ch = s.chars().next().unwrap(); - if is_whitespace(ch) { -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/tests/debug/gen.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/tests/debug/gen.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/tests/debug/gen.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/tests/debug/gen.rs -@@ -2864,6 +2864,7 @@ impl Debug for Lite { - match &self.value { - syn::Lit::Str(_val) => write!(formatter, "{:?}", _val.value()), - syn::Lit::ByteStr(_val) => write!(formatter, "{:?}", _val.value()), -+ syn::Lit::CStr(_val) => write!(formatter, "{:?}", _val.value()), - syn::Lit::Byte(_val) => write!(formatter, "{:?}", _val.value()), - syn::Lit::Char(_val) => write!(formatter, "{:?}", _val.value()), - syn::Lit::Int(_val) => write!(formatter, "{}", _val), -@@ -2901,6 +2902,11 @@ impl Debug for Lite { - write!(formatter, "{:?}", self.value.value()) - } - } -+impl Debug for Lite { -+ fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { -+ write!(formatter, "{:?}", self.value.value()) -+ } -+} - impl Debug for Lite { - fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - write!(formatter, "{:?}", self.value.value()) -diff --git a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/tests/test_lit.rs b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/tests/test_lit.rs ---- a/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/tests/test_lit.rs -+++ b/third_party/rust/chromium_crates_io/vendor/syn-2.0.60/tests/test_lit.rs -@@ -1,5 +1,6 @@ - #![allow( - clippy::float_cmp, -+ clippy::needless_raw_string_hashes, - clippy::non_ascii_literal, - clippy::single_match_else, - clippy::uninlined_format_args -@@ -10,9 +11,11 @@ mod macros; - - use proc_macro2::{Delimiter, Group, Literal, Span, TokenStream, TokenTree}; - use quote::ToTokens; -+use std::ffi::CStr; - use std::str::FromStr; - use syn::{Lit, LitFloat, LitInt, LitStr}; - -+#[track_caller] - fn lit(s: &str) -> Lit { - let mut tokens = TokenStream::from_str(s).unwrap().into_iter(); - match tokens.next().unwrap() { -@@ -26,7 +29,9 @@ fn lit(s: &str) -> Lit { - - #[test] - fn strings() { -+ #[track_caller] - fn test_string(s: &str, value: &str) { -+ let s = s.trim(); - match lit(s) { - Lit::Str(lit) => { - assert_eq!(lit.value(), value); -@@ -39,16 +44,16 @@ fn strings() { - } - } - -- test_string("\"a\"", "a"); -- test_string("\"\\n\"", "\n"); -- test_string("\"\\r\"", "\r"); -- test_string("\"\\t\"", "\t"); -- test_string("\"🐕\"", "🐕"); // NOTE: This is an emoji -- test_string("\"\\\"\"", "\""); -- test_string("\"'\"", "'"); -- test_string("\"\"", ""); -- test_string("\"\\u{1F415}\"", "\u{1F415}"); -- test_string("\"\\u{1_2__3_}\"", "\u{123}"); -+ test_string(r#" "" "#, ""); -+ test_string(r#" "a" "#, "a"); -+ test_string(r#" "\n" "#, "\n"); -+ test_string(r#" "\r" "#, "\r"); -+ test_string(r#" "\t" "#, "\t"); -+ test_string(r#" "🐕" "#, "🐕"); // NOTE: This is an emoji -+ test_string(r#" "\"" "#, "\""); -+ test_string(r#" "'" "#, "'"); -+ test_string(r#" "\u{1F415}" "#, "\u{1F415}"); -+ test_string(r#" "\u{1_2__3_}" "#, "\u{123}"); - test_string( - "\"contains\nnewlines\\\nescaped newlines\"", - "contains\nnewlinesescaped newlines", -@@ -65,7 +70,9 @@ fn strings() { - - #[test] - fn byte_strings() { -+ #[track_caller] - fn test_byte_string(s: &str, value: &[u8]) { -+ let s = s.trim(); - match lit(s) { - Lit::ByteStr(lit) => { - assert_eq!(lit.value(), value); -@@ -78,13 +85,13 @@ fn byte_strings() { - } - } - -- test_byte_string("b\"a\"", b"a"); -- test_byte_string("b\"\\n\"", b"\n"); -- test_byte_string("b\"\\r\"", b"\r"); -- test_byte_string("b\"\\t\"", b"\t"); -- test_byte_string("b\"\\\"\"", b"\""); -- test_byte_string("b\"'\"", b"'"); -- test_byte_string("b\"\"", b""); -+ test_byte_string(r#" b"" "#, b""); -+ test_byte_string(r#" b"a" "#, b"a"); -+ test_byte_string(r#" b"\n" "#, b"\n"); -+ test_byte_string(r#" b"\r" "#, b"\r"); -+ test_byte_string(r#" b"\t" "#, b"\t"); -+ test_byte_string(r#" b"\"" "#, b"\""); -+ test_byte_string(r#" b"'" "#, b"'"); - test_byte_string( - "b\"contains\nnewlines\\\nescaped newlines\"", - b"contains\nnewlinesescaped newlines", -@@ -95,9 +102,50 @@ fn byte_strings() { - test_byte_string("br##\"...\"##q", b"..."); - } - -+#[test] -+fn c_strings() { -+ #[track_caller] -+ fn test_c_string(s: &str, value: &CStr) { -+ let s = s.trim(); -+ match lit(s) { -+ Lit::CStr(lit) => { -+ assert_eq!(*lit.value(), *value); -+ let again = lit.into_token_stream().to_string(); -+ if again != s { -+ test_c_string(&again, value); -+ } -+ } -+ wrong => panic!("{:?}", wrong), -+ } -+ } -+ -+ test_c_string(r#" c"" "#, c""); -+ test_c_string(r#" c"a" "#, c"a"); -+ test_c_string(r#" c"\n" "#, c"\n"); -+ test_c_string(r#" c"\r" "#, c"\r"); -+ test_c_string(r#" c"\t" "#, c"\t"); -+ test_c_string(r#" c"\\" "#, c"\\"); -+ test_c_string(r#" c"\'" "#, c"'"); -+ test_c_string(r#" c"\"" "#, c"\""); -+ test_c_string( -+ "c\"contains\nnewlines\\\nescaped newlines\"", -+ c"contains\nnewlinesescaped newlines", -+ ); -+ test_c_string("cr\"raw\nstring\\\nhere\"", c"raw\nstring\\\nhere"); -+ test_c_string("c\"...\"q", c"..."); -+ test_c_string("cr\"...\"", c"..."); -+ test_c_string("cr##\"...\"##", c"..."); -+ test_c_string( -+ r#" c"hello\x80我叫\u{1F980}" "#, // from the RFC -+ c"hello\x80我叫\u{1F980}", -+ ); -+} -+ - #[test] - fn bytes() { -+ #[track_caller] - fn test_byte(s: &str, value: u8) { -+ let s = s.trim(); - match lit(s) { - Lit::Byte(lit) => { - assert_eq!(lit.value(), value); -@@ -108,18 +156,20 @@ fn bytes() { - } - } - -- test_byte("b'a'", b'a'); -- test_byte("b'\\n'", b'\n'); -- test_byte("b'\\r'", b'\r'); -- test_byte("b'\\t'", b'\t'); -- test_byte("b'\\''", b'\''); -- test_byte("b'\"'", b'"'); -- test_byte("b'a'q", b'a'); -+ test_byte(r#" b'a' "#, b'a'); -+ test_byte(r#" b'\n' "#, b'\n'); -+ test_byte(r#" b'\r' "#, b'\r'); -+ test_byte(r#" b'\t' "#, b'\t'); -+ test_byte(r#" b'\'' "#, b'\''); -+ test_byte(r#" b'"' "#, b'"'); -+ test_byte(r#" b'a'q "#, b'a'); - } - - #[test] - fn chars() { -+ #[track_caller] - fn test_char(s: &str, value: char) { -+ let s = s.trim(); - match lit(s) { - Lit::Char(lit) => { - assert_eq!(lit.value(), value); -@@ -132,19 +182,20 @@ fn chars() { - } - } - -- test_char("'a'", 'a'); -- test_char("'\\n'", '\n'); -- test_char("'\\r'", '\r'); -- test_char("'\\t'", '\t'); -- test_char("'🐕'", '🐕'); // NOTE: This is an emoji -- test_char("'\\''", '\''); -- test_char("'\"'", '"'); -- test_char("'\\u{1F415}'", '\u{1F415}'); -- test_char("'a'q", 'a'); -+ test_char(r#" 'a' "#, 'a'); -+ test_char(r#" '\n' "#, '\n'); -+ test_char(r#" '\r' "#, '\r'); -+ test_char(r#" '\t' "#, '\t'); -+ test_char(r#" '🐕' "#, '🐕'); // NOTE: This is an emoji -+ test_char(r#" '\'' "#, '\''); -+ test_char(r#" '"' "#, '"'); -+ test_char(r#" '\u{1F415}' "#, '\u{1F415}'); -+ test_char(r#" 'a'q "#, 'a'); - } - - #[test] - fn ints() { -+ #[track_caller] - fn test_int(s: &str, value: u64, suffix: &str) { - match lit(s) { - Lit::Int(lit) => { -@@ -185,6 +236,7 @@ fn ints() { - - #[test] - fn floats() { -+ #[track_caller] - fn test_float(s: &str, value: f64, suffix: &str) { - match lit(s) { - Lit::Float(lit) => { -@@ -224,11 +276,13 @@ fn negative() { - - #[test] - fn suffix() { -+ #[track_caller] - fn get_suffix(token: &str) -> String { - let lit = syn::parse_str::(token).unwrap(); - match lit { - Lit::Str(lit) => lit.suffix().to_owned(), - Lit::ByteStr(lit) => lit.suffix().to_owned(), -+ Lit::CStr(lit) => lit.suffix().to_owned(), - Lit::Byte(lit) => lit.suffix().to_owned(), - Lit::Char(lit) => lit.suffix().to_owned(), - Lit::Int(lit) => lit.suffix().to_owned(), -@@ -239,9 +293,13 @@ fn suffix() { - - assert_eq!(get_suffix("\"\"s"), "s"); - assert_eq!(get_suffix("r\"\"r"), "r"); -+ assert_eq!(get_suffix("r#\"\"#r"), "r"); - assert_eq!(get_suffix("b\"\"b"), "b"); - assert_eq!(get_suffix("br\"\"br"), "br"); -- assert_eq!(get_suffix("r#\"\"#r"), "r"); -+ assert_eq!(get_suffix("br#\"\"#br"), "br"); -+ assert_eq!(get_suffix("c\"\"c"), "c"); -+ assert_eq!(get_suffix("cr\"\"cr"), "cr"); -+ assert_eq!(get_suffix("cr#\"\"#cr"), "cr"); - assert_eq!(get_suffix("'c'c"), "c"); - assert_eq!(get_suffix("b'b'b"), "b"); - assert_eq!(get_suffix("1i32"), "i32"); -diff -Nur a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/build.rs b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/build.rs ---- a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/build.rs 2024-04-10 23:25:21.000000000 +0200 -+++ b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/build.rs 2024-05-29 18:02:25.000000000 +0200 -@@ -36,10 +36,10 @@ - - use std::env; - use std::ffi::OsString; -+use std::iter; - use std::path::Path; - use std::process::{self, Command, Stdio}; - use std::str; --use std::u32; - - fn main() { - let rustc = rustc_minor_version().unwrap_or(u32::MAX); -@@ -63,6 +63,11 @@ - println!("cargo:rustc-cfg=no_source_text"); - } - -+ if rustc < 79 { -+ println!("cargo:rustc-cfg=no_literal_byte_character"); -+ println!("cargo:rustc-cfg=no_literal_c_string"); -+ } -+ - if !cfg!(feature = "proc-macro") { - println!("cargo:rerun-if-changed=build.rs"); - return; -@@ -138,15 +143,15 @@ - let out_dir = cargo_env_var("OUT_DIR"); - let probefile = Path::new("build").join("probe.rs"); - -- // Make sure to pick up Cargo rustc configuration. -- let mut cmd = if let Some(wrapper) = env::var_os("RUSTC_WRAPPER") { -- let mut cmd = Command::new(wrapper); -- // The wrapper's first argument is supposed to be the path to rustc. -- cmd.arg(rustc); -- cmd -- } else { -- Command::new(rustc) -- }; -+ let rustc_wrapper = env::var_os("RUSTC_WRAPPER").filter(|wrapper| !wrapper.is_empty()); -+ let rustc_workspace_wrapper = -+ env::var_os("RUSTC_WORKSPACE_WRAPPER").filter(|wrapper| !wrapper.is_empty()); -+ let mut rustc = rustc_wrapper -+ .into_iter() -+ .chain(rustc_workspace_wrapper) -+ .chain(iter::once(rustc)); -+ let mut cmd = Command::new(rustc.next().unwrap()); -+ cmd.args(rustc); - - if !rustc_bootstrap { - cmd.env_remove("RUSTC_BOOTSTRAP"); -@@ -156,6 +161,7 @@ - .arg("--edition=2021") - .arg("--crate-name=proc_macro2") - .arg("--crate-type=lib") -+ .arg("--cap-lints=allow") - .arg("--emit=dep-info,metadata") - .arg("--out-dir") - .arg(out_dir) -diff -Nur a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/src/fallback.rs b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/src/fallback.rs ---- a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/src/fallback.rs 2024-04-10 23:25:21.000000000 +0200 -+++ b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/src/fallback.rs 2024-05-29 18:02:25.000000000 +0200 -@@ -15,7 +15,9 @@ - use core::ops::Range; - use core::ops::RangeBounds; - use core::ptr; --use core::str::FromStr; -+use core::str::{self, FromStr}; -+use std::ffi::CStr; -+#[cfg(procmacro2_semver_exempt)] - use std::path::PathBuf; - - /// Force use of proc-macro2's fallback implementation of the API for now, even -@@ -297,11 +299,13 @@ - } - } - -+#[cfg(procmacro2_semver_exempt)] - #[derive(Clone, PartialEq, Eq)] - pub(crate) struct SourceFile { - path: PathBuf, - } - -+#[cfg(procmacro2_semver_exempt)] - impl SourceFile { - /// Get the path to this source file as a string. - pub fn path(&self) -> PathBuf { -@@ -313,6 +317,7 @@ - } - } - -+#[cfg(procmacro2_semver_exempt)] - impl Debug for SourceFile { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_struct("SourceFile") -@@ -922,7 +927,7 @@ - - #[derive(Clone)] - pub(crate) struct Literal { -- repr: String, -+ pub(crate) repr: String, - span: Span, - } - -@@ -1003,71 +1008,98 @@ - Literal::_new(s) - } - -- pub fn string(t: &str) -> Literal { -- let mut repr = String::with_capacity(t.len() + 2); -+ pub fn string(string: &str) -> Literal { -+ let mut repr = String::with_capacity(string.len() + 2); - repr.push('"'); -- let mut chars = t.chars(); -- while let Some(ch) = chars.next() { -- if ch == '\0' { -- repr.push_str( -- if chars -- .as_str() -- .starts_with(|next| '0' <= next && next <= '7') -- { -- // circumvent clippy::octal_escapes lint -- "\\x00" -- } else { -- "\\0" -- }, -- ); -- } else if ch == '\'' { -- // escape_debug turns this into "\'" which is unnecessary. -- repr.push(ch); -- } else { -- repr.extend(ch.escape_debug()); -- } -- } -+ escape_utf8(string, &mut repr); - repr.push('"'); - Literal::_new(repr) - } - -- pub fn character(t: char) -> Literal { -+ pub fn character(ch: char) -> Literal { - let mut repr = String::new(); - repr.push('\''); -- if t == '"' { -+ if ch == '"' { - // escape_debug turns this into '\"' which is unnecessary. -- repr.push(t); -+ repr.push(ch); - } else { -- repr.extend(t.escape_debug()); -+ repr.extend(ch.escape_debug()); -+ } -+ repr.push('\''); -+ Literal::_new(repr) -+ } -+ -+ pub fn byte_character(byte: u8) -> Literal { -+ let mut repr = "b'".to_string(); -+ #[allow(clippy::match_overlapping_arm)] -+ match byte { -+ b'\0' => repr.push_str(r"\0"), -+ b'\t' => repr.push_str(r"\t"), -+ b'\n' => repr.push_str(r"\n"), -+ b'\r' => repr.push_str(r"\r"), -+ b'\'' => repr.push_str(r"\'"), -+ b'\\' => repr.push_str(r"\\"), -+ b'\x20'..=b'\x7E' => repr.push(byte as char), -+ _ => { -+ let _ = write!(repr, r"\x{:02X}", byte); -+ } - } - repr.push('\''); - Literal::_new(repr) - } - - pub fn byte_string(bytes: &[u8]) -> Literal { -- let mut escaped = "b\"".to_string(); -+ let mut repr = "b\"".to_string(); - let mut bytes = bytes.iter(); - while let Some(&b) = bytes.next() { - #[allow(clippy::match_overlapping_arm)] - match b { -- b'\0' => escaped.push_str(match bytes.as_slice().first() { -+ b'\0' => repr.push_str(match bytes.as_slice().first() { - // circumvent clippy::octal_escapes lint - Some(b'0'..=b'7') => r"\x00", - _ => r"\0", - }), -- b'\t' => escaped.push_str(r"\t"), -- b'\n' => escaped.push_str(r"\n"), -- b'\r' => escaped.push_str(r"\r"), -- b'"' => escaped.push_str("\\\""), -- b'\\' => escaped.push_str("\\\\"), -- b'\x20'..=b'\x7E' => escaped.push(b as char), -+ b'\t' => repr.push_str(r"\t"), -+ b'\n' => repr.push_str(r"\n"), -+ b'\r' => repr.push_str(r"\r"), -+ b'"' => repr.push_str("\\\""), -+ b'\\' => repr.push_str(r"\\"), -+ b'\x20'..=b'\x7E' => repr.push(b as char), - _ => { -- let _ = write!(escaped, "\\x{:02X}", b); -+ let _ = write!(repr, r"\x{:02X}", b); - } - } - } -- escaped.push('"'); -- Literal::_new(escaped) -+ repr.push('"'); -+ Literal::_new(repr) -+ } -+ -+ pub fn c_string(string: &CStr) -> Literal { -+ let mut repr = "c\"".to_string(); -+ let mut bytes = string.to_bytes(); -+ while !bytes.is_empty() { -+ let (valid, invalid) = match str::from_utf8(bytes) { -+ Ok(all_valid) => { -+ bytes = b""; -+ (all_valid, bytes) -+ } -+ Err(utf8_error) => { -+ let (valid, rest) = bytes.split_at(utf8_error.valid_up_to()); -+ let valid = str::from_utf8(valid).unwrap(); -+ let invalid = utf8_error -+ .error_len() -+ .map_or(rest, |error_len| &rest[..error_len]); -+ bytes = &bytes[valid.len() + invalid.len()..]; -+ (valid, invalid) -+ } -+ }; -+ escape_utf8(valid, &mut repr); -+ for &byte in invalid { -+ let _ = write!(repr, r"\x{:02X}", byte); -+ } -+ } -+ repr.push('"'); -+ Literal::_new(repr) - } - - pub fn span(&self) -> Span { -@@ -1168,3 +1200,27 @@ - debug.finish() - } - } -+ -+fn escape_utf8(string: &str, repr: &mut String) { -+ let mut chars = string.chars(); -+ while let Some(ch) = chars.next() { -+ if ch == '\0' { -+ repr.push_str( -+ if chars -+ .as_str() -+ .starts_with(|next| '0' <= next && next <= '7') -+ { -+ // circumvent clippy::octal_escapes lint -+ r"\x00" -+ } else { -+ r"\0" -+ }, -+ ); -+ } else if ch == '\'' { -+ // escape_debug turns this into "\'" which is unnecessary. -+ repr.push(ch); -+ } else { -+ repr.extend(ch.escape_debug()); -+ } -+ } -+} -diff -Nur a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/src/lib.rs b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/src/lib.rs ---- a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/src/lib.rs 2024-04-10 23:25:21.000000000 +0200 -+++ b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/src/lib.rs 2024-05-29 18:02:25.000000000 +0200 -@@ -86,7 +86,7 @@ - //! a different thread. - - // Proc-macro2 types in rustdoc of other crates get linked to here. --#![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.78")] -+#![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.81")] - #![cfg_attr(any(proc_macro_span, super_unstable), feature(proc_macro_span))] - #![cfg_attr(super_unstable, feature(proc_macro_def_site))] - #![cfg_attr(doc_cfg, feature(doc_cfg))] -@@ -96,6 +96,7 @@ - clippy::cast_possible_truncation, - clippy::checked_conversions, - clippy::doc_markdown, -+ clippy::incompatible_msrv, - clippy::items_after_statements, - clippy::iter_without_into_iter, - clippy::let_underscore_untyped, -@@ -169,6 +170,7 @@ - use core::ops::RangeBounds; - use core::str::FromStr; - use std::error::Error; -+use std::ffi::CStr; - #[cfg(procmacro2_semver_exempt)] - use std::path::PathBuf; - -@@ -676,12 +678,12 @@ - Brace, - /// `[ ... ]` - Bracket, -- /// `Ø ... Ø` -+ /// `∅ ... ∅` - /// -- /// An implicit delimiter, that may, for example, appear around tokens -+ /// An invisible delimiter, that may, for example, appear around tokens - /// coming from a "macro variable" `$var`. It is important to preserve - /// operator priorities in cases like `$var * 3` where `$var` is `1 + 2`. -- /// Implicit delimiters may not survive roundtrip of a token stream through -+ /// Invisible delimiters may not survive roundtrip of a token stream through - /// a string. - None, - } -@@ -1233,9 +1235,19 @@ - Literal::_new(imp::Literal::character(ch)) - } - -+ /// Byte character literal. -+ pub fn byte_character(byte: u8) -> Literal { -+ Literal::_new(imp::Literal::byte_character(byte)) -+ } -+ - /// Byte string literal. -- pub fn byte_string(s: &[u8]) -> Literal { -- Literal::_new(imp::Literal::byte_string(s)) -+ pub fn byte_string(bytes: &[u8]) -> Literal { -+ Literal::_new(imp::Literal::byte_string(bytes)) -+ } -+ -+ /// C string literal. -+ pub fn c_string(string: &CStr) -> Literal { -+ Literal::_new(imp::Literal::c_string(string)) - } - - /// Returns the span encompassing this literal. -diff -Nur a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/src/wrapper.rs b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/src/wrapper.rs ---- a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/src/wrapper.rs 2024-04-10 23:25:21.000000000 +0200 -+++ b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/src/wrapper.rs 2024-05-29 18:02:25.000000000 +0200 -@@ -7,6 +7,7 @@ - use core::ops::Range; - use core::ops::RangeBounds; - use core::str::FromStr; -+use std::ffi::CStr; - use std::panic; - #[cfg(super_unstable)] - use std::path::PathBuf; -@@ -846,19 +847,38 @@ - } - } - -- pub fn string(t: &str) -> Literal { -+ pub fn string(string: &str) -> Literal { - if inside_proc_macro() { -- Literal::Compiler(proc_macro::Literal::string(t)) -+ Literal::Compiler(proc_macro::Literal::string(string)) - } else { -- Literal::Fallback(fallback::Literal::string(t)) -+ Literal::Fallback(fallback::Literal::string(string)) - } - } - -- pub fn character(t: char) -> Literal { -+ pub fn character(ch: char) -> Literal { - if inside_proc_macro() { -- Literal::Compiler(proc_macro::Literal::character(t)) -+ Literal::Compiler(proc_macro::Literal::character(ch)) - } else { -- Literal::Fallback(fallback::Literal::character(t)) -+ Literal::Fallback(fallback::Literal::character(ch)) -+ } -+ } -+ -+ pub fn byte_character(byte: u8) -> Literal { -+ if inside_proc_macro() { -+ Literal::Compiler({ -+ #[cfg(not(no_literal_byte_character))] -+ { -+ proc_macro::Literal::byte_character(byte) -+ } -+ -+ #[cfg(no_literal_byte_character)] -+ { -+ let fallback = fallback::Literal::byte_character(byte); -+ fallback.repr.parse::().unwrap() -+ } -+ }) -+ } else { -+ Literal::Fallback(fallback::Literal::byte_character(byte)) - } - } - -@@ -870,6 +890,25 @@ - } - } - -+ pub fn c_string(string: &CStr) -> Literal { -+ if inside_proc_macro() { -+ Literal::Compiler({ -+ #[cfg(not(no_literal_c_string))] -+ { -+ proc_macro::Literal::c_string(string) -+ } -+ -+ #[cfg(no_literal_c_string)] -+ { -+ let fallback = fallback::Literal::c_string(string); -+ fallback.repr.parse::().unwrap() -+ } -+ }) -+ } else { -+ Literal::Fallback(fallback::Literal::c_string(string)) -+ } -+ } -+ - pub fn span(&self) -> Span { - match self { - Literal::Compiler(lit) => Span::Compiler(lit.span()), -diff -Nur a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/tests/marker.rs b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/tests/marker.rs ---- a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/tests/marker.rs 2024-04-10 23:25:21.000000000 +0200 -+++ b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/tests/marker.rs 2024-05-29 18:02:25.000000000 +0200 -@@ -21,6 +21,7 @@ - $( - { - // Implemented for types that implement $marker. -+ #[allow(dead_code)] - trait IsNotImplemented { - fn assert_not_implemented() {} - } -diff -Nur a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/tests/test.rs b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/tests/test.rs ---- a/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.78/tests/test.rs 2024-04-10 23:25:21.000000000 +0200 -+++ b/third_party/rust/chromium_crates_io/vendor/proc-macro2-1.0.81/tests/test.rs 2024-05-29 18:02:25.000000000 +0200 -@@ -1,11 +1,14 @@ - #![allow( - clippy::assertions_on_result_states, - clippy::items_after_statements, -+ clippy::needless_pass_by_value, -+ clippy::needless_raw_string_hashes, - clippy::non_ascii_literal, - clippy::octal_escapes - )] - - use proc_macro2::{Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; -+use std::ffi::CStr; - use std::iter; - use std::str::{self, FromStr}; - -@@ -96,12 +99,22 @@ - - #[test] - fn literal_string() { -- assert_eq!(Literal::string("foo").to_string(), "\"foo\""); -- assert_eq!(Literal::string("\"").to_string(), "\"\\\"\""); -- assert_eq!(Literal::string("didn't").to_string(), "\"didn't\""); -- assert_eq!( -- Literal::string("a\00b\07c\08d\0e\0").to_string(), -- "\"a\\x000b\\x007c\\08d\\0e\\0\"", -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected.trim()); -+ } -+ -+ assert(Literal::string(""), r#" "" "#); -+ assert(Literal::string("aA"), r#" "aA" "#); -+ assert(Literal::string("\t"), r#" "\t" "#); -+ assert(Literal::string("❤"), r#" "❤" "#); -+ assert(Literal::string("'"), r#" "'" "#); -+ assert(Literal::string("\""), r#" "\"" "#); -+ assert(Literal::string("\0"), r#" "\0" "#); -+ assert(Literal::string("\u{1}"), r#" "\u{1}" "#); -+ assert( -+ Literal::string("a\00b\07c\08d\0e\0"), -+ r#" "a\x000b\x007c\08d\0e\0" "#, - ); - - "\"\\\r\n x\"".parse::().unwrap(); -@@ -133,15 +146,42 @@ - } - - #[test] -+fn literal_byte_character() { -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected.trim()); -+ } -+ -+ assert(Literal::byte_character(b'a'), r#" b'a' "#); -+ assert(Literal::byte_character(b'\0'), r#" b'\0' "#); -+ assert(Literal::byte_character(b'\t'), r#" b'\t' "#); -+ assert(Literal::byte_character(b'\n'), r#" b'\n' "#); -+ assert(Literal::byte_character(b'\r'), r#" b'\r' "#); -+ assert(Literal::byte_character(b'\''), r#" b'\'' "#); -+ assert(Literal::byte_character(b'\\'), r#" b'\\' "#); -+ assert(Literal::byte_character(b'\x1f'), r#" b'\x1F' "#); -+ assert(Literal::byte_character(b'"'), r#" b'"' "#); -+} -+ -+#[test] - fn literal_byte_string() { -- assert_eq!(Literal::byte_string(b"").to_string(), "b\"\""); -- assert_eq!( -- Literal::byte_string(b"\0\t\n\r\"\\2\x10").to_string(), -- "b\"\\0\\t\\n\\r\\\"\\\\2\\x10\"", -- ); -- assert_eq!( -- Literal::byte_string(b"a\00b\07c\08d\0e\0").to_string(), -- "b\"a\\x000b\\x007c\\08d\\0e\\0\"", -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected.trim()); -+ } -+ -+ assert(Literal::byte_string(b""), r#" b"" "#); -+ assert(Literal::byte_string(b"\0"), r#" b"\0" "#); -+ assert(Literal::byte_string(b"\t"), r#" b"\t" "#); -+ assert(Literal::byte_string(b"\n"), r#" b"\n" "#); -+ assert(Literal::byte_string(b"\r"), r#" b"\r" "#); -+ assert(Literal::byte_string(b"\""), r#" b"\"" "#); -+ assert(Literal::byte_string(b"\\"), r#" b"\\" "#); -+ assert(Literal::byte_string(b"\x1f"), r#" b"\x1F" "#); -+ assert(Literal::byte_string(b"'"), r#" b"'" "#); -+ assert( -+ Literal::byte_string(b"a\00b\07c\08d\0e\0"), -+ r#" b"a\x000b\x007c\08d\0e\0" "#, - ); - - "b\"\\\r\n x\"".parse::().unwrap(); -@@ -152,6 +192,41 @@ - - #[test] - fn literal_c_string() { -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected.trim()); -+ } -+ -+ assert(Literal::c_string(<&CStr>::default()), r#" c"" "#); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"aA\0").unwrap()), -+ r#" c"aA" "#, -+ ); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"aA\0").unwrap()), -+ r#" c"aA" "#, -+ ); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"\t\0").unwrap()), -+ r#" c"\t" "#, -+ ); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"\xE2\x9D\xA4\0").unwrap()), -+ r#" c"❤" "#, -+ ); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"'\0").unwrap()), -+ r#" c"'" "#, -+ ); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"\"\0").unwrap()), -+ r#" c"\"" "#, -+ ); -+ assert( -+ Literal::c_string(CStr::from_bytes_with_nul(b"\x7F\xFF\xFE\xCC\xB3\0").unwrap()), -+ r#" c"\u{7f}\xFF\xFE\u{333}" "#, -+ ); -+ - let strings = r###" - c"hello\x80我叫\u{1F980}" // from the RFC - cr"\" -@@ -188,49 +263,80 @@ - - #[test] - fn literal_character() { -- assert_eq!(Literal::character('x').to_string(), "'x'"); -- assert_eq!(Literal::character('\'').to_string(), "'\\''"); -- assert_eq!(Literal::character('"').to_string(), "'\"'"); -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected.trim()); -+ } -+ -+ assert(Literal::character('a'), r#" 'a' "#); -+ assert(Literal::character('\t'), r#" '\t' "#); -+ assert(Literal::character('❤'), r#" '❤' "#); -+ assert(Literal::character('\''), r#" '\'' "#); -+ assert(Literal::character('"'), r#" '"' "#); -+ assert(Literal::character('\0'), r#" '\0' "#); -+ assert(Literal::character('\u{1}'), r#" '\u{1}' "#); - } - - #[test] - fn literal_integer() { -- assert_eq!(Literal::u8_suffixed(10).to_string(), "10u8"); -- assert_eq!(Literal::u16_suffixed(10).to_string(), "10u16"); -- assert_eq!(Literal::u32_suffixed(10).to_string(), "10u32"); -- assert_eq!(Literal::u64_suffixed(10).to_string(), "10u64"); -- assert_eq!(Literal::u128_suffixed(10).to_string(), "10u128"); -- assert_eq!(Literal::usize_suffixed(10).to_string(), "10usize"); -- -- assert_eq!(Literal::i8_suffixed(10).to_string(), "10i8"); -- assert_eq!(Literal::i16_suffixed(10).to_string(), "10i16"); -- assert_eq!(Literal::i32_suffixed(10).to_string(), "10i32"); -- assert_eq!(Literal::i64_suffixed(10).to_string(), "10i64"); -- assert_eq!(Literal::i128_suffixed(10).to_string(), "10i128"); -- assert_eq!(Literal::isize_suffixed(10).to_string(), "10isize"); -- -- assert_eq!(Literal::u8_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::u16_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::u32_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::u64_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::u128_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::usize_unsuffixed(10).to_string(), "10"); -- -- assert_eq!(Literal::i8_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::i16_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::i32_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::i64_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::i128_unsuffixed(10).to_string(), "10"); -- assert_eq!(Literal::isize_unsuffixed(10).to_string(), "10"); -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected); -+ } -+ -+ assert(Literal::u8_suffixed(10), "10u8"); -+ assert(Literal::u16_suffixed(10), "10u16"); -+ assert(Literal::u32_suffixed(10), "10u32"); -+ assert(Literal::u64_suffixed(10), "10u64"); -+ assert(Literal::u128_suffixed(10), "10u128"); -+ assert(Literal::usize_suffixed(10), "10usize"); -+ -+ assert(Literal::i8_suffixed(10), "10i8"); -+ assert(Literal::i16_suffixed(10), "10i16"); -+ assert(Literal::i32_suffixed(10), "10i32"); -+ assert(Literal::i64_suffixed(10), "10i64"); -+ assert(Literal::i128_suffixed(10), "10i128"); -+ assert(Literal::isize_suffixed(10), "10isize"); -+ -+ assert(Literal::u8_unsuffixed(10), "10"); -+ assert(Literal::u16_unsuffixed(10), "10"); -+ assert(Literal::u32_unsuffixed(10), "10"); -+ assert(Literal::u64_unsuffixed(10), "10"); -+ assert(Literal::u128_unsuffixed(10), "10"); -+ assert(Literal::usize_unsuffixed(10), "10"); -+ -+ assert(Literal::i8_unsuffixed(10), "10"); -+ assert(Literal::i16_unsuffixed(10), "10"); -+ assert(Literal::i32_unsuffixed(10), "10"); -+ assert(Literal::i64_unsuffixed(10), "10"); -+ assert(Literal::i128_unsuffixed(10), "10"); -+ assert(Literal::isize_unsuffixed(10), "10"); -+ -+ assert(Literal::i32_suffixed(-10), "-10i32"); -+ assert(Literal::i32_unsuffixed(-10), "-10"); - } - - #[test] - fn literal_float() { -- assert_eq!(Literal::f32_suffixed(10.0).to_string(), "10f32"); -- assert_eq!(Literal::f64_suffixed(10.0).to_string(), "10f64"); -- -- assert_eq!(Literal::f32_unsuffixed(10.0).to_string(), "10.0"); -- assert_eq!(Literal::f64_unsuffixed(10.0).to_string(), "10.0"); -+ #[track_caller] -+ fn assert(literal: Literal, expected: &str) { -+ assert_eq!(literal.to_string(), expected); -+ } -+ -+ assert(Literal::f32_suffixed(10.0), "10f32"); -+ assert(Literal::f32_suffixed(-10.0), "-10f32"); -+ assert(Literal::f64_suffixed(10.0), "10f64"); -+ assert(Literal::f64_suffixed(-10.0), "-10f64"); -+ -+ assert(Literal::f32_unsuffixed(10.0), "10.0"); -+ assert(Literal::f32_unsuffixed(-10.0), "-10.0"); -+ assert(Literal::f64_unsuffixed(10.0), "10.0"); -+ assert(Literal::f64_unsuffixed(-10.0), "-10.0"); -+ -+ assert( -+ Literal::f64_unsuffixed(1e100), -+ "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0", -+ ); - } - - #[test] -@@ -248,9 +354,13 @@ - assert_eq!(token_count("1._m"), 3); - assert_eq!(token_count("\"\"s"), 1); - assert_eq!(token_count("r\"\"r"), 1); -+ assert_eq!(token_count("r#\"\"#r"), 1); - assert_eq!(token_count("b\"\"b"), 1); - assert_eq!(token_count("br\"\"br"), 1); -- assert_eq!(token_count("r#\"\"#r"), 1); -+ assert_eq!(token_count("br#\"\"#br"), 1); -+ assert_eq!(token_count("c\"\"c"), 1); -+ assert_eq!(token_count("cr\"\"cr"), 1); -+ assert_eq!(token_count("cr#\"\"#cr"), 1); - assert_eq!(token_count("'c'c"), 1); - assert_eq!(token_count("b'b'b"), 1); - assert_eq!(token_count("0E"), 1); -@@ -378,7 +488,7 @@ - roundtrip("'a"); - roundtrip("'_"); - roundtrip("'static"); -- roundtrip("'\\u{10__FFFF}'"); -+ roundtrip(r"'\u{10__FFFF}'"); - roundtrip("\"\\u{10_F0FF__}foo\\u{1_0_0_0__}\""); - } - -@@ -401,6 +511,7 @@ - fail("\"\\\r \""); // backslash carriage return - fail("'aa'aa"); - fail("br##\"\"#"); -+ fail("cr##\"\"#"); - fail("\"\\\n\u{85}\r\""); - } - diff --git a/chromium-126-el7-std_variant.patch b/chromium-126-el7-std_variant.patch deleted file mode 100644 index 3375bfc..0000000 --- a/chromium-126-el7-std_variant.patch +++ /dev/null @@ -1,96 +0,0 @@ -diff -up chromium-126.0.6478.26/components/visited_url_ranking/internal/visited_url_ranking_service_impl.cc.std_variant chromium-126.0.6478.26/components/visited_url_ranking/internal/visited_url_ranking_service_impl.cc ---- chromium-126.0.6478.26/components/visited_url_ranking/internal/visited_url_ranking_service_impl.cc.std_variant 2024-06-04 12:31:10.602282813 +0200 -+++ chromium-126.0.6478.26/components/visited_url_ranking/internal/visited_url_ranking_service_impl.cc 2024-06-04 13:21:50.121345183 +0200 -@@ -7,7 +7,6 @@ - #include - #include - #include --#include - #include - - #include "base/barrier_callback.h" -@@ -41,20 +40,16 @@ std::vector ComputeUR - for (std::pair& - url_data : result.data) { - URLVisitAggregate& aggregate = url_visit_map[url_data.first]; -- std::visit( -- URLVisitVariantHelper{ -- [&aggregate](URLVisitAggregate::TabData& tab_data) { -- aggregate.fetcher_data_map.emplace( -- tab_data.last_active_tab.session_name.has_value() -- ? Fetcher::kSession -- : Fetcher::kTabModel, -- std::move(tab_data)); -- }, -- [&aggregate](URLVisitAggregate::HistoryData& history_data) { -- aggregate.fetcher_data_map.emplace(Fetcher::kHistory, -- std::move(history_data)); -- }}, -- url_data.second); -+ if (std::holds_alternative(url_data.second)) { -+ auto& tab_data = std::get(url_data.second); -+ aggregate.fetcher_data_map.emplace( -+ tab_data.last_active_tab.session_name.has_value() -+ ? Fetcher::kSession -+ : Fetcher::kTabModel, -+ std::move(tab_data)); -+ } -+ // TODO(crbug.com/330580109): Add support for history fetcher and -+ // associated aggregate data type. - } - } - -diff -up chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.cc.std_variant chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.cc ---- chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.cc.std_variant 2024-06-04 12:29:20.593240495 +0200 -+++ chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.cc 2024-06-04 12:29:57.253921979 +0200 -@@ -37,14 +37,12 @@ URLVisitAggregate& URLVisitAggregate::op - std::set URLVisitAggregate::GetAssociatedURLs() const { - std::set urls = {}; - for (const auto& fetcher_entry : fetcher_data_map) { -- std::visit(URLVisitVariantHelper{ -- [&urls](const URLVisitAggregate::TabData& tab_data) { -- urls.insert(&tab_data.last_active_tab.visit.url); -- }, -- [&urls](const URLVisitAggregate::HistoryData& history_data) { -- urls.insert(&history_data.last_visited.url_row.url()); -- }}, -- fetcher_entry.second); -+ if (std::holds_alternative( -+ fetcher_entry.second)) { -+ const auto& tab_data = -+ std::get(fetcher_entry.second); -+ urls.insert(&tab_data.last_active_tab.visit.url); -+ } - } - return urls; - } -diff -up chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.h.std_variant chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.h ---- chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.h.std_variant 2024-06-04 11:05:39.505847241 +0200 -+++ chromium-126.0.6478.26/components/visited_url_ranking/public/url_visit.h 2024-06-04 13:22:26.518007748 +0200 -@@ -8,6 +8,7 @@ - #include - #include - #include -+#include - #include - - #include "base/functional/callback.h" -@@ -140,18 +141,6 @@ struct URLVisitAggregate { - bool bookmarked = false; - }; - --// Helper to visit each variant of URLVisitVariant. --// Usage: --// std::visit(URLVisitVariantHelper{ --// [](Variant1& variant1) {}, --// [](Variant2& variant1) {}, --// [](Variant3& variant1) {}, --// variant_data); --template --struct URLVisitVariantHelper : Ts... { -- using Ts::operator()...; --}; -- - } // namespace visited_url_ranking - - #endif // COMPONENTS_VISITED_URL_RANKING_PUBLIC_URL_VISIT_H_ diff --git a/chromium-126-el7-stdformat.patch b/chromium-126-el7-stdformat.patch deleted file mode 100644 index 80a2da8..0000000 --- a/chromium-126-el7-stdformat.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up chromium-126.0.6478.26/chrome/renderer/accessibility/read_anything_app_model.cc.stdformat chromium-126.0.6478.26/chrome/renderer/accessibility/read_anything_app_model.cc ---- chromium-126.0.6478.26/chrome/renderer/accessibility/read_anything_app_model.cc.stdformat 2024-06-03 22:52:18.596936767 +0200 -+++ chromium-126.0.6478.26/chrome/renderer/accessibility/read_anything_app_model.cc 2024-06-03 23:26:46.024734453 +0200 -@@ -1059,7 +1059,7 @@ std::string ReadAnythingAppModel::GetHtm - int32_t hierarchical_level = - ax_node->GetIntAttribute(ax::mojom::IntAttribute::kHierarchicalLevel); - if (hierarchical_level) { -- return std::format("h{}", hierarchical_level); -+ return std::string("h" + std::to_string(hierarchical_level)); - } - } - -@@ -1159,7 +1159,7 @@ std::string ReadAnythingAppModel::GetHea - int32_t hierarchical_level = - ax_node->GetIntAttribute(ax::mojom::IntAttribute::kHierarchicalLevel); - if (hierarchical_level) { -- return std::format("h{}", hierarchical_level); -+ return std::string("h" + std::to_string(hierarchical_level)); - } - return html_tag; - } diff --git a/chromium-126-el7-type-alias.patch b/chromium-126-el7-type-alias.patch deleted file mode 100644 index 38e7bc1..0000000 --- a/chromium-126-el7-type-alias.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -up chromium-126.0.6478.26/components/plus_addresses/plus_address_service.cc.el7-type-alias chromium-126.0.6478.26/components/plus_addresses/plus_address_service.cc ---- chromium-126.0.6478.26/components/plus_addresses/plus_address_service.cc.el7-type-alias 2024-05-29 18:01:08.000000000 +0200 -+++ chromium-126.0.6478.26/components/plus_addresses/plus_address_service.cc 2024-06-02 17:32:29.917153207 +0200 -@@ -196,7 +196,7 @@ std::vector PlusAddressServi - bool is_off_the_record, - std::u16string_view focused_field_value, - autofill::AutofillSuggestionTriggerSource trigger_source) { -- using enum autofill::AutofillSuggestionTriggerSource; -+ using autofill::AutofillSuggestionTriggerSource; - if (!SupportsPlusAddresses(last_committed_primary_main_frame_origin, - is_off_the_record)) { - return {}; -@@ -207,7 +207,7 @@ std::vector PlusAddressServi - std::optional maybe_address = - GetPlusAddress(OriginToFacet(last_committed_primary_main_frame_origin)); - if (maybe_address == std::nullopt) { -- if (trigger_source != kManualFallbackPlusAddresses && -+ if (trigger_source != AutofillSuggestionTriggerSource::kManualFallbackPlusAddresses && - !normalized_field_value.empty()) { - return {}; - } -@@ -222,7 +222,7 @@ std::vector PlusAddressServi - - // Only suggest filling a plus address whose prefix matches the field's value. - std::u16string address = base::UTF8ToUTF16(*maybe_address); -- if (trigger_source != kManualFallbackPlusAddresses && -+ if (trigger_source != AutofillSuggestionTriggerSource::kManualFallbackPlusAddresses && - !address.starts_with(normalized_field_value)) { - return {}; - } diff --git a/chromium-98.0.4758.80-epel7-erase-fix.patch b/chromium-98.0.4758.80-epel7-erase-fix.patch deleted file mode 100644 index 230e9d6..0000000 --- a/chromium-98.0.4758.80-epel7-erase-fix.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -up chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc.erase-fix chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc ---- chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc.erase-fix 2022-02-03 19:16:57.784979831 +0000 -+++ chromium-98.0.4758.80/components/ui_devtools/views/ui_element_with_metadata.cc 2022-02-03 19:17:12.983633352 +0000 -@@ -19,14 +19,14 @@ namespace { - // Remove any custom editor "prefixes" from the property name. The prefixes must - // not be valid identifier characters. - void StripPrefix(std::string& property_name) { -- auto cur = property_name.cbegin(); -+ auto cur = property_name.begin(); - for (; cur < property_name.cend(); ++cur) { - if ((*cur >= 'A' && *cur <= 'Z') || (*cur >= 'a' && *cur <= 'z') || - *cur == '_') { - break; - } - } -- property_name.erase(property_name.cbegin(), cur); -+ property_name.erase(property_name.begin(), cur); - } - - } // namespace diff --git a/chromium.spec b/chromium.spec index c1372a4..c20cb24 100644 --- a/chromium.spec +++ b/chromium.spec @@ -60,25 +60,14 @@ %global dts_version 13 %endif -# set latest version for llvm-toolset on el7 -%global llvm_toolset_version 14.0 - # set name for toolset -%if 0%{?rhel} == 7 -%global toolset devtoolset -%else %global toolset gcc-toolset -%endif -%if 0%{?rhel} == 7 -%global chromium_pybin /opt/rh/rh-python38/root/usr/bin/python -%else %if 0%{?rhel} == 8 %global chromium_pybin /usr/bin/python3.9 %else %global chromium_pybin %{__python3} %endif -%endif # va-api only supported in rhel >= 9 and fedora %global use_vaapi 1 @@ -86,8 +75,8 @@ # v4l2_codec only enable for fedora aarch64 %global use_v4l2_codec 0 -# libva in EL7 and EL8 is too old. -%if 0%{?rhel} == 7 || 0%{?rhel} == 8 +# libva is too old on el8. +%if 0%{?rhel} == 8 %global use_vaapi 0 %endif @@ -135,9 +124,6 @@ # disable debuginfo due to a bug in debugedit on el7 # error: canonicalization unexpectedly shrank by one character # https://bugzilla.redhat.com/show_bug.cgi?id=304121 -%if 0%{?rhel} == 7 -%global enable_debug 0 -%endif %if ! %{enable_debug} %global debug_package %{nil} %global debug_level 0 @@ -168,9 +154,6 @@ # enable|disable use_custom_libcxx %global use_custom_libcxx 1 -%if 0%{?rhel} == 7 -%global use_custom_libcxx 0 -%endif # enable clang by default %global clang 1 @@ -229,11 +212,11 @@ # enable bundleminizip for Fedora > 39 due to switch to minizip-ng # which breaks the build %global bundleminizip 0 -%if 0%{?rhel} == 7 || 0%{?fedora} > 39 +%if 0%{?fedora} > 39 %global bundleminizip 1 %endif -%if 0%{?rhel} == 7 || 0%{?rhel} == 8 +%if 0%{?rhel} == 8 %global bundleharfbuzz 1 %global bundlelibwebp 1 %global bundlelibpng 1 @@ -370,67 +353,6 @@ Patch90: chromium-121-system-libxml.patch # patch for using system opus Patch91: chromium-108-system-opus.patch -# need to explicitly include a kernel header on EL7 to support MFD_CLOEXEC, F_SEAL_SHRINK, F_ADD_SEALS, F_SEAL_SEAL -Patch100: chromium-126-el7-include-fcntl-memfd.patch - -# add define HAVE_STRNDUP on epel7 -Patch101: chromium-108-el7-wayland-strndup-error.patch - -# Workaround for old clang 14 -# error: defaulting this default constructor would delete it after its first declaration -Patch102: chromium-125-el7-default-constructor-involving-anonymous-union.patch - -# Work around old and missing headers on EPEL7 -Patch103: chromium-110-epel7-old-headers-workarounds.patch - -# Use old cups (chromium's code workaround breaks on gcc) -# Revert: https://github.com/chromium/chromium/commit/c3213f8779ddc427e89d982514185ed5e4c94e91 -Patch104: chromium-126-el7-old-cups.patch - -# libdrm on EL7 is rather old and chromium assumes newer -# This gets us by for now -Patch105: chromium-125-el7-old-libdrm.patch - -# error: no matching function for call to 'std::basic_string::erase(std::basic_string::const_iterator, __gnu_cxx::__normal_iterator >&)' -# 33 | property_name.erase(property_name.cbegin(), cur); -# Not sure how this EVER worked anywhere, but it only seems to fail on EPEL-7. -Patch106: chromium-98.0.4758.80-epel7-erase-fix.patch - -# Add additional operator== to make el7 happy. -Patch107: chromium-122-el7-extra-operator.patch -# old v4l2 on el7 -Patch108: chromium-118-el7_v4l2_quantization.patch -# workaround for old clang on el7 -Patch109: chromium-114-wireless-el7.patch -Patch110: chromium-115-buildflag-el7.patch -Patch111: chromium-122-el7-inline-function.patch -Patch112: chromium-126-el7-rust-c_string.patch -Patch113: chromium-121-el7-clang-version-warning.patch -Patch114: chromium-123-el7-clang-build-failure.patch -Patch115: chromium-124-el7-size_t.patch - -# fixes for old clang version in el7 (clang <= 15) -# compiler build errors, no matching constructor for initialization -Patch116: chromium-126-el7-no_matching_constructor.patch -Patch117: chromium-115-el7-compiler-SkColor4f.patch - -# workaround for clang bug, https://github.com/llvm/llvm-project/issues/57826 -Patch118: chromium-124-el7-workaround_clang_bug-structured_binding.patch - -# missing typename -Patch119: chromium-125-el7-typename.patch - -# error: invalid operands to binary expression -Patch120: chromium-117-el7-string-convert.patch -Patch121: chromium-125-el7-assert.patch -Patch122: chromium-126-el7-constexpr.patch -Patch123: chromium-126-el7-type-alias.patch -Patch124: chromium-125-el7-optional-workaround-assert.patch -Patch125: chromium-126-el7-interator.patch -Patch126: chromium-126-el7-colormap.patch -Patch127: chromium-126-el7-stdformat.patch -Patch128: chromium-126-el7-std_variant.patch - # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -1190,40 +1112,6 @@ Qt6 UI for chromium. %patch -P134 -p1 -b .disable-FFmpegAllowLists %endif -# EPEL specific patches -%if 0%{?rhel} == 7 -cp /opt/rh/%{toolset}-%{dts_version}/root/usr/include/c++/%{dts_version}/optional . -%patch -P100 -p1 -b .el7-memfd-fcntl-include -%patch -P101 -p1 -b .wayland-strndup-error -%patch -P102 -p1 -b .default-constructor-involving-anonymous-union -%patch -P103 -p1 -b .epel7-header-workarounds -%patch -P104 -p1 -b .el7cups -%patch -P105 -p1 -b .el7-old-libdrm -%patch -P106 -p1 -b .el7-erase-fix -%patch -P107 -p1 -b .el7-extra-operator-equalequal -%patch -P108 -p1 -b .el7_v4l2_quantization -%patch -P109 -p1 -b .wireless -%patch -P110 -p1 -b .buildflag-el7 -%patch -P111 -p1 -b .inline-function-el7 -%patch -P112 -p1 -R -b .rust-s_ctring -%patch -P113 -p1 -b .el7-clang-version-warning -%patch -P114 -p1 -b .clang-build-failure -%patch -P115 -p1 -b .el7-size_t -%patch -P116 -p1 -b .no_matching_constructor -%patch -P117 -p1 -b .workaround_clang-SkColor4f -%patch -P118 -p1 -b .workaround_clang_bug-structured_binding -%patch -P119 -p1 -b .typename -%patch -P120 -p1 -b .string-convert -%patch -P121 -p1 -b .assert -%patch -P122 -p1 -b .constexpr -%patch -P123 -p1 -b .el7-type-alias -%patch -P124 -p1 -b .el7-workaround-assert -%patch -P125 -p1 -b .el7-interator -%patch -P126 -p1 -b .el7-colormap -%patch -P127 -p1 -b .el7-stdformat -%patch -P128 -p1 -b .el7-std_variant -%endif - %if 0%{?rhel} == 9 %patch -P140 -p1 -b .revert-av1enc %endif @@ -1236,7 +1124,7 @@ cp /opt/rh/%{toolset}-%{dts_version}/root/usr/include/c++/%{dts_version}/optiona %patch -P150 -p1 -b .qt6 %endif -%if 0%{?rhel} && 0%{?rhel} <= 8 +%if 0%{?rhel} = 8 %ifarch aarch64 %patch -P305 -p1 -b .memory_tagging %patch -P306 -p1 -b .ifunc-header @@ -1454,16 +1342,6 @@ export CXXFLAGS export LDFLAGS export RUSTFLAGS -# enable toolset on el7 -%if 0%{?rhel} == 7 -. /opt/rh/rh-python38/enable -%if %{clang} -. /opt/rh/llvm-toolset-%{llvm_toolset_version}/enable -%else -. /opt/rh/%{toolset}-%{dts_version}/enable -%endif -%endif - # enable gcc toolset on el8 %if 0%{?rhel} == 8 && ! %{clang} . /opt/rh/%{toolset}-%{dts_version}/enable From 640731430a96e2816f52abf943c91681c696f3a2 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 11:38:04 +0200 Subject: [PATCH 009/244] fix typo --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index c20cb24..eaa8069 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1124,7 +1124,7 @@ Qt6 UI for chromium. %patch -P150 -p1 -b .qt6 %endif -%if 0%{?rhel} = 8 +%if 0%{?rhel} == 8 %ifarch aarch64 %patch -P305 -p1 -b .memory_tagging %patch -P306 -p1 -b .ifunc-header From db13fed1614a0562e6d418b0f5370cdd2376e206 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 11:43:56 +0200 Subject: [PATCH 010/244] there is new libva in el9.4 which supports AV1 VAAPI video encode, drop chromium-122-revert-av1enc-el9.patch --- chromium-122-revert-av1enc-el9.patch | 98 ---------------------------- chromium.spec | 7 -- 2 files changed, 105 deletions(-) delete mode 100644 chromium-122-revert-av1enc-el9.patch diff --git a/chromium-122-revert-av1enc-el9.patch b/chromium-122-revert-av1enc-el9.patch deleted file mode 100644 index 5861bc6..0000000 --- a/chromium-122-revert-av1enc-el9.patch +++ /dev/null @@ -1,98 +0,0 @@ -diff -up chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc ---- chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me 2023-05-21 10:05:00.357860329 +0200 -+++ chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc 2023-05-21 10:18:09.665432735 +0200 -@@ -41,7 +41,6 @@ - #include "media/gpu/gpu_video_encode_accelerator_helpers.h" - #include "media/gpu/h264_dpb.h" - #include "media/gpu/macros.h" --#include "media/gpu/vaapi/av1_vaapi_video_encoder_delegate.h" - #include "media/gpu/vaapi/h264_vaapi_video_encoder_delegate.h" - #include "media/gpu/vaapi/va_surface.h" - #include "media/gpu/vaapi/vaapi_common.h" -@@ -200,7 +199,7 @@ bool VaapiVideoEncodeAccelerator::Initia - - const VideoCodec codec = VideoCodecProfileToVideoCodec(config.output_profile); - if (codec != VideoCodec::kH264 && codec != VideoCodec::kVP8 && -- codec != VideoCodec::kVP9 && codec != VideoCodec::kAV1) { -+ codec != VideoCodec::kVP9) { - MEDIA_LOG(ERROR, media_log.get()) - << "Unsupported profile: " << GetProfileName(config.output_profile); - return false; -@@ -293,7 +292,6 @@ void VaapiVideoEncodeAccelerator::Initia - break; - case VideoCodec::kVP8: - case VideoCodec::kVP9: -- case VideoCodec::kAV1: - mode = VaapiWrapper::kEncodeConstantQuantizationParameter; - break; - default: -@@ -356,12 +354,6 @@ void VaapiVideoEncodeAccelerator::Initia - vaapi_wrapper_, error_cb); - } - break; -- case VideoCodec::kAV1: -- if (!IsConfiguredForTesting()) { -- encoder_ = std::make_unique( -- vaapi_wrapper_, error_cb); -- } -- break; - default: - NOTREACHED() << "Unsupported codec type " << GetCodecName(output_codec_); - return; -@@ -835,10 +827,6 @@ VaapiVideoEncodeAccelerator::CreateEncod - case VideoCodec::kVP9: - picture = new VaapiVP9Picture(std::move(reconstructed_surface)); - break; -- case VideoCodec::kAV1: -- picture = new VaapiAV1Picture(/*display_va_surface=*/nullptr, -- std::move(reconstructed_surface)); -- break; - default: - return nullptr; - } -diff -up chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn ---- chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc 2023-05-18 00:37:57.000000000 +0200 -+++ chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn 2023-05-20 13:14:10.756183626 +0200 -@@ -38,8 +38,6 @@ source_set("vaapi") { - sources = [ - "av1_vaapi_video_decoder_delegate.cc", - "av1_vaapi_video_decoder_delegate.h", -- "av1_vaapi_video_encoder_delegate.cc", -- "av1_vaapi_video_encoder_delegate.h", - "h264_vaapi_video_decoder_delegate.cc", - "h264_vaapi_video_decoder_delegate.h", - "h264_vaapi_video_encoder_delegate.cc", -diff -up chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc.me chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc ---- chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc.me 2023-11-02 15:08:30.921325747 +0100 -+++ chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc 2023-11-02 15:09:46.123692602 +0100 -@@ -3124,6 +3124,7 @@ bool VaapiWrapper::GetSupportedPackedHea - return true; - } - -+#if 0 //disable AV1 due to old libva on epel9 - bool VaapiWrapper::GetMinAV1SegmentSize(VideoCodecProfile profile, - uint32_t& min_seg_size) { - CHECK(!enforce_sequence_affinity_ || -@@ -3141,6 +3142,7 @@ bool VaapiWrapper::GetMinAV1SegmentSize( - - return true; - } -+#endif - - bool VaapiWrapper::BlitSurface(const VASurface& va_surface_src, - const VASurface& va_surface_dest, -diff -up chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h.me chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h ---- chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h.me 2023-11-02 15:09:58.973928395 +0100 -+++ chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h 2023-11-02 15:10:45.990791114 +0100 -@@ -553,9 +553,11 @@ class MEDIA_GPU_EXPORT VaapiWrapper - bool& packed_pps, - bool& packed_slice); - -+#if 0 //disable AV1 due to old libva on epel9 - // Gets the minimum segment block size supported for AV1 encoding. - [[nodiscard]] bool GetMinAV1SegmentSize(VideoCodecProfile profile, - uint32_t& min_seg_size); -+#endif - - // Blits a VASurface |va_surface_src| into another VASurface - // |va_surface_dest| applying pixel format conversion, cropping diff --git a/chromium.spec b/chromium.spec index eaa8069..501f034 100644 --- a/chromium.spec +++ b/chromium.spec @@ -366,9 +366,6 @@ Patch133: chromium-121-system-old-ffmpeg.patch # disable FFmpegAllowLists by default to allow external ffmpeg patch134: chromium-125-disable-FFmpegAllowLists.patch -# revert AV1 VAAPI video encode due to old libva on el9 (rhel9.3) -Patch140: chromium-122-revert-av1enc-el9.patch - # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch @@ -1112,10 +1109,6 @@ Qt6 UI for chromium. %patch -P134 -p1 -b .disable-FFmpegAllowLists %endif -%if 0%{?rhel} == 9 -%patch -P140 -p1 -b .revert-av1enc -%endif - %if 0%{?rhel} == 8 || 0%{?rhel} == 9 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict %endif From a8386adfcf5ff6ccaf481527ab0508250b09c3f9 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 11:51:33 +0200 Subject: [PATCH 011/244] drop obsoleted patches as we have new clang-17.0.6 and rust-1.75 in el8/9 --- chromium-123-rust-clap_lex.patch | 133 ---- chromium-125-el-NativeValueTraits-p1.patch | 739 ------------------ chromium-125-el-NativeValueTraits-p2.patch | 144 ---- chromium-126-clang16-buildflags.patch | 22 - ...ng16-disable-auto-upgrade-debug-info.patch | 12 - chromium.spec | 23 - 6 files changed, 1073 deletions(-) delete mode 100644 chromium-123-rust-clap_lex.patch delete mode 100644 chromium-125-el-NativeValueTraits-p1.patch delete mode 100644 chromium-125-el-NativeValueTraits-p2.patch delete mode 100644 chromium-126-clang16-buildflags.patch delete mode 100644 chromium-126-clang16-disable-auto-upgrade-debug-info.patch diff --git a/chromium-123-rust-clap_lex.patch b/chromium-123-rust-clap_lex.patch deleted file mode 100644 index 61bd194..0000000 --- a/chromium-123-rust-clap_lex.patch +++ /dev/null @@ -1,133 +0,0 @@ -diff -Nur chromium-123.0.6312.46/third_party/rust/chromium_crates_io/vendor/clap_lex-0.7.0/src/ext.rs.me chromium-123.0.6312.46/third_party/rust/chromium_crates_io/vendor/clap_lex-0.7.0/src/ext.rs ---- chromium-123.0.6312.46/third_party/rust/chromium_crates_io/vendor/clap_lex-0.7.0/src/ext.rs.me 2024-03-13 20:36:17.000000000 +0100 -+++ chromium-123.0.6312.46/third_party/rust/chromium_crates_io/vendor/clap_lex-0.7.0/src/ext.rs 2024-03-13 00:38:18.000000000 +0100 -@@ -2,9 +2,6 @@ - - pub trait OsStrExt: private::Sealed { - /// Converts to a string slice. -- /// -- /// The Utf8Error is guaranteed to have a valid UTF8 boundary -- /// in its `valid_up_to()` - fn try_str(&self) -> Result<&str, std::str::Utf8Error>; - /// Returns `true` if the given pattern matches a sub-slice of - /// this string slice. -@@ -183,7 +180,7 @@ - - impl OsStrExt for OsStr { - fn try_str(&self) -> Result<&str, std::str::Utf8Error> { -- let bytes = self.as_encoded_bytes(); -+ let bytes = to_bytes(self); - std::str::from_utf8(bytes) - } - -@@ -192,22 +189,22 @@ - } - - fn find(&self, needle: &str) -> Option { -- let bytes = self.as_encoded_bytes(); -+ let bytes = to_bytes(self); - (0..=self.len().checked_sub(needle.len())?) - .find(|&x| bytes[x..].starts_with(needle.as_bytes())) - } - - fn strip_prefix(&self, prefix: &str) -> Option<&OsStr> { -- let bytes = self.as_encoded_bytes(); -+ let bytes = to_bytes(self); - bytes.strip_prefix(prefix.as_bytes()).map(|s| { - // SAFETY: -- // - This came from `as_encoded_bytes` -- // - Since `prefix` is `&str`, any split will be along UTF-8 boundary -- unsafe { OsStr::from_encoded_bytes_unchecked(s) } -+ // - This came from `to_bytes` -+ // - Since `prefix` is `&str`, any split will be along UTF-8 boundarie -+ unsafe { to_os_str_unchecked(s) } - }) - } - fn starts_with(&self, prefix: &str) -> bool { -- let bytes = self.as_encoded_bytes(); -+ let bytes = to_bytes(self); - bytes.starts_with(prefix.as_bytes()) - } - -@@ -222,18 +219,13 @@ - fn split_once(&self, needle: &'_ str) -> Option<(&OsStr, &OsStr)> { - let start = self.find(needle)?; - let end = start + needle.len(); -- let haystack = self.as_encoded_bytes(); -+ let haystack = to_bytes(self); - let first = &haystack[0..start]; - let second = &haystack[end..]; - // SAFETY: -- // - This came from `as_encoded_bytes` -- // - Since `needle` is `&str`, any split will be along UTF-8 boundary -- unsafe { -- Some(( -- OsStr::from_encoded_bytes_unchecked(first), -- OsStr::from_encoded_bytes_unchecked(second), -- )) -- } -+ // - This came from `to_bytes` -+ // - Since `needle` is `&str`, any split will be along UTF-8 boundarie -+ unsafe { Some((to_os_str_unchecked(first), to_os_str_unchecked(second))) } - } - } - -@@ -243,6 +235,45 @@ - impl Sealed for std::ffi::OsStr {} - } - -+/// Allow access to raw bytes -+/// -+/// As the non-UTF8 encoding is not defined, the bytes only make sense when compared with -+/// 7-bit ASCII or `&str` -+/// -+/// # Compatibility -+/// -+/// There is no guarantee how non-UTF8 bytes will be encoded, even within versions of this crate -+/// (since its dependent on rustc) -+fn to_bytes(s: &OsStr) -> &[u8] { -+ // SAFETY: -+ // - Lifetimes are the same -+ // - Types are compatible (`OsStr` is effectively a transparent wrapper for `[u8]`) -+ // - The primary contract is that the encoding for invalid surrogate code points is not -+ // guaranteed which isn't a problem here -+ // -+ // There is a proposal to support this natively (https://github.com/rust-lang/rust/pull/95290) -+ // but its in limbo -+ unsafe { std::mem::transmute(s) } -+} -+ -+/// Restore raw bytes as `OsStr` -+/// -+/// # Safety -+/// -+/// - `&[u8]` must either by a `&str` or originated with `to_bytes` within the same binary -+/// - Any splits of the original `&[u8]` must be done along UTF-8 boundaries -+unsafe fn to_os_str_unchecked(s: &[u8]) -> &OsStr { -+ // SAFETY: -+ // - Lifetimes are the same -+ // - Types are compatible (`OsStr` is effectively a transparent wrapper for `[u8]`) -+ // - The primary contract is that the encoding for invalid surrogate code points is not -+ // guaranteed which isn't a problem here -+ // -+ // There is a proposal to support this natively (https://github.com/rust-lang/rust/pull/95290) -+ // but its in limbo -+ std::mem::transmute(s) -+} -+ - pub struct Split<'s, 'n> { - haystack: Option<&'s OsStr>, - needle: &'n str, -@@ -275,10 +306,7 @@ - /// - /// `index` must be at a valid UTF-8 boundary - pub(crate) unsafe fn split_at(os: &OsStr, index: usize) -> (&OsStr, &OsStr) { -- let bytes = os.as_encoded_bytes(); -+ let bytes = to_bytes(os); - let (first, second) = bytes.split_at(index); -- ( -- OsStr::from_encoded_bytes_unchecked(first), -- OsStr::from_encoded_bytes_unchecked(second), -- ) -+ (to_os_str_unchecked(first), to_os_str_unchecked(second)) - } diff --git a/chromium-125-el-NativeValueTraits-p1.patch b/chromium-125-el-NativeValueTraits-p1.patch deleted file mode 100644 index ad0c8a8..0000000 --- a/chromium-125-el-NativeValueTraits-p1.patch +++ /dev/null @@ -1,739 +0,0 @@ -revert as workaround for compiler error with old clang < 17 - -commit 940af9f2c87b436559b97c53763aa9eaaf1254eb -Author: Jeremy Roman -Date: Wed Nov 15 16:24:54 2023 +0000 - - Use C++20 features to simplify blink::NativeValueTraitsBase. - - These allow some of the metaprogramming bits to be simplified a little. - - Change-Id: I052b4397586d21348401616e1792afdb9662f975 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5030335 - Reviewed-by: Yuki Shiino - Commit-Queue: Jeremy Roman - Cr-Commit-Position: refs/heads/main@{#1224978} - ---- a/third_party/blink/renderer/bindings/core/v8/native_value_traits.h -+++ b/third_party/blink/renderer/bindings/core/v8/native_value_traits.h -@@ -5,7 +5,6 @@ - #ifndef THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_NATIVE_VALUE_TRAITS_H_ - #define THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_NATIVE_VALUE_TRAITS_H_ - --#include - #include - - #include "third_party/blink/renderer/bindings/core/v8/idl_types_base.h" -@@ -31,7 +30,7 @@ class ExceptionState; - // return toInt32(isolate, value, exceptionState, NormalConversion); - // } - // } --template -+template - struct NativeValueTraits; - - // This declaration serves only as a blueprint for specializations: the -@@ -46,15 +45,22 @@ struct NativeValueTraits; - - namespace bindings { - -+template -+struct NativeValueTraitsHasIsNull : std::false_type {}; -+ - template --struct ImplTypeFor { -- using type = T; --}; -+struct NativeValueTraitsHasIsNull< -+ T, -+ std::void_t().IsNull())>> : std::true_type {}; - - template -- requires std::derived_from --struct ImplTypeFor { -- using type = typename T::ImplType; -+struct NativeValueTraitsHasNullValue { -+ // true if |T| supports IDL null value. -+ static constexpr bool value = -+ // ScriptValue, String, and union types have IsNull member function. -+ bindings::NativeValueTraitsHasIsNull::value || -+ // Pointer types have nullptr as IDL null value. -+ std::is_pointer::value; - }; - - } // namespace bindings -@@ -72,17 +78,37 @@ struct ImplTypeFor { - // If present, |NullValue()| will be used when converting from the nullable type - // T?, and should be used if the impl type has an existing "null" state. If not - // present, WTF::Optional will be used to wrap the type. --template -+template - struct NativeValueTraitsBase { - STATIC_ONLY(NativeValueTraitsBase); - -- using ImplType = bindings::ImplTypeFor::type; -+ using ImplType = T; -+ -+ static constexpr bool has_null_value = -+ bindings::NativeValueTraitsHasNullValue::value; -+ -+ template -+ static decltype(auto) ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state, -+ ExtraArgs... extra_args) { -+ return NativeValueTraits>::NativeValue( -+ isolate, value, exception_state, -+ std::forward(extra_args)...); -+ } -+}; -+ -+template -+struct NativeValueTraitsBase< -+ T, -+ std::enable_if_t::value>> { -+ STATIC_ONLY(NativeValueTraitsBase); -+ -+ using ImplType = typename T::ImplType; - -- // Pointer types have nullptr as IDL null value. -- // ScriptValue, String, and union types have IsNull member function. - static constexpr bool has_null_value = -- std::is_pointer_v || -- requires(ImplType value) { value.IsNull(); }; -+ bindings::NativeValueTraitsHasNullValue::value; - - // This should only be true for certain subclasses of ScriptWrappable - // that satisfy the assumptions of CreateIDLSequenceFromV8ArraySlow() with ---- a/third_party/blink/renderer/bindings/core/v8/native_value_traits_buffer_sources.cc -+++ b/third_party/blink/renderer/bindings/core/v8/native_value_traits_buffer_sources.cc -@@ -7,7 +7,6 @@ - #include "third_party/blink/renderer/core/core_export.h" - #include "third_party/blink/renderer/core/execution_context/execution_context.h" - #include "third_party/blink/renderer/core/frame/web_feature.h" --#include "third_party/blink/renderer/core/typed_arrays/flexible_array_buffer_view.h" - #include "third_party/blink/renderer/core/typed_arrays/typed_flexible_array_buffer_view.h" - - namespace blink { -@@ -698,11 +697,12 @@ DOMArrayBufferBase* NativeValueTraits< - // ArrayBufferView - - template -- requires std::derived_from --NotShared NativeValueTraits>::NativeValue( -- v8::Isolate* isolate, -- v8::Local value, -- ExceptionState& exception_state) { -+NotShared NativeValueTraits< -+ NotShared, -+ typename std::enable_if_t::value>>:: -+ NativeValue(v8::Isolate* isolate, -+ v8::Local value, -+ ExceptionState& exception_state) { - return NativeValueImpl< - RecipeTrait>, ToDOMViewType, - Nullablity::kIsNotNullable, BufferSizeCheck::kCheck, -@@ -711,12 +711,13 @@ NotShared NativeValueTraits -- requires std::derived_from --NotShared NativeValueTraits>::ArgumentValue( -- v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+NotShared NativeValueTraits< -+ NotShared, -+ typename std::enable_if_t::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl< - RecipeTrait>, ToDOMViewType, - Nullablity::kIsNotNullable, BufferSizeCheck::kCheck, -@@ -727,11 +728,12 @@ NotShared NativeValueTraits -- requires std::derived_from --MaybeShared NativeValueTraits>::NativeValue( -- v8::Isolate* isolate, -- v8::Local value, -- ExceptionState& exception_state) { -+MaybeShared NativeValueTraits< -+ MaybeShared, -+ typename std::enable_if_t::value>>:: -+ NativeValue(v8::Isolate* isolate, -+ v8::Local value, -+ ExceptionState& exception_state) { - return NativeValueImpl>, - ToDOMViewType, - Nullablity::kIsNotNullable, BufferSizeCheck::kCheck, -@@ -740,12 +742,13 @@ MaybeShared NativeValueTraits -- requires std::derived_from --MaybeShared NativeValueTraits>::ArgumentValue( -- v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+MaybeShared NativeValueTraits< -+ MaybeShared, -+ typename std::enable_if_t::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl>, - ToDOMViewType, - Nullablity::kIsNotNullable, BufferSizeCheck::kCheck, -@@ -756,12 +759,12 @@ MaybeShared NativeValueTraits -- requires std::derived_from --MaybeShared --NativeValueTraits>>::NativeValue( -- v8::Isolate* isolate, -- v8::Local value, -- ExceptionState& exception_state) { -+MaybeShared NativeValueTraits< -+ IDLBufferSourceTypeNoSizeLimit>, -+ typename std::enable_if_t::value>>:: -+ NativeValue(v8::Isolate* isolate, -+ v8::Local value, -+ ExceptionState& exception_state) { - return NativeValueImpl< - RecipeTrait>, ToDOMViewType, - Nullablity::kIsNotNullable, BufferSizeCheck::kDoNotCheck, -@@ -770,12 +773,13 @@ NativeValueTraits -- requires std::derived_from --MaybeShared NativeValueTraits>>::ArgumentValue(v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+MaybeShared NativeValueTraits< -+ IDLBufferSourceTypeNoSizeLimit>, -+ typename std::enable_if_t::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl< - RecipeTrait>, ToDOMViewType, - Nullablity::kIsNotNullable, BufferSizeCheck::kDoNotCheck, -@@ -786,11 +790,12 @@ MaybeShared NativeValueTraits -- requires std::derived_from --NotShared NativeValueTraits>>::NativeValue( -- v8::Isolate* isolate, -- v8::Local value, -- ExceptionState& exception_state) { -+NotShared NativeValueTraits< -+ IDLNullable>, -+ typename std::enable_if_t::value>>:: -+ NativeValue(v8::Isolate* isolate, -+ v8::Local value, -+ ExceptionState& exception_state) { - return NativeValueImpl< - RecipeTrait>, ToDOMViewType, - Nullablity::kIsNullable, BufferSizeCheck::kCheck, -@@ -799,12 +804,13 @@ NotShared NativeValueTraits -- requires std::derived_from --NotShared NativeValueTraits>>::ArgumentValue( -- v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+NotShared NativeValueTraits< -+ IDLNullable>, -+ typename std::enable_if_t::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl< - RecipeTrait>, ToDOMViewType, - Nullablity::kIsNullable, BufferSizeCheck::kCheck, -@@ -815,11 +821,12 @@ NotShared NativeValueTraits -- requires std::derived_from --MaybeShared NativeValueTraits>>::NativeValue( -- v8::Isolate* isolate, -- v8::Local value, -- ExceptionState& exception_state) { -+MaybeShared NativeValueTraits< -+ IDLNullable>, -+ typename std::enable_if_t::value>>:: -+ NativeValue(v8::Isolate* isolate, -+ v8::Local value, -+ ExceptionState& exception_state) { - return NativeValueImpl>, - ToDOMViewType, - Nullablity::kIsNullable, BufferSizeCheck::kCheck, -@@ -828,12 +835,13 @@ MaybeShared NativeValueTraits -- requires std::derived_from --MaybeShared NativeValueTraits>>::ArgumentValue( -- v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+MaybeShared NativeValueTraits< -+ IDLNullable>, -+ typename std::enable_if_t::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl>, - ToDOMViewType, - Nullablity::kIsNullable, BufferSizeCheck::kCheck, -@@ -844,9 +852,9 @@ MaybeShared NativeValueTraits -- requires std::derived_from --MaybeShared --NativeValueTraits>>>:: -+MaybeShared NativeValueTraits< -+ IDLNullable>>, -+ typename std::enable_if_t::value>>:: - ArgumentValue(v8::Isolate* isolate, - int argument_index, - v8::Local value, -@@ -861,11 +869,13 @@ NativeValueTraits -- requires std::derived_from --T NativeValueTraits::ArgumentValue(v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+T NativeValueTraits::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl, ToFlexibleArrayBufferView, - Nullablity::kIsNotNullable, BufferSizeCheck::kCheck, - ResizableAllowance::kDisallowResizable, -@@ -877,12 +887,13 @@ T NativeValueTraits::ArgumentValue(v8 - // ArrayBufferView - - template -- requires std::derived_from --T NativeValueTraits>::ArgumentValue( -- v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+T NativeValueTraits, -+ typename std::enable_if_t< -+ std::is_base_of::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl< - RecipeTrait, ToFlexibleArrayBufferView, Nullablity::kIsNotNullable, - BufferSizeCheck::kDoNotCheck, ResizableAllowance::kDisallowResizable, -@@ -893,12 +904,13 @@ T NativeValueTraits -- requires std::derived_from --T NativeValueTraits>::ArgumentValue( -- v8::Isolate* isolate, -- int argument_index, -- v8::Local value, -- ExceptionState& exception_state) { -+T NativeValueTraits, -+ typename std::enable_if_t< -+ std::is_base_of::value>>:: -+ ArgumentValue(v8::Isolate* isolate, -+ int argument_index, -+ v8::Local value, -+ ExceptionState& exception_state) { - return ArgumentValueImpl, ToFlexibleArrayBufferView, - Nullablity::kIsNullable, BufferSizeCheck::kCheck, - ResizableAllowance::kDisallowResizable, ---- a/third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h -+++ b/third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h -@@ -5,9 +5,7 @@ - #ifndef THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_NATIVE_VALUE_TRAITS_IMPL_H_ - #define THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_NATIVE_VALUE_TRAITS_IMPL_H_ - --#include - #include --#include - - #include "third_party/blink/renderer/bindings/core/v8/idl_types.h" - #include "third_party/blink/renderer/bindings/core/v8/native_value_traits.h" -@@ -718,8 +716,9 @@ struct CORE_EXPORT NativeValueTraits< - }; - - template -- requires std::derived_from --struct NativeValueTraits { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t::value>> { - // NotShared or MaybeShared should be used instead. - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -731,8 +730,9 @@ struct NativeValueTraits { - }; - - template -- requires std::derived_from --struct NativeValueTraits> { -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t::value>> { - // NotShared or MaybeShared should be used instead. - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -744,8 +744,9 @@ struct NativeValueTraits> - }; - - template -- requires std::derived_from --struct NativeValueTraits> -+struct NativeValueTraits< -+ NotShared, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static NotShared NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -758,8 +759,9 @@ struct NativeValueTraits> - }; - - template -- requires std::derived_from --struct NativeValueTraits>> -+struct NativeValueTraits< -+ IDLNullable>, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static NotShared NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -772,8 +774,9 @@ struct NativeValueTraits -- requires std::derived_from --struct NativeValueTraits> -+struct NativeValueTraits< -+ MaybeShared, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static MaybeShared NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -786,8 +789,9 @@ struct NativeValueTraits> - }; - - template -- requires std::derived_from --struct NativeValueTraits>> -+struct NativeValueTraits< -+ IDLBufferSourceTypeNoSizeLimit>, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - // FlexibleArrayBufferView uses this in its implementation, so we cannot - // delete it. -@@ -802,8 +806,9 @@ struct NativeValueTraits -- requires std::derived_from --struct NativeValueTraits>> -+struct NativeValueTraits< -+ IDLNullable>, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static MaybeShared NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -816,9 +821,9 @@ struct NativeValueTraits -- requires std::derived_from - struct NativeValueTraits< -- IDLNullable>>> -+ IDLNullable>>, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - // BufferSourceTypeNoSizeLimit must be used only as arguments. - static MaybeShared NativeValue(v8::Isolate* isolate, -@@ -832,8 +837,11 @@ struct NativeValueTraits< - }; - - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t< -+ std::is_base_of::value>> -+ : public NativeValueTraitsBase { - // FlexibleArrayBufferView must be used only as arguments. - static T NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -846,8 +854,10 @@ struct NativeValueTraits : public Nat - }; - - template -- requires std::derived_from --struct NativeValueTraits> -+struct NativeValueTraits< -+ IDLBufferSourceTypeNoSizeLimit, -+ typename std::enable_if_t< -+ std::is_base_of::value>> - : public NativeValueTraitsBase { - // BufferSourceTypeNoSizeLimit and FlexibleArrayBufferView must be used only - // as arguments. -@@ -862,8 +872,11 @@ struct NativeValueTraits -- requires std::derived_from --struct NativeValueTraits> : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t< -+ std::is_base_of::value>> -+ : public NativeValueTraitsBase { - // FlexibleArrayBufferView must be used only as arguments. - static T NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -1199,8 +1212,9 @@ NativeValueTraits>::Nativ - } - - template -- requires NativeValueTraits>::has_null_value --struct NativeValueTraits>> -+struct NativeValueTraits>, -+ typename std::enable_if_t< -+ NativeValueTraits>::has_null_value>> - : public NativeValueTraitsBase>*> { - using ImplType = typename NativeValueTraits>::ImplType*; - -@@ -1276,8 +1290,9 @@ struct NativeValueTraits> - : public NativeValueTraits> {}; - - template -- requires NativeValueTraits>::has_null_value --struct NativeValueTraits>> -+struct NativeValueTraits>, -+ typename std::enable_if_t< -+ NativeValueTraits>::has_null_value>> - : public NativeValueTraits>> {}; - - // Record types -@@ -1407,8 +1422,10 @@ struct NativeValueTraits - - // Callback function types - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t::value>> -+ : public NativeValueTraitsBase { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1431,8 +1448,9 @@ struct NativeValueTraits : public Nat - }; - - template -- requires std::derived_from --struct NativeValueTraits> -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -1461,8 +1479,10 @@ struct NativeValueTraits> - - // Callback interface types - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t::value>> -+ : public NativeValueTraitsBase { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1486,8 +1506,9 @@ struct NativeValueTraits : public Nat - - // Interface types - template -- requires std::derived_from --struct NativeValueTraits> -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -1516,8 +1537,11 @@ struct NativeValueTraits> - - // Dictionary types - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t< -+ std::is_base_of::value>> -+ : public NativeValueTraitsBase { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1528,11 +1552,14 @@ struct NativeValueTraits : public Nat - // We don't support nullable dictionary types in general since it's quite - // confusing and often misused. - template -- requires std::derived_from && -- (std::same_as || -- std::same_as || -- std::same_as) --struct NativeValueTraits> : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t< -+ std::is_base_of::value && -+ (std::is_same::value || -+ std::is_same::value || -+ std::is_same::value)>> -+ : public NativeValueTraitsBase { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1544,8 +1571,11 @@ struct NativeValueTraits> - - // Enumeration types - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t< -+ std::is_base_of::value>> -+ : public NativeValueTraitsBase { - static T NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1555,8 +1585,10 @@ struct NativeValueTraits : public Nat - - // Interface types - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t::value>> -+ : public NativeValueTraitsBase { - // This signifies that CreateIDLSequenceFromV8ArraySlow() may apply - // certain optimization based on assumptions about `NativeValue()` - // implementation below. For subclasses of ScriptWrappable that have -@@ -1593,8 +1625,9 @@ struct NativeValueTraits : public Nat - }; - - template -- requires std::derived_from --struct NativeValueTraits> -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t::value>> - : public NativeValueTraitsBase> { - static inline T* NativeValue(v8::Isolate* isolate, - v8::Local value, -@@ -1629,8 +1662,10 @@ struct NativeValueTraits> - }; - - template -- requires std::derived_from --struct NativeValueTraits : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ T, -+ typename std::enable_if_t::value>> -+ : public NativeValueTraitsBase { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1646,8 +1681,10 @@ struct NativeValueTraits : public Nat - }; - - template -- requires std::derived_from --struct NativeValueTraits> : public NativeValueTraitsBase { -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t::value>> -+ : public NativeValueTraitsBase { - static T* NativeValue(v8::Isolate* isolate, - v8::Local value, - ExceptionState& exception_state) { -@@ -1668,8 +1705,9 @@ struct NativeValueTraits> - - // Nullable types - template -- requires(!NativeValueTraits::has_null_value) --struct NativeValueTraits> -+struct NativeValueTraits< -+ IDLNullable, -+ typename std::enable_if_t::has_null_value>> - : public NativeValueTraitsBase> { - // https://webidl.spec.whatwg.org/#es-nullable-type - using ImplType = -@@ -1701,8 +1739,9 @@ struct NativeValueTraits -- requires std::is_arithmetic_v::ImplType> --struct NativeValueTraits> -+struct NativeValueTraits, -+ typename std::enable_if_t::ImplType>::value>> - : public NativeValueTraitsBase::ImplType> { - using ImplType = typename NativeValueTraits::ImplType; - -@@ -1724,8 +1763,9 @@ struct NativeValueTraits> - }; - - template -- requires std::is_pointer_v::ImplType> --struct NativeValueTraits> -+struct NativeValueTraits, -+ typename std::enable_if_t::ImplType>::value>> - : public NativeValueTraitsBase::ImplType> { - using ImplType = typename NativeValueTraits::ImplType; - diff --git a/chromium-125-el-NativeValueTraits-p2.patch b/chromium-125-el-NativeValueTraits-p2.patch deleted file mode 100644 index 477378b..0000000 --- a/chromium-125-el-NativeValueTraits-p2.patch +++ /dev/null @@ -1,144 +0,0 @@ -revert as workaround for compiler error with old clang < 17 - -commit ce71348a09f6689dd01a68db64b172191d0182d8 -Author: Andrey Kosyakov -Date: Thu Dec 21 18:38:38 2023 +0000 - - [bindings] Use v8::Array::Iterate for converting script wrappables - - - This changes CreateIDLSequenceFromV8Array to use the new - v8::Array::Iterate() operation. - This speeds up the "execBundles" part of the microbenchmark - at crbug.com/dawn/1858 by around 3x. - This depends on crrev.com/c/4846594 landing (and rolling) first. - - This is a slight re-work of https://crrev.com/c/4847447/3, - originally by jkummerow@chromium.org - - Bug: v8:14218, dawn:1858, 1511239 - Change-Id: Ia266556d05b4d53e6942e12609d1c08882b4ff0f - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5132129 - Commit-Queue: Andrey Kosyakov - Reviewed-by: Yuki Shiino - Cr-Commit-Position: refs/heads/main@{#1240236} - ---- a/third_party/blink/renderer/bindings/core/v8/native_value_traits.h 2024-05-13 20:23:41.165774029 +0200 -+++ b/third_party/blink/renderer/bindings/core/v8/native_value_traits.h 2024-05-13 20:27:58.994663485 +0200 -@@ -110,12 +110,6 @@ struct NativeValueTraitsBase< - static constexpr bool has_null_value = - bindings::NativeValueTraitsHasNullValue::value; - -- // This should only be true for certain subclasses of ScriptWrappable -- // that satisfy the assumptions of CreateIDLSequenceFromV8ArraySlow() with -- // regards to how NativeValue() is implemented for the underlying type. -- static constexpr bool supports_scriptwrappable_specific_fast_array_iteration = -- false; -- - template - static decltype(auto) ArgumentValue(v8::Isolate* isolate, - int argument_index, ---- a/third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h 2024-05-13 20:23:47.295915837 +0200 -+++ b/third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h 2024-05-13 20:27:21.649808564 +0200 -@@ -1050,87 +1050,11 @@ CreateIDLSequenceFromV8ArraySlow(v8::Iso - return {}; - } - -- using ResultType = typename NativeValueTraits>::ImplType; -- ResultType result; -+ typename NativeValueTraits>::ImplType result; - result.ReserveInitialCapacity(length); - v8::Local current_context = isolate->GetCurrentContext(); - v8::TryCatch try_block(isolate); - -- // Fast path -- we're creating a sequence of script wrappables, which can be -- // done by directly getting underlying object as long as array types are -- // homogeneous. With ScriptWrappables, we don't expect to enter JS during -- // iteration, so we can rely on v8::Array::Iterate() which is much faster than -- // iterating an array on the client side of the v8. Additionally, for most -- // subsptyes of ScriptWrappables, we can speed up type checks (see more on -- // that below next to supports_scriptwrappable_specific_fast_array_iteration -- // check. -- if constexpr (std::is_base_of_v) { -- struct CallbackData { -- STACK_ALLOCATED(); -- -- public: -- v8::Isolate* isolate; -- v8::TypecheckWitness witness; -- ResultType& result; -- ExceptionState& exception_state; -- CallbackData(v8::Isolate* isolate, -- ResultType& result, -- ExceptionState& exception_state) -- : isolate(isolate), -- witness(isolate), -- result(result), -- exception_state(exception_state) {} -- }; -- -- CallbackData callback_data(isolate, result, exception_state); -- v8::Array::IterationCallback callback = [](uint32_t index, -- v8::Local v8_element, -- void* data) { -- CallbackData* callback_data = reinterpret_cast(data); -- v8::Isolate* isolate = callback_data->isolate; -- // 3.4. Initialize Si to the result of converting nextItem to an IDL value -- // of type T. -- v8::TypecheckWitness& witness = callback_data->witness; -- // We can speed up type check by taking advantage of V8's type witness, -- // provided traits' NativeValue implementation doesn't have additional -- // logic beyond checking the type and calling ToScriptWrappable(). -- if constexpr ( -- NativeValueTraits< -- T>::supports_scriptwrappable_specific_fast_array_iteration) { -- if (witness.Matches(v8_element)) { -- auto&& value = ToScriptWrappable(isolate, v8_element.As()) -- ->template ToImpl(); -- callback_data->result.push_back(std::move(value)); -- return v8::Array::CallbackResult::kContinue; -- } -- } -- auto&& element = NativeValueTraits::NativeValue( -- isolate, v8_element, callback_data->exception_state); -- if (callback_data->exception_state.HadException()) { -- // It doesn't matter whether we return `kException` or `kBreak` here, -- // as that only affects the return value of `v8_array->Iterate()`, -- // which we are ignoring. -- return v8::Array::CallbackResult::kException; -- } -- if constexpr ( -- NativeValueTraits< -- T>::supports_scriptwrappable_specific_fast_array_iteration) { -- witness.Update(v8_element); -- } -- callback_data->result.push_back(std::move(element)); -- return v8::Array::CallbackResult::kContinue; -- }; -- if (!v8_array->Iterate(current_context, callback, &callback_data) -- .IsJust()) { -- if (try_block.HasCaught()) { -- exception_state.RethrowV8Exception(try_block.Exception()); -- } -- DCHECK(exception_state.HadException()); -- return {}; -- } -- return result; -- } -- - // Array length may change if array is mutated during iteration. - for (uint32_t i = 0; i < v8_array->Length(); ++i) { - v8::Local v8_element; -@@ -1590,12 +1514,6 @@ struct NativeValueTraits< - T, - typename std::enable_if_t::value>> - : public NativeValueTraitsBase { -- // This signifies that CreateIDLSequenceFromV8ArraySlow() may apply -- // certain optimization based on assumptions about `NativeValue()` -- // implementation below. For subclasses of ScriptWrappable that have -- // different implementation of NativeValue(), this should remain false. -- static constexpr bool supports_scriptwrappable_specific_fast_array_iteration = -- true; - - static inline T* NativeValue(v8::Isolate* isolate, - v8::Local value, diff --git a/chromium-126-clang16-buildflags.patch b/chromium-126-clang16-buildflags.patch deleted file mode 100644 index cba25fd..0000000 --- a/chromium-126-clang16-buildflags.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -up chromium-126.0.6478.26/build/config/compiler/BUILD.gn.clang16-buildflag chromium-126.0.6478.26/build/config/compiler/BUILD.gn ---- chromium-126.0.6478.26/build/config/compiler/BUILD.gn.clang16-buildflag 2024-06-02 14:55:55.298242780 +0200 -+++ chromium-126.0.6478.26/build/config/compiler/BUILD.gn 2024-06-02 15:04:43.839882669 +0200 -@@ -1889,9 +1889,6 @@ config("default_warnings") { - - # TODO(crbug.com/40286317): Evaluate and possibly enable. - "-Wno-vla-extension", -- -- # TODO(crbug.com/40284799): Fix and re-enable. -- "-Wno-thread-safety-reference-return", - ] - - cflags_cc += [ -@@ -1902,7 +1899,7 @@ config("default_warnings") { - if (!is_nacl) { - cflags_cc += [ - # TODO(crbug.com/41486292): Fix and re-enable. -- "-Wno-c++11-narrowing-const-reference", -+ "-Wno-c++11-narrowing", - ] - } - } diff --git a/chromium-126-clang16-disable-auto-upgrade-debug-info.patch b/chromium-126-clang16-disable-auto-upgrade-debug-info.patch deleted file mode 100644 index f791596..0000000 --- a/chromium-126-clang16-disable-auto-upgrade-debug-info.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-126.0.6478.26/build/config/compiler/BUILD.gn.clang16-disable-auto-upgrade-debug-info chromium-126.0.6478.26/build/config/compiler/BUILD.gn ---- chromium-126.0.6478.26/build/config/compiler/BUILD.gn.clang16-disable-auto-upgrade-debug-info 2024-06-02 18:00:17.914641767 +0200 -+++ chromium-126.0.6478.26/build/config/compiler/BUILD.gn 2024-06-02 18:02:32.153544892 +0200 -@@ -780,7 +780,7 @@ config("compiler") { - - # We only use one version of LLVM within a build so there's no need to - # upgrade debug info, which can be expensive since it runs the verifier. -- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ] -+ ldflags += [ "" ] - } - - # TODO(crbug.com/335365324): Enable on other platforms. diff --git a/chromium.spec b/chromium.spec index 501f034..a84931e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -377,21 +377,9 @@ Patch150: chromium-124-qt6.patch Patch305: chromium-124-arm64-memory_tagging.patch Patch306: chromium-126-ifunc-header.patch -# compiler errors on el7/el8 and f38 (clang <17) -Patch307: chromium-125-el-NativeValueTraits-p1.patch -Patch308: chromium-125-el-NativeValueTraits-p2.patch - # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch -# rust is old, function or associated item not found in `OsStr` -Patch313: chromium-123-rust-clap_lex.patch - -Patch314: chromium-126-clang16-buildflags.patch - -# remove ldflags -Wl,-mllvm,-disable-auto-upgrade-debug-info which is not supported -Patch315: chromium-126-clang16-disable-auto-upgrade-debug-info.patch - # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch @@ -1125,19 +1113,8 @@ Qt6 UI for chromium. %endif %endif -%if 0%{?rhel} && 0%{?rhel} < 9 || 0%{?fedora} && 0%{?fedora} < 39 -%patch -P307 -p1 -b .el-NativeValueTraits-p1 -%patch -P308 -p1 -b .el-NativeValueTraits -%patch -P314 -p1 -b .clang16-buildflag -%patch -P315 -p1 -b .clang16-disable-auto-upgrade-debug-info -%endif - %patch -P312 -p1 -b .fstack-protector-strong -%if 0%{?rhel} && 0%{?rhel} < 10 -%patch -P313 -p1 -b .rust-clap_lex -%endif - %if 0%{?rhel} >= 8 || 0%{?fedora} %patch -P316 -p1 -b .clang-build-flags %endif From 0613d4b2fe4b95a0d6b1a7ec56afba98d35e4980 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 12:02:46 +0200 Subject: [PATCH 012/244] drop el7 stuff --- chromium.spec | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/chromium.spec b/chromium.spec index a84931e..7668763 100644 --- a/chromium.spec +++ b/chromium.spec @@ -510,25 +510,17 @@ Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuil BuildRequires: golang-github-evanw-esbuild %endif -%if 0%{?rhel} == 7 -BuildRequires: rh-python38 -%endif - %if %{clang} -%if 0%{?rhel} == 7 -BuildRequires: llvm-toolset-%{llvm_toolset_version} -%else BuildRequires: clang BuildRequires: clang-tools-extra BuildRequires: llvm BuildRequires: lld -%endif # needs for libatomic -%if 0%{?rhel} >= 7 +%if 0%{?rhel} >= 8 BuildRequires: %{toolset}-%{dts_version}-libatomic-devel %endif %else -%if 0%{?rhel} == 7 || 0%{?rhel} == 8 +%if 0%{?rhel} == 8 BuildRequires: %{toolset}-%{dts_version}-binutils, %{toolset}-%{dts_version}-libatomic-devel %endif %if 0%{?fedora} || 0%{?rhel} > 8 @@ -589,11 +581,7 @@ BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) %endif -%if 0%{?rhel} == 7 -BuildRequires: llvm-toolset-%{llvm_toolset_version}-compiler-rt -%else BuildRequires: compiler-rt -%endif %if ! %{bundleharfbuzz} BuildRequires: harfbuzz-devel >= 2.4.0 @@ -839,18 +827,13 @@ Requires: u2f-hidraw-policy Requires: chromium-common%{_isa} = %{version}-%{release} -# rhel 7: x86_64 -# rhel 8 or newer: x86_64, aarch64 -# fedora 38 or newer: x86_64, aarch64, ppc64le -%if 0%{?rhel} == 7 -ExclusiveArch: x86_64 -%else +# rhel 8 or newer and fedora < 40: x86_64, aarch64 +# fedora 40 or newer: x86_64, aarch64, ppc64le %if 0%{?fedora} >= 40 ExclusiveArch: x86_64 aarch64 ppc64le %else ExclusiveArch: x86_64 aarch64 %endif -%endif # Bundled bits (I'm sure I've missed some) Provides: bundled(angle) = 2422 From f4cfc9c758926011dbe28b3603e5e6a676793744 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 12:04:14 +0200 Subject: [PATCH 013/244] drop el7 stuff --- chromium-124-typename.patch | 429 ------------------------------------ 1 file changed, 429 deletions(-) delete mode 100644 chromium-124-typename.patch diff --git a/chromium-124-typename.patch b/chromium-124-typename.patch deleted file mode 100644 index a4c7364..0000000 --- a/chromium-124-typename.patch +++ /dev/null @@ -1,429 +0,0 @@ -diff -up chromium-124.0.6367.118/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h.typename chromium-124.0.6367.118/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h ---- chromium-124.0.6367.118/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h.typename 2024-05-01 01:46:40.000000000 +0200 -+++ chromium-124.0.6367.118/base/allocator/partition_allocator/src/partition_alloc/internal_allocator.h 2024-05-05 16:32:57.377654043 +0200 -@@ -26,7 +26,7 @@ PartitionRoot& InternalAllocatorRoot(); - - // A class that meets C++ named requirements, Allocator. - template --InternalAllocator::value_type* InternalAllocator::allocate( -+typename InternalAllocator::value_type* InternalAllocator::allocate( - std::size_t count) { - PA_CHECK(count <= - std::numeric_limits::max() / sizeof(value_type)); -diff -up chromium-124.0.6367.118/base/containers/heap_array.h.typename chromium-124.0.6367.118/base/containers/heap_array.h ---- chromium-124.0.6367.118/base/containers/heap_array.h.typename 2024-05-01 01:46:40.000000000 +0200 -+++ chromium-124.0.6367.118/base/containers/heap_array.h 2024-05-05 16:32:57.377654043 +0200 -@@ -32,8 +32,8 @@ class TRIVIAL_ABI GSL_OWNER HeapArray { - static_assert(!std::is_reference_v, - "HeapArray cannot hold reference types"); - -- using iterator = base::span::iterator; -- using const_iterator = base::span::iterator; -+ using iterator = typename base::span::iterator; -+ using const_iterator = typename base::span::iterator; - - // Allocates initialized memory capable of holding `size` elements. No memory - // is allocated for zero-sized arrays. -diff -up chromium-124.0.6367.118/base/containers/map_util.h.typename chromium-124.0.6367.118/base/containers/map_util.h ---- chromium-124.0.6367.118/base/containers/map_util.h.typename 2024-05-01 01:46:40.000000000 +0200 -+++ chromium-124.0.6367.118/base/containers/map_util.h 2024-05-05 16:36:15.062228596 +0200 -@@ -44,7 +44,7 @@ constexpr internal::MappedType* Fin - template >::element_type> -+ typename std::pointer_traits>::element_type> - constexpr const MappedElementType* FindPtrOrNull(const Map& map, - const Key& key) { - auto it = map.find(key); -@@ -60,7 +60,7 @@ constexpr const MappedElementType* FindP - template >::element_type> -+ typename std::pointer_traits>::element_type> - constexpr MappedElementType* FindPtrOrNull(Map& map, const Key& key) { - auto it = map.find(key); - return it != map.end() ? base::to_address(it->second) : nullptr; -diff -up chromium-124.0.6367.118/base/functional/bind_internal.h.typename chromium-124.0.6367.118/base/functional/bind_internal.h ---- chromium-124.0.6367.118/base/functional/bind_internal.h.typename 2024-05-01 01:46:40.000000000 +0200 -+++ chromium-124.0.6367.118/base/functional/bind_internal.h 2024-05-05 16:32:57.375653992 +0200 -@@ -1505,11 +1505,11 @@ template - struct ParamCanBeBound { - private: -- using UnwrappedParam = BindArgument::template ForwardedAs< -+ using UnwrappedParam = typename BindArgument::template ForwardedAs< - Unwrapped>::template ToParamWithType; -- using ParamStorage = BindArgument::template ToParamWithType< -+ using ParamStorage = typename BindArgument::template ToParamWithType< - Param>::template StoredAs; -- using BoundStorage = -+ using BoundStorage = typename - BindArgument::template BoundAs::template StoredAs; - - template - class FunctionRef { - template ::RunType> -+ typename RunType = typename internal::FunctorTraits::RunType> - static constexpr bool kCompatibleFunctor = - std::convertible_to, R> && - std::same_as, internal::TypeList>; -diff -up chromium-124.0.6367.118/base/types/fixed_array.h.typename chromium-124.0.6367.118/base/types/fixed_array.h ---- chromium-124.0.6367.118/base/types/fixed_array.h.typename 2024-05-01 01:46:41.000000000 +0200 -+++ chromium-124.0.6367.118/base/types/fixed_array.h 2024-05-05 16:32:57.378654068 +0200 -@@ -27,8 +27,8 @@ template { - public: - using absl::FixedArray::FixedArray; -- explicit FixedArray(absl::FixedArray::size_type n, -- const absl::FixedArray::allocator_type& a = -+ explicit FixedArray(typename absl::FixedArray::size_type n, -+ const typename absl::FixedArray::allocator_type& a = - typename absl::FixedArray::allocator_type()) - : FixedArray(n, T(), a) {} - }; -diff -up chromium-124.0.6367.118/chrome/browser/download/bubble/download_bubble_update_service.cc.typename chromium-124.0.6367.118/chrome/browser/download/bubble/download_bubble_update_service.cc ---- chromium-124.0.6367.118/chrome/browser/download/bubble/download_bubble_update_service.cc.typename 2024-05-01 01:46:45.000000000 +0200 -+++ chromium-124.0.6367.118/chrome/browser/download/bubble/download_bubble_update_service.cc 2024-05-05 16:32:57.375653992 +0200 -@@ -95,7 +95,7 @@ ItemSortKey GetSortKey(const Item& item) - // Helper to get an iterator to the last element in the cache. The cache - // must not be empty. - template --SortedItems::const_iterator GetLastIter(const SortedItems& cache) { -+typename SortedItems::const_iterator GetLastIter(const SortedItems& cache) { - CHECK(!cache.empty()); - auto it = cache.end(); - return std::prev(it); -@@ -1179,9 +1179,9 @@ bool DownloadBubbleUpdateService::CacheM - } - - template --SortedItems::iterator -+typename SortedItems::iterator - DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter( -- SortedItems::iterator iter, -+ typename SortedItems::iterator iter, - SortedItems& cache, - IterMap& iter_map) { - CHECK(iter != cache.end()); -diff -up chromium-124.0.6367.118/chrome/browser/web_applications/commands/internal/command_internal.h.typename chromium-124.0.6367.118/chrome/browser/web_applications/commands/internal/command_internal.h ---- chromium-124.0.6367.118/chrome/browser/web_applications/commands/internal/command_internal.h.typename 2024-05-01 01:46:48.000000000 +0200 -+++ chromium-124.0.6367.118/chrome/browser/web_applications/commands/internal/command_internal.h 2024-05-05 16:32:57.378654068 +0200 -@@ -121,7 +121,7 @@ class CommandBase { - template - class CommandWithLock : public CommandBase { - public: -- using LockDescription = LockType::LockDescription; -+ using LockDescription = typename LockType::LockDescription; - explicit CommandWithLock(const std::string& name, - LockDescription initial_lock_request); - -diff -up chromium-124.0.6367.118/chrome/browser/web_applications/commands/web_app_command.h.typename chromium-124.0.6367.118/chrome/browser/web_applications/commands/web_app_command.h ---- chromium-124.0.6367.118/chrome/browser/web_applications/commands/web_app_command.h.typename 2024-05-01 01:46:48.000000000 +0200 -+++ chromium-124.0.6367.118/chrome/browser/web_applications/commands/web_app_command.h 2024-05-05 16:32:57.378654068 +0200 -@@ -106,7 +106,7 @@ class WebAppLockManager; - template - class WebAppCommand : public internal::CommandWithLock { - public: -- using LockDescription = LockType::LockDescription; -+ using LockDescription = typename LockType::LockDescription; - using CallbackType = base::OnceCallback; - using ShutdownArgumentsTuple = std::tuple...>; - -diff -up chromium-124.0.6367.118/chrome/browser/web_applications/web_app_command_scheduler.h.typename chromium-124.0.6367.118/chrome/browser/web_applications/web_app_command_scheduler.h ---- chromium-124.0.6367.118/chrome/browser/web_applications/web_app_command_scheduler.h.typename 2024-05-01 01:46:48.000000000 +0200 -+++ chromium-124.0.6367.118/chrome/browser/web_applications/web_app_command_scheduler.h 2024-05-05 16:32:57.379654093 +0200 -@@ -369,7 +369,7 @@ class WebAppCommandScheduler { - // command system. - template - void ScheduleCallback(const std::string& operation_name, -- LockType::LockDescription lock_description, -+ typename LockType::LockDescription lock_description, - CallbackCommand callback, - base::OnceClosure on_complete, - const base::Location& location = FROM_HERE) { -@@ -387,7 +387,7 @@ class WebAppCommandScheduler { - typename CallbackReturnValue = std::decay_t> - void ScheduleCallbackWithResult( - const std::string& operation_name, -- LockType::LockDescription lock_description, -+ typename LockType::LockDescription lock_description, - CallbackCommand callback, - base::OnceCallback on_complete, - CallbackReturnValue arg_for_shutdown, -diff -up chromium-124.0.6367.118/components/optimization_guide/core/model_execution/model_execution_util.h.typename chromium-124.0.6367.118/components/optimization_guide/core/model_execution/model_execution_util.h ---- chromium-124.0.6367.118/components/optimization_guide/core/model_execution/model_execution_util.h.typename 2024-05-01 01:46:52.000000000 +0200 -+++ chromium-124.0.6367.118/components/optimization_guide/core/model_execution/model_execution_util.h 2024-05-05 16:32:57.376654018 +0200 -@@ -26,7 +26,7 @@ void SetExecutionRequestTemplate( - - // Request is set by the feature and should always be typed. - auto typed_request = -- static_cast(request_metadata); -+ static_cast(request_metadata); - *(logging_data->mutable_request_data()) = typed_request; - } - -diff -up chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_log_entry.h.typename chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_log_entry.h ---- chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_log_entry.h.typename 2024-05-01 01:46:52.000000000 +0200 -+++ chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_log_entry.h 2024-05-05 16:32:57.376654018 +0200 -@@ -33,7 +33,7 @@ class ModelQualityLogEntry { - } - - template -- FeatureType::Quality* quality_data() { -+ typename FeatureType::Quality* quality_data() { - return FeatureType::GetLoggingData(*log_ai_data_request_) - ->mutable_quality_data(); - } -diff -up chromium-124.0.6367.118/components/optimization_guide/core/tflite_model_executor.h.typename chromium-124.0.6367.118/components/optimization_guide/core/tflite_model_executor.h ---- chromium-124.0.6367.118/components/optimization_guide/core/tflite_model_executor.h.typename 2024-05-01 01:46:52.000000000 +0200 -+++ chromium-124.0.6367.118/components/optimization_guide/core/tflite_model_executor.h 2024-05-05 16:32:57.379654093 +0200 -@@ -242,7 +242,7 @@ class TFLiteModelExecutor : public Model - void SendForBatchExecution( - BatchExecutionCallback callback_on_complete, - base::TimeTicks start_time, -- ModelExecutor::ConstRefInputVector inputs) -+ typename ModelExecutor::ConstRefInputVector inputs) - override { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -264,7 +264,7 @@ class TFLiteModelExecutor : public Model - // Starts the synchronous execution of the model. Returns model outputs. - // Model needs to be loaded. Synchronous calls do not load or unload model. - std::vector> SendForBatchExecutionSync( -- ModelExecutor::ConstRefInputVector inputs) -+ typename ModelExecutor::ConstRefInputVector inputs) - override { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -422,7 +422,7 @@ class TFLiteModelExecutor : public Model - // executes it on the model execution thread. - void LoadModelFileAndBatchExecute( - BatchExecutionCallback callback_on_complete, -- ModelExecutor::ConstRefInputVector inputs) { -+ typename ModelExecutor::ConstRefInputVector inputs) { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - -@@ -439,7 +439,7 @@ class TFLiteModelExecutor : public Model - - // Batch executes the loaded model for inputs. - void BatchExecuteLoadedModel( -- ModelExecutor::ConstRefInputVector inputs, -+ typename ModelExecutor::ConstRefInputVector inputs, - std::vector>* outputs) { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -499,7 +499,7 @@ class TFLiteModelExecutor : public Model - // Unloads the model if needed. - void BatchExecuteLoadedModelAndRunCallback( - BatchExecutionCallback callback_on_complete, -- ModelExecutor::ConstRefInputVector inputs, -+ typename ModelExecutor::ConstRefInputVector inputs, - ExecutionStatus execution_status) { - DCHECK(execution_task_runner_->RunsTasksInCurrentSequence()); - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -diff -up chromium-124.0.6367.118/components/supervised_user/core/browser/proto_fetcher.h.typename chromium-124.0.6367.118/components/supervised_user/core/browser/proto_fetcher.h ---- chromium-124.0.6367.118/components/supervised_user/core/browser/proto_fetcher.h.typename 2024-05-01 01:46:54.000000000 +0200 -+++ chromium-124.0.6367.118/components/supervised_user/core/browser/proto_fetcher.h 2024-05-05 16:32:57.379654093 +0200 -@@ -424,7 +424,7 @@ class RetryingFetcherImpl final : public - RetryingFetcherImpl(const RetryingFetcherImpl&) = delete; - RetryingFetcherImpl& operator=(const RetryingFetcherImpl&) = delete; - -- void Start(ProtoFetcher::Callback callback) override { -+ void Start(typename ProtoFetcher::Callback callback) override { - callback_ = std::move(callback); - Retry(); - } -@@ -469,7 +469,7 @@ class RetryingFetcherImpl final : public - } - - // Client callback. -- TypedProtoFetcher::Callback callback_; -+ typename TypedProtoFetcher::Callback callback_; - - // Retry controls. - base::OneShotTimer timer_; -@@ -490,7 +490,7 @@ class ParallelFetchManager { - // Deferred fetcher is required because it should be started after it is - // stored internally. - using Fetcher = ProtoFetcher; -- using KeyType = base::IDMap>::KeyType; -+ using KeyType = typename base::IDMap>::KeyType; - - public: - // Provides fresh instances of a deferred fetcher for each fetch. -@@ -506,7 +506,7 @@ class ParallelFetchManager { - - // Starts the fetch. Underlying fetcher is stored internally, and will be - // cleaned up after finish or when this manager is destroyed. -- void Fetch(const Request& request, Fetcher::Callback callback) { -+ void Fetch(const Request& request, typename Fetcher::Callback callback) { - CHECK(callback) << "Use base::DoNothing() instead of empty callback."; - KeyType key = requests_in_flight_.Add(MakeFetcher(request)); - requests_in_flight_.Lookup(key)->Start( -diff -up chromium-124.0.6367.118/mojo/public/cpp/bindings/array_traits.h.typename chromium-124.0.6367.118/mojo/public/cpp/bindings/array_traits.h ---- chromium-124.0.6367.118/mojo/public/cpp/bindings/array_traits.h.typename 2024-05-01 01:46:59.000000000 +0200 -+++ chromium-124.0.6367.118/mojo/public/cpp/bindings/array_traits.h 2024-05-05 16:32:57.376654018 +0200 -@@ -90,7 +90,7 @@ template - { c[i] } -> std::same_as; - } - struct ArrayTraits { -- using Element = Container::value_type; -+ using Element = typename Container::value_type; - - // vector-like containers have no built-in null. - static bool IsNull(const Container& c) { return false; } -diff -up chromium-124.0.6367.118/mojo/public/cpp/bindings/type_converter.h.typename chromium-124.0.6367.118/mojo/public/cpp/bindings/type_converter.h ---- chromium-124.0.6367.118/mojo/public/cpp/bindings/type_converter.h.typename 2024-05-01 01:46:59.000000000 +0200 -+++ chromium-124.0.6367.118/mojo/public/cpp/bindings/type_converter.h 2024-05-05 16:32:57.377654043 +0200 -@@ -127,7 +127,7 @@ using VecValueType = typename Vec::value - - template - using VecPtrLikeUnderlyingValueType = -- std::pointer_traits>::element_type; -+ typename std::pointer_traits>::element_type; - - } // namespace internal - -diff -up chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/async_iterable.h.typename chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/async_iterable.h ---- chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/async_iterable.h.typename 2024-05-05 16:32:57.376654018 +0200 -+++ chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/async_iterable.h 2024-05-05 16:39:07.015158335 +0200 -@@ -245,7 +245,7 @@ class PairAsyncIterable { - private: - virtual IterationSource* CreateIterationSource( - ScriptState* script_state, -- IterationSource::Kind kind, -+ typename IterationSource::Kind kind, - InitArgs... args, - ExceptionState& exception_state) = 0; - }; -@@ -291,7 +291,7 @@ class ValueAsyncIterable { - private: - virtual IterationSource* CreateIterationSource( - ScriptState* script_state, -- IterationSource::Kind kind, -+ typename IterationSource::Kind kind, - InitArgs... args, - ExceptionState& exception_state) = 0; - }; -diff -up chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_property.h.typename chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_property.h ---- chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_property.h.typename 2024-05-01 01:47:03.000000000 +0200 -+++ chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_property.h 2024-05-05 16:32:57.380654118 +0200 -@@ -173,7 +173,7 @@ class ScriptPromiseProperty final - template - requires std::derived_from - static T DefaultPromiseResultValue() { -- return T(static_cast(0)); -+ return T(static_cast(0)); - } - - State state_ = kPending; -diff -up chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h.typename chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h ---- chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h.typename 2024-05-01 01:47:03.000000000 +0200 -+++ chromium-124.0.6367.118/third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h 2024-05-05 16:32:57.380654118 +0200 -@@ -389,7 +389,7 @@ class ScriptPromiseResolverTyped : publi - - private: - using TypedResolver = -- ScriptPromiseTyped::InternalResolverTyped; -+ typename ScriptPromiseTyped::InternalResolverTyped; - }; - - } // namespace blink -diff -up chromium-124.0.6367.118/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.typename chromium-124.0.6367.118/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc ---- chromium-124.0.6367.118/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc.typename 2024-05-01 01:47:04.000000000 +0200 -+++ chromium-124.0.6367.118/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc 2024-05-05 16:32:57.376654018 +0200 -@@ -210,7 +210,7 @@ class HTMLFastPathParser { - using Span = base::span; - using USpan = base::span; - // 32 matches that used by HTMLToken::Attribute. -- typedef std::conditional, -+ typedef typename std::conditional, - UCharLiteralBuffer<32>, - LCharLiteralBuffer<32>>::type LiteralBufferType; - static_assert(std::is_same_v || std::is_same_v); -diff -up chromium-124.0.6367.118/third_party/blink/renderer/platform/wtf/hash_table.h.typename chromium-124.0.6367.118/third_party/blink/renderer/platform/wtf/hash_table.h ---- chromium-124.0.6367.118/third_party/blink/renderer/platform/wtf/hash_table.h.typename 2024-05-01 01:47:05.000000000 +0200 -+++ chromium-124.0.6367.118/third_party/blink/renderer/platform/wtf/hash_table.h 2024-05-05 16:32:57.378654068 +0200 -@@ -2006,7 +2006,7 @@ struct HashTableConstIteratorAdapter { - static_assert(!IsTraceable::value); - - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -@@ -2058,7 +2058,7 @@ struct HashTableConstIteratorAdapter< - - public: - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -@@ -2112,7 +2112,7 @@ struct HashTableIteratorAdapter { - static_assert(!IsTraceable::value); - - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -@@ -2160,7 +2160,7 @@ struct HashTableIteratorAdapter< - - public: - using iterator_category = std::bidirectional_iterator_tag; -- using value_type = HashTableType::ValueType; -+ using value_type = typename HashTableType::ValueType; - using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; -diff -up chromium-124.0.6367.118/base/containers/to_vector.h.me chromium-124.0.6367.118/base/containers/to_vector.h ---- chromium-124.0.6367.118/base/containers/to_vector.h.me 2024-05-06 12:39:58.312899455 +0200 -+++ chromium-124.0.6367.118/base/containers/to_vector.h 2024-05-06 12:40:22.014635715 +0200 -@@ -30,7 +30,7 @@ template > - auto ToVector(Range&& range, Proj proj = {}) { - using ProjectedType = -- std::projected, Proj>::value_type; -+ typename std::projected, Proj>::value_type; - std::vector container; - container.reserve(std::size(range)); - ranges::transform(std::forward(range), std::back_inserter(container), -diff -up chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_util.h.me chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_util.h ---- chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_util.h.me 2024-05-06 20:13:29.067800309 +0200 -+++ chromium-124.0.6367.118/components/optimization_guide/core/model_quality/model_quality_util.h 2024-05-06 20:13:44.671084222 +0200 -@@ -19,7 +19,7 @@ proto::ModelExecutionFeature GetModelExe - // Helper method to get the quality_data from `log_ai_data_request` for - // different features. - template --FeatureType::Quality* GetModelQualityData( -+typename FeatureType::Quality* GetModelQualityData( - proto::LogAiDataRequest* log_ai_data_request) { - return FeatureType::GetLoggingData(*log_ai_data_request) - ->mutable_quality_data(); -diff -up chromium-124.0.6367.118/third_party/blink/renderer/core/paint/object_paint_properties.h.me chromium-124.0.6367.118/third_party/blink/renderer/core/paint/object_paint_properties.h ---- chromium-124.0.6367.118/third_party/blink/renderer/core/paint/object_paint_properties.h.me 2024-05-07 08:54:42.099316020 +0200 -+++ chromium-124.0.6367.118/third_party/blink/renderer/core/paint/object_paint_properties.h 2024-05-07 08:57:18.304022672 +0200 -@@ -445,8 +445,8 @@ class CORE_EXPORT ObjectPaintProperties - PaintPropertyChangeType Update( - NodeId node_id, - const ParentType& parent, -- NodeType::State&& state, -- const NodeType::AnimationState& animation_state = -+ typename NodeType::State&& state, -+ const typename NodeType::AnimationState& animation_state = - NodeType::AnimationState()) { - // First, check if we need to add a new node. - if (!nodes_.HasField(node_id)) { From 42ab71af40342f1a68e9ace3174744a97372254e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 13:00:34 +0200 Subject: [PATCH 014/244] cleanup patches and specfile --- chromium-120-system-libusb.patch | 42 ------------------- ...hromium-124-el8-arm64-memory_tagging.patch | 0 ...=> chromium-124-el8-libdav1d-aarch64.patch | 0 ...tch => chromium-126-el8-ifunc-header.patch | 0 chromium.spec | 31 ++++++-------- 5 files changed, 12 insertions(+), 61 deletions(-) delete mode 100644 chromium-120-system-libusb.patch rename chromium-124-arm64-memory_tagging.patch => chromium-124-el8-arm64-memory_tagging.patch (100%) rename chromium-124-libdav1d-aarch64.patch => chromium-124-el8-libdav1d-aarch64.patch (100%) rename chromium-126-ifunc-header.patch => chromium-126-el8-ifunc-header.patch (100%) diff --git a/chromium-120-system-libusb.patch b/chromium-120-system-libusb.patch deleted file mode 100644 index 0c5bd59..0000000 --- a/chromium-120-system-libusb.patch +++ /dev/null @@ -1,42 +0,0 @@ -diff -up chromium-120.0.6099.35/build/linux/unbundle/libusb.gn.system-libusb chromium-120.0.6099.35/build/linux/unbundle/libusb.gn ---- chromium-120.0.6099.35/build/linux/unbundle/libusb.gn.system-libusb 2023-11-22 20:31:32.000000000 +0100 -+++ chromium-120.0.6099.35/build/linux/unbundle/libusb.gn 2023-11-26 11:46:14.559263668 +0100 -@@ -1,3 +1,27 @@ -+# Copyright 2016 The Chromium Authors. All rights reserved. -+# Use of this source code is governed by a BSD-style license that can be -+# found in the LICENSE file. -+ -+import("//build/config/linux/pkg_config.gni") -+import("//build/shim_headers.gni") -+ -+pkg_config("system_libusb") { -+ packages = [ "libusb-1.0" ] -+} -+ -+shim_headers("libusb_shim") { -+ root_path = "src/libusb" -+ headers = [ -+ "libusb.h", -+ ] -+} -+ -+source_set("libusb") { -+ deps = [ -+ ":libusb_shim", -+ ] -+ public_configs = [ ":system_libusb" ] -+} - import("//build/config/linux/pkg_config.gni") - import("//build/shim_headers.gni") - -diff -up chromium-120.0.6099.35/build/linux/unbundle/replace_gn_files.py.system-libusb chromium-120.0.6099.35/build/linux/unbundle/replace_gn_files.py ---- chromium-120.0.6099.35/build/linux/unbundle/replace_gn_files.py.system-libusb 2023-11-26 11:46:14.559263668 +0100 -+++ chromium-120.0.6099.35/build/linux/unbundle/replace_gn_files.py 2023-11-26 12:05:20.542665877 +0100 -@@ -56,6 +56,7 @@ REPLACEMENTS = { - 'libevent': 'third_party/libevent/BUILD.gn', - 'libjpeg': 'third_party/libjpeg.gni', - 'libpng': 'third_party/libpng/BUILD.gn', -+ 'libusb': 'third_party/libusb/BUILD.gn', - 'libsecret' : 'third_party/libsecret/BUILD.gn', - 'libusb': 'third_party/libusb/BUILD.gn', - 'libvpx': 'third_party/libvpx/BUILD.gn', diff --git a/chromium-124-arm64-memory_tagging.patch b/chromium-124-el8-arm64-memory_tagging.patch similarity index 100% rename from chromium-124-arm64-memory_tagging.patch rename to chromium-124-el8-arm64-memory_tagging.patch diff --git a/chromium-124-libdav1d-aarch64.patch b/chromium-124-el8-libdav1d-aarch64.patch similarity index 100% rename from chromium-124-libdav1d-aarch64.patch rename to chromium-124-el8-libdav1d-aarch64.patch diff --git a/chromium-126-ifunc-header.patch b/chromium-126-el8-ifunc-header.patch similarity index 100% rename from chromium-126-ifunc-header.patch rename to chromium-126-el8-ifunc-header.patch diff --git a/chromium.spec b/chromium.spec index 7668763..8a54b03 100644 --- a/chromium.spec +++ b/chromium.spec @@ -372,10 +372,14 @@ Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch # add correct path for Qt6Gui header and libs Patch150: chromium-124-qt6.patch -# disable memory tagging in epel7 and epel8 on aarch64 due to new feature IFUNC-Resolver -# not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found -Patch305: chromium-124-arm64-memory_tagging.patch -Patch306: chromium-126-ifunc-header.patch +# disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver +# it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found +Patch305: chromium-124-el8-arm64-memory_tagging.patch +Patch306: chromium-126-el8-ifunc-header.patch +# build error: unknown architectural extension on aarch64 (epel8) +Patch307: chromium-124-el8-libdav1d-aarch64.patch +# 64kpage support on aarch64 (el8) +Patch308: chromium-124-el8-support-64kpage.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -383,9 +387,6 @@ Patch312: chromium-123-fstack-protector-strong.patch # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch -# build error: unknown architectural extension on aarch64 (epel and < f39) -Patch317: chromium-124-libdav1d-aarch64.patch - # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 # Disable BTI until this is fixed upstream. @@ -1037,7 +1038,6 @@ Qt6 UI for chromium. ### Chromium Fedora Patches ### %patch -P0 -p1 -b .sandboxpie %patch -P1 -p1 -b .etc -%patch -P2 -p1 -b .system-libusb %patch -P5 -p1 -b .nozlibmangle %patch -P6 -p1 -b .nounrar %patch -P8 -p1 -b .widevine-other-locations @@ -1090,17 +1090,16 @@ Qt6 UI for chromium. %if 0%{?rhel} == 8 %ifarch aarch64 -%patch -P305 -p1 -b .memory_tagging -%patch -P306 -p1 -b .ifunc-header -%patch -P317 -p1 -b .libdav1d-aarch64 +%patch -P305 -p1 -b .el8-memory_tagging +%patch -P306 -p1 -b .el8-ifunc-header +%patch -P307 -p1 -b .el8-libdav1d-aarch64 +%patch -P308 -p1 -b .el8-support-64kpage.patch %endif %endif %patch -P312 -p1 -b .fstack-protector-strong -%if 0%{?rhel} >= 8 || 0%{?fedora} %patch -P316 -p1 -b .clang-build-flags -%endif %if %{disable_bti} %patch -P352 -p1 -b .workaround_for_crash_on_BTI_capable_system @@ -1178,12 +1177,6 @@ Qt6 UI for chromium. %patch -P413 -p1 -b .fix-unknown-warning-option-messages %endif -%%ifarch aarch64 -%if 0%{?rhel} == 8 -%patch -P500 -p1 -b .el8-support-64kpage.patch -%endif -%endif - # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + From 8ac50753d5cfb24c2f083c97af96a7f2956569e6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 13:01:47 +0200 Subject: [PATCH 015/244] drop old patch --- chromium.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 8a54b03..0ce4867 100644 --- a/chromium.spec +++ b/chromium.spec @@ -307,9 +307,6 @@ Patch0: chromium-70.0.3538.67-sandbox-pie.patch # Use /etc/chromium for initial_prefs Patch1: chromium-115-initial_prefs-etc-path.patch -# system libusb -Patch2: chromium-120-system-libusb.patch - # Do not mangle zlib Patch5: chromium-77.0.3865.75-no-zlib-mangle.patch From afdd9bead561517651ea48554c62a74a53c70c4f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 13:08:56 +0200 Subject: [PATCH 016/244] drop duplicate patch --- chromium.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chromium.spec b/chromium.spec index 0ce4867..e2bf7ce 100644 --- a/chromium.spec +++ b/chromium.spec @@ -466,10 +466,6 @@ Patch412: fix-swiftshader-compile.patch # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff -# upstream patches -# 64kpage support on el8 -Patch500: chromium-124-el8-support-64kpage.patch - # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ # For Chromium Fedora use chromium-latest.py --stable --ffmpegclean --ffmpegarm From 1553bbdf81f1cebe3663f4c32bf9dc6b2b4c0569 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Jul 2024 14:18:35 +0200 Subject: [PATCH 017/244] update powerpc patches --- chromium.spec | 22 +++-- fix-study-crash.patch | 24 +++++ memory-allocator-dcheck-assert-fix.patch | 22 +++++ partition-alloc-4k-detect.patch | 112 +++++++++++++++++++++++ 4 files changed, 171 insertions(+), 9 deletions(-) create mode 100644 fix-study-crash.patch create mode 100644 memory-allocator-dcheck-assert-fix.patch create mode 100644 partition-alloc-4k-detect.patch diff --git a/chromium.spec b/chromium.spec index e2bf7ce..d23c49a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -453,16 +453,17 @@ Patch400: fix-rustc.patch Patch401: fix-rust-linking.patch Patch402: fix-breakpad-compile.patch Patch403: fix-partition-alloc-compile.patch -Patch404: 0002-Add-ppc64-trap-instructions.patch +Patch404: fix-study-crash.patch +Patch405: memory-allocator-dcheck-assert-fix.patch +Patch406: 0002-Add-ppc64-trap-instructions.patch Patch407: fix-ppc64-linux-syscalls-headers.patch -Patch409: use-sysconf-page-size-on-ppc64.patch +Patch408: use-sysconf-page-size-on-ppc64.patch +Patch409: partition-alloc-4k-detect.patch Patch410: dawn-fix-typos.patch Patch411: dawn-fix-ppc64le-detection.patch -Patch412: fix-swiftshader-compile.patch - # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff @@ -1158,15 +1159,17 @@ Qt6 UI for chromium. %patch -P401 -p1 -b .fix-rust-linking %patch -P402 -p1 -b .fix-breakpad-compile %patch -P403 -p1 -b .fix-partition-alloc-compile -%patch -P404 -p1 -b .0002-Add-ppc64-trap-instructions +%patch -P404 -p1 -b .fix-study-crash +%patch -P405 -p1 -b .memory-allocator-dcheck-assert-fix +%patch -P406 -p1 -b .0002-Add-ppc64-trap-instructions %patch -P407 -p1 -b .fix-ppc64-linux-syscalls-headers -%patch -P409 -p1 -b .use-sysconf-page-size-on-ppc64 +%patch -P408 -p1 -b .use-sysconf-page-size-on-ppc64 +%patch -P409 -p1 -b .partition-alloc-4k-detect %patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection -%patch -P412 -p1 -b .fix-swiftshader-compile.patch %patch -P413 -p1 -b .fix-unknown-warning-option-messages %endif @@ -1970,8 +1973,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog -* Thu Jul 18 2024 Than Ngo - 126.0.6478.182-2 -- fixed condition for is_cfi/use_thin_lto on aarch64/ppc64le +* Sat Jul 20 2024 Than Ngo - 126.0.6478.182-2 +- fix condition for is_cfi/use_thin_lto on aarch64/ppc64le +- update powerpc patches * Tue Jul 16 2024 Than Ngo - 126.0.6478.182-1 - update to 126.0.6478.182 diff --git a/fix-study-crash.patch b/fix-study-crash.patch new file mode 100644 index 0000000..2ba9d4b --- /dev/null +++ b/fix-study-crash.patch @@ -0,0 +1,24 @@ +--- a/components/variations/proto/study.proto ++++ b/components/variations/proto/study.proto +@@ -264,6 +264,9 @@ + // A Mac-only value, indicating an x86-64 binary running on an arm64 host + // via "Rosetta 2" binary translation. + TRANSLATED_X86_64 = 4; ++ ++ // A POSIX-only value, indicating an OpenPOWER host ++ PPC64 = 5; + } + + // Enum to pass as optional bool. +--- a/components/variations/service/variations_field_trial_creator_base.cc ++++ b/components/variations/service/variations_field_trial_creator_base.cc +@@ -109,6 +109,9 @@ + if (process_arch == "x86") { + return Study::X86_32; + } ++ if (process_arch == "PPC_64") { ++ return Study::PPC64; ++ } + if (process_arch == "x86_64") { + std::string os_arch = base::SysInfo::OperatingSystemArchitecture(); + if (base::StartsWith(os_arch, "arm", diff --git a/memory-allocator-dcheck-assert-fix.patch b/memory-allocator-dcheck-assert-fix.patch new file mode 100644 index 0000000..6d1b2be --- /dev/null +++ b/memory-allocator-dcheck-assert-fix.patch @@ -0,0 +1,22 @@ +--- a/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc ++++ b/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc +@@ -506,6 +506,9 @@ + partition_page_count <= kMaxPartitionPagesPerRegularSlotSpan; + partition_page_count++) { + size_t candidate_size = partition_page_count * PartitionPageSize(); ++ if (candidate_size > kMaxBucketed) { ++ break; ++ } + size_t waste = candidate_size % slot_size; + if (waste <= .02 * SystemPageSize()) { + return partition_page_count * NumSystemPagesPerPartitionPage(); +@@ -522,6 +525,9 @@ + size_t system_page_count = + partition_page_count * NumSystemPagesPerPartitionPage() - slack; + size_t candidate_size = system_page_count * SystemPageSize(); ++ if (candidate_size > kMaxBucketed) { ++ break; ++ } + size_t waste = candidate_size % slot_size; + if (waste < best_waste) { + best_waste = waste; diff --git a/partition-alloc-4k-detect.patch b/partition-alloc-4k-detect.patch new file mode 100644 index 0000000..a0a3f95 --- /dev/null +++ b/partition-alloc-4k-detect.patch @@ -0,0 +1,112 @@ +--- a/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h ++++ b/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +@@ -100,21 +100,21 @@ + // other constant values, we pack _all_ `PartitionRoot::Alloc` sizes perfectly + // up against the end of a system page. + +-#if defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) ++#if (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) + PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t + PartitionPageShift() { +- return 16; // 64 KiB ++ return PageAllocationGranularityShift() + 2; + } +-#elif defined(ARCH_CPU_PPC64) ++#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) + PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t + PartitionPageShift() { +- return 18; // 256 KiB ++ return 16; // 64 KiB + } +-#elif (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ +- defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) ++#elif defined(ARCH_CPU_PPC64) + PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t + PartitionPageShift() { +- return PageAllocationGranularityShift() + 2; ++ return 18; // 256 KiB + } + #else + PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t +--- a/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h ++++ b/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +@@ -26,7 +26,8 @@ + #define PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR __attribute__((const)) + + #elif (BUILDFLAG(IS_ANDROID) && defined(ARCH_CPU_64_BITS)) || \ +- (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) ++ (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) || \ ++ (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_PPC64)) + // This should work for all POSIX (if needed), but currently all other + // supported OS/architecture combinations use either hard-coded values + // (such as x86) or have means to determine these values without needing +@@ -86,17 +87,7 @@ + + PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t + PageAllocationGranularityShift() { +-#if BUILDFLAG(IS_WIN) || defined(ARCH_CPU_PPC64) +- // Modern ppc64 systems support 4kB (shift = 12) and 64kB (shift = 16) page +- // sizes. Since 64kB is the de facto standard on the platform and binaries +- // compiled for 64kB are likely to work on 4kB systems, 64kB is a good choice +- // here. +- return 16; // 64kB +-#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) +- return 14; // 16kB +-#elif BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS) +- return static_cast(vm_page_shift); +-#elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) ++#if defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) + // arm64 supports 4kb (shift = 12), 16kb (shift = 14), and 64kb (shift = 16) + // page sizes. Retrieve from or initialize cache. + size_t shift = page_characteristics.shift.load(std::memory_order_relaxed); +@@ -106,6 +97,16 @@ + page_characteristics.shift.store(shift, std::memory_order_relaxed); + } + return shift; ++#elif BUILDFLAG(IS_WIN) || defined(ARCH_CPU_PPC64) ++ // Modern ppc64 systems support 4kB (shift = 12) and 64kB (shift = 16) page ++ // sizes. Since 64kB is the de facto standard on the platform and binaries ++ // compiled for 64kB are likely to work on 4kB systems, 64kB is a good choice ++ // here. ++ return 16; // 64kB ++#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) ++ return 14; // 16kB ++#elif BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS) ++ return static_cast(vm_page_shift); + #else + return 12; // 4kB + #endif +--- a/base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h ++++ b/base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h +@@ -180,10 +180,10 @@ + #else // !BUILDFLAG(IS_AIX) && !defined(ARCH_CPU_BIG_ENDIAN) + + // Little-endian Linux PPC has 48 bits of virtual addressing. Use 46. +- PA_ALWAYS_INLINE constexpr uintptr_t ASLRMask() { ++ PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR uintptr_t ASLRMask() { + return AslrMask(46); + } +- PA_ALWAYS_INLINE constexpr uintptr_t ASLROffset() { ++ PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR uintptr_t ASLROffset() { + return AslrAddress(0); + } + +--- a/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h ++++ b/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h +@@ -17,10 +17,15 @@ + // PartitionPageSize() is 4 times the OS page size. + static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; + #elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) ++#if defined(ARCH_CPU_PPC64) ++// System page size can be 4 or 64 kiB on Linux on ppc64. Use 64 kiB maximum. ++static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; ++#else + // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is + // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, + // so we use the 16 kiB maximum (64 kiB will crash). + static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; ++#endif + #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_PPC64) + // System page size is not a constant on OpenPOWER systems, but is either 4kiB + // or 64kiB (1 << 12 or 1 << 16) From dd3936a5fb3b275d13a4a28a6f069b327246205e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 21 Jul 2024 11:30:02 +0200 Subject: [PATCH 018/244] fix error: undefined symbol: llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF() --- chromium.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index d23c49a..81af9da 100644 --- a/chromium.spec +++ b/chromium.spec @@ -465,7 +465,10 @@ Patch410: dawn-fix-typos.patch Patch411: dawn-fix-ppc64le-detection.patch # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed -Patch413: fix-unknown-warning-option-messages.diff +Patch412: fix-unknown-warning-option-messages.diff + +# error: undefined symbol: llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF() +Patch413: fix-swiftshader-compile.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1170,7 +1173,8 @@ Qt6 UI for chromium. %patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection -%patch -P413 -p1 -b .fix-unknown-warning-option-messages +%patch -P412 -p1 -b .fix-unknown-warning-option-messages +%patch -P413 -p1 -b .fix-swiftshader-compile %endif # Change shebang in all relevant files in this directory and all subdirectories From a9002f8e77386baea2c0737f3053cdc178524c5e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 22 Jul 2024 12:41:24 +0200 Subject: [PATCH 019/244] backport patch to fix unlogged assert on startup (ppc64le) --- add-ppc64-architecture-string.patch | 11 +++++++++++ chromium.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 add-ppc64-architecture-string.patch diff --git a/add-ppc64-architecture-string.patch b/add-ppc64-architecture-string.patch new file mode 100644 index 0000000..72ea164 --- /dev/null +++ b/add-ppc64-architecture-string.patch @@ -0,0 +1,11 @@ +--- a/base/system/sys_info.cc ++++ b/base/system/sys_info.cc +@@ -255,6 +255,8 @@ + return "ARM"; + #elif defined(ARCH_CPU_ARM64) + return "ARM_64"; ++#elif defined(ARCH_CPU_PPC64) ++ return "PPC_64"; + #elif defined(ARCH_CPU_RISCV64) + return "RISCV_64"; + #else diff --git a/chromium.spec b/chromium.spec index 81af9da..7750c4d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -401,6 +401,7 @@ Patch358: chromium-124-rust-clang_lib.patch # PowerPC64 LE support # Timothy Pearson's patchset # https://gitlab.solidsilicon.io/public-development/open-source/chromium/openpower-patches/-/tree/chromium-126/patches/ppc64le +Patch359: add-ppc64-architecture-string.patch Patch360: 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch Patch361: 0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch Patch362: 0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch @@ -1112,6 +1113,7 @@ Qt6 UI for chromium. %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le +%patch -P359 -p1 -b .add-ppc64-architecture-string %patch -P360 -p1 -b .0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h %patch -P361 -p1 -b .0001-sandbox-Enable-seccomp_bpf-for-ppc64 %patch -P362 -p1 -b .0001-services-service_manager-sandbox-linux-Fix-TCGETS-de From cbb6b503912be6e2fcdbde81986b73efe2fbb427 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 24 Jul 2024 22:18:44 +0200 Subject: [PATCH 020/244] adapt scripts for new ffmpeg --- clean_ffmpeg.sh | 1 + ffmpeg-clean.patch | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index 9111990..abb1236 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -138,6 +138,7 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/pixels.h \ libavcodec/png.h \ libavcodec/pngdsp.h \ + libavcodec/progressframe.h \ libavcodec/put_bits.h \ libavcodec/qpeldsp.h \ libavcodec/ratecontrol.h \ diff --git a/ffmpeg-clean.patch b/ffmpeg-clean.patch index 31ceba8..fa2de3f 100644 --- a/ffmpeg-clean.patch +++ b/ffmpeg-clean.patch @@ -1,10 +1,13 @@ diff -up third_party/ffmpeg/ffmpeg_generated.gni.me third_party/ffmpeg/ffmpeg_generated.gni ---- third_party/ffmpeg/ffmpeg_generated.gni.me 2024-05-05 00:45:53.017100841 +0200 -+++ third_party/ffmpeg/ffmpeg_generated.gni 2024-05-05 00:46:20.244559951 +0200 -@@ -17,8 +17,8 @@ use_linux_config = is_linux || is_chrome - if ((is_android && current_cpu == "arm" && arm_use_neon) || - (is_android && current_cpu == "arm64") || - (is_android && current_cpu == "x64") || +--- third_party/ffmpeg/ffmpeg_generated.gni.me 2024-07-19 23:49:33.776963768 +0200 ++++ third_party/ffmpeg/ffmpeg_generated.gni 2024-07-19 23:50:14.377819007 +0200 +@@ -14,10 +14,10 @@ ffmpeg_asm_sources = [] + + use_linux_config = is_linux || is_chromeos || is_fuchsia + +-if (current_cpu == "arm64" || current_cpu == "x64" || ++if ((current_cpu == "arm64") || (current_cpu == "x64") || + (is_android && current_cpu == "arm" && arm_use_neon) || - (is_android && current_cpu == "x86") || is_apple || is_win || - use_linux_config) { + (is_android && current_cpu == "x86") || (is_apple) || (is_win) || From d69c30e61bcec16ee32afe00a3d5773053f1d8de Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 24 Jul 2024 23:32:11 +0200 Subject: [PATCH 021/244] - upload chromium-127.0.6533.72 source - update chromium-latest.py to remove useless stuff (saving 800MB) --- chromium-latest.py | 5 +---- sources | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/chromium-latest.py b/chromium-latest.py index ad8d2cd..eb2d3f0 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -315,10 +315,7 @@ if __name__ == '__main__': nacl_versions(chromium_version) if (args.cleansources): - junk_dirs = ['third_party/WebKit/Tools/Scripts/webkitpy/layout_tests', - 'webkit/data/layout_tests', 'third_party/hunspell/dictionaries', - 'chrome/test/data', 'native_client/tests', - 'third_party/WebKit/LayoutTests'] + junk_dirs = ['build/linux/debian_bullseye_amd64-sysroot', 'build/linux/debian_bullseye_i386-sysroot'] # First, the dirs: for directory in junk_dirs: diff --git a/sources b/sources index 6efdb7e..20a7d42 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-126.0.6478.182-clean.tar.xz) = f442fe2b8e79f9b48e29e7e122815142e6cff7d767cc21ce390e367ae8ee374c4bf6334477fe3fb2a5514d5b2d8a5d724542de7cf3adeafb6efda75e9ee157f7 +SHA512 (chromium-127.0.6533.72-clean.tar.xz) = 838b460966197bee587bd95d4244f1ba16544a6f733c7e2b481abad2b1953a97fa7e4fa0ff72d1691fd3f827b1d0eb27e38c63c70ddddf9cda547955037a1b8d From 5b27efc518c86b93dd2f30e877536599ed07beac Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 24 Jul 2024 23:45:03 +0200 Subject: [PATCH 022/244] - update to 127.0.6533.72 * CVE-2024-6988: Use after free in Downloads * CVE-2024-6989: Use after free in Loader * CVE-2024-6991: Use after free in Dawn * CVE-2024-6992: Out of bounds memory access in ANGLE * CVE-2024-6993: Inappropriate implementation in Canvas * CVE-2024-6994: Heap buffer overflow in Layout * CVE-2024-6995: Inappropriate implementation in Fullscreen * CVE-2024-6996: Race in Frames * CVE-2024-6997: Use after free in Tabs * CVE-2024-6998: Use after free in User Education * CVE-2024-6999: Inappropriate implementation in FedCM * CVE-2024-7000: Use after free in CSS. Reported by Anonymous * CVE-2024-7001: Inappropriate implementation in HTML * CVE-2024-7003: Inappropriate implementation in FedCM * CVE-2024-7004: Insufficient validation of untrusted input in Safe Browsing * CVE-2024-7005: Insufficient validation of untrusted input in Safe - remove unsupported use_gold, use_goma - enable bootstrap for epel as gn is old (need to update gn on epel) - enable bundleicu and bundledav1d (need to update icu and dav1d) - apply upstream patches to fix build issues with ninja-1.21.1 (fedora >39) - pipewire is old on el8, new version is required, disable it temporary --- chromium-127-ninja-1.21.1-deps-part0.patch | 44 ++++++++++++++ chromium-127-ninja-1.21.1-deps-part1.patch | 62 +++++++++++++++++++ chromium-127-ninja-1.21.1-deps-part2.patch | 37 ++++++++++++ chromium-127-ninja-1.21.1-deps-part3.patch | 49 +++++++++++++++ chromium.spec | 70 +++++++++++++++------- 5 files changed, 241 insertions(+), 21 deletions(-) create mode 100644 chromium-127-ninja-1.21.1-deps-part0.patch create mode 100644 chromium-127-ninja-1.21.1-deps-part1.patch create mode 100644 chromium-127-ninja-1.21.1-deps-part2.patch create mode 100644 chromium-127-ninja-1.21.1-deps-part3.patch diff --git a/chromium-127-ninja-1.21.1-deps-part0.patch b/chromium-127-ninja-1.21.1-deps-part0.patch new file mode 100644 index 0000000..52581fd --- /dev/null +++ b/chromium-127-ninja-1.21.1-deps-part0.patch @@ -0,0 +1,44 @@ +commit 4ca70656fde83d2db6ed5a8ac9ec9e7443846924 +Author: Lei Zhang +Date: Wed Jun 26 16:35:34 2024 +0000 + + Move chrome/browser/ui:webui_name_variants to public_deps + + The chrome/browser/ui build target contains webui_contents_wrapper.h, + which included the generated webui_name_variants.h header. For this to + work correctly, the build system must process the webui_name_variants + target first and generate webui_name_variants.h. To do this reliably, + without having to depend on webui_name_variants in all targets that + transitively include webui_contents_wrapper.h, make it a public_deps. + + Bug: 40253918, 346711540, 346699817, 345645751 + Change-Id: I6e0b573427cda1b2b408702f139b2c9e83f05045 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5646245 + Reviewed-by: Anthony Vallée-Dubois + Commit-Queue: Lei Zhang + Cr-Commit-Position: refs/heads/main@{#1319828} + +diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn +index 46648a4c2194e..0883714163a31 100644 +--- a/chrome/browser/ui/BUILD.gn ++++ b/chrome/browser/ui/BUILD.gn +@@ -6436,7 +6436,6 @@ static_library("ui") { + } + + deps += [ +- ":webui_name_variants", + "side_search:side_search_tab_data_proto", + "//base", + "//chrome/browser:main_extra_parts", +@@ -6495,7 +6494,10 @@ static_library("ui") { + "//ui/lottie", + "//ui/views:buildflags", + ] +- public_deps += [ "//ui/base/dragdrop/mojom:mojom_headers" ] ++ public_deps += [ ++ ":webui_name_variants", ++ "//ui/base/dragdrop/mojom:mojom_headers", ++ ] + + allow_circular_includes_from += [ "//chrome/browser/ui/views" ] + diff --git a/chromium-127-ninja-1.21.1-deps-part1.patch b/chromium-127-ninja-1.21.1-deps-part1.patch new file mode 100644 index 0000000..6d62b32 --- /dev/null +++ b/chromium-127-ninja-1.21.1-deps-part1.patch @@ -0,0 +1,62 @@ +commit 50d63ffee3f7f1b1b9303363742ad8ebbfec31fa +Author: Lei Zhang +Date: Wed Jun 26 21:27:51 2024 +0000 + + Make more deps entries public_deps in chrome/browser/ui/BUILD.gn + + The chrome/browser/ui build target includes several buildflag headers. + For this to work correctly, the build system must be able to generate + the buildflag headers first. To do this reliably, without having to + depend on buildflag targets in all targets that transitively include the + headers that includes buildflag heaers, make these dependencies + public_deps. + + For //components/paint_preview/buildflags, remove the deps entry, as it + is already in public_deps. + + Bug: 40253918, 346711540, 346699817, 345645751 + Change-Id: I00e78a430f2e99aa3732406882b352d31e3d7da7 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5647662 + Commit-Queue: Lei Zhang + Reviewed-by: Peter Kasting + Cr-Commit-Position: refs/heads/main@{#1320033} + +diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn +index bc6a7c03ecd1c..74f92f0431494 100644 +--- a/chrome/browser/ui/BUILD.gn ++++ b/chrome/browser/ui/BUILD.gn +@@ -415,8 +415,10 @@ static_library("ui") { + "//chrome/browser/ui/tabs:tab_enums", + "//components/cross_device/logging", + "//components/dom_distiller/core", ++ "//components/enterprise/buildflags", + "//components/paint_preview/buildflags", + "//components/safe_browsing:buildflags", ++ "//components/segmentation_platform/public", + "//components/sync", + "//components/sync_user_events", + "//components/translate/content/browser", +@@ -533,7 +535,6 @@ static_library("ui") { + "//components/embedder_support:browser_util", + "//components/encrypted_messages:encrypted_message_proto", + "//components/enterprise", +- "//components/enterprise/buildflags:buildflags", + "//components/error_page/content/browser", + "//components/facilitated_payments/core/features", + "//components/favicon/content", +@@ -644,7 +645,6 @@ static_library("ui") { + "//components/security_interstitials/core:unsafe_resource", + "//components/security_state/content", + "//components/security_state/core", +- "//components/segmentation_platform/public", + "//components/send_tab_to_self", + "//components/sessions", + "//components/sharing_message", +@@ -2119,7 +2119,6 @@ static_library("ui") { + "//components/omnibox/browser:mojo_bindings", + "//components/page_load_metrics/browser", + "//components/paint_preview/browser", +- "//components/paint_preview/buildflags", + "//components/paint_preview/common", + "//components/paint_preview/public", + "//components/password_manager/content/common", diff --git a/chromium-127-ninja-1.21.1-deps-part2.patch b/chromium-127-ninja-1.21.1-deps-part2.patch new file mode 100644 index 0000000..8cfce7a --- /dev/null +++ b/chromium-127-ninja-1.21.1-deps-part2.patch @@ -0,0 +1,37 @@ +commit 2c101186b60ed50f2ba4feaa2e963bd841bcca47 +Author: Takuto Ikuta +Date: Fri Jun 21 06:23:27 2024 +0000 + + chrome/browser: add missing dependency + + This is to fix build error due to missing dependency when we update + ninja to 1.12. + e.g. https://ci.chromium.org/ui/p/chromium/builders/build/linux-build-perf-no-rbe/1690/overview + + Bug: 346711540, 346699817, 345645751, 40253918 + Change-Id: Ife0a4e09969a4ad2e61dfc1598c9a63ac0b2abd5 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5641516 + Reviewed-by: Anthony Vallée-Dubois + Commit-Queue: Takuto Ikuta + Auto-Submit: Takuto Ikuta + Reviewed-by: Lei Zhang + Cr-Commit-Position: refs/heads/main@{#1317790} + +diff --git a/chrome/browser/ui/views/side_panel/BUILD.gn b/chrome/browser/ui/views/side_panel/BUILD.gn +index 96f2c30a6dd22..2957730277a29 100644 +--- a/chrome/browser/ui/views/side_panel/BUILD.gn ++++ b/chrome/browser/ui/views/side_panel/BUILD.gn +@@ -201,5 +201,13 @@ source_set("side_panel") { + "//ui/gfx:color_utils", + "//ui/gfx/geometry:geometry_skia", + "//ui/webui", ++ ++ # TODO(crbug.com/346711540,crbug.com/346699817,crbug.com/345645751): ++ # Use //chrome/browser/ui instead after fixing cyclic dependency. ++ "//chrome/browser/ui:webui_name_variants", ++ "//components/enterprise/buildflags", ++ "//components/paint_preview/buildflags", ++ "//components/segmentation_platform/public/proto", ++ "//components/webapps/common:mojo_bindings", + ] + } diff --git a/chromium-127-ninja-1.21.1-deps-part3.patch b/chromium-127-ninja-1.21.1-deps-part3.patch new file mode 100644 index 0000000..bfb46d9 --- /dev/null +++ b/chromium-127-ninja-1.21.1-deps-part3.patch @@ -0,0 +1,49 @@ +commit f2b43c18b8ecfc3ddc49c42c062d796c8b563984 +Author: Takuto Ikuta +Date: Wed Jul 3 09:00:47 2024 +0000 + + chrome/browser/ui: add missing dependency + + This is to fix build error due to missing dependency when we update + ninja to 1.12. + e.g. https://ci.chromium.org/ui/p/chromium/builders/build.shadow/win-build-perf-developer/1/overview + + Bug: 40253918, 345645751, 346694160, 346709958, 346707816 + Change-Id: I3ede8e345aef5d6d2d8bf5b155601650828bc817 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5644627 + Reviewed-by: Hidehiko Abe + Auto-Submit: Takuto Ikuta + Commit-Queue: Takuto Ikuta + Reviewed-by: Lei Zhang + Cr-Commit-Position: refs/heads/main@{#1322655} + +diff --git a/chrome/browser/ui/views/side_panel/BUILD.gn b/chrome/browser/ui/views/side_panel/BUILD.gn +index 2957730277a29..2680a77d855d5 100644 +--- a/chrome/browser/ui/views/side_panel/BUILD.gn ++++ b/chrome/browser/ui/views/side_panel/BUILD.gn +@@ -202,12 +202,24 @@ source_set("side_panel") { + "//ui/gfx/geometry:geometry_skia", + "//ui/webui", + +- # TODO(crbug.com/346711540,crbug.com/346699817,crbug.com/345645751): ++ # TODO(crbug.com/345645751): Use //chrome/browser instead after fixing cyclic dependency. ++ "//components/enterprise/common/proto:connectors_proto", ++ ++ # TODO(crbug.com/346711540,crbug.com/346699817,crbug.com/345645751, ++ # crbug.com/346694160,crbug.com/346709958,crbug.com/346707816): + # Use //chrome/browser/ui instead after fixing cyclic dependency. ++ "//chrome/browser/cart:mojo_bindings", ++ "//chrome/browser/companion/visual_query", + "//chrome/browser/ui:webui_name_variants", ++ "//chrome/browser/ui/webui/side_panel/bookmarks:mojo_bindings", ++ "//chrome/browser/ui/webui/side_panel/customize_chrome:mojo_bindings", ++ "//chrome/browser/ui/webui/side_panel/reading_list:mojo_bindings", + "//components/enterprise/buildflags", ++ "//components/page_image_service/mojom:mojo_bindings", + "//components/paint_preview/buildflags", + "//components/segmentation_platform/public/proto", ++ "//components/user_education/webui", + "//components/webapps/common:mojo_bindings", ++ "//ui/webui/resources/cr_components/commerce:mojo_bindings", + ] + } diff --git a/chromium.spec b/chromium.spec index 7750c4d..47fe68e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1,4 +1,5 @@ %define _lto_cflags %{nil} +%global _default_patch_fuzz 2 # enable|disable system build flags %global system_build_flags 0 @@ -22,6 +23,10 @@ # enable|disble bootstrap %global bootstrap 0 +# workaround for old gn on rhel, it causes build error: unknown function filter_labels_include() +%if 0%{?rhel} +%global bootstrap 1 +%endif # Fancy build status, so we at least know, where we are.. # %1 where @@ -75,7 +80,7 @@ # v4l2_codec only enable for fedora aarch64 %global use_v4l2_codec 0 -# libva is too old on el8. +# libva is too old on el8 %if 0%{?rhel} == 8 %global use_vaapi 0 %endif @@ -102,10 +107,6 @@ %endif %endif -# Seems like we might need this sometimes -# Practically, no. But it's here in case we do. -%global use_gold 0 - %global build_clear_key_cdm 0 # Disabled because of Google, starting with Chromium 88. @@ -196,6 +197,8 @@ %global bundlelibaom 1 %global bundlelibavif 1 %global bundlesnappy 1 +%global bundleicu 1 +%global bundledav1d 1 %global bundlepylibs 0 %global bundlelibxslt 0 %global bundleflac 0 @@ -226,7 +229,6 @@ %global bundlefontconfig 1 %global bundleffmpegfree 1 %global bundlebrotli 1 -%global bundleicu 1 %global bundlelibopenjpeg2 1 %global bundlelibtiff 1 %global bundlecrc32c 1 @@ -235,14 +237,11 @@ %else %if 0%{?fedora} > 38 || 0%{?rhel} > 9 %global bundlebrotli 0 -%global bundleicu 0 %global bundlelibwebp 0 %else %global bundlebrotli 1 -%global bundleicu 1 %global bundlelibwebp 1 %endif -%global bundledav1d 0 %global bundlelibpng 0 %global bundlelibjpeg 0 %global bundlelibdrm 0 @@ -295,8 +294,8 @@ %endif Name: chromium%{chromium_channel} -Version: 126.0.6478.182 -Release: 2%{?dist} +Version: 127.0.6533.72 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -471,6 +470,12 @@ Patch412: fix-unknown-warning-option-messages.diff # error: undefined symbol: llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF() Patch413: fix-swiftshader-compile.patch +# upstream patches +Patch501: chromium-127-ninja-1.21.1-deps-part0.patch +Patch502: chromium-127-ninja-1.21.1-deps-part1.patch +Patch503: chromium-127-ninja-1.21.1-deps-part2.patch +Patch504: chromium-127-ninja-1.21.1-deps-part3.patch + # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ # For Chromium Fedora use chromium-latest.py --stable --ffmpegclean --ffmpegarm @@ -635,8 +640,9 @@ BuildRequires: pciutils-devel BuildRequires: pulseaudio-libs-devel # For screen sharing on Wayland -%if 0%{?fedora} || 0%{?rhel} >= 8 -BuildRequires: pkgconfig(libpipewire-0.3) +# pipewire is old on el8, chromium needs new version, disable it temporary +%if 0%{?fedora} || 0%{?rhel} > 8 +BuildRequires: pipewire-devel %endif # for /usr/bin/appstream-util @@ -1179,11 +1185,19 @@ Qt6 UI for chromium. %patch -P413 -p1 -b .fix-swiftshader-compile %endif +%if 0%{?fedora} > 39 +%patch -P501 -p1 -b .ninja-1.21.1-deps +%patch -P502 -p1 -b .ninja-1.21.1-deps +%patch -P503 -p1 -b .ninja-1.21.1-deps +%patch -P504 -p1 -b .ninja-1.21.1-deps +%endif + # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + # Add correct path for nodejs binary +rm -rf third_party/node/linux/node-linux-x64* %if ! %{system_nodejs} pushd third_party/node/linux %ifarch x86_64 @@ -1311,7 +1325,6 @@ CHROMIUM_CORE_GN_DEFINES="" CHROMIUM_CORE_GN_DEFINES+=' custom_toolchain="//build/toolchain/linux/unbundle:default"' CHROMIUM_CORE_GN_DEFINES+=' host_toolchain="//build/toolchain/linux/unbundle:default"' CHROMIUM_CORE_GN_DEFINES+=' is_debug=false dcheck_always_on=false dcheck_is_configurable=false' -CHROMIUM_CORE_GN_DEFINES+=' use_goma=false' CHROMIUM_CORE_GN_DEFINES+=' enable_nacl=false' CHROMIUM_CORE_GN_DEFINES+=' system_libdir="%{_lib}"' @@ -1354,12 +1367,6 @@ CHROMIUM_CORE_GN_DEFINES+=" rustc_version=\"$rustc_version\"" CHROMIUM_CORE_GN_DEFINES+=' use_sysroot=false' -%if %{use_gold} -CHROMIUM_CORE_GN_DEFINES+=' use_gold=true' -%else -CHROMIUM_CORE_GN_DEFINES+=' use_gold=false' -%endif - %ifarch aarch64 CHROMIUM_CORE_GN_DEFINES+=' target_cpu="arm64"' %endif @@ -1429,8 +1436,10 @@ CHROMIUM_BROWSER_GN_DEFINES+=' use_vaapi=false' CHROMIUM_BROWSER_GN_DEFINES+=' use_v4l2_codec=true' %endif -%if 0%{?fedora} || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} > 8 CHROMIUM_BROWSER_GN_DEFINES+=' rtc_use_pipewire=true rtc_link_pipewire=true' +%else +CHROMIUM_BROWSER_GN_DEFINES+=' rtc_use_pipewire=false rtc_link_pipewire=false' %endif %if ! %{bundlelibjpeg} @@ -1979,6 +1988,25 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Jul 24 2024 Than Ngo - 127.0.6533.72-1 +- update to 127.0.6533.72 + * CVE-2024-6988: Use after free in Downloads + * CVE-2024-6989: Use after free in Loader + * CVE-2024-6991: Use after free in Dawn + * CVE-2024-6992: Out of bounds memory access in ANGLE + * CVE-2024-6993: Inappropriate implementation in Canvas + * CVE-2024-6994: Heap buffer overflow in Layout + * CVE-2024-6995: Inappropriate implementation in Fullscreen + * CVE-2024-6996: Race in Frames + * CVE-2024-6997: Use after free in Tabs + * CVE-2024-6998: Use after free in User Education + * CVE-2024-6999: Inappropriate implementation in FedCM + * CVE-2024-7000: Use after free in CSS. Reported by Anonymous + * CVE-2024-7001: Inappropriate implementation in HTML + * CVE-2024-7003: Inappropriate implementation in FedCM + * CVE-2024-7004: Insufficient validation of untrusted input in Safe Browsing + * CVE-2024-7005: Insufficient validation of untrusted input in Safe + * Sat Jul 20 2024 Than Ngo - 126.0.6478.182-2 - fix condition for is_cfi/use_thin_lto on aarch64/ppc64le - update powerpc patches From 3008fac76ff1ba1d9c2933c02a284b49e631f8c8 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 08:22:44 +0200 Subject: [PATCH 023/244] refresh source, remove unused stuffs --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index 20a7d42..1e661e9 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-127.0.6533.72-clean.tar.xz) = 838b460966197bee587bd95d4244f1ba16544a6f733c7e2b481abad2b1953a97fa7e4fa0ff72d1691fd3f827b1d0eb27e38c63c70ddddf9cda547955037a1b8d +SHA512 (chromium-127.0.6533.72-clean.tar.xz) = 6faa0b0df800bafb31acb003d23f62e5eeea12c49ed3b9bf52c2e4f7ef3a7d7f6069f41026092bcb1e222dcbf4f0a3a0595e9be52502375f0b1094551cc7a98c From 172edf5cd41edc4fb8db24bef3adcb164cff9091 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 17:13:08 +0200 Subject: [PATCH 024/244] - refresh patches for aarch64 - add workaround for build error on aarch64 (highway) - update chromium-latest.py (removing unused sttuffs) - add bindgen for el8 build - add upstream patch to fix build dep in crabbyavif --- .gitignore | 1 + chromium-126-el8-ifunc-header.patch | 15 --- chromium-127-crabbyavif.patch | 38 ++++++++ chromium-127-el8-ifunc-header.patch | 15 +++ ....patch => chromium-127-rust-clanglib.patch | 12 +++ chromium-latest.py | 6 +- chromium.spec | 97 ++++++++++++------- sources | 1 + 8 files changed, 136 insertions(+), 49 deletions(-) delete mode 100644 chromium-126-el8-ifunc-header.patch create mode 100644 chromium-127-crabbyavif.patch create mode 100644 chromium-127-el8-ifunc-header.patch rename chromium-124-rust-clang_lib.patch => chromium-127-rust-clanglib.patch (80%) diff --git a/.gitignore b/.gitignore index f1ff222..6a2d41a 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ /node-v20.6.1-linux-x64.tar.xz /linux-arm64-0.19.2.tgz /linux-x64-0.19.2.tgz +/v0.69.4.tar.gz diff --git a/chromium-126-el8-ifunc-header.patch b/chromium-126-el8-ifunc-header.patch deleted file mode 100644 index 72368df..0000000 --- a/chromium-126-el8-ifunc-header.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -up chromium-126.0.6478.55/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h.me chromium-126.0.6478.55/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h ---- chromium-126.0.6478.55/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h.me 2024-06-12 13:09:47.539620293 -0400 -+++ chromium-126.0.6478.55/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h 2024-06-12 13:12:10.570739701 -0400 -@@ -10,9 +10,11 @@ - #include "partition_alloc/build_config.h" - #include "partition_alloc/partition_alloc_buildflags.h" - -+#if 0 - #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) - #define HAS_HW_CAPS - #endif -+#endif - - #if defined(ARCH_CPU_ARM64) && defined(HAS_HW_CAPS) - #include diff --git a/chromium-127-crabbyavif.patch b/chromium-127-crabbyavif.patch new file mode 100644 index 0000000..a72200e --- /dev/null +++ b/chromium-127-crabbyavif.patch @@ -0,0 +1,38 @@ +commit 89dcd2d419755421290f85e32617acabdd81cac1 +Author: lauren n. liberda +Date: Thu Jun 20 18:55:57 2024 +0000 + + unbundle: add missing dav1d targets + + fixes "ERROR Unresolved dependencies. + //third_party/crabbyavif:crabbyavif_dav1d_bindings(//build/toolchain/linux/unbundle:default) + needs //third_party/dav1d:dav1d_config(//build/toolchain/linux/unbundle:default) + //third_party/crabbyavif:crabbyavif_dav1d_bindings(//build/toolchain/linux/unbundle:default) + needs //third_party/dav1d:dav1d_headers(//build/toolchain/linux/unbundle:default)" + + Change-Id: I85442e5fb67a804985354570fba453cc619c83d7 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642761 + Reviewed-by: Lei Zhang + Reviewed-by: Thomas Anderson + Commit-Queue: Thomas Anderson + Cr-Commit-Position: refs/heads/main@{#1317534} + +diff --git a/build/linux/unbundle/dav1d.gn b/build/linux/unbundle/dav1d.gn +index 3d65158bc6144..a6d005a6622e3 100644 +--- a/build/linux/unbundle/dav1d.gn ++++ b/build/linux/unbundle/dav1d.gn +@@ -21,3 +21,14 @@ source_set("dav1d") { + deps = [ ":dav1d_shim" ] + public_configs = [ ":system_dav1d" ] + } ++ ++group("dav1d_headers") { ++ public_deps = [ ":dav1d_shim" ] ++} ++ ++config("dav1d_config") { ++ configs = [ ++ ":system_dav1d", ++ ":dav1d_shim_config", ++ ] ++} diff --git a/chromium-127-el8-ifunc-header.patch b/chromium-127-el8-ifunc-header.patch new file mode 100644 index 0000000..985b118 --- /dev/null +++ b/chromium-127-el8-ifunc-header.patch @@ -0,0 +1,15 @@ +diff -up chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h.me chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h +--- chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h.me 2024-07-25 23:58:19.751616508 +0200 ++++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h 2024-07-26 00:01:46.391800969 +0200 +@@ -10,9 +10,11 @@ + #include "partition_alloc/build_config.h" + #include "partition_alloc/partition_alloc_buildflags.h" + ++#if 0 + #if PA_BUILDFLAG(IS_ANDROID) || PA_BUILDFLAG(IS_LINUX) + #define HAS_HW_CAPS + #endif ++#endif + + #if PA_BUILDFLAG(PA_ARCH_CPU_ARM64) && defined(HAS_HW_CAPS) + #include diff --git a/chromium-124-rust-clang_lib.patch b/chromium-127-rust-clanglib.patch similarity index 80% rename from chromium-124-rust-clang_lib.patch rename to chromium-127-rust-clanglib.patch index cc152ec..55b3ce7 100644 --- a/chromium-124-rust-clang_lib.patch +++ b/chromium-127-rust-clanglib.patch @@ -1,3 +1,15 @@ +diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.6533.72/build/rust/rust_bindgen.gni +--- chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me 2024-07-25 16:11:18.754551595 +0200 ++++ chromium-127.0.6533.72/build/rust/rust_bindgen.gni 2024-07-25 16:11:33.997837660 +0200 +@@ -22,7 +22,7 @@ _libclang_path = rust_bindgen_root + if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chromium-121.0.6167.57/build/config/clang/BUILD.gn --- chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib 2024-01-10 16:43:01.000000000 +0100 +++ chromium-121.0.6167.57/build/config/clang/BUILD.gn 2024-01-20 19:51:38.481992799 +0100 diff --git a/chromium-latest.py b/chromium-latest.py index eb2d3f0..e06be49 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -315,7 +315,11 @@ if __name__ == '__main__': nacl_versions(chromium_version) if (args.cleansources): - junk_dirs = ['build/linux/debian_bullseye_amd64-sysroot', 'build/linux/debian_bullseye_i386-sysroot'] + junk_dirs = ['build/linux/debian_bullseye_amd64-sysroot', + 'build/linux/debian_bullseye_i386-sysroot', + 'third_party/node/linux/node-linux-x64', + 'third_party/rust-toolchain', + 'third_party/rust-src'] # First, the dirs: for directory in junk_dirs: diff --git a/chromium.spec b/chromium.spec index 47fe68e..9c07391 100644 --- a/chromium.spec +++ b/chromium.spec @@ -197,8 +197,22 @@ %global bundlelibaom 1 %global bundlelibavif 1 %global bundlesnappy 1 +%global bundlezstd 1 %global bundleicu 1 %global bundledav1d 1 +%global bundlebrotli 1 +%global bundlelibwebp 1 +%global bundlecrc32c 1 +%global bundleharfbuzz 1 +%global bundlelibpng 1 +%global bundlelibjpeg 1 +%global bundlefreetype 1 +%global bundlelibdrm 1 +%global bundlefontconfig 1 +%global bundleffmpegfree 1 +%global bundlelibopenjpeg2 1 +%global bundlelibtiff 1 +%global bundlelibxml 1 %global bundlepylibs 0 %global bundlelibxslt 0 %global bundleflac 0 @@ -211,7 +225,11 @@ %global bundleopus 0 %global bundlelcms2 0 -# RHEL 7.9 dropped minizip. +# workaround for build error on aarch64 +%ifarch aarch64 +%global bundlehighway 1 +%endif + # enable bundleminizip for Fedora > 39 due to switch to minizip-ng # which breaks the build %global bundleminizip 0 @@ -219,44 +237,21 @@ %global bundleminizip 1 %endif -%if 0%{?rhel} == 8 -%global bundleharfbuzz 1 -%global bundlelibwebp 1 -%global bundlelibpng 1 -%global bundlelibjpeg 1 -%global bundlefreetype 1 -%global bundlelibdrm 1 -%global bundlefontconfig 1 -%global bundleffmpegfree 1 -%global bundlebrotli 1 -%global bundlelibopenjpeg2 1 -%global bundlelibtiff 1 -%global bundlecrc32c 1 -%global bundlelibxml 1 -%global bundledav1d 1 -%else -%if 0%{?fedora} > 38 || 0%{?rhel} > 9 +%if 0%{?fedora} >= 39 || 0%{?rhel} > 9 %global bundlebrotli 0 %global bundlelibwebp 0 -%else -%global bundlebrotli 1 -%global bundlelibwebp 1 -%endif +%global bundlezstd 0 +%global bundlecrc32c 0 +%global bundleharfbuzz 0 +%global bundlefontconfig 0 +%global bundledav1d 0 %global bundlelibpng 0 %global bundlelibjpeg 0 %global bundlelibdrm 0 -%global bundlefontconfig 0 %global bundleffmpegfree 0 %global bundlefreetype 0 %global bundlelibopenjpeg2 0 %global bundlelibtiff 0 -%if 0%{?rhel} == 9 -%global bundlecrc32c 1 -%global bundleharfbuzz 1 -%else -%global bundlecrc32c 0 -%global bundleharfbuzz 0 -%endif %global bundlelibxml 0 %endif @@ -371,7 +366,7 @@ Patch150: chromium-124-qt6.patch # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch -Patch306: chromium-126-el8-ifunc-header.patch +Patch306: chromium-127-el8-ifunc-header.patch # build error: unknown architectural extension on aarch64 (epel8) Patch307: chromium-124-el8-libdav1d-aarch64.patch # 64kpage support on aarch64 (el8) @@ -395,7 +390,7 @@ Patch354: chromium-126-split-threshold-for-reg-with-hint.patch Patch355: chromium-126-system-libstdc++.patch # set clang_lib path -Patch358: chromium-124-rust-clang_lib.patch +Patch358: chromium-127-rust-clanglib.patch # PowerPC64 LE support # Timothy Pearson's patchset @@ -475,6 +470,7 @@ Patch501: chromium-127-ninja-1.21.1-deps-part0.patch Patch502: chromium-127-ninja-1.21.1-deps-part1.patch Patch503: chromium-127-ninja-1.21.1-deps-part2.patch Patch504: chromium-127-ninja-1.21.1-deps-part3.patch +Patch505: chromium-127-crabbyavif.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -509,6 +505,9 @@ Source14: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_ve Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz %endif +# bindgen for epel8 +Source16: https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v0.69.4.tar.gz + # esbuild binary from fedora %if 0%{?fedora} BuildRequires: golang-github-evanw-esbuild @@ -535,6 +534,16 @@ BuildRequires: binutils %endif BuildRequires: rustc +%if 0%{?rhel} == 8 +# need to build bindgen on el8 +BuildRequires: cargo +%else +BuildRequires: bindgen-cli +%endif + +%if ! %{bundlezstd} +BuildRequires: libzstd-devel +%endif # build with system ffmpeg-free %if ! %{bundleffmpegfree} @@ -1191,13 +1200,13 @@ Qt6 UI for chromium. %patch -P503 -p1 -b .ninja-1.21.1-deps %patch -P504 -p1 -b .ninja-1.21.1-deps %endif +%patch -P505 -p1 -b .crabbyavif # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + # Add correct path for nodejs binary -rm -rf third_party/node/linux/node-linux-x64* %if ! %{system_nodejs} pushd third_party/node/linux %ifarch x86_64 @@ -1258,6 +1267,18 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav %endif %build +# build bindgen on el8 +%if 0%{?rhel} == 8 +%__rpmuncompress -x %{SOURCE16} +pushd rust-bindgen-0.69.4 +cargo build +mkdir -p ..%{_bindir} ..%{_libdir} +cp target/debug/bindgen ..%{_bindir} +pushd ..%{_libdir} +ln -fs %{_libdir}/libclang* . +popd +popd +%endif # reduce warnings %if %{clang} @@ -1314,6 +1335,12 @@ export RUSTC_BOOTSTRAP=1 # set rustc version rustc_version="$(rustc --version)" +# set rust bindgen root +%if 0%{?rhel} == 8 +rust_bindgen_root="$PWD%{_prefix}" +%else +rust_bindgen_root="%{_prefix}" +%endif # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" @@ -1363,6 +1390,7 @@ CHROMIUM_CORE_GN_DEFINES+=' use_lld=false' # enable system rust CHROMIUM_CORE_GN_DEFINES+=' rust_sysroot_absolute="%{_prefix}"' +CHROMIUM_CORE_GN_DEFINES+=" rust_bindgen_root=\"$rust_bindgen_root\"" CHROMIUM_CORE_GN_DEFINES+=" rustc_version=\"$rustc_version\"" CHROMIUM_CORE_GN_DEFINES+=' use_sysroot=false' @@ -1568,6 +1596,9 @@ system_libs=() %if ! %{bundleflac} system_libs+=(flac) %endif +%if ! %{bundlezstd} + system_libs+=(zstd) +%endif %if 0%{?noopenh264} system_libs+=(openh264) %endif diff --git a/sources b/sources index 1e661e9..60b93c8 100644 --- a/sources +++ b/sources @@ -3,3 +3,4 @@ SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbe SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (chromium-127.0.6533.72-clean.tar.xz) = 6faa0b0df800bafb31acb003d23f62e5eeea12c49ed3b9bf52c2e4f7ef3a7d7f6069f41026092bcb1e222dcbf4f0a3a0595e9be52502375f0b1094551cc7a98c +SHA512 (v0.69.4.tar.gz) = a493474c89255c801c6fd4eb44e6a94f4d23830dc13c0bbae08c46e5c364e0df176fc00174d6462b70239578d0821e9ff1aaf127d8c60688f38a50a62cf292f4 From 56046b9dcc449c102aadae39a949ce0aa3ad3daf Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 18:00:24 +0200 Subject: [PATCH 025/244] cleanup bundle libs --- chromium.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/chromium.spec b/chromium.spec index 9c07391..484e190 100644 --- a/chromium.spec +++ b/chromium.spec @@ -237,12 +237,8 @@ %global bundleminizip 1 %endif -%if 0%{?fedora} >= 39 || 0%{?rhel} > 9 -%global bundlebrotli 0 -%global bundlelibwebp 0 +%if 0%{?fedora} || 0%{?rhel} >= 9 %global bundlezstd 0 -%global bundlecrc32c 0 -%global bundleharfbuzz 0 %global bundlefontconfig 0 %global bundledav1d 0 %global bundlelibpng 0 @@ -253,6 +249,19 @@ %global bundlelibopenjpeg2 0 %global bundlelibtiff 0 %global bundlelibxml 0 +%if 0%{?rhel} == 9 +%global bundlecrc32c 1 +%global bundleharfbuzz 1 +%global bundlebrotli 1 +%global bundleicu 1 +%global bundlelibwebp 1 +%else +%global bundlecrc32c 0 +%global bundleharfbuzz 0 +%global bundlebrotli 0 +%global bundleicu 0 +%global bundlelibwebp 0 +%endif %endif ### From 2013 until early 2021, Google permitted distribution builds of From 1e6dd8bb56a4e1e763f127117d2e8b3d103ee4ee Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 18:31:46 +0200 Subject: [PATCH 026/244] enable bundleicu as workaround for build error --- chromium.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 484e190..e90703a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -253,13 +253,11 @@ %global bundlecrc32c 1 %global bundleharfbuzz 1 %global bundlebrotli 1 -%global bundleicu 1 %global bundlelibwebp 1 %else %global bundlecrc32c 0 %global bundleharfbuzz 0 %global bundlebrotli 0 -%global bundleicu 0 %global bundlelibwebp 0 %endif %endif From 66480303b23b047e2843972210ed41d07444433f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 18:59:07 +0200 Subject: [PATCH 027/244] drop unsupported rpm macro el8 --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index e90703a..77a3ed5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1276,7 +1276,7 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav %build # build bindgen on el8 %if 0%{?rhel} == 8 -%__rpmuncompress -x %{SOURCE16} +xz -dc %{SOURCE16} | tar -xof - pushd rust-bindgen-0.69.4 cargo build mkdir -p ..%{_bindir} ..%{_libdir} From e8d387a9db08ab134fb2aa71da14b6304f83f113 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 19:49:37 +0200 Subject: [PATCH 028/244] Fix File format not recognized --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 77a3ed5..6850a7c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1276,7 +1276,7 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav %build # build bindgen on el8 %if 0%{?rhel} == 8 -xz -dc %{SOURCE16} | tar -xof - +tar -zxf %{SOURCE16} pushd rust-bindgen-0.69.4 cargo build mkdir -p ..%{_bindir} ..%{_libdir} From 3817a34ec5c984b548565df86c25087237a1f962 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 20:51:40 +0200 Subject: [PATCH 029/244] Run without accessing the network --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 6850a7c..870dde6 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1278,7 +1278,7 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav %if 0%{?rhel} == 8 tar -zxf %{SOURCE16} pushd rust-bindgen-0.69.4 -cargo build +cargo --offline build mkdir -p ..%{_bindir} ..%{_libdir} cp target/debug/bindgen ..%{_bindir} pushd ..%{_libdir} From 1363667847ace45ffcc902cb5dd0a7de9c4dc43f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Jul 2024 23:27:14 +0200 Subject: [PATCH 030/244] refresh ppc64le patches --- chromium.spec | 2 +- fix-rust-linking.patch | 25 ++++--------------- use-sysconf-page-size-on-ppc64.patch | 37 +++++++++++++++------------- 3 files changed, 26 insertions(+), 38 deletions(-) diff --git a/chromium.spec b/chromium.spec index 870dde6..fb019c2 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1192,7 +1192,7 @@ Qt6 UI for chromium. %patch -P407 -p1 -b .fix-ppc64-linux-syscalls-headers %patch -P408 -p1 -b .use-sysconf-page-size-on-ppc64 -%patch -P409 -p1 -b .partition-alloc-4k-detect +#%%patch -P409 -p1 -b .partition-alloc-4k-detect %patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection diff --git a/fix-rust-linking.patch b/fix-rust-linking.patch index a2284e9..92ab34b 100644 --- a/fix-rust-linking.patch +++ b/fix-rust-linking.patch @@ -1,8 +1,8 @@ -Index: chromium-121.0.6167.75/build/toolchain/gcc_toolchain.gni +Index: chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni =================================================================== ---- chromium-121.0.6167.75.orig/build/toolchain/gcc_toolchain.gni -+++ chromium-121.0.6167.75/build/toolchain/gcc_toolchain.gni -@@ -464,7 +464,13 @@ template("single_gcc_toolchain") { +--- chromium-127.0.6533.72.orig/build/toolchain/gcc_toolchain.gni ++++ chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni +@@ -439,7 +439,13 @@ template("single_gcc_toolchain") { # -soname flag is not available on aix ld soname_flag = "-Wl,-soname=\"$soname\"" } @@ -17,7 +17,7 @@ Index: chromium-121.0.6167.75/build/toolchain/gcc_toolchain.gni # Generate a map file to be used for binary size analysis. # Map file adds ~10% to the link time on a z620. -@@ -576,7 +582,13 @@ template("single_gcc_toolchain") { +@@ -551,7 +557,13 @@ template("single_gcc_toolchain") { whole_archive_flag = "-Wl,--whole-archive" no_whole_archive_flag = "-Wl,--no-whole-archive" } @@ -32,18 +32,3 @@ Index: chromium-121.0.6167.75/build/toolchain/gcc_toolchain.gni if (defined(invoker.strip)) { strip_command = "${invoker.strip} -o \"$sofile\" \"$unstripped_sofile\"" -@@ -636,7 +648,13 @@ template("single_gcc_toolchain") { - start_group_flag = "-Wl,--start-group" - end_group_flag = "-Wl,--end-group " - } -- link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag {{libs}} {{rlibs}}" -+ if (target_cpu == "ppc64") { -+ # Work around linker failures due to Rust libraries and the use of whole-archive -+ link_command = "$ld -Wl,--start-group {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" @\"$rspfile\" {{solibs}} {{libs}} {{rlibs}} -Wl,--end-group" -+ } -+ else { -+ link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag {{libs}} {{rlibs}}" -+ } - - # Generate a map file to be used for binary size analysis. - # Map file adds ~10% to the link time on a z620. diff --git a/use-sysconf-page-size-on-ppc64.patch b/use-sysconf-page-size-on-ppc64.patch index 1d8b616..26848ea 100644 --- a/use-sysconf-page-size-on-ppc64.patch +++ b/use-sysconf-page-size-on-ppc64.patch @@ -1,10 +1,12 @@ ---- a/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +=================================================================== +--- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h ++++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h @@ -176,7 +176,11 @@ SystemPageBaseMask() { return ~SystemPageOffsetMask(); } -+#if defined(ARCH_CPU_PPC64) ++#if PA_BUILDFLAG(PA_ARCH_CPU_PPC64_FAMILY) +constexpr size_t kPageMetadataShift = 6; // 64 bytes per partition page. +#else constexpr size_t kPageMetadataShift = 5; // 32 bytes per partition page. @@ -12,13 +14,15 @@ constexpr size_t kPageMetadataSize = 1 << kPageMetadataShift; } // namespace internal ---- a/base/allocator/partition_allocator/src/partition_alloc/partition_page.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_page.h -@@ -86,7 +86,11 @@ struct SlotSpanMetadata { +Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page.h +=================================================================== +--- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_page.h ++++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page.h +@@ -87,7 +87,11 @@ struct SlotSpanMetadata { // CHECK()ed in AllocNewSlotSpan(). // The maximum number of bits needed to cover all currently supported OSes. -+#if defined(ARCH_CPU_PPC64) ++#if PA_BUILDFLAG(PA_ARCH_CPU_PPC64_FAMILY) + static constexpr size_t kMaxSlotsPerSlotSpanBits = 15; +#else static constexpr size_t kMaxSlotsPerSlotSpanBits = 13; @@ -26,11 +30,11 @@ static_assert(kMaxSlotsPerSlotSpan < (1 << kMaxSlotsPerSlotSpanBits), ""); // |marked_full| isn't equivalent to being full. Slot span is marked as full -@@ -100,7 +104,11 @@ struct SlotSpanMetadata { +@@ -101,7 +105,11 @@ struct SlotSpanMetadata { private: const uint32_t can_store_raw_size_ : 1; uint32_t freelist_is_sorted_ : 1; -+#if defined(ARCH_CPU_PPC64) ++#if PA_BUILDFLAG(PA_ARCH_CPU_PPC64_FAMILY) + uint32_t unused1_ : (64 - 1 - 2 * kMaxSlotsPerSlotSpanBits - 1 - 1); +#else uint32_t unused1_ : (32 - 1 - 2 * kMaxSlotsPerSlotSpanBits - 1 - 1); @@ -38,16 +42,15 @@ // If |in_empty_cache_|==1, |empty_cache_index| is undefined and mustn't be // used. uint16_t in_empty_cache_ : 1; ---- a/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -@@ -21,6 +21,11 @@ static constexpr size_t kMaxSlotsPerSlot +Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h +=================================================================== +--- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h ++++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h +@@ -20,7 +20,7 @@ + // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, // so we use the 16 kiB maximum (64 kiB will crash). - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; -+#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_PPC64) -+// System page size is not a constant on OpenPOWER systems, but is either 4kiB -+// or 64kiB (1 << 12 or 1 << 16) -+// And PartitionPageSize() is 4 times the OS page size. +-static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; +static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; #else // A slot span can "span" multiple PartitionPages, but then its slot size is From 3396c12c1167d1cf5fd11f2b99130ccc513eb253 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 27 Jul 2024 00:25:01 +0200 Subject: [PATCH 031/244] workaround for missing bindgen on el8 --- .gitignore | 2 ++ chromium.spec | 29 ++++++++++++++++------------- sources | 3 ++- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 6a2d41a..4f2e25c 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ /linux-arm64-0.19.2.tgz /linux-x64-0.19.2.tgz /v0.69.4.tar.gz +/bindgen-cli-aarch64.tar.xz +/bindgen-cli-x86_64.tar.xz diff --git a/chromium.spec b/chromium.spec index fb019c2..43df613 100644 --- a/chromium.spec +++ b/chromium.spec @@ -513,7 +513,8 @@ Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuil %endif # bindgen for epel8 -Source16: https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v0.69.4.tar.gz +Source16: https://than.fedorapeople.org/epel8/bindgen-cli-aarch64.tar.xz +Source17: https://than.fedorapeople.org/epel8/bindgen-cli-x86_64.tar.xz # esbuild binary from fedora %if 0%{?fedora} @@ -1213,6 +1214,20 @@ Qt6 UI for chromium. # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + +# workaround for missing bindgen on el8 +%if 0%{?rhel} == 8 +%ifarch aarch64 +tar -Jxf %{SOURCE16} +%endif +%ifarch x86_64 +tar -Jxf %{SOURCE17} +%endif +mkdir -p usr/%{_lib} +pushd usr/%{_lib} +ln -fs %{_libdir}/libclang* . +popd +%endif + # Add correct path for nodejs binary %if ! %{system_nodejs} pushd third_party/node/linux @@ -1274,18 +1289,6 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav %endif %build -# build bindgen on el8 -%if 0%{?rhel} == 8 -tar -zxf %{SOURCE16} -pushd rust-bindgen-0.69.4 -cargo --offline build -mkdir -p ..%{_bindir} ..%{_libdir} -cp target/debug/bindgen ..%{_bindir} -pushd ..%{_libdir} -ln -fs %{_libdir}/libclang* . -popd -popd -%endif # reduce warnings %if %{clang} diff --git a/sources b/sources index 60b93c8..824d471 100644 --- a/sources +++ b/sources @@ -3,4 +3,5 @@ SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbe SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (chromium-127.0.6533.72-clean.tar.xz) = 6faa0b0df800bafb31acb003d23f62e5eeea12c49ed3b9bf52c2e4f7ef3a7d7f6069f41026092bcb1e222dcbf4f0a3a0595e9be52502375f0b1094551cc7a98c -SHA512 (v0.69.4.tar.gz) = a493474c89255c801c6fd4eb44e6a94f4d23830dc13c0bbae08c46e5c364e0df176fc00174d6462b70239578d0821e9ff1aaf127d8c60688f38a50a62cf292f4 +SHA512 (bindgen-cli-aarch64.tar.xz) = 1a5ae4e8fdd31d80e8111c4d5f2115336684763ecd3a442ffecdbc2a37bab146f88bdee0bb1ea7a98e1049f81b12e64bd0ce5510529b30a74ce3306488ac129b +SHA512 (bindgen-cli-x86_64.tar.xz) = 7ccc9b43b32d3a064a75cfc150e060711356da8fe98e83d855bae017108ef8e9e172fbdd6e2579433c19cfb56ababa5b77a8db6fa57a5e657a3878778ca10a37 From dc769b5526386090c07b8cbd17c73b7a601ec76d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 27 Jul 2024 11:39:29 +0200 Subject: [PATCH 032/244] remove old patch for el8 --- chromium-124-el8-libdav1d-aarch64.patch | 53 ------------------------- chromium.spec | 3 -- 2 files changed, 56 deletions(-) delete mode 100644 chromium-124-el8-libdav1d-aarch64.patch diff --git a/chromium-124-el8-libdav1d-aarch64.patch b/chromium-124-el8-libdav1d-aarch64.patch deleted file mode 100644 index 03862e9..0000000 --- a/chromium-124-el8-libdav1d-aarch64.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- chromium-124.0.6367.60/third_party/dav1d/libdav1d/src/arm/asm.S 2024-04-15 22:34:36.000000000 +0200 -+++ chromium-122.0.6261.128/third_party/dav1d/libdav1d/src/arm/asm.S 2024-03-13 00:38:27.000000000 +0100 -@@ -34,50 +34,6 @@ - #define x18 do_not_use_x18 - #define w18 do_not_use_w18 - --#if HAVE_AS_ARCH_DIRECTIVE -- .arch AS_ARCH_LEVEL --#endif -- --#if HAVE_AS_ARCHEXT_DOTPROD_DIRECTIVE --#define ENABLE_DOTPROD .arch_extension dotprod --#define DISABLE_DOTPROD .arch_extension nodotprod --#else --#define ENABLE_DOTPROD --#define DISABLE_DOTPROD --#endif --#if HAVE_AS_ARCHEXT_I8MM_DIRECTIVE --#define ENABLE_I8MM .arch_extension i8mm --#define DISABLE_I8MM .arch_extension noi8mm --#else --#define ENABLE_I8MM --#define DISABLE_I8MM --#endif --#if HAVE_AS_ARCHEXT_SVE_DIRECTIVE --#define ENABLE_SVE .arch_extension sve --#define DISABLE_SVE .arch_extension nosve --#else --#define ENABLE_SVE --#define DISABLE_SVE --#endif --#if HAVE_AS_ARCHEXT_SVE2_DIRECTIVE --#define ENABLE_SVE2 .arch_extension sve2 --#define DISABLE_SVE2 .arch_extension nosve2 --#else --#define ENABLE_SVE2 --#define DISABLE_SVE2 --#endif -- --/* If we do support the .arch_extension directives, disable support for all -- * the extensions that we may use, in case they were implicitly enabled by -- * the .arch level. This makes it clear if we try to assemble an instruction -- * from an unintended extension set; we only allow assmbling such instructions -- * within regions where we explicitly enable those extensions. */ --DISABLE_DOTPROD --DISABLE_I8MM --DISABLE_SVE --DISABLE_SVE2 -- -- - /* Support macros for - * - Armv8.3-A Pointer Authentication and - * - Armv8.5-A Branch Target Identification diff --git a/chromium.spec b/chromium.spec index 43df613..bc1da5d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -374,8 +374,6 @@ Patch150: chromium-124-qt6.patch # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch Patch306: chromium-127-el8-ifunc-header.patch -# build error: unknown architectural extension on aarch64 (epel8) -Patch307: chromium-124-el8-libdav1d-aarch64.patch # 64kpage support on aarch64 (el8) Patch308: chromium-124-el8-support-64kpage.patch @@ -1113,7 +1111,6 @@ Qt6 UI for chromium. %ifarch aarch64 %patch -P305 -p1 -b .el8-memory_tagging %patch -P306 -p1 -b .el8-ifunc-header -%patch -P307 -p1 -b .el8-libdav1d-aarch64 %patch -P308 -p1 -b .el8-support-64kpage.patch %endif %endif From d31a033826325a14e2e6ebce84798eab47fa69cc Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 28 Jul 2024 11:57:43 +0200 Subject: [PATCH 033/244] add missing files for el8 on aarch64 --- clean_ffmpeg.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index abb1236..1fb4b80 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -236,6 +236,7 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavcodec/aarch64/hpeldsp_neon.S \ libavcodec/aarch64/neon.S \ libavcodec/aarch64/vorbisdsp_neon.S \ + libavcodec/aarch64/autorename_libavcodec_aarch64_vorbisdsp_neon.S \ libavcodec/aarch64/vorbisdsp_init.c \ libavcodec/aarch64/vp8dsp_neon.S \ libavcodec/x86/hpeldsp.asm \ @@ -273,6 +274,8 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavutil/aarch64/cpu.c \ libavutil/aarch64/float_dsp_init.c \ libavutil/aarch64/float_dsp_neon.S \ + libavutil/aarch64/autorename_libavutil_aarch64_float_dsp_neon.S \ + libavutil/aarch64/tx_float_neon.S \ libavutil/aarch64/timer.h \ libavutil/cpu.c \ libavutil/fixed_dsp.c \ @@ -285,6 +288,7 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavutil/x86/cpu.c \ libavutil/x86/float_dsp_init.c \ libavutil/x86/tx_float_init.c \ + libavutil/aarch64/tx_float_init.c \ libavutil/x86/x86inc.asm \ libavutil/x86/x86util.asm " From 6f1e1e3f62f8608d61987d0d21cd90979446846e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 28 Jul 2024 14:07:43 +0200 Subject: [PATCH 034/244] recreated source --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index 824d471..429398f 100644 --- a/sources +++ b/sources @@ -2,6 +2,6 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-127.0.6533.72-clean.tar.xz) = 6faa0b0df800bafb31acb003d23f62e5eeea12c49ed3b9bf52c2e4f7ef3a7d7f6069f41026092bcb1e222dcbf4f0a3a0595e9be52502375f0b1094551cc7a98c SHA512 (bindgen-cli-aarch64.tar.xz) = 1a5ae4e8fdd31d80e8111c4d5f2115336684763ecd3a442ffecdbc2a37bab146f88bdee0bb1ea7a98e1049f81b12e64bd0ce5510529b30a74ce3306488ac129b SHA512 (bindgen-cli-x86_64.tar.xz) = 7ccc9b43b32d3a064a75cfc150e060711356da8fe98e83d855bae017108ef8e9e172fbdd6e2579433c19cfb56ababa5b77a8db6fa57a5e657a3878778ca10a37 +SHA512 (chromium-127.0.6533.72-clean.tar.xz) = b2237044a6825788300e30bdd5a3e960b8749df07ceadcab20386f50e14fb201215fe2a62c6af99fcb4d822f205ca60928a6bc922b44c24d1b418ff4972456fa From dd7b387573dc733d672aeefac3cc3881d0964122 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 31 Jul 2024 10:30:27 +0200 Subject: [PATCH 035/244] - update to 127.0.6533.88 - refreshed ppc64le patches - workaround for build error on aarch64 F41 --- 0001-Add-PPC64-support-for-boringssl.patch | 208 +++++++++--------- 0001-Add-ppc64-target-to-libaom.patch | 18 +- ...generated-config-for-libaom-on-ppc64.patch | 24 +- ...OWER8-AltiVec-VSX-CPU-features-when-.patch | 8 +- ...Implement-support-for-PPC64-on-Linux.patch | 206 ++++++++--------- ...Implement-support-for-ppc64-on-Linux.patch | 138 ++++++++---- ...f-ppc64-glibc-workaround-in-SIGSYS-h.patch | 8 +- ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 6 +- ...plement-partial-support-for-ppc64-sy.patch | 20 +- ...date-IsSyscallAllowed-in-broker_proc.patch | 6 +- ...date-syscall-helpers-lists-for-ppc64.patch | 42 ++-- ...f_dsl-Update-syscall-ranges-for-ppc6.patch | 6 +- ..._manager-sandbox-linux-Fix-TCGETS-de.patch | 6 +- ...e-Include-missing-header-cstddef-in-.patch | 6 +- ...ibvpx-Properly-generate-gni-on-ppc64.patch | 8 +- ...ty-lss-Don-t-look-for-mmap2-on-ppc64.patch | 6 +- ...t-Include-altivec.h-on-ppc64-with-SI.patch | 6 +- ...-PPC64-generated-files-for-boringssl.patch | 24 +- 0002-Add-ppc64-trap-instructions.patch | 6 +- 0002-Include-cstddef-to-fix-build.patch | 6 +- ...f_dsl-Modify-seccomp_macros-to-add-s.patch | 6 +- ...party-libvpx-Remove-bad-ppc64-config.patch | 28 ++- 0002-third_party-lss-kernel-structs.patch | 6 +- ...stem_headers-Update-linux-seccomp-he.patch | 6 +- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +-- ...stem_headers-Update-linux-signal-hea.patch | 6 +- ...y-crashpad-port-curl-transport-ppc64.patch | 6 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- ...x-seccomp-bpf-Add-ppc64-syscall-stub.patch | 6 +- ...box-linux-update-unit-test-for-ppc64.patch | 8 +- ...linux-disable-timedwait-time64-ppc64.patch | 6 +- 0007-sandbox-linux-add-ppc64-stat.patch | 6 +- 0008-sandbox-fix-ppc64le-glibc234.patch | 30 +-- HACK-debian-clang-disable-skia-musttail.patch | 6 +- HACK-third_party-libvpx-use-generic-gnu.patch | 20 +- Rtc_base-system-arch.h-PPC.patch | 6 +- ...ox-linux-services-credentials.cc-PPC.patch | 6 +- ...ium-127-aarch64-duplicate-case-value.patch | 13 ++ chromium.spec | 11 +- dawn-fix-ppc64le-detection.patch | 6 +- dawn-fix-typos.patch | 12 +- fix-breakpad-compile.patch | 12 +- fix-clang-selection.patch | 6 +- fix-partition-alloc-compile.patch | 8 +- fix-ppc64-linux-syscalls-headers.patch | 6 +- fix-rustc.patch | 8 +- memory-allocator-dcheck-assert-fix.patch | 12 +- skia-vsx-instructions.patch | 132 +++++------ sources | 2 +- use-sysconf-page-size-on-ppc64.patch | 2 +- 50 files changed, 640 insertions(+), 546 deletions(-) create mode 100644 chromium-127-aarch64-duplicate-case-value.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index 6364b69..0a87d7a 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/cpu_ppc64le.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/cpu_ppc64le.c =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/cpu_ppc64le.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/cpu_ppc64le.c @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/cpu_ppc64le.c +} + +#endif // OPENSSL_PPC64LE -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/crypto.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/crypto.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/crypto.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/crypto.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/crypto.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/crypto.c @@ -25,10 +25,12 @@ static_assert(sizeof(ossl_ssize_t) == si "ossl_ssize_t should be the same size as size_t"); @@ -377,10 +377,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/crypto.c #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) #include -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4191,10 +4191,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -59,6 +59,12 @@ OPENSSL_INLINE int vpaes_capable(void) { OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4208,10 +4208,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // !NO_ASM -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/bcm.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bcm.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/bcm.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bcm.c @@ -102,6 +102,7 @@ #include "self_check/fips.c" #include "self_check/self_check.c" @@ -4220,10 +4220,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/bcm.c #include "sha/sha1.c" #include "sha/sha256.c" #include "sha/sha512.c" -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c @@ -384,6 +384,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4248,10 +4248,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c @@ -1455,6 +1455,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) @@ -4261,10 +4261,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4937,10 +4937,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/ +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c @@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4955,10 +4955,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif gcm_init_nohw(out_table, H); -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc @@ -215,5 +215,15 @@ TEST(GCMTest, ABI) { } } @@ -4975,10 +4975,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/ +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h @@ -325,6 +325,13 @@ void aes_gcm_dec_kernel(const uint8_t *i const u128 Htable[16]); #endif @@ -4993,10 +4993,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif #endif // OPENSSL_NO_ASM -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -5006,10 +5006,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/rand/g #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c @@ -431,6 +431,11 @@ void RAND_bytes_with_additional_data(uin // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -5022,10 +5022,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5043,10 +5043,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c @@ -0,0 +1,361 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. @@ -5409,10 +5409,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/internal.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/internal.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/internal.h @@ -181,7 +181,7 @@ extern "C" { @@ -5439,10 +5439,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5764,10 +5764,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5874,10 +5874,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6141,10 +6141,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-125.0.6422.41/third_party/boringssl/src/include/openssl/target.h +Index: chromium-127.0.6533.72/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-125.0.6422.41/third_party/boringssl/src/include/openssl/target.h +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-127.0.6533.72/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6155,10 +6155,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -37,6 +37,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6168,10 +6168,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -54,7 +54,8 @@ type stringWriter interface { type processorType int @@ -6771,10 +6771,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,7 +12,7 @@ # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ @@ -6784,10 +6784,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ # https://github.com/pointlander/peg. delocate.go has a go:generate line for # rebuilding delocate.peg.go from this file. -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6800,10 +6800,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6814,10 +6814,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -6881,19 +6881,19 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -6967,10 +6967,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.c" + .abiversion 2 @@ -7133,10 +7133,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -7690,10 +7690,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.c" + .abiversion 2 @@ -7921,10 +7921,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -8603,10 +8603,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8631,10 +8631,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -8814,10 +8814,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c +Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c -+++ chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c ++++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c @@ -416,6 +416,10 @@ static void sha1_block_data_order(uint32 return; } @@ -8829,10 +8829,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-125.0.6422.41/third_party/boringssl/src/build.json +Index: chromium-127.0.6533.72/third_party/boringssl/src/build.json =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/build.json -+++ chromium-125.0.6422.41/third_party/boringssl/src/build.json +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/build.json ++++ chromium-127.0.6533.72/third_party/boringssl/src/build.json @@ -118,6 +118,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} @@ -8852,7 +8852,7 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/build.json "crypto/crypto.c", "crypto/curve25519/curve25519.c", "crypto/curve25519/curve25519_64_adx.c", -@@ -765,6 +770,9 @@ +@@ -769,6 +774,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8862,10 +8862,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-125.0.6422.41/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-127.0.6533.72/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-125.0.6422.41/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-127.0.6533.72/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8884,10 +8884,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC", "-DOPENSSL_IA32_SSE2"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC", "-DOPENSSL_IA32_SSE2"}) -Index: chromium-125.0.6422.41/third_party/boringssl/BUILD.generated.gni +Index: chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni =================================================================== ---- chromium-125.0.6422.41.orig/third_party/boringssl/BUILD.generated.gni -+++ chromium-125.0.6422.41/third_party/boringssl/BUILD.generated.gni +--- chromium-127.0.6533.72.orig/third_party/boringssl/BUILD.generated.gni ++++ chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni @@ -93,6 +93,7 @@ crypto_sources = [ "src/crypto/cpu_arm_linux.c", "src/crypto/cpu_arm_linux.h", @@ -8912,10 +8912,10 @@ Index: chromium-125.0.6422.41/third_party/boringssl/BUILD.generated.gni "src/gen/bcm/ghash-ssse3-x86-apple.S", "src/gen/bcm/ghash-ssse3-x86-linux.S", "src/gen/bcm/ghash-ssse3-x86_64-apple.S", -Index: chromium-125.0.6422.41/third_party/boringssl/README.ppc64le +Index: chromium-127.0.6533.72/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-125.0.6422.41/third_party/boringssl/README.ppc64le ++++ chromium-127.0.6533.72/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: diff --git a/0001-Add-ppc64-target-to-libaom.patch b/0001-Add-ppc64-target-to-libaom.patch index 86630dd..0dc3f12 100644 --- a/0001-Add-ppc64-target-to-libaom.patch +++ b/0001-Add-ppc64-target-to-libaom.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Add ppc64 target to libaom third_party/libaom/cmake_update.sh | 3 +++ 2 files changed, 15 insertions(+) -Index: chromium-120.0.6099.71/third_party/libaom/BUILD.gn +Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn =================================================================== ---- chromium-120.0.6099.71.orig/third_party/libaom/BUILD.gn -+++ chromium-120.0.6099.71/third_party/libaom/BUILD.gn -@@ -248,6 +248,18 @@ if (current_cpu == "arm64") { +--- chromium-127.0.6533.72.orig/third_party/libaom/BUILD.gn ++++ chromium-127.0.6533.72/third_party/libaom/BUILD.gn +@@ -272,6 +272,18 @@ if (current_cpu == "arm64") { } } @@ -31,7 +31,7 @@ Index: chromium-120.0.6099.71/third_party/libaom/BUILD.gn static_library("libaom") { check_includes = false if (!is_debug && is_win) { -@@ -312,6 +324,9 @@ static_library("libaom") { +@@ -335,6 +347,9 @@ static_library("libaom") { # This is needed by all arm boards due to aom_arm_cpu_caps() sources += [ "source/libaom/aom_ports/aarch32_cpudetect.c" ] } @@ -41,11 +41,11 @@ Index: chromium-120.0.6099.71/third_party/libaom/BUILD.gn if (is_android) { deps += [ "//third_party/cpu_features:ndk_compat" ] } -Index: chromium-120.0.6099.71/third_party/libaom/cmake_update.sh +Index: chromium-127.0.6533.72/third_party/libaom/cmake_update.sh =================================================================== ---- chromium-120.0.6099.71.orig/third_party/libaom/cmake_update.sh -+++ chromium-120.0.6099.71/third_party/libaom/cmake_update.sh -@@ -187,6 +187,9 @@ gen_config_files linux/arm64-cpu-detect +--- chromium-127.0.6533.72.orig/third_party/libaom/cmake_update.sh ++++ chromium-127.0.6533.72/third_party/libaom/cmake_update.sh +@@ -192,6 +192,9 @@ gen_config_files linux/arm64-cpu-detect "${toolchain}/arm64-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 \ ${all_platforms}" diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 2927b87..9c32d2d 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm ++++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm @@ -0,0 +1,95 @@ +; +; Copyright (c) 2024, Alliance for Open Media. All rights reserved @@ -98,10 +98,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved @@ -116,10 +116,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi +#include "aom/aom_codec.h" +static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_config.h ++++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.h @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved @@ -220,10 +220,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi +#define INLINE inline +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h ++++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h @@ -0,0 +1,1541 @@ +// This file is generated. Do not edit. +#ifndef AOM_DSP_RTCD_H_ @@ -1766,10 +1766,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif -Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h @@ -0,0 +1,107 @@ +// This file is generated. Do not edit. +#ifndef AOM_SCALE_RTCD_H_ @@ -1878,10 +1878,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif -Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h ++++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h @@ -0,0 +1,484 @@ +// This file is generated. Do not edit. +#ifndef AV1_RTCD_H_ diff --git a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch index 100ed7c..9ddfc49 100644 --- a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +++ b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) -Index: chromium-120.0.6099.71/v8/BUILD.gn +Index: chromium-127.0.6533.72/v8/BUILD.gn =================================================================== ---- chromium-120.0.6099.71.orig/v8/BUILD.gn -+++ chromium-120.0.6099.71/v8/BUILD.gn -@@ -1340,6 +1340,12 @@ config("toolchain") { +--- chromium-127.0.6533.72.orig/v8/BUILD.gn ++++ chromium-127.0.6533.72/v8/BUILD.gn +@@ -1396,6 +1396,12 @@ config("toolchain") { } if (host_byteorder == "little") { defines += [ "V8_TARGET_ARCH_PPC_LE" ] diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index 3544105..4c00488 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -687,6 +687,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -143,7 +143,7 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_co default: { LOG(ERROR) << "unknown context architecture " << context_snapshot->architecture; -@@ -601,5 +608,48 @@ size_t MinidumpContextRISCV64Writer::Con +@@ -605,5 +612,48 @@ size_t MinidumpContextRISCV64Writer::Con DCHECK_GE(state(), kStateFrozen); return sizeof(context_); } @@ -192,10 +192,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -328,6 +328,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,11 +383,11 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/capture_memory.cc -@@ -122,6 +122,11 @@ void CaptureMemory::PointedToByContext(c +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/capture_memory.cc +@@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); } @@ -399,10 +399,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -424,7 +424,7 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context + case kCPUArchitecturePPC64: + return ppc64->nip; default: - NOTREACHED(); + NOTREACHED_IN_MIGRATION(); return ~0ull; @@ -191,6 +193,8 @@ uint64_t CPUContext::StackPointer() cons return arm64->sp; @@ -433,7 +433,7 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context + case kCPUArchitecturePPC64: + return ppc64->regs[1]; default: - NOTREACHED(); + NOTREACHED_IN_MIGRATION(); return ~0ull; @@ -231,6 +235,7 @@ bool CPUContext::Is64Bit() const { case kCPUArchitectureX86_64: @@ -443,10 +443,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +571,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -195,12 +195,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +592,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +666,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -91,6 +91,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +679,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index efb08d3..7c7ac0b 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,8 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) ---- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -65,8 +67,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else #error "This code has not been ported to your platform yet." #endif ---- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -149,8 +153,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium +#endif + } // namespace google_breakpad ---- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -174,8 +180,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium }; } // namespace google_breakpad ---- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -225,8 +233,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #endif } // namespace google_breakpad ---- a/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ b/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -237,8 +247,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif ---- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc @@ -464,6 +464,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); @@ -283,8 +295,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); ---- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -200,7 +200,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -298,8 +312,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium fpstate_t float_state; #endif }; ---- a/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc @@ -321,7 +321,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; @@ -331,8 +347,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); ---- a/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -141,7 +141,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -375,8 +393,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; ---- a/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -400,8 +420,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -424,8 +446,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -437,8 +461,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -449,8 +475,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium typedef Elf64_auxv_t elf_aux_entry; #endif ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -56,6 +56,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -460,8 +488,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else #error This test has not been ported to this platform. #endif ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -189,12 +189,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -503,8 +533,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else # error "This code hasn't been ported to your platform yet." #endif ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -524,8 +556,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else #error This test has not been ported to this platform. #endif ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -144,7 +144,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -579,8 +613,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -590,8 +626,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif ---- a/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ b/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -602,8 +640,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium #else # error "This code has not been ported to your platform yet." #endif ---- a/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ b/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -614,8 +654,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else ---- a/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ b/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -630,8 +672,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } ---- a/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ b/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); @@ -643,8 +687,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == NULL); ---- a/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ b/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc @@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) diff --git a/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch b/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch index 636e674..9e34173 100644 --- a/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch +++ b/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch @@ -10,11 +10,11 @@ More investigation required. sandbox/linux/seccomp-bpf/trap.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf/trap.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf/trap.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf/trap.cc -@@ -232,6 +232,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf/trap.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc +@@ -231,6 +231,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* SetIsInSigHandler(); } diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index a001309..8e5bf92 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -7,10 +7,10 @@ Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64 sandbox/features.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-120.0.6099.71/sandbox/features.gni +Index: chromium-127.0.6533.72/sandbox/features.gni =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/features.gni -+++ chromium-120.0.6099.71/sandbox/features.gni +--- chromium-127.0.6533.72.orig/sandbox/features.gni ++++ chromium-127.0.6533.72/sandbox/features.gni @@ -9,7 +9,8 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || diff --git a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch index 5982a19..68eff7f 100644 --- a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch +++ b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch @@ -17,10 +17,10 @@ GNU/Linux environments, but may require expansion elsewhere. create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h -Index: chromium-120.0.6099.71/sandbox/linux/BUILD.gn +Index: chromium-127.0.6533.72/sandbox/linux/BUILD.gn =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/BUILD.gn -+++ chromium-120.0.6099.71/sandbox/linux/BUILD.gn +--- chromium-127.0.6533.72.orig/sandbox/linux/BUILD.gn ++++ chromium-127.0.6533.72/sandbox/linux/BUILD.gn @@ -383,6 +383,8 @@ component("sandbox_services") { source_set("sandbox_services_headers") { @@ -30,10 +30,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/BUILD.gn "system_headers/arm64_linux_syscalls.h", "system_headers/arm_linux_syscalls.h", "system_headers/arm_linux_ucontext.h", -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/linux_syscalls.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/system_headers/linux_syscalls.h -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/linux_syscalls.h +--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_syscalls.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h @@ -35,5 +35,9 @@ #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" #endif @@ -44,10 +44,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/system_headers/linux_syscalls.h + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_syscalls.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h =================================================================== --- /dev/null -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_syscalls.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -61,10 +61,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_syscalls. +//TODO: is it necessary to redefine syscall numbers for PPC64? + +#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_ucontext.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_ucontext.h =================================================================== --- /dev/null -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_ucontext.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_ucontext.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be diff --git a/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch b/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch index ca511f5..7f32541 100644 --- a/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch +++ b/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch @@ -7,10 +7,10 @@ Subject: [PATCH] sandbox/linux: Update IsSyscallAllowed in broker_process.cc sandbox/linux/syscall_broker/broker_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-120.0.6099.71/sandbox/linux/syscall_broker/broker_process.cc +Index: chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/syscall_broker/broker_process.cc -+++ chromium-120.0.6099.71/sandbox/linux/syscall_broker/broker_process.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/syscall_broker/broker_process.cc ++++ chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc @@ -169,7 +169,7 @@ bool BrokerProcess::IsSyscallBrokerable( #if defined(__NR_fstatat64) case __NR_fstatat64: diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index 70f27a2..b2f3639 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -12,10 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 sandbox/linux/services/syscall_wrappers.cc | 2 +- 6 files changed, 73 insertions(+), 55 deletions(-) -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -54,10 +54,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc @@ -36,7 +36,7 @@ #include "sandbox/linux/system_headers/linux_time.h" @@ -137,7 +137,7 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_paramete ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -459,7 +484,7 @@ ResultExpr RestrictPtrace() { +@@ -463,7 +488,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -146,10 +146,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_paramete PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -159,10 +159,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -528,7 +528,7 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_alarm: #endif case __NR_setitimer: -@@ -1105,18 +1131,22 @@ bool SyscallSets::IsMisc(int sysno) { +@@ -1102,18 +1128,22 @@ bool SyscallSets::IsMisc(int sysno) { case __NR_syncfs: case __NR_vhangup: // The system calls below are not implemented. @@ -555,7 +555,7 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_gtty: case __NR_idle: case __NR_lock: -@@ -1124,20 +1154,22 @@ bool SyscallSets::IsMisc(int sysno) { +@@ -1121,20 +1151,22 @@ bool SyscallSets::IsMisc(int sysno) { case __NR_prof: case __NR_profil: #endif @@ -582,10 +582,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -623,10 +623,10 @@ Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-120.0.6099.71/sandbox/linux/services/syscall_wrappers.cc +Index: chromium-127.0.6533.72/sandbox/linux/services/syscall_wrappers.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-120.0.6099.71/sandbox/linux/services/syscall_wrappers.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-127.0.6533.72/sandbox/linux/services/syscall_wrappers.cc @@ -61,7 +61,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch index 28a47cc..084882b 100644 --- a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch +++ b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch @@ -7,10 +7,10 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64 sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++ 1 file changed, 7 insertions(+) -Index: chromium-120.0.6099.71/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-120.0.6099.71/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -56,6 +56,13 @@ #define MAX_PUBLIC_SYSCALL __NR_syscalls #define MAX_SYSCALL MAX_PUBLIC_SYSCALL diff --git a/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch b/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch index 4e50452..be0800e 100644 --- a/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch +++ b/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch @@ -8,10 +8,10 @@ Subject: [PATCH] services/service_manager/sandbox/linux: Fix TCGETS .../sandbox/linux/bpf_renderer_policy_linux.cc | 5 +++++ 1 file changed, 5 insertions(+) -Index: chromium-120.0.6099.71/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-120.0.6099.71/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-127.0.6533.72.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -15,6 +15,11 @@ #include "sandbox/linux/system_headers/linux_syscalls.h" #include "sandbox/policy/linux/sandbox_linux.h" diff --git a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch index 96a3bb8..8082e28 100644 --- a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch +++ b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/angle/src/libANGLE/Constants.h +Index: chromium-127.0.6533.72/third_party/angle/src/libANGLE/Constants.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/angle/src/libANGLE/Constants.h -+++ chromium-120.0.6099.71/third_party/angle/src/libANGLE/Constants.h +--- chromium-127.0.6533.72.orig/third_party/angle/src/libANGLE/Constants.h ++++ chromium-127.0.6533.72/third_party/angle/src/libANGLE/Constants.h @@ -9,6 +9,7 @@ #ifndef LIBANGLE_CONSTANTS_H_ #define LIBANGLE_CONSTANTS_H_ diff --git a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch index 5bb9538..54e3ca1 100644 --- a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch +++ b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch @@ -8,11 +8,11 @@ Subject: [PATCH] third_party/libvpx: Properly generate gni on ppc64 third_party/libvpx/generate_gni.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) -Index: chromium-120.0.6099.71/third_party/libvpx/BUILD.gn +Index: chromium-127.0.6533.72/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-120.0.6099.71.orig/third_party/libvpx/BUILD.gn -+++ chromium-120.0.6099.71/third_party/libvpx/BUILD.gn -@@ -248,6 +248,8 @@ if (current_cpu == "x86" || (current_cpu +--- chromium-127.0.6533.72.orig/third_party/libvpx/BUILD.gn ++++ chromium-127.0.6533.72/third_party/libvpx/BUILD.gn +@@ -288,6 +288,8 @@ if (current_cpu == "x86" || (current_cpu } else if (current_cpu == "x64") { deps = [ ":libvpx_x86_64_headers" ] sources = libvpx_srcs_x86_64_avx512 diff --git a/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch b/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch index d906af8..03ca889 100644 --- a/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch +++ b/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/lss/linux_syscall_support.h +Index: chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/lss/linux_syscall_support.h -+++ chromium-120.0.6099.71/third_party/lss/linux_syscall_support.h +--- chromium-127.0.6533.72.orig/third_party/lss/linux_syscall_support.h ++++ chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h @@ -4638,7 +4638,7 @@ struct kernel_statx { LSS_REG(2, buf); LSS_BODY(void*, mmap2, "0"(__r2)); diff --git a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch index da8872a..e62b229 100644 --- a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch +++ b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/pffft: Include altivec.h on ppc64 with SIMD third_party/pffft/src/pffft.c | 1 + 1 file changed, 1 insertion(+) -Index: chromium-120.0.6099.71/third_party/pffft/src/pffft.c +Index: chromium-127.0.6533.72/third_party/pffft/src/pffft.c =================================================================== ---- chromium-120.0.6099.71.orig/third_party/pffft/src/pffft.c -+++ chromium-120.0.6099.71/third_party/pffft/src/pffft.c +--- chromium-127.0.6533.72.orig/third_party/pffft/src/pffft.c ++++ chromium-127.0.6533.72/third_party/pffft/src/pffft.c @@ -100,6 +100,7 @@ Altivec support macros */ diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 4d1355f..84e5e4d 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.com/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,10 +4271,10 @@ Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.com/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/sources.cmake +Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-126.0.6478.57.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-126.0.6478.57/third_party/boringssl/src/gen/sources.cmake +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake @@ -110,6 +110,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S @@ -5759,10 +5759,10 @@ Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/sources.json +Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-126.0.6478.57.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-126.0.6478.57/third_party/boringssl/src/gen/sources.json +--- chromium-127.0.6533.72.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json @@ -88,6 +88,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", @@ -7247,10 +7247,10 @@ Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-126.0.6478.57/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-126.0.6478.57/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-127.0.6533.72/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-Add-ppc64-trap-instructions.patch b/0002-Add-ppc64-trap-instructions.patch index 063072b..4bb5c09 100644 --- a/0002-Add-ppc64-trap-instructions.patch +++ b/0002-Add-ppc64-trap-instructions.patch @@ -1,5 +1,7 @@ ---- a/v8/src/base/immediate-crash.h -+++ b/v8/src/base/immediate-crash.h +Index: chromium-127.0.6533.72/v8/src/base/immediate-crash.h +=================================================================== +--- chromium-127.0.6533.72.orig/v8/src/base/immediate-crash.h ++++ chromium-127.0.6533.72/v8/src/base/immediate-crash.h @@ -93,6 +93,13 @@ #define TRAP_SEQUENCE1_() asm volatile(".2byte 0x0001"); #define TRAP_SEQUENCE2_() asm volatile("") diff --git a/0002-Include-cstddef-to-fix-build.patch b/0002-Include-cstddef-to-fix-build.patch index 927ac8b..bd06640 100644 --- a/0002-Include-cstddef-to-fix-build.patch +++ b/0002-Include-cstddef-to-fix-build.patch @@ -7,10 +7,10 @@ size_t is not defined unless cstddef is included. --- third_party/crashpad/crashpad/compat/linux/sys/user.h | 1 + -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/compat/linux/sys/user.h +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/compat/linux/sys/user.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/compat/linux/sys/user.h -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/compat/linux/sys/user.h +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/compat/linux/sys/user.h ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/compat/linux/sys/user.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_ #define CRASHPAD_COMPAT_LINUX_SYS_USER_H_ diff --git a/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch b/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch index 1847fd0..9b0d83d 100644 --- a/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch +++ b/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch @@ -8,10 +8,10 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Modify seccomp_macros to add sandbox/linux/bpf_dsl/seccomp_macros.h | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) -Index: chromium-120.0.6099.71/sandbox/linux/bpf_dsl/seccomp_macros.h +Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/seccomp_macros.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/bpf_dsl/seccomp_macros.h -+++ chromium-120.0.6099.71/sandbox/linux/bpf_dsl/seccomp_macros.h +--- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/seccomp_macros.h ++++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/seccomp_macros.h @@ -14,6 +14,9 @@ #if defined(__mips__) // sys/user.h in eglibc misses size_t definition diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index 2dc2cdf..22d6f59 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,4 +1,6 @@ ---- a/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null @@ -1,320 +0,0 @@ -// This file is generated. Do not edit. @@ -321,7 +323,9 @@ -#endif - -#endif ---- a/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null @@ -1,193 +0,0 @@ -// This file is generated. Do not edit. @@ -517,7 +521,9 @@ -#endif - -#endif ---- a/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,108 +0,0 @@ -@ This file was created from a .asm file @@ -628,7 +634,9 @@ -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits ---- a/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -641,7 +649,9 @@ -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; -const char *vpx_codec_build_config(void) {return cfg;} ---- a/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -761,7 +771,9 @@ -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ ---- a/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null @@ -1,2128 +0,0 @@ -// This file is generated. Do not edit. @@ -2892,7 +2904,9 @@ -#endif - -#endif ---- a/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null @@ -1,100 +0,0 @@ -// This file is generated. Do not edit. diff --git a/0002-third_party-lss-kernel-structs.patch b/0002-third_party-lss-kernel-structs.patch index d68e340..f1967fb 100644 --- a/0002-third_party-lss-kernel-structs.patch +++ b/0002-third_party-lss-kernel-structs.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/lss/linux_syscall_support.h +Index: chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/lss/linux_syscall_support.h -+++ chromium-120.0.6099.71/third_party/lss/linux_syscall_support.h +--- chromium-127.0.6533.72.orig/third_party/lss/linux_syscall_support.h ++++ chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h @@ -87,7 +87,7 @@ * Porting to other related platforms should not be difficult. */ diff --git a/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch b/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch index a215adb..07ad502 100644 --- a/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch +++ b/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch @@ -8,10 +8,10 @@ Subject: [PATCH 3/4] sandbox/linux/system_headers: Update linux seccomp header sandbox/linux/system_headers/linux_seccomp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/linux_seccomp.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_seccomp.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/system_headers/linux_seccomp.h -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/linux_seccomp.h +--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_seccomp.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_seccomp.h @@ -38,6 +38,9 @@ #ifndef EM_AARCH64 #define EM_AARCH64 183 diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index d89d4c3..52f5662 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-121.0.6167.75/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch b/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch index 117fe97..9477b07 100644 --- a/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch +++ b/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch @@ -8,10 +8,10 @@ Subject: [PATCH 4/4] sandbox/linux/system_headers: Update linux signal header sandbox/linux/system_headers/linux_signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/linux_signal.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_signal.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/system_headers/linux_signal.h -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/linux_signal.h +--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_signal.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_signal.h @@ -13,7 +13,7 @@ // (not undefined, but defined different values and in different memory // layouts). So, fill the gap here. diff --git a/0004-third_party-crashpad-port-curl-transport-ppc64.patch b/0004-third_party-crashpad-port-curl-transport-ppc64.patch index 11d54b7..b86f24b 100644 --- a/0004-third_party-crashpad-port-curl-transport-ppc64.patch +++ b/0004-third_party-crashpad-port-curl-transport-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc =================================================================== ---- chromium-120.0.6099.71.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc -+++ chromium-120.0.6099.71/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +--- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc ++++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc @@ -239,6 +239,12 @@ std::string UserAgent() { #endif #elif defined (ARCH_CPU_RISCV64) diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index 1dd35ff..b36c0fa 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-120.0.6099.71.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vp9/encoder/ppc/v eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-120.0.6099.71.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct3 } // Returns 1 if negative 0 if positive -Index: chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-120.0.6099.71.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-120.0.6099.71/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch b/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch index 5a2241d..1084e99 100644 --- a/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch +++ b/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch @@ -7,10 +7,10 @@ Subject: [PATCH] sandbox/linux/seccomp-bpf: Add ppc64 syscall stub sandbox/linux/seccomp-bpf/syscall.cc | 53 ++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf/syscall.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf/syscall.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf/syscall.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf/syscall.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc @@ -18,7 +18,7 @@ namespace sandbox { namespace { diff --git a/0005-sandbox-linux-update-unit-test-for-ppc64.patch b/0005-sandbox-linux-update-unit-test-for-ppc64.patch index ee20e07..290bc7e 100644 --- a/0005-sandbox-linux-update-unit-test-for-ppc64.patch +++ b/0005-sandbox-linux-update-unit-test-for-ppc64.patch @@ -7,11 +7,11 @@ Subject: [PATCH 5/6] sandbox/linux: update unit test for ppc64 sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -@@ -331,8 +331,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +@@ -345,8 +345,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) #if !defined(__aarch64__) TEST_BASELINE_SIGSYS(__NR_inotify_init) diff --git a/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch b/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch index dae8134..3179451 100644 --- a/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch +++ b/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-120.0.6099.71/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -374,7 +374,9 @@ bool SyscallSets::IsAllowedSignalHandlin #if defined(__i386__) || defined(__arm__) || \ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ diff --git a/0007-sandbox-linux-add-ppc64-stat.patch b/0007-sandbox-linux-add-ppc64-stat.patch index abad1b5..cf4b727 100644 --- a/0007-sandbox-linux-add-ppc64-stat.patch +++ b/0007-sandbox-linux-add-ppc64-stat.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/linux_stat.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_stat.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/system_headers/linux_stat.h -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/linux_stat.h +--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_stat.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_stat.h @@ -173,6 +173,28 @@ struct kernel_stat { unsigned int __unused4; unsigned int __unused5; diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch index dfda9e8..a552a40 100644 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ b/0008-sandbox-fix-ppc64le-glibc234.patch @@ -1,7 +1,7 @@ -Index: chromium-126.0.6478.57/sandbox/policy/linux/bpf_utility_policy_linux.cc +Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_utility_policy_linux.cc =================================================================== ---- chromium-126.0.6478.57.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-126.0.6478.57/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- chromium-127.0.6533.72.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-127.0.6533.72/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -11,10 +11,10 @@ Index: chromium-126.0.6478.57/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-126.0.6478.57/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-126.0.6478.57.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-126.0.6478.57/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-127.0.6533.72.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -87,7 +87,7 @@ ResultExpr RendererProcessPolicy::Evalua case __NR_ftruncate64: #endif @@ -24,10 +24,10 @@ Index: chromium-126.0.6478.57/sandbox/policy/linux/bpf_renderer_policy_linux.cc case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-126.0.6478.57/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-126.0.6478.57.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-126.0.6478.57/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -58,9 +58,9 @@ #elif defined(__powerpc64__) @@ -40,10 +40,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/bpf_dsl/linux_syscall_ranges.h #define MAX_SYSCALL MAX_PUBLIC_SYSCALL #else -Index: chromium-126.0.6478.57/sandbox/linux/services/credentials.cc +Index: chromium-127.0.6533.72/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-126.0.6478.57.orig/sandbox/linux/services/credentials.cc -+++ chromium-126.0.6478.57/sandbox/linux/services/credentials.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/services/credentials.cc ++++ chromium-127.0.6533.72/sandbox/linux/services/credentials.cc @@ -89,7 +89,8 @@ bool ChrootToSafeEmptyDir() { int clone_flags = CLONE_FS | LINUX_SIGCHLD; @@ -66,10 +66,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/services/credentials.cc clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; // PTHREAD_STACK_MIN can be dynamic in glibc2.34+, so it is not possible to -Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc =================================================================== ---- chromium-126.0.6478.57.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc @@ -357,7 +357,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && diff --git a/HACK-debian-clang-disable-skia-musttail.patch b/HACK-debian-clang-disable-skia-musttail.patch index 88b6881..b96ea05 100644 --- a/HACK-debian-clang-disable-skia-musttail.patch +++ b/HACK-debian-clang-disable-skia-musttail.patch @@ -1,7 +1,7 @@ -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkRasterPipeline.h +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkRasterPipeline.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkRasterPipeline.h -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkRasterPipeline.h +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkRasterPipeline.h ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkRasterPipeline.h @@ -27,7 +27,7 @@ struct SkImageInfo; struct skcms_TransferFunction; diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index a849872..5d170a7 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,5 +1,7 @@ ---- a/third_party/libvpx/generate_gni.sh -+++ b/third_party/libvpx/generate_gni.sh +Index: chromium-127.0.6533.72/third_party/libvpx/generate_gni.sh +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/generate_gni.sh ++++ chromium-127.0.6533.72/third_party/libvpx/generate_gni.sh @@ -423,7 +423,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ @@ -9,9 +11,11 @@ gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" ---- a/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ b/third_party/libvpx/source/libvpx/build/make/rtcd.pl -@@ -492,8 +492,9 @@ if ($opts{arch} eq 'x86') { +Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/build/make/rtcd.pl +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/build/make/rtcd.pl +@@ -496,8 +496,9 @@ if ($opts{arch} eq 'x86') { &require(@REQUIRES); arm; } elsif ($opts{arch} =~ /^ppc/ ) { @@ -23,8 +27,10 @@ } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; ---- a/third_party/libvpx/BUILD.gn -+++ b/third_party/libvpx/BUILD.gn +Index: chromium-127.0.6533.72/third_party/libvpx/BUILD.gn +=================================================================== +--- chromium-127.0.6533.72.orig/third_party/libvpx/BUILD.gn ++++ chromium-127.0.6533.72/third_party/libvpx/BUILD.gn @@ -94,6 +94,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] diff --git a/Rtc_base-system-arch.h-PPC.patch b/Rtc_base-system-arch.h-PPC.patch index d00e0b4..4eb9e60 100644 --- a/Rtc_base-system-arch.h-PPC.patch +++ b/Rtc_base-system-arch.h-PPC.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/webrtc/rtc_base/system/arch.h +Index: chromium-127.0.6533.72/third_party/webrtc/rtc_base/system/arch.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/webrtc/rtc_base/system/arch.h -+++ chromium-120.0.6099.71/third_party/webrtc/rtc_base/system/arch.h +--- chromium-127.0.6533.72.orig/third_party/webrtc/rtc_base/system/arch.h ++++ chromium-127.0.6533.72/third_party/webrtc/rtc_base/system/arch.h @@ -46,6 +46,18 @@ #endif #if defined(__MIPSEL__) diff --git a/Sandbox-linux-services-credentials.cc-PPC.patch b/Sandbox-linux-services-credentials.cc-PPC.patch index a93598f..484b093 100644 --- a/Sandbox-linux-services-credentials.cc-PPC.patch +++ b/Sandbox-linux-services-credentials.cc-PPC.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/sandbox/linux/services/credentials.cc +Index: chromium-127.0.6533.72/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/services/credentials.cc -+++ chromium-120.0.6099.71/sandbox/linux/services/credentials.cc +--- chromium-127.0.6533.72.orig/sandbox/linux/services/credentials.cc ++++ chromium-127.0.6533.72/sandbox/linux/services/credentials.cc @@ -80,7 +80,7 @@ bool ChrootToSafeEmptyDir() { pid_t pid = -1; alignas(16) char stack_buf[PTHREAD_STACK_MIN]; diff --git a/chromium-127-aarch64-duplicate-case-value.patch b/chromium-127-aarch64-duplicate-case-value.patch new file mode 100644 index 0000000..0366be8 --- /dev/null +++ b/chromium-127-aarch64-duplicate-case-value.patch @@ -0,0 +1,13 @@ +diff -up chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc.me chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc +--- chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc.me 2024-07-30 18:09:59.483141522 +0200 ++++ chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc 2024-07-30 19:42:47.122708543 +0200 +@@ -163,9 +163,6 @@ bool BrokerProcess::IsSyscallBrokerable( + case __NR_stat: + case __NR_lstat: + #endif +-#if defined(__NR_fstatat) +- case __NR_fstatat: +-#endif + #if defined(__NR_fstatat64) + case __NR_fstatat64: + #endif diff --git a/chromium.spec b/chromium.spec index bc1da5d..fbb010a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -296,7 +296,7 @@ %endif Name: chromium%{chromium_channel} -Version: 127.0.6533.72 +Version: 127.0.6533.88 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -387,6 +387,8 @@ Patch316: chromium-122-clang-build-flags.patch # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 # Disable BTI until this is fixed upstream. Patch352: chromium-117-workaround_for_crash_on_BTI_capable_system.patch +# workaround for build error on aarch64 +Patch353: chromium-127-aarch64-duplicate-case-value.patch # remove flag split-threshold-for-reg-with-hint, it's not supported in clang <= 17 Patch354: chromium-126-split-threshold-for-reg-with-hint.patch @@ -1123,6 +1125,10 @@ Qt6 UI for chromium. %patch -P352 -p1 -b .workaround_for_crash_on_BTI_capable_system %endif +%ifarch aarch64 && 0%{?fedora} > 40 +%patch -P353 -p1 -b .duplicate-case-value +%endif + %if 0%{?rhel} && 0%{?rhel} < 10 || 0%{?fedora} && 0%{?fedora} < 40 %patch -P354 -p1 -b .split-threshold-for-reg-with-hint %endif @@ -2026,6 +2032,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Jul 31 2024 Than Ngo - 127.0.6533.88-1 +- update to 127.0.6533.88 + * Wed Jul 24 2024 Than Ngo - 127.0.6533.72-1 - update to 127.0.6533.72 * CVE-2024-6988: Use after free in Downloads diff --git a/dawn-fix-ppc64le-detection.patch b/dawn-fix-ppc64le-detection.patch index 0fe5149..8025792 100644 --- a/dawn-fix-ppc64le-detection.patch +++ b/dawn-fix-ppc64le-detection.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Platform.h +Index: chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Platform.h +--- chromium-127.0.6533.72.orig/third_party/dawn/src/dawn/common/Platform.h ++++ chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h @@ -158,10 +158,12 @@ #elif defined(__s390x__) #define DAWN_PLATFORM_IS_S390X 1 diff --git a/dawn-fix-typos.patch b/dawn-fix-typos.patch index 514463e..ee5731b 100644 --- a/dawn-fix-typos.patch +++ b/dawn-fix-typos.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Platform.h +Index: chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h =================================================================== ---- chromium-120.0.6099.71.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Platform.h +--- chromium-127.0.6533.72.orig/third_party/dawn/src/dawn/common/Platform.h ++++ chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h @@ -153,9 +153,9 @@ #define DAWN_PLATFORM_IS_MIPS64 1 #endif @@ -14,10 +14,10 @@ Index: chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Platform.h #define DAWN_PLATFORM_IS_S390X 1 #elif defined(__PPC__) -Index: chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Assert.cpp +Index: chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Assert.cpp =================================================================== ---- chromium-120.0.6099.71.orig/third_party/dawn/src/dawn/common/Assert.cpp -+++ chromium-120.0.6099.71/third_party/dawn/src/dawn/common/Assert.cpp +--- chromium-127.0.6533.72.orig/third_party/dawn/src/dawn/common/Assert.cpp ++++ chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Assert.cpp @@ -52,9 +52,9 @@ void BreakPoint() { __asm__ __volatile__("ebreak"); #elif DAWN_PLATFORM_IS(MIPS) diff --git a/fix-breakpad-compile.patch b/fix-breakpad-compile.patch index b90bb95..de0b85b 100644 --- a/fix-breakpad-compile.patch +++ b/fix-breakpad-compile.patch @@ -1,8 +1,8 @@ -Index: chromium-120.0.6099.71/third_party/breakpad/BUILD.gn +Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn =================================================================== ---- chromium-120.0.6099.71.orig/third_party/breakpad/BUILD.gn -+++ chromium-120.0.6099.71/third_party/breakpad/BUILD.gn -@@ -618,7 +618,6 @@ if (is_linux || is_chromeos || is_androi +--- chromium-127.0.6533.72.orig/third_party/breakpad/BUILD.gn ++++ chromium-127.0.6533.72/third_party/breakpad/BUILD.gn +@@ -620,7 +620,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/minidump_file_writer.h", "breakpad/src/common/convert_UTF.cc", "breakpad/src/common/convert_UTF.h", @@ -10,7 +10,7 @@ Index: chromium-120.0.6099.71/third_party/breakpad/BUILD.gn "breakpad/src/common/linux/elf_core_dump.cc", "breakpad/src/common/linux/elf_core_dump.h", "breakpad/src/common/linux/elfutils.cc", -@@ -650,6 +649,8 @@ if (is_linux || is_chromeos || is_androi +@@ -652,6 +651,8 @@ if (is_linux || is_chromeos || is_androi configs += [ "//build/config/compiler:no_chromium_code" ] public_configs = [ ":client_config" ] @@ -19,7 +19,7 @@ Index: chromium-120.0.6099.71/third_party/breakpad/BUILD.gn if (current_cpu == "arm" && is_chromeos_ash) { # Avoid running out of registers in # linux_syscall_support.h:sys_clone()'s inline assembly. -@@ -707,7 +708,6 @@ if (is_linux || is_chromeos || is_androi +@@ -709,7 +710,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc", "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc", "breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc", diff --git a/fix-clang-selection.patch b/fix-clang-selection.patch index b869fca..e107b46 100644 --- a/fix-clang-selection.patch +++ b/fix-clang-selection.patch @@ -1,7 +1,7 @@ -Index: chromium-123.0.6312.86/build/config/BUILDCONFIG.gn +Index: chromium-127.0.6533.72/build/config/BUILDCONFIG.gn =================================================================== ---- chromium-123.0.6312.86.orig/build/config/BUILDCONFIG.gn -+++ chromium-123.0.6312.86/build/config/BUILDCONFIG.gn +--- chromium-127.0.6533.72.orig/build/config/BUILDCONFIG.gn ++++ chromium-127.0.6533.72/build/config/BUILDCONFIG.gn @@ -138,7 +138,6 @@ declare_args() { # Set to true when compiling with the Clang compiler. is_clang = current_os != "linux" || diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index 46ef037..6659c15 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,10 +1,10 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-120.0.6099.71/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-127.0.6533.72/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-120.0.6099.71.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-120.0.6099.71/base/allocator/partition_allocator/partition_alloc.gni -@@ -16,7 +16,8 @@ if (is_nacl) { +--- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-127.0.6533.72/base/allocator/partition_allocator/partition_alloc.gni +@@ -19,7 +19,8 @@ if (is_nacl) { # NaCl targets don't use 64-bit pointers. has_64_bit_pointers = false } else if (current_cpu == "x64" || current_cpu == "arm64" || diff --git a/fix-ppc64-linux-syscalls-headers.patch b/fix-ppc64-linux-syscalls-headers.patch index 825918b..e7931fd 100644 --- a/fix-ppc64-linux-syscalls-headers.patch +++ b/fix-ppc64-linux-syscalls-headers.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_syscalls.h +Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h =================================================================== ---- chromium-120.0.6099.71.orig/sandbox/linux/system_headers/ppc64_linux_syscalls.h -+++ chromium-120.0.6099.71/sandbox/linux/system_headers/ppc64_linux_syscalls.h +--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/ppc64_linux_syscalls.h ++++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h @@ -8,5 +8,18 @@ #include diff --git a/fix-rustc.patch b/fix-rustc.patch index ced9dcf..94da447 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,8 +1,10 @@ author: Andres Salomon description: allow ppc64le to build by using proper rustc target ---- a/build/config/rust.gni -+++ b/build/config/rust.gni -@@ -191,6 +191,8 @@ rust_abi_target = "" +Index: chromium-127.0.6533.72/build/config/rust.gni +=================================================================== +--- chromium-127.0.6533.72.orig/build/config/rust.gni ++++ chromium-127.0.6533.72/build/config/rust.gni +@@ -186,6 +186,8 @@ rust_abi_target = "" if (is_linux || is_chromeos) { if (current_cpu == "arm64") { rust_abi_target = "aarch64-unknown-linux-gnu" diff --git a/memory-allocator-dcheck-assert-fix.patch b/memory-allocator-dcheck-assert-fix.patch index 6d1b2be..6991521 100644 --- a/memory-allocator-dcheck-assert-fix.patch +++ b/memory-allocator-dcheck-assert-fix.patch @@ -1,6 +1,8 @@ ---- a/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc -+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc -@@ -506,6 +506,9 @@ +Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc +=================================================================== +--- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc ++++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc +@@ -492,6 +492,9 @@ uint8_t ComputeSystemPagesPerSlotSpanPre partition_page_count <= kMaxPartitionPagesPerRegularSlotSpan; partition_page_count++) { size_t candidate_size = partition_page_count * PartitionPageSize(); @@ -10,12 +12,12 @@ size_t waste = candidate_size % slot_size; if (waste <= .02 * SystemPageSize()) { return partition_page_count * NumSystemPagesPerPartitionPage(); -@@ -522,6 +525,9 @@ +@@ -508,6 +511,9 @@ uint8_t ComputeSystemPagesPerSlotSpanPre size_t system_page_count = partition_page_count * NumSystemPagesPerPartitionPage() - slack; size_t candidate_size = system_page_count * SystemPageSize(); + if (candidate_size > kMaxBucketed) { -+ break; ++ continue; + } size_t waste = candidate_size % slot_size; if (waste < best_waste) { diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index 33e14fe..e6741c2 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-125.0.6422.41/third_party/skia/BUILD.gn +Index: chromium-127.0.6533.72/third_party/skia/BUILD.gn =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/BUILD.gn -+++ chromium-125.0.6422.41/third_party/skia/BUILD.gn +--- chromium-127.0.6533.72.orig/third_party/skia/BUILD.gn ++++ chromium-127.0.6533.72/third_party/skia/BUILD.gn @@ -188,6 +188,12 @@ opts("skx") { } } @@ -15,7 +15,7 @@ Index: chromium-125.0.6422.41/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1478,6 +1484,7 @@ skia_component("skia") { +@@ -1442,6 +1448,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-125.0.6422.41/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1653,7 +1660,10 @@ skia_static_library("pathkit") { +@@ -1615,7 +1622,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,11 +35,11 @@ Index: chromium-125.0.6422.41/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-125.0.6422.41/third_party/skia/gn/skia/BUILD.gn +Index: chromium-127.0.6533.72/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-125.0.6422.41/third_party/skia/gn/skia/BUILD.gn -@@ -163,6 +163,8 @@ config("default") { +--- chromium-127.0.6533.72.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-127.0.6533.72/third_party/skia/gn/skia/BUILD.gn +@@ -167,6 +167,8 @@ config("default") { "-mfpmath=sse", ] ldflags += [ "-m32" ] @@ -48,10 +48,10 @@ Index: chromium-125.0.6422.41/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-125.0.6422.41/third_party/skia/include/core/SkTypes.h +Index: chromium-127.0.6533.72/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-125.0.6422.41/third_party/skia/include/core/SkTypes.h +--- chromium-127.0.6533.72.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-127.0.6533.72/third_party/skia/include/core/SkTypes.h @@ -195,5 +195,44 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -97,10 +97,10 @@ Index: chromium-125.0.6422.41/third_party/skia/include/core/SkTypes.h + #endif -Index: chromium-125.0.6422.41/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-127.0.6533.72.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -111,10 +111,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-125.0.6422.41/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-127.0.6533.72/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -130,10 +130,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-125.0.6422.41/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-127.0.6533.72/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -143,10 +143,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -399,7 +399,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define JUMPER_NARROW_STAGES 0 -@@ -5467,6 +5669,10 @@ SI F sqrt_(F x) { +@@ -5466,6 +5668,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -410,7 +410,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5498,6 +5704,10 @@ SI F floor_(F x) { +@@ -5497,6 +5703,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -421,7 +421,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5517,6 +5727,7 @@ SI F floor_(F x) { +@@ -5516,6 +5726,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -429,7 +429,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(JUMPER_IS_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5528,6 +5739,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5527,6 +5738,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(JUMPER_IS_NEON) return vqrdmulhq_s16(a, b); @@ -452,7 +452,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5555,7 +5782,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5554,7 +5781,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -479,7 +479,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6479,8 +6725,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6478,8 +6724,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -494,7 +494,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6492,7 +6744,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6491,7 +6743,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -507,7 +507,7 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6526,9 +6783,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6525,9 +6782,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -524,10 +524,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-125.0.6422.41/third_party/skia/src/base/SkVx.h +Index: chromium-127.0.6533.72/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/base/SkVx.h -+++ chromium-125.0.6422.41/third_party/skia/src/base/SkVx.h +--- chromium-127.0.6533.72.orig/third_party/skia/src/base/SkVx.h ++++ chromium-127.0.6533.72/third_party/skia/src/base/SkVx.h @@ -42,7 +42,13 @@ #if SKVX_USE_SIMD @@ -543,10 +543,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/base/SkVx.h #elif defined(SK_ARM_HAS_NEON) #include #elif defined(__wasm_simd128__) -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -556,10 +556,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -569,10 +569,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -582,11 +582,11 @@ Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkBitmapProcState_opts.cpp -@@ -25,7 +25,7 @@ namespace SkOpts { +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts.cpp +@@ -26,7 +26,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) // All Init_foo functions are omitted when optimizing for size @@ -595,10 +595,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkCpu.h +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkCpu.h +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -608,10 +608,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -621,10 +621,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-125.0.6422.41/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-127.0.6533.72/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-125.0.6422.41/third_party/skia/include/private/base/SkFeatures.h +--- chromium-127.0.6533.72.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-127.0.6533.72/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -634,10 +634,10 @@ Index: chromium-125.0.6422.41/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-125.0.6422.41/third_party/skia/modules/skcms/src/skcms_internals.h +Index: chromium-127.0.6533.72/third_party/skia/modules/skcms/src/skcms_internals.h =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/modules/skcms/src/skcms_internals.h -+++ chromium-125.0.6422.41/third_party/skia/modules/skcms/src/skcms_internals.h +--- chromium-127.0.6533.72.orig/third_party/skia/modules/skcms/src/skcms_internals.h ++++ chromium-127.0.6533.72/third_party/skia/modules/skcms/src/skcms_internals.h @@ -47,6 +47,7 @@ extern "C" { && !defined(__EMSCRIPTEN__) \ && !defined(__arm__) \ @@ -646,10 +646,10 @@ Index: chromium-125.0.6422.41/third_party/skia/modules/skcms/src/skcms_internals && !defined(__loongarch__) \ && !defined(_WIN32) && !defined(__SYMBIAN32__) #define SKCMS_HAS_MUSTTAIL 1 -Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-125.0.6422.41/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-127.0.6533.72/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -696,10 +696,10 @@ Index: chromium-125.0.6422.41/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-125.0.6422.41/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-125.0.6422.41.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-125.0.6422.41/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-127.0.6533.72/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -126,6 +126,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index 429398f..7e696d9 100644 --- a/sources +++ b/sources @@ -4,4 +4,4 @@ SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c743 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (bindgen-cli-aarch64.tar.xz) = 1a5ae4e8fdd31d80e8111c4d5f2115336684763ecd3a442ffecdbc2a37bab146f88bdee0bb1ea7a98e1049f81b12e64bd0ce5510529b30a74ce3306488ac129b SHA512 (bindgen-cli-x86_64.tar.xz) = 7ccc9b43b32d3a064a75cfc150e060711356da8fe98e83d855bae017108ef8e9e172fbdd6e2579433c19cfb56ababa5b77a8db6fa57a5e657a3878778ca10a37 -SHA512 (chromium-127.0.6533.72-clean.tar.xz) = b2237044a6825788300e30bdd5a3e960b8749df07ceadcab20386f50e14fb201215fe2a62c6af99fcb4d822f205ca60928a6bc922b44c24d1b418ff4972456fa +SHA512 (chromium-127.0.6533.88-clean.tar.xz) = 212160a15e14348d416d2c3df0dd24f7b05da3c0f6fff3bccac1314f697be753bf831ea06039adec7d02f4e34d3a84787d12233bf927fa76727397ac0fde300f diff --git a/use-sysconf-page-size-on-ppc64.patch b/use-sysconf-page-size-on-ppc64.patch index 26848ea..a5ce81a 100644 --- a/use-sysconf-page-size-on-ppc64.patch +++ b/use-sysconf-page-size-on-ppc64.patch @@ -46,7 +46,7 @@ Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_a =================================================================== --- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h +++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -@@ -20,7 +20,7 @@ +@@ -20,7 +20,7 @@ static constexpr size_t kMaxSlotsPerSlot // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, // so we use the 16 kiB maximum (64 kiB will crash). From 7a9444bd5f608685cc1993c4cf8a3fee6825b084 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 1 Aug 2024 11:29:45 +0200 Subject: [PATCH 036/244] - remove old patch that seems to be the cause of a crash when the user set user.max_user_namespaces to 0 --- chromium-70.0.3538.67-sandbox-pie.patch | 20 -------------------- chromium.spec | 10 +++++----- 2 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 chromium-70.0.3538.67-sandbox-pie.patch diff --git a/chromium-70.0.3538.67-sandbox-pie.patch b/chromium-70.0.3538.67-sandbox-pie.patch deleted file mode 100644 index 0f104e9..0000000 --- a/chromium-70.0.3538.67-sandbox-pie.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -up chromium-70.0.3538.67/sandbox/linux/BUILD.gn.sandboxpie chromium-70.0.3538.67/sandbox/linux/BUILD.gn ---- chromium-70.0.3538.67/sandbox/linux/BUILD.gn.sandboxpie 2018-10-18 12:14:05.766939769 -0400 -+++ chromium-70.0.3538.67/sandbox/linux/BUILD.gn 2018-10-18 12:16:37.820027182 -0400 -@@ -315,10 +315,16 @@ if (is_linux) { - # For ULLONG_MAX - "-std=gnu99", - -+ "-fPIE", -+ - # These files have a suspicious comparison. - # TODO fix this and re-enable this warning. - "-Wno-sign-compare", - ] -+ -+ ldflags = [ -+ "-pie", -+ ] - } - } - diff --git a/chromium.spec b/chromium.spec index fbb010a..f25e3d4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -297,14 +297,11 @@ Name: chromium%{chromium_channel} Version: 127.0.6533.88 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) -### Chromium Fedora Patches ### -Patch0: chromium-70.0.3538.67-sandbox-pie.patch - # Use /etc/chromium for initial_prefs Patch1: chromium-115-initial_prefs-etc-path.patch @@ -1057,7 +1054,6 @@ Qt6 UI for chromium. %setup -q -n chromium-%{version} ### Chromium Fedora Patches ### -%patch -P0 -p1 -b .sandboxpie %patch -P1 -p1 -b .etc %patch -P5 -p1 -b .nozlibmangle %patch -P6 -p1 -b .nounrar @@ -2032,6 +2028,10 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Aug 01 2024 Than Ngo - 127.0.6533.88-2 +- remove old patch that seems to be the cause of a crash + when the user set user.max_user_namespaces to 0 + * Wed Jul 31 2024 Than Ngo - 127.0.6533.88-1 - update to 127.0.6533.88 From cba05eac94a81fc021685da4e58cf76ef49ac953 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 6 Aug 2024 17:59:18 +0200 Subject: [PATCH 037/244] - fix rhbz#2294773 - Allow enabling vulkan on ozone wayland for AMD vaapi - add ppc64le patch to fix runtime assertion trap on ppc64el systems - refresh ppc64le patch to work around broken 64k allocator code on arm64 --- add-ppc64-architecture-to-extensions.diff | 42 +++++++++++++++++++ ...low-enabling-vulkan-on-ozone-wayland.patch | 11 +++++ chromium.spec | 20 ++++++--- use-sysconf-page-size-on-ppc64.patch | 15 +++++-- 4 files changed, 80 insertions(+), 8 deletions(-) create mode 100644 add-ppc64-architecture-to-extensions.diff create mode 100644 chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch diff --git a/add-ppc64-architecture-to-extensions.diff b/add-ppc64-architecture-to-extensions.diff new file mode 100644 index 0000000..32dac5e --- /dev/null +++ b/add-ppc64-architecture-to-extensions.diff @@ -0,0 +1,42 @@ +--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ++++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +@@ -303,6 +303,8 @@ + info->arch = extensions::api::runtime::PlatformArch::kMips; + } else if (strcmp(arch, "mips64el") == 0) { + info->arch = extensions::api::runtime::PlatformArch::kMips64; ++ } else if (strcmp(arch, "ppc64") == 0) { ++ info->arch = extensions::api::runtime::PlatformArch::kPpc64; + } else { + NOTREACHED_IN_MIGRATION(); + return false; +@@ -319,6 +321,8 @@ + info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips; + } else if (strcmp(nacl_arch, "mips64") == 0) { + info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips64; ++ } else if (strcmp(nacl_arch, "ppc64") == 0) { ++ info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kPpc64; + } else { + NOTREACHED_IN_MIGRATION(); + return false; +--- a/extensions/common/api/runtime.json ++++ b/extensions/common/api/runtime.json +@@ -98,7 +98,8 @@ + {"name": "x86-32", "description": "Specifies the processer architecture as x86-32."}, + {"name": "x86-64", "description": "Specifies the processer architecture as x86-64."}, + {"name": "mips", "description": "Specifies the processer architecture as mips."}, +- {"name": "mips64", "description": "Specifies the processer architecture as mips64."} ++ {"name": "mips64", "description": "Specifies the processer architecture as mips64."}, ++ {"name": "ppc64", "description": "Specifies the processer architecture as ppc64."} + ], + "description": "The machine's processor architecture." + }, +@@ -111,7 +112,8 @@ + {"name": "x86-32", "description": "Specifies the native client architecture as x86-32."}, + {"name": "x86-64", "description": "Specifies the native client architecture as x86-64."}, + {"name": "mips", "description": "Specifies the native client architecture as mips."}, +- {"name": "mips64", "description": "Specifies the native client architecture as mips64."} ++ {"name": "mips64", "description": "Specifies the native client architecture as mips64."}, ++ {"name": "ppc64", "description": "Specifies the native client architecture as ppc64."} + ] + }, + { diff --git a/chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch b/chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch new file mode 100644 index 0000000..9c35a40 --- /dev/null +++ b/chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch @@ -0,0 +1,11 @@ +diff -up chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc.me chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc +--- chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc.me 2024-08-06 17:38:26.560468274 +0200 ++++ chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc 2024-08-06 17:39:00.137139610 +0200 +@@ -214,6 +214,7 @@ WaylandSurfaceFactory::GetAllowedGLImple + impls.emplace_back(gl::ANGLEImplementation::kOpenGL); + impls.emplace_back(gl::ANGLEImplementation::kOpenGLES); + impls.emplace_back(gl::ANGLEImplementation::kSwiftShader); ++ impls.emplace_back(gl::ANGLEImplementation::kVulkan); + impls.emplace_back(gl::kGLImplementationEGLGLES2); + } + return impls; diff --git a/chromium.spec b/chromium.spec index f25e3d4..68e74f8 100644 --- a/chromium.spec +++ b/chromium.spec @@ -297,7 +297,7 @@ Name: chromium%{chromium_channel} Version: 127.0.6533.88 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -462,12 +462,13 @@ Patch409: partition-alloc-4k-detect.patch Patch410: dawn-fix-typos.patch Patch411: dawn-fix-ppc64le-detection.patch +Patch412: add-ppc64-architecture-to-extensions.diff # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed -Patch412: fix-unknown-warning-option-messages.diff +Patch413: fix-unknown-warning-option-messages.diff # error: undefined symbol: llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF() -Patch413: fix-swiftshader-compile.patch +Patch414: fix-swiftshader-compile.patch # upstream patches Patch501: chromium-127-ninja-1.21.1-deps-part0.patch @@ -475,6 +476,7 @@ Patch502: chromium-127-ninja-1.21.1-deps-part1.patch Patch503: chromium-127-ninja-1.21.1-deps-part2.patch Patch504: chromium-127-ninja-1.21.1-deps-part3.patch Patch505: chromium-127-crabbyavif.patch +Patch506: chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1197,8 +1199,10 @@ Qt6 UI for chromium. %patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection -%patch -P412 -p1 -b .fix-unknown-warning-option-messages -%patch -P413 -p1 -b .fix-swiftshader-compile +%patch -P412 -p1 -b .add-ppc64-architecture-to-extensions + +%patch -P413 -p1 -b .fix-unknown-warning-option-messages +%patch -P414 -p1 -b .fix-swiftshader-compile %endif %if 0%{?fedora} > 39 @@ -1208,6 +1212,7 @@ Qt6 UI for chromium. %patch -P504 -p1 -b .ninja-1.21.1-deps %endif %patch -P505 -p1 -b .crabbyavif +%patch -P506 -p1 -b .allow-enabling-vulkan-on-ozone-wayland # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -2028,6 +2033,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Tue Aug 06 2024 Than Ngo - 127.0.6533.88-3 +- fix rhbz#2294773 - Allow enabling vulkan on ozone wayland for AMD vaapi +- add ppc64le patch to fix runtime assertion trap on ppc64el systems +- refresh ppc64le patch to work around broken 64k allocator code on arm64 + * Thu Aug 01 2024 Than Ngo - 127.0.6533.88-2 - remove old patch that seems to be the cause of a crash when the user set user.max_user_namespaces to 0 diff --git a/use-sysconf-page-size-on-ppc64.patch b/use-sysconf-page-size-on-ppc64.patch index a5ce81a..9ef9450 100644 --- a/use-sysconf-page-size-on-ppc64.patch +++ b/use-sysconf-page-size-on-ppc64.patch @@ -46,12 +46,21 @@ Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_a =================================================================== --- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h +++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -@@ -20,7 +20,7 @@ static constexpr size_t kMaxSlotsPerSlot + // PartitionPageSize() is 4 times the OS page size. + static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; + #elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) ++#if PA_BUILDFLAG(PA_ARCH_CPU_ARM64) // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, // so we use the 16 kiB maximum (64 kiB will crash). --static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; -+static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; + static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; #else ++// System page size can range from 4 to 64 kiB on Linux on other architectures. ++// 64kiB kiB is currently used by most ppc64 distributions, so use that as the ++// maximum. ++static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; ++#endif ++#else // A slot span can "span" multiple PartitionPages, but then its slot size is // larger, so it doesn't have as many slots. + static constexpr size_t kMaxSlotsPerSlotSpan = From ba85b2fdfffd123e34e6a28cadffbc291a84c655 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 7 Aug 2024 10:21:18 +0200 Subject: [PATCH 038/244] - update to 127.0.6533.99 * Critical CVE-2024-7532: Out of bounds memory access in ANGLE * High CVE-2024-7533: Use after free in Sharing * High CVE-2024-7550: Type Confusion in V8 * High CVE-2024-7534: Heap buffer overflow in Layout * High CVE-2024-7535: Inappropriate implementation in V8 * High CVE-2024-7536: Use after free in WebAudio --- chromium.spec | 13 +++++++++++-- sources | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 68e74f8..5c1c848 100644 --- a/chromium.spec +++ b/chromium.spec @@ -296,8 +296,8 @@ %endif Name: chromium%{chromium_channel} -Version: 127.0.6533.88 -Release: 3%{?dist} +Version: 127.0.6533.99 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -2033,6 +2033,15 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Aug 07 2024 Than Ngo - 127.0.6533.99-1 +- update to 127.0.6533.99 + * Critical CVE-2024-7532: Out of bounds memory access in ANGLE + * High CVE-2024-7533: Use after free in Sharing + * High CVE-2024-7550: Type Confusion in V8 + * High CVE-2024-7534: Heap buffer overflow in Layout + * High CVE-2024-7535: Inappropriate implementation in V8 + * High CVE-2024-7536: Use after free in WebAudio + * Tue Aug 06 2024 Than Ngo - 127.0.6533.88-3 - fix rhbz#2294773 - Allow enabling vulkan on ozone wayland for AMD vaapi - add ppc64le patch to fix runtime assertion trap on ppc64el systems diff --git a/sources b/sources index 7e696d9..c24224c 100644 --- a/sources +++ b/sources @@ -4,4 +4,4 @@ SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c743 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (bindgen-cli-aarch64.tar.xz) = 1a5ae4e8fdd31d80e8111c4d5f2115336684763ecd3a442ffecdbc2a37bab146f88bdee0bb1ea7a98e1049f81b12e64bd0ce5510529b30a74ce3306488ac129b SHA512 (bindgen-cli-x86_64.tar.xz) = 7ccc9b43b32d3a064a75cfc150e060711356da8fe98e83d855bae017108ef8e9e172fbdd6e2579433c19cfb56ababa5b77a8db6fa57a5e657a3878778ca10a37 -SHA512 (chromium-127.0.6533.88-clean.tar.xz) = 212160a15e14348d416d2c3df0dd24f7b05da3c0f6fff3bccac1314f697be753bf831ea06039adec7d02f4e34d3a84787d12233bf927fa76727397ac0fde300f +SHA512 (chromium-127.0.6533.99-clean.tar.xz) = 353658ea97df8f1428e6b8b7b4eb2a18d9f2b21196af0e5bfe37928859ba494a43c2e1a93fdc3fd35a884d92cf75864b6acfa0d7c90c62c6d5fe25c1daeffa10 From 07b19404a11fca1cb50735147729d72b7641771c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 5 Sep 2024 19:23:29 +0200 Subject: [PATCH 039/244] update to 128.0.6613.119 --- 0001-Add-PPC64-support-for-boringssl.patch | 290 ++++++++---------- 0001-Add-ppc64-target-to-libaom.patch | 22 +- ...generated-config-for-libaom-on-ppc64.patch | 24 +- ...OWER8-AltiVec-VSX-CPU-features-when-.patch | 8 +- ...Implement-support-for-PPC64-on-Linux.patch | 200 ++++++------ ...Implement-support-for-ppc64-on-Linux.patch | 148 ++++----- ...f-ppc64-glibc-workaround-in-SIGSYS-h.patch | 8 +- ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 6 +- ...plement-partial-support-for-ppc64-sy.patch | 20 +- ...date-IsSyscallAllowed-in-broker_proc.patch | 6 +- ...date-syscall-helpers-lists-for-ppc64.patch | 36 +-- ...f_dsl-Update-syscall-ranges-for-ppc6.patch | 6 +- ..._manager-sandbox-linux-Fix-TCGETS-de.patch | 6 +- 0001-swiftshader-fix-build.patch | 11 + ...e-Include-missing-header-cstddef-in-.patch | 6 +- ...ibvpx-Properly-generate-gni-on-ppc64.patch | 8 +- ...ty-lss-Don-t-look-for-mmap2-on-ppc64.patch | 6 +- ...t-Include-altivec.h-on-ppc64-with-SI.patch | 6 +- ...-PPC64-generated-files-for-boringssl.patch | 58 ++-- 0002-Add-ppc64-trap-instructions.patch | 8 +- ...f_dsl-Modify-seccomp_macros-to-add-s.patch | 6 +- ...party-libvpx-Remove-bad-ppc64-config.patch | 84 +++-- 0002-third_party-lss-kernel-structs.patch | 6 +- ...stem_headers-Update-linux-seccomp-he.patch | 6 +- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- ...stem_headers-Update-linux-signal-hea.patch | 6 +- ...y-crashpad-port-curl-transport-ppc64.patch | 6 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- ...x-seccomp-bpf-Add-ppc64-syscall-stub.patch | 14 +- ...box-linux-update-unit-test-for-ppc64.patch | 8 +- ...linux-disable-timedwait-time64-ppc64.patch | 6 +- 0007-sandbox-linux-add-ppc64-stat.patch | 6 +- 0008-sandbox-fix-ppc64le-glibc234.patch | 36 +-- HACK-debian-clang-disable-base-musttail.patch | 13 + HACK-debian-clang-disable-skia-musttail.patch | 6 +- HACK-third_party-libvpx-use-generic-gnu.patch | 24 +- Rtc_base-system-arch.h-PPC.patch | 6 +- ...ox-linux-services-credentials.cc-PPC.patch | 8 +- add-ppc64-architecture-to-extensions.diff | 16 +- chromium-122-norar.patch | 63 ---- chromium-77.0.3865.75-no-zlib-mangle.patch | 22 -- chromium-93.0.4577.63-py3-bootstrap.patch | 12 - chromium.spec | 96 +++--- dawn-fix-ppc64le-detection.patch | 6 +- dawn-fix-typos.patch | 22 +- fix-breakpad-compile.patch | 12 +- fix-clang-selection.patch | 6 +- fix-different-data-layouts.patch | 39 +++ fix-partition-alloc-compile.patch | 6 +- fix-ppc64-linux-syscalls-headers.patch | 6 +- fix-rust-linking.patch | 10 +- fix-rustc.patch | 6 +- fix-unknown-warning-option-messages.diff | 12 +- memory-allocator-dcheck-assert-fix.patch | 6 +- skia-vsx-instructions.patch | 144 ++++----- sources | 2 +- use-sysconf-page-size-on-ppc64.patch | 58 +--- 57 files changed, 811 insertions(+), 903 deletions(-) create mode 100644 0001-swiftshader-fix-build.patch create mode 100644 HACK-debian-clang-disable-base-musttail.patch delete mode 100644 chromium-122-norar.patch delete mode 100644 chromium-77.0.3865.75-no-zlib-mangle.patch delete mode 100644 chromium-93.0.4577.63-py3-bootstrap.patch create mode 100644 fix-different-data-layouts.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index 0a87d7a..f8e0ded 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/cpu_ppc64le.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/cpu_ppc64le.c =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/cpu_ppc64le.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/cpu_ppc64le.c @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,38 +335,11 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/cpu_ppc64le.c +} + +#endif // OPENSSL_PPC64LE -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/crypto.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/crypto.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/crypto.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/crypto.c -@@ -25,10 +25,12 @@ static_assert(sizeof(ossl_ssize_t) == si - "ossl_ssize_t should be the same size as size_t"); - - #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ -- (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ -- defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) --// x86, x86_64, and the ARMs need to record the result of a cpuid/getauxval call --// for the asm to work correctly, unless compiled without asm code. -+ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ -+ defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) || \ -+ defined(OPENSSL_PPC64LE)) -+// x86, x86_64, the ARMs and ppc64le need to record the result of a -+// cpuid/getauxval call for the asm to work correctly, unless compiled without -+// asm code. - #define NEED_CPUID - - #else -@@ -39,7 +41,8 @@ static_assert(sizeof(ossl_ssize_t) == si - #define BORINGSSL_NO_STATIC_INITIALIZER - #endif - --#endif // !NO_ASM && !STATIC_ARMCAP && (X86 || X86_64 || ARM || AARCH64) -+#endif // !NO_ASM && !STATIC_ARMCAP && -+ // (X86 || X86_64 || ARM || AARCH64 || PPC64LE) - - - // Our assembly does not use the GOT to reference symbols, which means -@@ -83,6 +86,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/crypto.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/crypto.c +@@ -66,6 +66,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -377,10 +350,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/crypto.c #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) #include -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4191,10 +4164,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -59,6 +59,12 @@ OPENSSL_INLINE int vpaes_capable(void) { OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4208,10 +4181,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // !NO_ASM -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bcm.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bcm.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bcm.c +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bcm.c @@ -102,6 +102,7 @@ #include "self_check/fips.c" #include "self_check/self_check.c" @@ -4220,10 +4193,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bcm.c #include "sha/sha1.c" #include "sha/sha256.c" #include "sha/sha512.c" -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c @@ -384,6 +384,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4248,10 +4221,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c @@ -1455,6 +1455,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) @@ -4261,10 +4234,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4937,10 +4910,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/ +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c @@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4955,11 +4928,11 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif gcm_init_nohw(out_table, H); -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -@@ -215,5 +215,15 @@ TEST(GCMTest, ABI) { +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +@@ -209,5 +209,15 @@ TEST(GCMTest, ABI) { } } #endif @@ -4975,10 +4948,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/ +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h @@ -325,6 +325,13 @@ void aes_gcm_dec_kernel(const uint8_t *i const u128 Htable[16]); #endif @@ -4993,10 +4966,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif #endif // OPENSSL_NO_ASM -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -5006,10 +4979,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/g #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c @@ -431,6 +431,11 @@ void RAND_bytes_with_additional_data(uin // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -5022,10 +4995,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5043,10 +5016,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c @@ -0,0 +1,361 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. @@ -5409,20 +5382,23 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/internal.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/internal.h -@@ -181,7 +181,7 @@ extern "C" { +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/internal.h +@@ -183,8 +183,9 @@ extern "C" { + #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ + (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ + defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) +-// x86, x86_64, and the ARMs need to record the result of a cpuid/getauxval call +-// for the asm to work correctly, unless compiled without asm code. ++// x86, x86_64, the ARMs, and ppc64le need to record the result of a ++// cpuid/getauxval call for the asm to work correctly, unless compiled without ++// asm code. + #define NEED_CPUID - - #if defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || defined(OPENSSL_ARM) || \ -- defined(OPENSSL_AARCH64) -+ defined(OPENSSL_AARCH64) || defined(OPENSSL_PPC64LE) - // OPENSSL_cpuid_setup initializes the platform-specific feature cache. - void OPENSSL_cpuid_setup(void); - #endif -@@ -1638,6 +1638,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51 + // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This +@@ -1657,6 +1658,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51 #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5439,10 +5415,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5764,10 +5740,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5874,10 +5850,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6141,10 +6117,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-127.0.6533.72/third_party/boringssl/src/include/openssl/target.h +Index: chromium-128.0.6613.113/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-127.0.6533.72/third_party/boringssl/src/include/openssl/target.h +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-128.0.6613.113/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6155,10 +6131,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -37,6 +37,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6168,10 +6144,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -54,7 +54,8 @@ type stringWriter interface { type processorType int @@ -6638,7 +6614,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ /* Intel */ type instructionType int -@@ -1323,6 +1729,8 @@ func writeAarch64Function(w stringWriter +@@ -1332,6 +1738,8 @@ func writeAarch64Function(w stringWriter func transform(w stringWriter, inputs []inputFile) error { // symbols contains all defined symbols. symbols := make(map[string]struct{}) @@ -6647,7 +6623,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ // fileNumbers is the set of IDs seen in .file directives. fileNumbers := make(map[int]struct{}) // maxObservedFileNumber contains the largest seen file number in a -@@ -1346,6 +1754,25 @@ func transform(w stringWriter, inputs [] +@@ -1355,6 +1763,25 @@ func transform(w stringWriter, inputs [] }, ruleStatement, ruleLabel, ruleSymbolName) forEachPath(input.ast.up, func(node *node32) { @@ -6673,7 +6649,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ assertNodeType(node, ruleLocationDirective) directive := input.contents[node.begin:node.end] if !strings.HasPrefix(directive, ".file") { -@@ -1393,11 +1820,13 @@ func transform(w stringWriter, inputs [] +@@ -1402,11 +1829,13 @@ func transform(w stringWriter, inputs [] d := &delocation{ symbols: symbols, @@ -6687,7 +6663,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ gotExternalsNeeded: make(map[string]struct{}), gotOffsetsNeeded: make(map[string]struct{}), gotOffOffsetsNeeded: make(map[string]struct{}), -@@ -1432,6 +1861,22 @@ func transform(w stringWriter, inputs [] +@@ -1441,6 +1870,22 @@ func transform(w stringWriter, inputs [] for _, name := range redirectorNames { redirector := d.redirectors[name] switch d.processor { @@ -6710,7 +6686,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: writeAarch64Function(w, redirector, func(w stringWriter) { w.WriteString("\tb " + name + "\n") -@@ -1456,6 +1901,13 @@ func transform(w stringWriter, inputs [] +@@ -1465,6 +1910,13 @@ func transform(w stringWriter, inputs [] target := d.bssAccessorsNeeded[name] switch d.processor { @@ -6724,7 +6700,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ case x86_64: w.WriteString(".type " + funcName + ", @function\n") w.WriteString(funcName + ":\n") -@@ -1471,6 +1923,26 @@ func transform(w stringWriter, inputs [] +@@ -1480,6 +1932,26 @@ func transform(w stringWriter, inputs [] } switch d.processor { @@ -6751,7 +6727,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: externalNames := sortedSet(d.gotExternalsNeeded) for _, symbol := range externalNames { -@@ -1781,6 +2253,10 @@ func localTargetName(name string) string +@@ -1790,6 +2262,10 @@ func localTargetName(name string) string return ".L" + name + "_local_target" } @@ -6762,7 +6738,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ func isSynthesized(symbol string) bool { return strings.HasSuffix(symbol, "_bss_get") || symbol == "OPENSSL_ia32cap_get" || -@@ -1836,6 +2312,8 @@ func detectProcessor(input inputFile) pr +@@ -1845,6 +2321,8 @@ func detectProcessor(input inputFile) pr switch instructionName { case "movq", "call", "leaq": return x86_64 @@ -6771,10 +6747,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,7 +12,7 @@ # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ @@ -6784,10 +6760,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ # https://github.com/pointlander/peg. delocate.go has a go:generate line for # rebuilding delocate.peg.go from this file. -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6800,10 +6776,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6814,10 +6790,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -6881,19 +6857,19 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -6967,10 +6943,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.c" + .abiversion 2 @@ -7133,10 +7109,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -7690,10 +7666,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.c" + .abiversion 2 @@ -7921,10 +7897,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -8603,10 +8579,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8631,10 +8607,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -8814,10 +8790,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c +Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c -+++ chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c ++++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c @@ -416,6 +416,10 @@ static void sha1_block_data_order(uint32 return; } @@ -8829,11 +8805,11 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-127.0.6533.72/third_party/boringssl/src/build.json +Index: chromium-128.0.6613.113/third_party/boringssl/src/build.json =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/build.json -+++ chromium-127.0.6533.72/third_party/boringssl/src/build.json -@@ -118,6 +118,10 @@ +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/build.json ++++ chromium-128.0.6613.113/third_party/boringssl/src/build.json +@@ -122,6 +122,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} ], @@ -8844,7 +8820,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, {"src": "crypto/fipsmodule/bn/asm/bn-586.pl"}, -@@ -221,6 +225,7 @@ +@@ -225,6 +229,7 @@ "crypto/cpu_arm_freebsd.c", "crypto/cpu_arm_linux.c", "crypto/cpu_intel.c", @@ -8852,7 +8828,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/build.json "crypto/crypto.c", "crypto/curve25519/curve25519.c", "crypto/curve25519/curve25519_64_adx.c", -@@ -769,6 +774,9 @@ +@@ -775,6 +780,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8862,10 +8838,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-127.0.6533.72/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-128.0.6613.113/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-127.0.6533.72/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-128.0.6613.113/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8882,13 +8858,13 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/util/pregenerate/build.g + addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"linux64le"}) + } for _, p := range in.PerlasmX86 { - addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC", "-DOPENSSL_IA32_SSE2"}) - addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC", "-DOPENSSL_IA32_SSE2"}) -Index: chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni + addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) + addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) +Index: chromium-128.0.6613.113/third_party/boringssl/BUILD.generated.gni =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/BUILD.generated.gni -+++ chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni -@@ -93,6 +93,7 @@ crypto_sources = [ +--- chromium-128.0.6613.113.orig/third_party/boringssl/BUILD.generated.gni ++++ chromium-128.0.6613.113/third_party/boringssl/BUILD.generated.gni +@@ -92,6 +92,7 @@ crypto_sources = [ "src/crypto/cpu_arm_linux.c", "src/crypto/cpu_arm_linux.h", "src/crypto/cpu_intel.c", @@ -8896,7 +8872,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni "src/crypto/crypto.c", "src/crypto/curve25519/curve25519.c", "src/crypto/curve25519/curve25519_64_adx.c", -@@ -334,6 +335,7 @@ crypto_sources_asm = [ +@@ -335,6 +336,7 @@ crypto_sources_asm = [ "src/gen/bcm/aesv8-gcm-armv8-apple.S", "src/gen/bcm/aesv8-gcm-armv8-linux.S", "src/gen/bcm/aesv8-gcm-armv8-win.S", @@ -8904,7 +8880,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni "src/gen/bcm/armv4-mont-linux.S", "src/gen/bcm/armv8-mont-apple.S", "src/gen/bcm/armv8-mont-linux.S", -@@ -350,6 +352,7 @@ crypto_sources_asm = [ +@@ -351,6 +353,7 @@ crypto_sources_asm = [ "src/gen/bcm/ghash-neon-armv8-apple.S", "src/gen/bcm/ghash-neon-armv8-linux.S", "src/gen/bcm/ghash-neon-armv8-win.S", @@ -8912,10 +8888,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/BUILD.generated.gni "src/gen/bcm/ghash-ssse3-x86-apple.S", "src/gen/bcm/ghash-ssse3-x86-linux.S", "src/gen/bcm/ghash-ssse3-x86_64-apple.S", -Index: chromium-127.0.6533.72/third_party/boringssl/README.ppc64le +Index: chromium-128.0.6613.113/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/README.ppc64le ++++ chromium-128.0.6613.113/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: diff --git a/0001-Add-ppc64-target-to-libaom.patch b/0001-Add-ppc64-target-to-libaom.patch index 0dc3f12..554e282 100644 --- a/0001-Add-ppc64-target-to-libaom.patch +++ b/0001-Add-ppc64-target-to-libaom.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Add ppc64 target to libaom third_party/libaom/cmake_update.sh | 3 +++ 2 files changed, 15 insertions(+) -Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn +Index: chromium-128.0.6613.113/third_party/libaom/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libaom/BUILD.gn -+++ chromium-127.0.6533.72/third_party/libaom/BUILD.gn -@@ -272,6 +272,18 @@ if (current_cpu == "arm64") { +--- chromium-128.0.6613.113.orig/third_party/libaom/BUILD.gn ++++ chromium-128.0.6613.113/third_party/libaom/BUILD.gn +@@ -275,6 +275,18 @@ if (current_cpu == "arm64") { } } @@ -31,7 +31,7 @@ Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn static_library("libaom") { check_includes = false if (!is_debug && is_win) { -@@ -335,6 +347,9 @@ static_library("libaom") { +@@ -338,6 +350,9 @@ static_library("libaom") { # This is needed by all arm boards due to aom_arm_cpu_caps() sources += [ "source/libaom/aom_ports/aarch32_cpudetect.c" ] } @@ -41,13 +41,13 @@ Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn if (is_android) { deps += [ "//third_party/cpu_features:ndk_compat" ] } -Index: chromium-127.0.6533.72/third_party/libaom/cmake_update.sh +Index: chromium-128.0.6613.113/third_party/libaom/cmake_update.sh =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libaom/cmake_update.sh -+++ chromium-127.0.6533.72/third_party/libaom/cmake_update.sh -@@ -192,6 +192,9 @@ gen_config_files linux/arm64-cpu-detect - "${toolchain}/arm64-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 \ - ${all_platforms}" +--- chromium-128.0.6613.113.orig/third_party/libaom/cmake_update.sh ++++ chromium-128.0.6613.113/third_party/libaom/cmake_update.sh +@@ -190,6 +190,9 @@ reset_dirs linux/arm64-cpu-detect + gen_config_files linux/arm64-cpu-detect \ + "${toolchain}/arm64-linux-gcc.cmake ${all_platforms}" +reset_dirs linux/ppc64 +gen_config_files linux/ppc64 "${toolchain}/ppc-linux-gcc.cmake ${all_platforms}" diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 9c32d2d..52c5072 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm ++++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm @@ -0,0 +1,95 @@ +; +; Copyright (c) 2024, Alliance for Open Media. All rights reserved @@ -98,10 +98,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved @@ -116,10 +116,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi +#include "aom/aom_codec.h" +static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.h ++++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.h @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved @@ -220,10 +220,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi +#define INLINE inline +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h ++++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h @@ -0,0 +1,1541 @@ +// This file is generated. Do not edit. +#ifndef AOM_DSP_RTCD_H_ @@ -1766,10 +1766,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif -Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h @@ -0,0 +1,107 @@ +// This file is generated. Do not edit. +#ifndef AOM_SCALE_RTCD_H_ @@ -1878,10 +1878,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif -Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h ++++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h @@ -0,0 +1,484 @@ +// This file is generated. Do not edit. +#ifndef AV1_RTCD_H_ diff --git a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch index 9ddfc49..477b3f3 100644 --- a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +++ b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) -Index: chromium-127.0.6533.72/v8/BUILD.gn +Index: chromium-128.0.6613.113/v8/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/v8/BUILD.gn -+++ chromium-127.0.6533.72/v8/BUILD.gn -@@ -1396,6 +1396,12 @@ config("toolchain") { +--- chromium-128.0.6613.113.orig/v8/BUILD.gn ++++ chromium-128.0.6613.113/v8/BUILD.gn +@@ -1417,6 +1417,12 @@ config("toolchain") { } if (host_byteorder == "little") { defines += [ "V8_TARGET_ARCH_PPC_LE" ] diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index 4c00488..d413b08 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -687,6 +687,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +192,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -328,6 +328,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +383,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +399,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -443,10 +443,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,11 +571,11 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -@@ -195,12 +195,15 @@ void TestAgainstTarget(PtraceConnection* +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +@@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) static constexpr char kPrefix[] = "linux-gate.so."; @@ -592,10 +592,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +666,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -91,6 +91,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +679,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index 7c7ac0b..7d283dc 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dum #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dum +#endif + } // namespace google_breakpad -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dum }; } // namespace google_breakpad -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dum #endif } // namespace google_breakpad -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,10 +247,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/dum #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc @@ -464,6 +464,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); @@ -295,10 +295,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/han #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -200,7 +200,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -312,10 +312,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/han fpstate_t float_state; #endif }; -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc @@ -321,7 +321,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; @@ -347,10 +347,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/han const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -141,7 +141,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -393,10 +393,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/mic const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/mic #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,10 +446,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -461,10 +461,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,10 +475,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -56,6 +56,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -488,11 +488,11 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -@@ -189,12 +189,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +@@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; info->GetGeneralPurposeRegisters(&io.iov_base, &io.iov_len); @@ -507,7 +507,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min // We are going to check if we can read VFP registers on ARM32. // Currently breakpad does not support VFP registers to be a part of minidump, // so this is only to confirm that we can actually read FP registers. -@@ -214,6 +214,15 @@ bool LinuxPtraceDumper::ReadRegisterSet( +@@ -233,6 +233,15 @@ bool LinuxPtraceDumper::ReadRegisterSet( } #endif // defined(__arm__) } @@ -523,7 +523,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min return true; #else return false; -@@ -378,6 +387,9 @@ bool LinuxPtraceDumper::GetThreadInfoByI +@@ -397,6 +406,9 @@ bool LinuxPtraceDumper::GetThreadInfoByI #elif defined(__riscv) stack_pointer = reinterpret_cast( info->mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP]); @@ -533,10 +533,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -556,10 +556,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -144,7 +144,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -613,10 +613,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,10 +654,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/mem struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -672,10 +672,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/linux/mem for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); @@ -687,10 +687,10 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/common/memory_al for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == NULL); -Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-127.0.6533.72/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +--- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc @@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) @@ -719,7 +719,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/tools/linux/md2c uintptr_t stack_addr; const uint8_t* stack; size_t stack_length; -@@ -599,6 +606,38 @@ ParseThreadRegisters(CrashedProcess::Thr +@@ -627,6 +634,38 @@ ParseThreadRegisters(CrashedProcess::Thr #error "Unexpected __riscv_xlen" #endif } @@ -758,7 +758,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/breakpad/src/tools/linux/md2c #else #error "This code has not been ported to your platform yet" #endif -@@ -704,6 +743,12 @@ ParseSystemInfo(const Options& options, +@@ -732,6 +771,12 @@ ParseSystemInfo(const Options& options, # else # error "Unexpected __riscv_xlen" # endif diff --git a/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch b/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch index 9e34173..337d340 100644 --- a/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch +++ b/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch @@ -10,11 +10,11 @@ More investigation required. sandbox/linux/seccomp-bpf/trap.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/trap.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf/trap.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc -@@ -231,6 +231,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf/trap.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/trap.cc +@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* SetIsInSigHandler(); } diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index 8e5bf92..a603ada 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -7,10 +7,10 @@ Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64 sandbox/features.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-127.0.6533.72/sandbox/features.gni +Index: chromium-128.0.6613.113/sandbox/features.gni =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/features.gni -+++ chromium-127.0.6533.72/sandbox/features.gni +--- chromium-128.0.6613.113.orig/sandbox/features.gni ++++ chromium-128.0.6613.113/sandbox/features.gni @@ -9,7 +9,8 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || diff --git a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch index 68eff7f..d572850 100644 --- a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch +++ b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch @@ -17,10 +17,10 @@ GNU/Linux environments, but may require expansion elsewhere. create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h -Index: chromium-127.0.6533.72/sandbox/linux/BUILD.gn +Index: chromium-128.0.6613.113/sandbox/linux/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/BUILD.gn -+++ chromium-127.0.6533.72/sandbox/linux/BUILD.gn +--- chromium-128.0.6613.113.orig/sandbox/linux/BUILD.gn ++++ chromium-128.0.6613.113/sandbox/linux/BUILD.gn @@ -383,6 +383,8 @@ component("sandbox_services") { source_set("sandbox_services_headers") { @@ -30,10 +30,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/BUILD.gn "system_headers/arm64_linux_syscalls.h", "system_headers/arm_linux_syscalls.h", "system_headers/arm_linux_ucontext.h", -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_syscalls.h -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h +--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_syscalls.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h @@ -35,5 +35,9 @@ #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" #endif @@ -44,10 +44,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -61,10 +61,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls. +//TODO: is it necessary to redefine syscall numbers for PPC64? + +#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_ucontext.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_ucontext.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_ucontext.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_ucontext.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be diff --git a/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch b/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch index 7f32541..771ca3a 100644 --- a/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch +++ b/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch @@ -7,10 +7,10 @@ Subject: [PATCH] sandbox/linux: Update IsSyscallAllowed in broker_process.cc sandbox/linux/syscall_broker/broker_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc +Index: chromium-128.0.6613.113/sandbox/linux/syscall_broker/broker_process.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/syscall_broker/broker_process.cc -+++ chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc +--- chromium-128.0.6613.113.orig/sandbox/linux/syscall_broker/broker_process.cc ++++ chromium-128.0.6613.113/sandbox/linux/syscall_broker/broker_process.cc @@ -169,7 +169,7 @@ bool BrokerProcess::IsSyscallBrokerable( #if defined(__NR_fstatat64) case __NR_fstatat64: diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index b2f3639..a191e74 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -12,10 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 sandbox/linux/services/syscall_wrappers.cc | 2 +- 6 files changed, 73 insertions(+), 55 deletions(-) -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -54,10 +54,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc @@ -36,7 +36,7 @@ #include "sandbox/linux/system_headers/linux_time.h" @@ -146,10 +146,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_paramete PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -159,10 +159,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -582,10 +582,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -623,10 +623,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-127.0.6533.72/sandbox/linux/services/syscall_wrappers.cc +Index: chromium-128.0.6613.113/sandbox/linux/services/syscall_wrappers.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-127.0.6533.72/sandbox/linux/services/syscall_wrappers.cc +--- chromium-128.0.6613.113.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-128.0.6613.113/sandbox/linux/services/syscall_wrappers.cc @@ -61,7 +61,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch index 084882b..1e0db40 100644 --- a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch +++ b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch @@ -7,10 +7,10 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64 sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++ 1 file changed, 7 insertions(+) -Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -56,6 +56,13 @@ #define MAX_PUBLIC_SYSCALL __NR_syscalls #define MAX_SYSCALL MAX_PUBLIC_SYSCALL diff --git a/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch b/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch index be0800e..91ce82c 100644 --- a/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch +++ b/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch @@ -8,10 +8,10 @@ Subject: [PATCH] services/service_manager/sandbox/linux: Fix TCGETS .../sandbox/linux/bpf_renderer_policy_linux.cc | 5 +++++ 1 file changed, 5 insertions(+) -Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -15,6 +15,11 @@ #include "sandbox/linux/system_headers/linux_syscalls.h" #include "sandbox/policy/linux/sandbox_linux.h" diff --git a/0001-swiftshader-fix-build.patch b/0001-swiftshader-fix-build.patch new file mode 100644 index 0000000..0166bd6 --- /dev/null +++ b/0001-swiftshader-fix-build.patch @@ -0,0 +1,11 @@ +--- a/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn ++++ b/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn +@@ -1258,6 +1258,8 @@ + "llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp", + "llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp", + "llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp", ++ "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp", ++ "llvm/lib/MC/MCAsmInfoXCOFF.cpp", + ] + } + diff --git a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch index 8082e28..52ccbcf 100644 --- a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch +++ b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/angle/src/libANGLE/Constants.h +Index: chromium-128.0.6613.113/third_party/angle/src/libANGLE/Constants.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/angle/src/libANGLE/Constants.h -+++ chromium-127.0.6533.72/third_party/angle/src/libANGLE/Constants.h +--- chromium-128.0.6613.113.orig/third_party/angle/src/libANGLE/Constants.h ++++ chromium-128.0.6613.113/third_party/angle/src/libANGLE/Constants.h @@ -9,6 +9,7 @@ #ifndef LIBANGLE_CONSTANTS_H_ #define LIBANGLE_CONSTANTS_H_ diff --git a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch index 54e3ca1..5edd290 100644 --- a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch +++ b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch @@ -8,11 +8,11 @@ Subject: [PATCH] third_party/libvpx: Properly generate gni on ppc64 third_party/libvpx/generate_gni.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) -Index: chromium-127.0.6533.72/third_party/libvpx/BUILD.gn +Index: chromium-128.0.6613.113/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/BUILD.gn -+++ chromium-127.0.6533.72/third_party/libvpx/BUILD.gn -@@ -288,6 +288,8 @@ if (current_cpu == "x86" || (current_cpu +--- chromium-128.0.6613.113.orig/third_party/libvpx/BUILD.gn ++++ chromium-128.0.6613.113/third_party/libvpx/BUILD.gn +@@ -320,6 +320,8 @@ if (current_cpu == "x86" || (current_cpu } else if (current_cpu == "x64") { deps = [ ":libvpx_x86_64_headers" ] sources = libvpx_srcs_x86_64_avx512 diff --git a/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch b/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch index 03ca889..7926674 100644 --- a/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch +++ b/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h +Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/lss/linux_syscall_support.h -+++ chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h +--- chromium-128.0.6613.113.orig/third_party/lss/linux_syscall_support.h ++++ chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h @@ -4638,7 +4638,7 @@ struct kernel_statx { LSS_REG(2, buf); LSS_BODY(void*, mmap2, "0"(__r2)); diff --git a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch index e62b229..83983b4 100644 --- a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch +++ b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/pffft: Include altivec.h on ppc64 with SIMD third_party/pffft/src/pffft.c | 1 + 1 file changed, 1 insertion(+) -Index: chromium-127.0.6533.72/third_party/pffft/src/pffft.c +Index: chromium-128.0.6613.113/third_party/pffft/src/pffft.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/pffft/src/pffft.c -+++ chromium-127.0.6533.72/third_party/pffft/src/pffft.c +--- chromium-128.0.6613.113.orig/third_party/pffft/src/pffft.c ++++ chromium-128.0.6613.113/third_party/pffft/src/pffft.c @@ -100,6 +100,7 @@ Altivec support macros */ diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 84e5e4d..7ae06a9 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.com/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,10 +4271,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.com/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake +Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake @@ -110,6 +110,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S @@ -4291,7 +4291,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake gen/bcm/ghashv8-armv7-linux.S gen/bcm/ghashv8-armv8-apple.S gen/bcm/ghashv8-armv8-linux.S -@@ -336,6 +338,7 @@ set( +@@ -338,6 +340,7 @@ set( crypto/cpu_arm_freebsd.c crypto/cpu_arm_linux.c crypto/cpu_intel.c @@ -4299,7 +4299,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake crypto/crypto.c crypto/curve25519/curve25519.c crypto/curve25519/curve25519_64_adx.c -@@ -775,37 +778,6 @@ set( +@@ -778,37 +781,6 @@ set( CRYPTO_TEST_DATA crypto/blake2/blake2b256_tests.txt @@ -4335,9 +4335,9 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake - crypto/cipher_extra/test/nist_cavp/tdes_ecb.txt - crypto/cipher_extra/test/xchacha20_poly1305_tests.txt crypto/curve25519/ed25519_tests.txt - crypto/ecdh_extra/ecdh_tests.txt - crypto/evp/evp_tests.txt -@@ -1189,1413 +1161,6 @@ set( + crypto/dilithium/dilithium_tests.txt + crypto/dilithium/edge_cases_draft_dilithium3_sign.txt +@@ -1198,1413 +1170,6 @@ set( set( PKI_TEST_DATA @@ -5748,10 +5748,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake - pki/testdata/verify_signed_data_unittest/rsa-pss-sha256.pem - pki/testdata/verify_signed_data_unittest/rsa-using-ec-key.pem - pki/testdata/verify_signed_data_unittest/rsa2048-pkcs1-sha512.pem + pki/testdata/verify_unittest/google-intermediate1.der + pki/testdata/verify_unittest/google-intermediate2.der pki/testdata/verify_unittest/google-leaf.der - pki/testdata/verify_unittest/self-issued.pem - ) -@@ -2708,6 +1273,7 @@ set( +@@ -2725,6 +1290,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -5759,10 +5759,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json +Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-127.0.6533.72.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json +--- chromium-128.0.6613.113.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json @@ -88,6 +88,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", @@ -5779,7 +5779,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json "gen/bcm/ghashv8-armv7-linux.S", "gen/bcm/ghashv8-armv8-apple.S", "gen/bcm/ghashv8-armv8-linux.S", -@@ -306,6 +308,7 @@ +@@ -308,6 +310,7 @@ "crypto/cpu_arm_freebsd.c", "crypto/cpu_arm_linux.c", "crypto/cpu_intel.c", @@ -5787,7 +5787,7 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json "crypto/crypto.c", "crypto/curve25519/curve25519.c", "crypto/curve25519/curve25519_64_adx.c", -@@ -729,37 +732,6 @@ +@@ -732,37 +735,6 @@ ], "data": [ "crypto/blake2/blake2b256_tests.txt", @@ -5823,10 +5823,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json - "crypto/cipher_extra/test/nist_cavp/tdes_ecb.txt", - "crypto/cipher_extra/test/xchacha20_poly1305_tests.txt", "crypto/curve25519/ed25519_tests.txt", - "crypto/ecdh_extra/ecdh_tests.txt", - "crypto/evp/evp_tests.txt", -@@ -1127,1413 +1099,6 @@ - "pki/verify_signed_data_unittest.cc" + "crypto/dilithium/dilithium_tests.txt", + "crypto/dilithium/edge_cases_draft_dilithium3_sign.txt", +@@ -1136,1413 +1108,6 @@ + "pki/verify_unittest.cc" ], "data": [ - "pki/testdata/cert_issuer_source_static_unittest/c1.pem", @@ -7236,10 +7236,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json - "pki/testdata/verify_signed_data_unittest/rsa-pss-sha256.pem", - "pki/testdata/verify_signed_data_unittest/rsa-using-ec-key.pem", - "pki/testdata/verify_signed_data_unittest/rsa2048-pkcs1-sha512.pem", + "pki/testdata/verify_unittest/google-intermediate1.der", + "pki/testdata/verify_unittest/google-intermediate2.der", "pki/testdata/verify_unittest/google-leaf.der", - "pki/testdata/verify_unittest/self-issued.pem" - ] -@@ -2631,6 +1196,7 @@ +@@ -2648,6 +1213,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -7247,10 +7247,10 @@ Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-127.0.6533.72/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-128.0.6613.113/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-Add-ppc64-trap-instructions.patch b/0002-Add-ppc64-trap-instructions.patch index 4bb5c09..be67b9b 100644 --- a/0002-Add-ppc64-trap-instructions.patch +++ b/0002-Add-ppc64-trap-instructions.patch @@ -1,8 +1,8 @@ -Index: chromium-127.0.6533.72/v8/src/base/immediate-crash.h +Index: chromium-128.0.6613.113/v8/src/base/immediate-crash.h =================================================================== ---- chromium-127.0.6533.72.orig/v8/src/base/immediate-crash.h -+++ chromium-127.0.6533.72/v8/src/base/immediate-crash.h -@@ -93,6 +93,13 @@ +--- chromium-128.0.6613.113.orig/v8/src/base/immediate-crash.h ++++ chromium-128.0.6613.113/v8/src/base/immediate-crash.h +@@ -98,6 +98,13 @@ #define TRAP_SEQUENCE1_() asm volatile(".2byte 0x0001"); #define TRAP_SEQUENCE2_() asm volatile("") diff --git a/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch b/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch index 9b0d83d..312bba5 100644 --- a/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch +++ b/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch @@ -8,10 +8,10 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Modify seccomp_macros to add sandbox/linux/bpf_dsl/seccomp_macros.h | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) -Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/seccomp_macros.h +Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/seccomp_macros.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/seccomp_macros.h -+++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/seccomp_macros.h +--- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/seccomp_macros.h ++++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/seccomp_macros.h @@ -14,6 +14,9 @@ #if defined(__mips__) // sys/user.h in eglibc misses size_t definition diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index 22d6f59..cbaaab6 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,8 +1,24 @@ -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +commit f752c1b0973a1dd61854b290a05fc1cd57b7b313 +Author: Timothy Pearson +Date: Tue Aug 20 22:40:12 2024 -0500 + + OLD + +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null -@@ -1,320 +0,0 @@ +@@ -1,330 +0,0 @@ +-/* +- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * +- * Use of this source code is governed by a BSD-style license +- * that can be found in the LICENSE file in the root of the source +- * tree. An additional intellectual property rights grant can be found +- * in the file PATENTS. All contributing project authors may +- * be found in the AUTHORS file in the root of the source tree. +- */ +- -// This file is generated. Do not edit. -#ifndef VP8_RTCD_H_ -#define VP8_RTCD_H_ @@ -323,11 +339,21 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null -@@ -1,193 +0,0 @@ +@@ -1,203 +0,0 @@ +-/* +- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * +- * Use of this source code is governed by a BSD-style license +- * that can be found in the LICENSE file in the root of the source +- * tree. An additional intellectual property rights grant can be found +- * in the file PATENTS. All contributing project authors may +- * be found in the AUTHORS file in the root of the source tree. +- */ +- -// This file is generated. Do not edit. -#ifndef VP9_RTCD_H_ -#define VP9_RTCD_H_ @@ -521,9 +547,9 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,108 +0,0 @@ -@ This file was created from a .asm file @@ -634,9 +660,9 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -647,11 +673,11 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_c -/* in the file PATENTS. All contributing project authors may */ -/* be found in the AUTHORS file in the root of the source tree. */ -#include "vpx/vpx_codec.h" --static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +-static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -771,11 +797,21 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null -@@ -1,2128 +0,0 @@ +@@ -1,2138 +0,0 @@ +-/* +- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * +- * Use of this source code is governed by a BSD-style license +- * that can be found in the LICENSE file in the root of the source +- * tree. An additional intellectual property rights grant can be found +- * in the file PATENTS. All contributing project authors may +- * be found in the AUTHORS file in the root of the source tree. +- */ +- -// This file is generated. Do not edit. -#ifndef VPX_DSP_RTCD_H_ -#define VPX_DSP_RTCD_H_ @@ -2904,11 +2940,21 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null -@@ -1,100 +0,0 @@ +@@ -1,110 +0,0 @@ +-/* +- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * +- * Use of this source code is governed by a BSD-style license +- * that can be found in the LICENSE file in the root of the source +- * tree. An additional intellectual property rights grant can be found +- * in the file PATENTS. All contributing project authors may +- * be found in the AUTHORS file in the root of the source tree. +- */ +- -// This file is generated. Do not edit. -#ifndef VPX_SCALE_RTCD_H_ -#define VPX_SCALE_RTCD_H_ diff --git a/0002-third_party-lss-kernel-structs.patch b/0002-third_party-lss-kernel-structs.patch index f1967fb..c65a825 100644 --- a/0002-third_party-lss-kernel-structs.patch +++ b/0002-third_party-lss-kernel-structs.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h +Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/lss/linux_syscall_support.h -+++ chromium-127.0.6533.72/third_party/lss/linux_syscall_support.h +--- chromium-128.0.6613.113.orig/third_party/lss/linux_syscall_support.h ++++ chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h @@ -87,7 +87,7 @@ * Porting to other related platforms should not be difficult. */ diff --git a/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch b/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch index 07ad502..cdefaf3 100644 --- a/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch +++ b/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch @@ -8,10 +8,10 @@ Subject: [PATCH 3/4] sandbox/linux/system_headers: Update linux seccomp header sandbox/linux/system_headers/linux_seccomp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_seccomp.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_seccomp.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_seccomp.h -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_seccomp.h +--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_seccomp.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_seccomp.h @@ -38,6 +38,9 @@ #ifndef EM_AARCH64 #define EM_AARCH64 183 diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index 52f5662..2430ee9 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-127.0.6533.72/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch b/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch index 9477b07..df65bff 100644 --- a/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch +++ b/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch @@ -8,10 +8,10 @@ Subject: [PATCH 4/4] sandbox/linux/system_headers: Update linux signal header sandbox/linux/system_headers/linux_signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_signal.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_signal.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_signal.h -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_signal.h +--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_signal.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_signal.h @@ -13,7 +13,7 @@ // (not undefined, but defined different values and in different memory // layouts). So, fill the gap here. diff --git a/0004-third_party-crashpad-port-curl-transport-ppc64.patch b/0004-third_party-crashpad-port-curl-transport-ppc64.patch index b86f24b..b773e2d 100644 --- a/0004-third_party-crashpad-port-curl-transport-ppc64.patch +++ b/0004-third_party-crashpad-port-curl-transport-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +--- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc ++++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc @@ -239,6 +239,12 @@ std::string UserAgent() { #endif #elif defined (ARCH_CPU_RISCV64) diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index b36c0fa..49855ac 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vp9/encoder/ppc/v eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct3 } // Returns 1 if negative 0 if positive -Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch b/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch index 1084e99..33d2f31 100644 --- a/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch +++ b/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch @@ -7,11 +7,11 @@ Subject: [PATCH] sandbox/linux/seccomp-bpf: Add ppc64 syscall stub sandbox/linux/seccomp-bpf/syscall.cc | 53 ++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/syscall.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf/syscall.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc -@@ -18,7 +18,7 @@ namespace sandbox { +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf/syscall.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/syscall.cc +@@ -23,7 +23,7 @@ namespace sandbox { namespace { #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ @@ -20,7 +20,7 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc // Number that's not currently used by any Linux kernel ABIs. const int kInvalidSyscallNumber = 0x351d3; #else -@@ -308,10 +308,54 @@ asm(// We need to be able to tell the ke +@@ -313,10 +313,54 @@ asm(// We need to be able to tell the ke "2:ret\n" ".cfi_endproc\n" ".size SyscallAsm, .-SyscallAsm\n" @@ -76,7 +76,7 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc extern "C" { intptr_t SyscallAsm(intptr_t nr, const intptr_t args[6]); } -@@ -425,6 +469,8 @@ intptr_t Syscall::Call(int nr, +@@ -430,6 +474,8 @@ intptr_t Syscall::Call(int nr, ret = inout; } @@ -85,7 +85,7 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/syscall.cc #else #error "Unimplemented architecture" #endif -@@ -441,8 +487,18 @@ void Syscall::PutValueInUcontext(intptr_ +@@ -446,8 +492,18 @@ void Syscall::PutValueInUcontext(intptr_ // needs to be changed back. ret_val = -ret_val; SECCOMP_PARM4(ctx) = 1; diff --git a/0005-sandbox-linux-update-unit-test-for-ppc64.patch b/0005-sandbox-linux-update-unit-test-for-ppc64.patch index 290bc7e..539a23a 100644 --- a/0005-sandbox-linux-update-unit-test-for-ppc64.patch +++ b/0005-sandbox-linux-update-unit-test-for-ppc64.patch @@ -7,11 +7,11 @@ Subject: [PATCH 5/6] sandbox/linux: update unit test for ppc64 sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -@@ -345,8 +345,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) #if !defined(__aarch64__) TEST_BASELINE_SIGSYS(__NR_inotify_init) diff --git a/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch b/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch index 3179451..6b8423c 100644 --- a/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch +++ b/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -374,7 +374,9 @@ bool SyscallSets::IsAllowedSignalHandlin #if defined(__i386__) || defined(__arm__) || \ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ diff --git a/0007-sandbox-linux-add-ppc64-stat.patch b/0007-sandbox-linux-add-ppc64-stat.patch index cf4b727..dcf4ce1 100644 --- a/0007-sandbox-linux-add-ppc64-stat.patch +++ b/0007-sandbox-linux-add-ppc64-stat.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_stat.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_stat.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_stat.h -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_stat.h +--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_stat.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_stat.h @@ -173,6 +173,28 @@ struct kernel_stat { unsigned int __unused4; unsigned int __unused5; diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch index a552a40..6dd9d64 100644 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ b/0008-sandbox-fix-ppc64le-glibc234.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_utility_policy_linux.cc +Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_utility_policy_linux.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-127.0.6533.72/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -11,10 +11,10 @@ Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -87,7 +87,7 @@ ResultExpr RendererProcessPolicy::Evalua case __NR_ftruncate64: #endif @@ -24,10 +24,10 @@ Index: chromium-127.0.6533.72/sandbox/policy/linux/bpf_renderer_policy_linux.cc case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -58,9 +58,9 @@ #elif defined(__powerpc64__) @@ -40,11 +40,11 @@ Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h #define MAX_SYSCALL MAX_PUBLIC_SYSCALL #else -Index: chromium-127.0.6533.72/sandbox/linux/services/credentials.cc +Index: chromium-128.0.6613.113/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/services/credentials.cc -+++ chromium-127.0.6533.72/sandbox/linux/services/credentials.cc -@@ -89,7 +89,8 @@ bool ChrootToSafeEmptyDir() { +--- chromium-128.0.6613.113.orig/sandbox/linux/services/credentials.cc ++++ chromium-128.0.6613.113/sandbox/linux/services/credentials.cc +@@ -94,7 +94,8 @@ bool ChrootToSafeEmptyDir() { int clone_flags = CLONE_FS | LINUX_SIGCHLD; void* tls = nullptr; @@ -54,7 +54,7 @@ Index: chromium-127.0.6533.72/sandbox/linux/services/credentials.cc !defined(MEMORY_SANITIZER) // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. // Since clone writes to the new child's TLS before returning, we must set a -@@ -97,6 +98,11 @@ bool ChrootToSafeEmptyDir() { +@@ -102,6 +103,11 @@ bool ChrootToSafeEmptyDir() { // glibc performs syscalls by calling a function pointer in TLS, so we do not // attempt this optimization. // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. @@ -66,11 +66,11 @@ Index: chromium-127.0.6533.72/sandbox/linux/services/credentials.cc clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; // PTHREAD_STACK_MIN can be dynamic in glibc2.34+, so it is not possible to -Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -@@ -357,7 +357,16 @@ intptr_t SIGSYSFstatatHandler(const stru +--- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +@@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && args.args[3] == static_cast(AT_EMPTY_PATH)) { diff --git a/HACK-debian-clang-disable-base-musttail.patch b/HACK-debian-clang-disable-base-musttail.patch new file mode 100644 index 0000000..0b3d352 --- /dev/null +++ b/HACK-debian-clang-disable-base-musttail.patch @@ -0,0 +1,13 @@ +Index: chromium-128.0.6613.113/base/compiler_specific.h +=================================================================== +--- chromium-128.0.6613.113.orig/base/compiler_specific.h ++++ chromium-128.0.6613.113/base/compiler_specific.h +@@ -88,7 +88,7 @@ + // Can be used only on return statements, even for functions returning void. + // Caller and callee must have the same number of arguments and its types must + // be "similar". +-#if defined(__clang__) && HAS_ATTRIBUTE(musttail) ++#if defined(__clang__) && HAS_ATTRIBUTE(musttail) && !defined(__powerpc64__) + #define MUSTTAIL [[clang::musttail]] + #else + #define MUSTTAIL diff --git a/HACK-debian-clang-disable-skia-musttail.patch b/HACK-debian-clang-disable-skia-musttail.patch index b96ea05..3ef861a 100644 --- a/HACK-debian-clang-disable-skia-musttail.patch +++ b/HACK-debian-clang-disable-skia-musttail.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkRasterPipeline.h +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkRasterPipeline.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkRasterPipeline.h -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkRasterPipeline.h +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkRasterPipeline.h ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkRasterPipeline.h @@ -27,7 +27,7 @@ struct SkImageInfo; struct skcms_TransferFunction; diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index 5d170a7..895c6ad 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,8 +1,8 @@ -Index: chromium-127.0.6533.72/third_party/libvpx/generate_gni.sh +Index: chromium-128.0.6613.113/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/generate_gni.sh -+++ chromium-127.0.6533.72/third_party/libvpx/generate_gni.sh -@@ -423,7 +423,7 @@ gen_config_files linux/mipsel "--target= +--- chromium-128.0.6613.113.orig/third_party/libvpx/generate_gni.sh ++++ chromium-128.0.6613.113/third_party/libvpx/generate_gni.sh +@@ -433,7 +433,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ "--target=loongarch64-linux-gcc ${all_platforms}" @@ -11,11 +11,11 @@ Index: chromium-127.0.6533.72/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-127.0.6533.72/third_party/libvpx/source/libvpx/build/make/rtcd.pl -@@ -496,8 +496,9 @@ if ($opts{arch} eq 'x86') { +--- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/build/make/rtcd.pl +@@ -508,8 +508,9 @@ if ($opts{arch} eq 'x86') { &require(@REQUIRES); arm; } elsif ($opts{arch} =~ /^ppc/ ) { @@ -27,11 +27,11 @@ Index: chromium-127.0.6533.72/third_party/libvpx/source/libvpx/build/make/rtcd.p } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-127.0.6533.72/third_party/libvpx/BUILD.gn +Index: chromium-128.0.6613.113/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/third_party/libvpx/BUILD.gn -+++ chromium-127.0.6533.72/third_party/libvpx/BUILD.gn -@@ -94,6 +94,14 @@ config("libvpx_config") { +--- chromium-128.0.6613.113.orig/third_party/libvpx/BUILD.gn ++++ chromium-128.0.6613.113/third_party/libvpx/BUILD.gn +@@ -102,6 +102,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] } diff --git a/Rtc_base-system-arch.h-PPC.patch b/Rtc_base-system-arch.h-PPC.patch index 4eb9e60..bd6cfe4 100644 --- a/Rtc_base-system-arch.h-PPC.patch +++ b/Rtc_base-system-arch.h-PPC.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/webrtc/rtc_base/system/arch.h +Index: chromium-128.0.6613.113/third_party/webrtc/rtc_base/system/arch.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/webrtc/rtc_base/system/arch.h -+++ chromium-127.0.6533.72/third_party/webrtc/rtc_base/system/arch.h +--- chromium-128.0.6613.113.orig/third_party/webrtc/rtc_base/system/arch.h ++++ chromium-128.0.6613.113/third_party/webrtc/rtc_base/system/arch.h @@ -46,6 +46,18 @@ #endif #if defined(__MIPSEL__) diff --git a/Sandbox-linux-services-credentials.cc-PPC.patch b/Sandbox-linux-services-credentials.cc-PPC.patch index 484b093..e578daf 100644 --- a/Sandbox-linux-services-credentials.cc-PPC.patch +++ b/Sandbox-linux-services-credentials.cc-PPC.patch @@ -1,8 +1,8 @@ -Index: chromium-127.0.6533.72/sandbox/linux/services/credentials.cc +Index: chromium-128.0.6613.113/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/services/credentials.cc -+++ chromium-127.0.6533.72/sandbox/linux/services/credentials.cc -@@ -80,7 +80,7 @@ bool ChrootToSafeEmptyDir() { +--- chromium-128.0.6613.113.orig/sandbox/linux/services/credentials.cc ++++ chromium-128.0.6613.113/sandbox/linux/services/credentials.cc +@@ -85,7 +85,7 @@ bool ChrootToSafeEmptyDir() { pid_t pid = -1; alignas(16) char stack_buf[PTHREAD_STACK_MIN]; #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ diff --git a/add-ppc64-architecture-to-extensions.diff b/add-ppc64-architecture-to-extensions.diff index 32dac5e..46b66f2 100644 --- a/add-ppc64-architecture-to-extensions.diff +++ b/add-ppc64-architecture-to-extensions.diff @@ -1,6 +1,8 @@ ---- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -@@ -303,6 +303,8 @@ +Index: chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +=================================================================== +--- chromium-128.0.6613.113.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ++++ chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +@@ -303,6 +303,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo info->arch = extensions::api::runtime::PlatformArch::kMips; } else if (strcmp(arch, "mips64el") == 0) { info->arch = extensions::api::runtime::PlatformArch::kMips64; @@ -9,7 +11,7 @@ } else { NOTREACHED_IN_MIGRATION(); return false; -@@ -319,6 +321,8 @@ +@@ -319,6 +321,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips; } else if (strcmp(nacl_arch, "mips64") == 0) { info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips64; @@ -18,8 +20,10 @@ } else { NOTREACHED_IN_MIGRATION(); return false; ---- a/extensions/common/api/runtime.json -+++ b/extensions/common/api/runtime.json +Index: chromium-128.0.6613.113/extensions/common/api/runtime.json +=================================================================== +--- chromium-128.0.6613.113.orig/extensions/common/api/runtime.json ++++ chromium-128.0.6613.113/extensions/common/api/runtime.json @@ -98,7 +98,8 @@ {"name": "x86-32", "description": "Specifies the processer architecture as x86-32."}, {"name": "x86-64", "description": "Specifies the processer architecture as x86-64."}, diff --git a/chromium-122-norar.patch b/chromium-122-norar.patch deleted file mode 100644 index 2d7836d..0000000 --- a/chromium-122-norar.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff -up chromium-122.0.6261.29/chrome/browser/safe_browsing/download_protection/file_analyzer.cc.nounrar chromium-122.0.6261.29/chrome/browser/safe_browsing/download_protection/file_analyzer.cc ---- chromium-122.0.6261.29/chrome/browser/safe_browsing/download_protection/file_analyzer.cc.nounrar 2024-02-07 19:49:25.000000000 +0100 -+++ chromium-122.0.6261.29/chrome/browser/safe_browsing/download_protection/file_analyzer.cc 2024-02-11 18:55:29.964450604 +0100 -@@ -79,8 +79,6 @@ void FileAnalyzer::Start(const base::Fil - - if (inspection_type == DownloadFileType::ZIP) { - StartExtractZipFeatures(); -- } else if (inspection_type == DownloadFileType::RAR) { -- StartExtractRarFeatures(); - #if BUILDFLAG(IS_MAC) - } else if (inspection_type == DownloadFileType::DMG) { - StartExtractDmgFeatures(); -diff -up chromium-122.0.6261.29/chrome/common/safe_browsing/BUILD.gn.nounrar chromium-122.0.6261.29/chrome/common/safe_browsing/BUILD.gn ---- chromium-122.0.6261.29/chrome/common/safe_browsing/BUILD.gn.nounrar 2024-02-07 19:49:27.000000000 +0100 -+++ chromium-122.0.6261.29/chrome/common/safe_browsing/BUILD.gn 2024-02-11 18:55:29.965450629 +0100 -@@ -143,7 +143,6 @@ source_set("safe_browsing") { - "//components/safe_browsing/content/common:file_type_policies", - "//components/safe_browsing/core/common", - "//third_party/lzma_sdk/google:seven_zip_reader", -- "//third_party/unrar:unrar", - ] - - public_deps = [ -diff -up chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.cc.nounrar chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.cc ---- chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.cc.nounrar 2024-02-07 19:49:27.000000000 +0100 -+++ chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.cc 2024-02-11 23:49:25.061324007 +0100 -@@ -74,6 +74,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile - const std::optional& password, - mojo::PendingRemote temp_file_getter, - AnalyzeRarFileCallback callback) { -+#if 0 - DCHECK(rar_file.IsValid()); - temp_file_getter_.Bind(std::move(temp_file_getter)); - callback_ = std::move(callback); -@@ -90,6 +91,9 @@ void SafeArchiveAnalyzer::AnalyzeRarFile - /*password=*/password, - std::move(analysis_finished_callback), - std::move(temp_file_getter_callback), &results_); -+#else -+ NOTREACHED(); -+#endif - } - - void SafeArchiveAnalyzer::AnalyzeSevenZipFile( -diff -up chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.h.nounrar chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.h ---- chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.h.nounrar 2024-02-07 19:49:27.000000000 +0100 -+++ chromium-122.0.6261.29/chrome/services/file_util/safe_archive_analyzer.h 2024-02-11 18:55:29.966450653 +0100 -@@ -9,7 +9,6 @@ - - #include "chrome/common/safe_browsing/archive_analyzer_results.h" - #include "chrome/services/file_util/public/mojom/safe_archive_analyzer.mojom.h" --#include "chrome/utility/safe_browsing/rar_analyzer.h" - #include "chrome/utility/safe_browsing/seven_zip_analyzer.h" - #include "chrome/utility/safe_browsing/zip_analyzer.h" - #include "mojo/public/cpp/bindings/remote.h" -@@ -67,7 +66,6 @@ class SafeArchiveAnalyzer : public chrom - void Timeout(); - - safe_browsing::ZipAnalyzer zip_analyzer_; -- safe_browsing::RarAnalyzer rar_analyzer_; - safe_browsing::SevenZipAnalyzer seven_zip_analyzer_; - #if BUILDFLAG(IS_MAC) - safe_browsing::dmg::DMGAnalyzer dmg_analyzer_; diff --git a/chromium-77.0.3865.75-no-zlib-mangle.patch b/chromium-77.0.3865.75-no-zlib-mangle.patch deleted file mode 100644 index c32d226..0000000 --- a/chromium-77.0.3865.75-no-zlib-mangle.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -up chromium-77.0.3865.75/third_party/zlib/zconf.h.nozmangle chromium-77.0.3865.75/third_party/zlib/zconf.h ---- chromium-77.0.3865.75/third_party/zlib/zconf.h.nozmangle 2019-09-12 09:36:37.924086850 +0200 -+++ chromium-77.0.3865.75/third_party/zlib/zconf.h 2019-09-12 09:53:01.623958551 +0200 -@@ -9,18 +9,6 @@ - #define ZCONF_H - - /* -- * This library is also built as a part of AOSP, which does not need to include -- * chromeconf.h. This config does not want chromeconf.h, so it can set this -- * macro to opt out. While this works today, there's no guarantee that building -- * zlib outside of Chromium keeps working in the future. -- */ --#if !defined(CHROMIUM_ZLIB_NO_CHROMECONF) --/* This include does prefixing as below, but with an updated set of names. Also -- * sets up export macros in component builds. */ --#include "chromeconf.h" --#endif -- --/* - * If you *really* need a unique prefix for all types and library functions, - * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. - * Even better than compiling with -DZ_PREFIX would be to use configure to set diff --git a/chromium-93.0.4577.63-py3-bootstrap.patch b/chromium-93.0.4577.63-py3-bootstrap.patch deleted file mode 100644 index 899495f..0000000 --- a/chromium-93.0.4577.63-py3-bootstrap.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py.py3 chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py ---- chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py.py3 2021-08-31 21:40:34.000000000 -0400 -+++ chromium-93.0.4577.63/tools/gn/bootstrap/bootstrap.py 2021-09-02 08:26:04.415846917 -0400 -@@ -130,7 +130,7 @@ def main(argv): - if not options.debug: - gn_gen_args += ' is_debug=false' - subprocess.check_call([ -- gn_path, 'gen', out_dir, -+ gn_path, 'gen', out_dir, ' --script-executable=/usr/bin/python3', - '--args=%s' % gn_gen_args, "--root=" + SRC_ROOT - ]) - diff --git a/chromium.spec b/chromium.spec index 5c1c848..944138a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -296,7 +296,7 @@ %endif Name: chromium%{chromium_channel} -Version: 127.0.6533.99 +Version: 128.0.6613.119 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -305,18 +305,9 @@ License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND G # Use /etc/chromium for initial_prefs Patch1: chromium-115-initial_prefs-etc-path.patch -# Do not mangle zlib -Patch5: chromium-77.0.3865.75-no-zlib-mangle.patch - -# Do not use unrar code, it is non-free -Patch6: chromium-122-norar.patch - # Try to load widevine from other places Patch8: chromium-117-widevine-other-locations.patch -# Tell bootstrap.py to always use the version of Python we specify -Patch11: chromium-93.0.4577.63-py3-bootstrap.patch - # debian patches # disable font-test Patch20: chromium-disable-font-tests.patch @@ -398,7 +389,7 @@ Patch358: chromium-127-rust-clanglib.patch # PowerPC64 LE support # Timothy Pearson's patchset -# https://gitlab.solidsilicon.io/public-development/open-source/chromium/openpower-patches/-/tree/chromium-126/patches/ppc64le +# https://gitlab.solidsilicon.io/public-development/open-source/chromium/openpower-patches/-/tree/chromium-128/patches/ppc64le Patch359: add-ppc64-architecture-string.patch Patch360: 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch Patch361: 0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -424,20 +415,21 @@ Patch379: 0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch Patch380: 0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch Patch381: 0002-Add-PPC64-generated-files-for-boringssl.patch Patch382: 0002-third_party-lss-kernel-structs.patch +Patch383: 0001-swiftshader-fix-build.patch +Patch384: Rtc_base-system-arch.h-PPC.patch -Patch383: Rtc_base-system-arch.h-PPC.patch +Patch385: 0002-Include-cstddef-to-fix-build.patch +Patch386: 0004-third_party-crashpad-port-curl-transport-ppc64.patch -Patch384: 0002-Include-cstddef-to-fix-build.patch -Patch385: 0004-third_party-crashpad-port-curl-transport-ppc64.patch +Patch387: HACK-third_party-libvpx-use-generic-gnu.patch +Patch388: HACK-debian-clang-disable-skia-musttail.patch +Patch389: HACK-debian-clang-disable-base-musttail.patch -Patch386: HACK-third_party-libvpx-use-generic-gnu.patch -Patch387: HACK-debian-clang-disable-skia-musttail.patch +Patch390: 0001-Add-ppc64-target-to-libaom.patch +Patch391: 0001-Add-pregenerated-config-for-libaom-on-ppc64.patch -Patch388: 0001-Add-ppc64-target-to-libaom.patch -Patch389: 0001-Add-pregenerated-config-for-libaom-on-ppc64.patch - -Patch390: 0002-third_party-libvpx-Remove-bad-ppc64-config.patch -Patch391: 0003-third_party-libvpx-Add-ppc64-generated-config.patch +Patch392: 0002-third_party-libvpx-Remove-bad-ppc64-config.patch +Patch393: 0003-third_party-libvpx-Add-ppc64-generated-config.patch # Enabling VSX causes artifacts to appear in VP9 videos Patch394: 0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -454,11 +446,11 @@ Patch402: fix-breakpad-compile.patch Patch403: fix-partition-alloc-compile.patch Patch404: fix-study-crash.patch Patch405: memory-allocator-dcheck-assert-fix.patch -Patch406: 0002-Add-ppc64-trap-instructions.patch +Patch406: fix-different-data-layouts.patch +Patch407: 0002-Add-ppc64-trap-instructions.patch -Patch407: fix-ppc64-linux-syscalls-headers.patch -Patch408: use-sysconf-page-size-on-ppc64.patch -Patch409: partition-alloc-4k-detect.patch +Patch408: fix-ppc64-linux-syscalls-headers.patch +Patch409: use-sysconf-page-size-on-ppc64.patch Patch410: dawn-fix-typos.patch Patch411: dawn-fix-ppc64le-detection.patch @@ -471,12 +463,6 @@ Patch413: fix-unknown-warning-option-messages.diff Patch414: fix-swiftshader-compile.patch # upstream patches -Patch501: chromium-127-ninja-1.21.1-deps-part0.patch -Patch502: chromium-127-ninja-1.21.1-deps-part1.patch -Patch503: chromium-127-ninja-1.21.1-deps-part2.patch -Patch504: chromium-127-ninja-1.21.1-deps-part3.patch -Patch505: chromium-127-crabbyavif.patch -Patch506: chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1057,10 +1043,7 @@ Qt6 UI for chromium. ### Chromium Fedora Patches ### %patch -P1 -p1 -b .etc -%patch -P5 -p1 -b .nozlibmangle -%patch -P6 -p1 -b .nounrar %patch -P8 -p1 -b .widevine-other-locations -%patch -P11 -p1 -b .py3 %patch -P20 -p1 -b .disable-font-test %patch -P21 -p1 -b .screen-ai-service @@ -1162,20 +1145,21 @@ Qt6 UI for chromium. %patch -P380 -p1 -b .0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI %patch -P381 -p1 -b .002-Add-PPC64-generated-files-for-boringssl %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs +%patch -P383 -p1 -b .0001-swiftshader-fix-build +%patch -P384 -p1 -b .Rtc_base-system-arch.h-PPC -%patch -P383 -p1 -b .Rtc_base-system-arch.h-PPC +%patch -P385 -p1 -b .0002-Include-cstddef-to-fix-build +%patch -P386 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 -%patch -P384 -p1 -b .0002-Include-cstddef-to-fix-build -%patch -P385 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 +%patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu +%patch -P388 -p1 -b .HACK-debian-clang-disable-skia-musttail +%patch -P389 -p1 -b .HACK-debian-clang-disable-base-musttail -%patch -P386 -p1 -b .HACK-third_party-libvpx-use-generic-gnu -%patch -P387 -p1 -b .HACK-debian-clang-disable-skia-musttail +%patch -P390 -p1 -b .0001-Add-ppc64-target-to-libaom +%patch -P391 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 -%patch -P388 -p1 -b .0001-Add-ppc64-target-to-libaom -%patch -P389 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 - -%patch -P390 -p1 -b .0002-third_party-libvpx-Remove-bad-ppc64-config -%patch -P391 -p1 -b .0003-third_party-libvpx-Add-ppc64-generated-config +%patch -P392 -p1 -b .0002-third_party-libvpx-Remove-bad-ppc64-config +%patch -P393 -p1 -b .0003-third_party-libvpx-Add-ppc64-generated-config %patch -P394 -p1 -b .0004-third_party-libvpx-work-around-ambiguous-vsx %patch -P395 -p1 -b .skia-vsx-instructions @@ -1190,11 +1174,11 @@ Qt6 UI for chromium. %patch -P403 -p1 -b .fix-partition-alloc-compile %patch -P404 -p1 -b .fix-study-crash %patch -P405 -p1 -b .memory-allocator-dcheck-assert-fix -%patch -P406 -p1 -b .0002-Add-ppc64-trap-instructions +%patch -P406 -p1 -b .fix-different-data-layouts +%patch -P407 -p1 -b .0002-Add-ppc64-trap-instructions -%patch -P407 -p1 -b .fix-ppc64-linux-syscalls-headers -%patch -P408 -p1 -b .use-sysconf-page-size-on-ppc64 -#%%patch -P409 -p1 -b .partition-alloc-4k-detect +%patch -P408 -p1 -b .fix-ppc64-linux-syscalls-headers +%patch -P409 -p1 -b .use-sysconf-page-size-on-ppc64 %patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection @@ -1205,15 +1189,6 @@ Qt6 UI for chromium. %patch -P414 -p1 -b .fix-swiftshader-compile %endif -%if 0%{?fedora} > 39 -%patch -P501 -p1 -b .ninja-1.21.1-deps -%patch -P502 -p1 -b .ninja-1.21.1-deps -%patch -P503 -p1 -b .ninja-1.21.1-deps -%patch -P504 -p1 -b .ninja-1.21.1-deps -%endif -%patch -P505 -p1 -b .crabbyavif -%patch -P506 -p1 -b .allow-enabling-vulkan-on-ozone-wayland - # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + @@ -1430,6 +1405,8 @@ CHROMIUM_CORE_GN_DEFINES+=' build_dawn_tests=false enable_perfetto_unittests=fal CHROMIUM_CORE_GN_DEFINES+=' disable_fieldtrial_testing_config=true' CHROMIUM_CORE_GN_DEFINES+=' symbol_level=%{debug_level} blink_symbol_level=%{debug_level}' CHROMIUM_CORE_GN_DEFINES+=' angle_has_histograms=false' +# drop unrar +CHROMIUM_CORE_GN_DEFINES+=' safe_browsing_use_unrar=false' export CHROMIUM_CORE_GN_DEFINES # browser gn defines @@ -2033,6 +2010,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Sep 05 2024 Than Ngo - 128.0.6613.119-1 +- update to 128.0.6613.119 + * High CVE-2024-8362: Use after free in WebAudio + * High CVE-2024-7970: Out of bounds write in V8 + * Wed Aug 07 2024 Than Ngo - 127.0.6533.99-1 - update to 127.0.6533.99 * Critical CVE-2024-7532: Out of bounds memory access in ANGLE diff --git a/dawn-fix-ppc64le-detection.patch b/dawn-fix-ppc64le-detection.patch index 8025792..360ec35 100644 --- a/dawn-fix-ppc64le-detection.patch +++ b/dawn-fix-ppc64le-detection.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h +Index: chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Platform.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h +--- chromium-128.0.6613.113.orig/third_party/dawn/src/dawn/common/Platform.h ++++ chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Platform.h @@ -158,10 +158,12 @@ #elif defined(__s390x__) #define DAWN_PLATFORM_IS_S390X 1 diff --git a/dawn-fix-typos.patch b/dawn-fix-typos.patch index ee5731b..b3206b9 100644 --- a/dawn-fix-typos.patch +++ b/dawn-fix-typos.patch @@ -1,23 +1,7 @@ -Index: chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h +Index: chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Assert.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Platform.h -@@ -153,9 +153,9 @@ - #define DAWN_PLATFORM_IS_MIPS64 1 - #endif - --#elif defiend(__s390__) -+#elif defined(__s390__) - #define DAWN_PLATFORM_IS_S390 1 --#elif defiend(__s390x__) -+#elif defined(__s390x__) - #define DAWN_PLATFORM_IS_S390X 1 - - #elif defined(__PPC__) -Index: chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Assert.cpp -=================================================================== ---- chromium-127.0.6533.72.orig/third_party/dawn/src/dawn/common/Assert.cpp -+++ chromium-127.0.6533.72/third_party/dawn/src/dawn/common/Assert.cpp +--- chromium-128.0.6613.113.orig/third_party/dawn/src/dawn/common/Assert.cpp ++++ chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Assert.cpp @@ -52,9 +52,9 @@ void BreakPoint() { __asm__ __volatile__("ebreak"); #elif DAWN_PLATFORM_IS(MIPS) diff --git a/fix-breakpad-compile.patch b/fix-breakpad-compile.patch index de0b85b..751b661 100644 --- a/fix-breakpad-compile.patch +++ b/fix-breakpad-compile.patch @@ -1,8 +1,8 @@ -Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn +Index: chromium-128.0.6613.113/third_party/breakpad/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/third_party/breakpad/BUILD.gn -+++ chromium-127.0.6533.72/third_party/breakpad/BUILD.gn -@@ -620,7 +620,6 @@ if (is_linux || is_chromeos || is_androi +--- chromium-128.0.6613.113.orig/third_party/breakpad/BUILD.gn ++++ chromium-128.0.6613.113/third_party/breakpad/BUILD.gn +@@ -782,7 +782,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/minidump_file_writer.h", "breakpad/src/common/convert_UTF.cc", "breakpad/src/common/convert_UTF.h", @@ -10,7 +10,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn "breakpad/src/common/linux/elf_core_dump.cc", "breakpad/src/common/linux/elf_core_dump.h", "breakpad/src/common/linux/elfutils.cc", -@@ -652,6 +651,8 @@ if (is_linux || is_chromeos || is_androi +@@ -814,6 +813,8 @@ if (is_linux || is_chromeos || is_androi configs += [ "//build/config/compiler:no_chromium_code" ] public_configs = [ ":client_config" ] @@ -19,7 +19,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn if (current_cpu == "arm" && is_chromeos_ash) { # Avoid running out of registers in # linux_syscall_support.h:sys_clone()'s inline assembly. -@@ -709,7 +710,6 @@ if (is_linux || is_chromeos || is_androi +@@ -871,7 +872,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc", "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc", "breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc", diff --git a/fix-clang-selection.patch b/fix-clang-selection.patch index e107b46..8f4787d 100644 --- a/fix-clang-selection.patch +++ b/fix-clang-selection.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/build/config/BUILDCONFIG.gn +Index: chromium-128.0.6613.113/build/config/BUILDCONFIG.gn =================================================================== ---- chromium-127.0.6533.72.orig/build/config/BUILDCONFIG.gn -+++ chromium-127.0.6533.72/build/config/BUILDCONFIG.gn +--- chromium-128.0.6613.113.orig/build/config/BUILDCONFIG.gn ++++ chromium-128.0.6613.113/build/config/BUILDCONFIG.gn @@ -138,7 +138,6 @@ declare_args() { # Set to true when compiling with the Clang compiler. is_clang = current_os != "linux" || diff --git a/fix-different-data-layouts.patch b/fix-different-data-layouts.patch new file mode 100644 index 0000000..1913d60 --- /dev/null +++ b/fix-different-data-layouts.patch @@ -0,0 +1,39 @@ +Author: Daniel Richard G. + +When building Chromium on unstable/ppc64el with ThinLTO enabled, this error +occurs in the final link: + + ld.lld-16: error: Linking two modules of different data layouts: + $C_CXX_OBJECT is 'e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512' whereas + $RUST_LIBRARY is 'e-m:e-Fn32-i64:64-n32:64-S128-v256:256:256-v512:512:512' + +This is because the LLVM data layout for powerpc64le-unknown-linux-gnu has +evolved over time, gaining the "Fn32" bit that specifies function pointer +alignment. See the following source locations: + + llvm-project/clang/lib/Basic/Targets/PPC.h + (class PPC64TargetInfo, under "Triple.getArch() == llvm::Triple::ppc64le") + + rust/compiler/rustc_target/src/spec/powerpc64le_unknown_linux_gnu.rs + (note that this file was relocated in a later version) + +This change occurred in clang-17, and rustc followed suit in 1.73.0. Since +we use an older clang and a newer rustc in our unstable build, we get an +inconsistency in data layouts when targeting this particular platform. + +The error reported by the linker is not technically an error, however, only +a warning goosed up by a --fatal-warnings flag. + +Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn +=================================================================== +--- chromium-128.0.6613.113.orig/build/config/compiler/BUILD.gn ++++ chromium-128.0.6613.113/build/config/compiler/BUILD.gn +@@ -380,7 +380,7 @@ config("compiler") { + + # Linker warnings. + if (fatal_linker_warnings && !is_apple && current_os != "aix" && +- current_os != "zos") { ++ current_os != "zos" && current_cpu != "ppc64") { + ldflags += [ "-Wl,--fatal-warnings" ] + } + if (fatal_linker_warnings && is_apple) { diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index 6659c15..c192df4 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,9 +1,9 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-127.0.6533.72/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-128.0.6613.113/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-127.0.6533.72/base/allocator/partition_allocator/partition_alloc.gni +--- chromium-128.0.6613.113.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-128.0.6613.113/base/allocator/partition_allocator/partition_alloc.gni @@ -19,7 +19,8 @@ if (is_nacl) { # NaCl targets don't use 64-bit pointers. has_64_bit_pointers = false diff --git a/fix-ppc64-linux-syscalls-headers.patch b/fix-ppc64-linux-syscalls-headers.patch index e7931fd..7ac0efb 100644 --- a/fix-ppc64-linux-syscalls-headers.patch +++ b/fix-ppc64-linux-syscalls-headers.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h +Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h =================================================================== ---- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/ppc64_linux_syscalls.h -+++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h +--- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/ppc64_linux_syscalls.h ++++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h @@ -8,5 +8,18 @@ #include diff --git a/fix-rust-linking.patch b/fix-rust-linking.patch index 92ab34b..ac4d90d 100644 --- a/fix-rust-linking.patch +++ b/fix-rust-linking.patch @@ -1,8 +1,8 @@ -Index: chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni +Index: chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni =================================================================== ---- chromium-127.0.6533.72.orig/build/toolchain/gcc_toolchain.gni -+++ chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni -@@ -439,7 +439,13 @@ template("single_gcc_toolchain") { +--- chromium-128.0.6613.113.orig/build/toolchain/gcc_toolchain.gni ++++ chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni +@@ -441,7 +441,13 @@ template("single_gcc_toolchain") { # -soname flag is not available on aix ld soname_flag = "-Wl,-soname=\"$soname\"" } @@ -17,7 +17,7 @@ Index: chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni # Generate a map file to be used for binary size analysis. # Map file adds ~10% to the link time on a z620. -@@ -551,7 +557,13 @@ template("single_gcc_toolchain") { +@@ -553,7 +559,13 @@ template("single_gcc_toolchain") { whole_archive_flag = "-Wl,--whole-archive" no_whole_archive_flag = "-Wl,--no-whole-archive" } diff --git a/fix-rustc.patch b/fix-rustc.patch index 94da447..7f95594 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,9 +1,9 @@ author: Andres Salomon description: allow ppc64le to build by using proper rustc target -Index: chromium-127.0.6533.72/build/config/rust.gni +Index: chromium-128.0.6613.113/build/config/rust.gni =================================================================== ---- chromium-127.0.6533.72.orig/build/config/rust.gni -+++ chromium-127.0.6533.72/build/config/rust.gni +--- chromium-128.0.6613.113.orig/build/config/rust.gni ++++ chromium-128.0.6613.113/build/config/rust.gni @@ -186,6 +186,8 @@ rust_abi_target = "" if (is_linux || is_chromeos) { if (current_cpu == "arm64") { diff --git a/fix-unknown-warning-option-messages.diff b/fix-unknown-warning-option-messages.diff index fef3a7e..d4b0149 100644 --- a/fix-unknown-warning-option-messages.diff +++ b/fix-unknown-warning-option-messages.diff @@ -1,8 +1,8 @@ -Index: chromium-120.0.6099.71/build/config/compiler/BUILD.gn +Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn =================================================================== ---- chromium-120.0.6099.71.orig/build/config/compiler/BUILD.gn -+++ chromium-120.0.6099.71/build/config/compiler/BUILD.gn -@@ -1780,7 +1780,7 @@ config("default_warnings") { +--- chromium-128.0.6613.113.orig/build/config/compiler/BUILD.gn ++++ chromium-128.0.6613.113/build/config/compiler/BUILD.gn +@@ -1844,7 +1844,7 @@ config("default_warnings") { # -Wno-class-memaccess warns about hash table and vector in blink. # But the violation is intentional. @@ -11,7 +11,7 @@ Index: chromium-120.0.6099.71/build/config/compiler/BUILD.gn cflags_cc += [ "-Wno-class-memaccess" ] } -@@ -1790,7 +1790,9 @@ config("default_warnings") { +@@ -1854,7 +1854,9 @@ config("default_warnings") { # Don't warn about "maybe" uninitialized. Clang doesn't include this # in -Wall but gcc does, and it gives false positives. @@ -22,7 +22,7 @@ Index: chromium-120.0.6099.71/build/config/compiler/BUILD.gn cflags += [ "-Wno-deprecated-declarations" ] # -Wcomment gives too many false positives in the case a -@@ -1801,7 +1803,9 @@ config("default_warnings") { +@@ -1865,7 +1867,9 @@ config("default_warnings") { # -Wpacked-not-aligned complains all generated mojom-shared-internal.h # files. diff --git a/memory-allocator-dcheck-assert-fix.patch b/memory-allocator-dcheck-assert-fix.patch index 6991521..002f5db 100644 --- a/memory-allocator-dcheck-assert-fix.patch +++ b/memory-allocator-dcheck-assert-fix.patch @@ -1,7 +1,7 @@ -Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc +Index: chromium-127.0.6533.88/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc =================================================================== ---- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc -+++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc +--- chromium-127.0.6533.88.orig/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc ++++ chromium-127.0.6533.88/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc @@ -492,6 +492,9 @@ uint8_t ComputeSystemPagesPerSlotSpanPre partition_page_count <= kMaxPartitionPagesPerRegularSlotSpan; partition_page_count++) { diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index e6741c2..979354f 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,9 +1,9 @@ -Index: chromium-127.0.6533.72/third_party/skia/BUILD.gn +Index: chromium-128.0.6613.113/third_party/skia/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/BUILD.gn -+++ chromium-127.0.6533.72/third_party/skia/BUILD.gn -@@ -188,6 +188,12 @@ opts("skx") { - } +--- chromium-128.0.6613.113.orig/third_party/skia/BUILD.gn ++++ chromium-128.0.6613.113/third_party/skia/BUILD.gn +@@ -195,6 +195,12 @@ opts("lasx") { + cflags = [ "-mlasx" ] } +opts("vsx") { @@ -15,7 +15,7 @@ Index: chromium-127.0.6533.72/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1442,6 +1448,7 @@ skia_component("skia") { +@@ -1463,6 +1469,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-127.0.6533.72/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1615,7 +1622,10 @@ skia_static_library("pathkit") { +@@ -1640,7 +1647,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,10 +35,10 @@ Index: chromium-127.0.6533.72/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-127.0.6533.72/third_party/skia/gn/skia/BUILD.gn +Index: chromium-128.0.6613.113/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-127.0.6533.72/third_party/skia/gn/skia/BUILD.gn +--- chromium-128.0.6613.113.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-128.0.6613.113/third_party/skia/gn/skia/BUILD.gn @@ -167,6 +167,8 @@ config("default") { "-mfpmath=sse", ] @@ -48,10 +48,10 @@ Index: chromium-127.0.6533.72/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-127.0.6533.72/third_party/skia/include/core/SkTypes.h +Index: chromium-128.0.6613.113/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-127.0.6533.72/third_party/skia/include/core/SkTypes.h +--- chromium-128.0.6613.113.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-128.0.6613.113/third_party/skia/include/core/SkTypes.h @@ -195,5 +195,44 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -97,10 +97,10 @@ Index: chromium-127.0.6533.72/third_party/skia/include/core/SkTypes.h + #endif -Index: chromium-127.0.6533.72/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-128.0.6613.113.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -111,10 +111,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-127.0.6533.72/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-128.0.6613.113/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -130,10 +130,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-127.0.6533.72/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-128.0.6613.113/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -143,10 +143,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -163,7 +163,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SKX #define JUMPER_IS_SKX #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_AVX2 -@@ -111,6 +114,8 @@ using NoCtx = const void*; +@@ -97,6 +100,8 @@ using NoCtx = const void*; #include #elif defined(JUMPER_IS_NEON) #include @@ -172,7 +172,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) #include #include -@@ -209,6 +214,184 @@ namespace SK_OPTS_NS { +@@ -195,6 +200,184 @@ namespace SK_OPTS_NS { ptr[3] = a; } @@ -357,7 +357,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_NEON) template using V = Vec<4, T>; using F = V; -@@ -1406,6 +1589,15 @@ SI F from_half(U16 h) { +@@ -1401,6 +1584,15 @@ SI F from_half(U16 h) { #elif defined(JUMPER_IS_HSW) return _mm256_cvtph_ps((__m128i)h); @@ -373,7 +373,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a half is 1-5-10 (sign-exponent-mantissa) with 15 exponent bias. U32 sem = expand(h), -@@ -1429,6 +1621,16 @@ SI U16 to_half(F f) { +@@ -1424,6 +1616,16 @@ SI U16 to_half(F f) { #elif defined(JUMPER_IS_HSW) return (U16)_mm256_cvtps_ph(f, _MM_FROUND_CUR_DIRECTION); @@ -390,7 +390,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a float is 1-8-23 (sign-exponent-mantissa) with 127 exponent bias. U32 sem = sk_bit_cast(f), -@@ -1504,7 +1706,7 @@ static constexpr size_t N = sizeof(F) / +@@ -1499,7 +1701,7 @@ static constexpr size_t N = sizeof(F) / // instead of {b,a} on the stack. Narrow stages work best for __vectorcall. #define ABI __vectorcall #define JUMPER_NARROW_STAGES 1 @@ -399,7 +399,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define JUMPER_NARROW_STAGES 0 -@@ -5466,6 +5668,10 @@ SI F sqrt_(F x) { +@@ -5477,6 +5679,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -410,7 +410,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5497,6 +5703,10 @@ SI F floor_(F x) { +@@ -5508,6 +5714,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -421,7 +421,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5516,6 +5726,7 @@ SI F floor_(F x) { +@@ -5527,6 +5737,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -429,7 +429,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(JUMPER_IS_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5527,6 +5738,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5538,6 +5749,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(JUMPER_IS_NEON) return vqrdmulhq_s16(a, b); @@ -452,7 +452,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(JUMPER_IS_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5554,7 +5781,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5565,7 +5792,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -479,7 +479,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6478,8 +6724,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6574,8 +6820,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -494,7 +494,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6491,7 +6743,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6587,7 +6839,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -507,7 +507,7 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6525,9 +6782,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6621,9 +6878,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -524,10 +524,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-127.0.6533.72/third_party/skia/src/base/SkVx.h +Index: chromium-128.0.6613.113/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/base/SkVx.h -+++ chromium-127.0.6533.72/third_party/skia/src/base/SkVx.h +--- chromium-128.0.6613.113.orig/third_party/skia/src/base/SkVx.h ++++ chromium-128.0.6613.113/third_party/skia/src/base/SkVx.h @@ -42,7 +42,13 @@ #if SKVX_USE_SIMD @@ -543,10 +543,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/base/SkVx.h #elif defined(SK_ARM_HAS_NEON) #include #elif defined(__wasm_simd128__) -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -556,10 +556,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -569,10 +569,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -582,11 +582,11 @@ Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts.cpp -@@ -26,7 +26,7 @@ namespace SkOpts { +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts.cpp +@@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) // All Init_foo functions are omitted when optimizing for size @@ -595,10 +595,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkCpu.h +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkCpu.h +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -608,10 +608,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -621,10 +621,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-127.0.6533.72/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-128.0.6613.113/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-127.0.6533.72/third_party/skia/include/private/base/SkFeatures.h +--- chromium-128.0.6613.113.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-128.0.6613.113/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -634,10 +634,10 @@ Index: chromium-127.0.6533.72/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-127.0.6533.72/third_party/skia/modules/skcms/src/skcms_internals.h +Index: chromium-128.0.6613.113/third_party/skia/modules/skcms/src/skcms_internals.h =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/modules/skcms/src/skcms_internals.h -+++ chromium-127.0.6533.72/third_party/skia/modules/skcms/src/skcms_internals.h +--- chromium-128.0.6613.113.orig/third_party/skia/modules/skcms/src/skcms_internals.h ++++ chromium-128.0.6613.113/third_party/skia/modules/skcms/src/skcms_internals.h @@ -47,6 +47,7 @@ extern "C" { && !defined(__EMSCRIPTEN__) \ && !defined(__arm__) \ @@ -646,10 +646,10 @@ Index: chromium-127.0.6533.72/third_party/skia/modules/skcms/src/skcms_internals && !defined(__loongarch__) \ && !defined(_WIN32) && !defined(__SYMBIAN32__) #define SKCMS_HAS_MUSTTAIL 1 -Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-127.0.6533.72/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-128.0.6613.113/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -696,10 +696,10 @@ Index: chromium-127.0.6533.72/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-127.0.6533.72/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-127.0.6533.72.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-127.0.6533.72/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-128.0.6613.113/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -126,6 +126,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index c24224c..c282601 100644 --- a/sources +++ b/sources @@ -4,4 +4,4 @@ SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c743 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (bindgen-cli-aarch64.tar.xz) = 1a5ae4e8fdd31d80e8111c4d5f2115336684763ecd3a442ffecdbc2a37bab146f88bdee0bb1ea7a98e1049f81b12e64bd0ce5510529b30a74ce3306488ac129b SHA512 (bindgen-cli-x86_64.tar.xz) = 7ccc9b43b32d3a064a75cfc150e060711356da8fe98e83d855bae017108ef8e9e172fbdd6e2579433c19cfb56ababa5b77a8db6fa57a5e657a3878778ca10a37 -SHA512 (chromium-127.0.6533.99-clean.tar.xz) = 353658ea97df8f1428e6b8b7b4eb2a18d9f2b21196af0e5bfe37928859ba494a43c2e1a93fdc3fd35a884d92cf75864b6acfa0d7c90c62c6d5fe25c1daeffa10 +SHA512 (chromium-128.0.6613.119-clean.tar.xz) = d7aeba7d9aa34ce85dae9bea52da40d4534c11343332a4bfde4af6bc58c07911bb6f9147bc8931f9e3dac6efce2b8b56a91d624367bf0cfb572af0b09d141db9 diff --git a/use-sysconf-page-size-on-ppc64.patch b/use-sysconf-page-size-on-ppc64.patch index 9ef9450..838bff5 100644 --- a/use-sysconf-page-size-on-ppc64.patch +++ b/use-sysconf-page-size-on-ppc64.patch @@ -1,8 +1,8 @@ -Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +Index: chromium-128.0.6613.113/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h =================================================================== ---- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -+++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -@@ -176,7 +176,11 @@ SystemPageBaseMask() { +--- chromium-128.0.6613.113.orig/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h ++++ chromium-128.0.6613.113/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +@@ -187,7 +187,11 @@ SystemPageBaseMask() { return ~SystemPageOffsetMask(); } @@ -14,53 +14,3 @@ Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_a constexpr size_t kPageMetadataSize = 1 << kPageMetadataShift; } // namespace internal -Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page.h -=================================================================== ---- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_page.h -+++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page.h -@@ -87,7 +87,11 @@ struct SlotSpanMetadata { - - // CHECK()ed in AllocNewSlotSpan(). - // The maximum number of bits needed to cover all currently supported OSes. -+#if PA_BUILDFLAG(PA_ARCH_CPU_PPC64_FAMILY) -+ static constexpr size_t kMaxSlotsPerSlotSpanBits = 15; -+#else - static constexpr size_t kMaxSlotsPerSlotSpanBits = 13; -+#endif - static_assert(kMaxSlotsPerSlotSpan < (1 << kMaxSlotsPerSlotSpanBits), ""); - - // |marked_full| isn't equivalent to being full. Slot span is marked as full -@@ -101,7 +105,11 @@ struct SlotSpanMetadata { - private: - const uint32_t can_store_raw_size_ : 1; - uint32_t freelist_is_sorted_ : 1; -+#if PA_BUILDFLAG(PA_ARCH_CPU_PPC64_FAMILY) -+ uint32_t unused1_ : (64 - 1 - 2 * kMaxSlotsPerSlotSpanBits - 1 - 1); -+#else - uint32_t unused1_ : (32 - 1 - 2 * kMaxSlotsPerSlotSpanBits - 1 - 1); -+#endif - // If |in_empty_cache_|==1, |empty_cache_index| is undefined and mustn't be - // used. - uint16_t in_empty_cache_ : 1; -Index: chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -=================================================================== ---- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -+++ chromium-127.0.6533.72/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h - // PartitionPageSize() is 4 times the OS page size. - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; - #elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) -+#if PA_BUILDFLAG(PA_ARCH_CPU_ARM64) - // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is - // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, - // so we use the 16 kiB maximum (64 kiB will crash). - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; - #else -+// System page size can range from 4 to 64 kiB on Linux on other architectures. -+// 64kiB kiB is currently used by most ppc64 distributions, so use that as the -+// maximum. -+static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; -+#endif -+#else - // A slot span can "span" multiple PartitionPages, but then its slot size is - // larger, so it doesn't have as many slots. - static constexpr size_t kMaxSlotsPerSlotSpan = From 24a34d44c81bb64ec3390d5ce9d3711c652c0db1 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 6 Sep 2024 12:47:01 +0200 Subject: [PATCH 040/244] - fix build error and disable build warnings on ppc64le - drop obsolete patches --- ...low-enabling-vulkan-on-ozone-wayland.patch | 11 ---- chromium-127-crabbyavif.patch | 38 ------------ chromium-127-ninja-1.21.1-deps-part0.patch | 44 ------------- chromium-127-ninja-1.21.1-deps-part1.patch | 62 ------------------- chromium-127-ninja-1.21.1-deps-part2.patch | 37 ----------- chromium-127-ninja-1.21.1-deps-part3.patch | 49 --------------- chromium.spec | 22 +++---- fix-swiftshader-compile.patch | 26 -------- 8 files changed, 7 insertions(+), 282 deletions(-) delete mode 100644 chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch delete mode 100644 chromium-127-crabbyavif.patch delete mode 100644 chromium-127-ninja-1.21.1-deps-part0.patch delete mode 100644 chromium-127-ninja-1.21.1-deps-part1.patch delete mode 100644 chromium-127-ninja-1.21.1-deps-part2.patch delete mode 100644 chromium-127-ninja-1.21.1-deps-part3.patch delete mode 100644 fix-swiftshader-compile.patch diff --git a/chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch b/chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch deleted file mode 100644 index 9c35a40..0000000 --- a/chromium-127-allow-enabling-vulkan-on-ozone-wayland.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc.me chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc ---- chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc.me 2024-08-06 17:38:26.560468274 +0200 -+++ chromium-127.0.6533.88/ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc 2024-08-06 17:39:00.137139610 +0200 -@@ -214,6 +214,7 @@ WaylandSurfaceFactory::GetAllowedGLImple - impls.emplace_back(gl::ANGLEImplementation::kOpenGL); - impls.emplace_back(gl::ANGLEImplementation::kOpenGLES); - impls.emplace_back(gl::ANGLEImplementation::kSwiftShader); -+ impls.emplace_back(gl::ANGLEImplementation::kVulkan); - impls.emplace_back(gl::kGLImplementationEGLGLES2); - } - return impls; diff --git a/chromium-127-crabbyavif.patch b/chromium-127-crabbyavif.patch deleted file mode 100644 index a72200e..0000000 --- a/chromium-127-crabbyavif.patch +++ /dev/null @@ -1,38 +0,0 @@ -commit 89dcd2d419755421290f85e32617acabdd81cac1 -Author: lauren n. liberda -Date: Thu Jun 20 18:55:57 2024 +0000 - - unbundle: add missing dav1d targets - - fixes "ERROR Unresolved dependencies. - //third_party/crabbyavif:crabbyavif_dav1d_bindings(//build/toolchain/linux/unbundle:default) - needs //third_party/dav1d:dav1d_config(//build/toolchain/linux/unbundle:default) - //third_party/crabbyavif:crabbyavif_dav1d_bindings(//build/toolchain/linux/unbundle:default) - needs //third_party/dav1d:dav1d_headers(//build/toolchain/linux/unbundle:default)" - - Change-Id: I85442e5fb67a804985354570fba453cc619c83d7 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5642761 - Reviewed-by: Lei Zhang - Reviewed-by: Thomas Anderson - Commit-Queue: Thomas Anderson - Cr-Commit-Position: refs/heads/main@{#1317534} - -diff --git a/build/linux/unbundle/dav1d.gn b/build/linux/unbundle/dav1d.gn -index 3d65158bc6144..a6d005a6622e3 100644 ---- a/build/linux/unbundle/dav1d.gn -+++ b/build/linux/unbundle/dav1d.gn -@@ -21,3 +21,14 @@ source_set("dav1d") { - deps = [ ":dav1d_shim" ] - public_configs = [ ":system_dav1d" ] - } -+ -+group("dav1d_headers") { -+ public_deps = [ ":dav1d_shim" ] -+} -+ -+config("dav1d_config") { -+ configs = [ -+ ":system_dav1d", -+ ":dav1d_shim_config", -+ ] -+} diff --git a/chromium-127-ninja-1.21.1-deps-part0.patch b/chromium-127-ninja-1.21.1-deps-part0.patch deleted file mode 100644 index 52581fd..0000000 --- a/chromium-127-ninja-1.21.1-deps-part0.patch +++ /dev/null @@ -1,44 +0,0 @@ -commit 4ca70656fde83d2db6ed5a8ac9ec9e7443846924 -Author: Lei Zhang -Date: Wed Jun 26 16:35:34 2024 +0000 - - Move chrome/browser/ui:webui_name_variants to public_deps - - The chrome/browser/ui build target contains webui_contents_wrapper.h, - which included the generated webui_name_variants.h header. For this to - work correctly, the build system must process the webui_name_variants - target first and generate webui_name_variants.h. To do this reliably, - without having to depend on webui_name_variants in all targets that - transitively include webui_contents_wrapper.h, make it a public_deps. - - Bug: 40253918, 346711540, 346699817, 345645751 - Change-Id: I6e0b573427cda1b2b408702f139b2c9e83f05045 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5646245 - Reviewed-by: Anthony Vallée-Dubois - Commit-Queue: Lei Zhang - Cr-Commit-Position: refs/heads/main@{#1319828} - -diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn -index 46648a4c2194e..0883714163a31 100644 ---- a/chrome/browser/ui/BUILD.gn -+++ b/chrome/browser/ui/BUILD.gn -@@ -6436,7 +6436,6 @@ static_library("ui") { - } - - deps += [ -- ":webui_name_variants", - "side_search:side_search_tab_data_proto", - "//base", - "//chrome/browser:main_extra_parts", -@@ -6495,7 +6494,10 @@ static_library("ui") { - "//ui/lottie", - "//ui/views:buildflags", - ] -- public_deps += [ "//ui/base/dragdrop/mojom:mojom_headers" ] -+ public_deps += [ -+ ":webui_name_variants", -+ "//ui/base/dragdrop/mojom:mojom_headers", -+ ] - - allow_circular_includes_from += [ "//chrome/browser/ui/views" ] - diff --git a/chromium-127-ninja-1.21.1-deps-part1.patch b/chromium-127-ninja-1.21.1-deps-part1.patch deleted file mode 100644 index 6d62b32..0000000 --- a/chromium-127-ninja-1.21.1-deps-part1.patch +++ /dev/null @@ -1,62 +0,0 @@ -commit 50d63ffee3f7f1b1b9303363742ad8ebbfec31fa -Author: Lei Zhang -Date: Wed Jun 26 21:27:51 2024 +0000 - - Make more deps entries public_deps in chrome/browser/ui/BUILD.gn - - The chrome/browser/ui build target includes several buildflag headers. - For this to work correctly, the build system must be able to generate - the buildflag headers first. To do this reliably, without having to - depend on buildflag targets in all targets that transitively include the - headers that includes buildflag heaers, make these dependencies - public_deps. - - For //components/paint_preview/buildflags, remove the deps entry, as it - is already in public_deps. - - Bug: 40253918, 346711540, 346699817, 345645751 - Change-Id: I00e78a430f2e99aa3732406882b352d31e3d7da7 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5647662 - Commit-Queue: Lei Zhang - Reviewed-by: Peter Kasting - Cr-Commit-Position: refs/heads/main@{#1320033} - -diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn -index bc6a7c03ecd1c..74f92f0431494 100644 ---- a/chrome/browser/ui/BUILD.gn -+++ b/chrome/browser/ui/BUILD.gn -@@ -415,8 +415,10 @@ static_library("ui") { - "//chrome/browser/ui/tabs:tab_enums", - "//components/cross_device/logging", - "//components/dom_distiller/core", -+ "//components/enterprise/buildflags", - "//components/paint_preview/buildflags", - "//components/safe_browsing:buildflags", -+ "//components/segmentation_platform/public", - "//components/sync", - "//components/sync_user_events", - "//components/translate/content/browser", -@@ -533,7 +535,6 @@ static_library("ui") { - "//components/embedder_support:browser_util", - "//components/encrypted_messages:encrypted_message_proto", - "//components/enterprise", -- "//components/enterprise/buildflags:buildflags", - "//components/error_page/content/browser", - "//components/facilitated_payments/core/features", - "//components/favicon/content", -@@ -644,7 +645,6 @@ static_library("ui") { - "//components/security_interstitials/core:unsafe_resource", - "//components/security_state/content", - "//components/security_state/core", -- "//components/segmentation_platform/public", - "//components/send_tab_to_self", - "//components/sessions", - "//components/sharing_message", -@@ -2119,7 +2119,6 @@ static_library("ui") { - "//components/omnibox/browser:mojo_bindings", - "//components/page_load_metrics/browser", - "//components/paint_preview/browser", -- "//components/paint_preview/buildflags", - "//components/paint_preview/common", - "//components/paint_preview/public", - "//components/password_manager/content/common", diff --git a/chromium-127-ninja-1.21.1-deps-part2.patch b/chromium-127-ninja-1.21.1-deps-part2.patch deleted file mode 100644 index 8cfce7a..0000000 --- a/chromium-127-ninja-1.21.1-deps-part2.patch +++ /dev/null @@ -1,37 +0,0 @@ -commit 2c101186b60ed50f2ba4feaa2e963bd841bcca47 -Author: Takuto Ikuta -Date: Fri Jun 21 06:23:27 2024 +0000 - - chrome/browser: add missing dependency - - This is to fix build error due to missing dependency when we update - ninja to 1.12. - e.g. https://ci.chromium.org/ui/p/chromium/builders/build/linux-build-perf-no-rbe/1690/overview - - Bug: 346711540, 346699817, 345645751, 40253918 - Change-Id: Ife0a4e09969a4ad2e61dfc1598c9a63ac0b2abd5 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5641516 - Reviewed-by: Anthony Vallée-Dubois - Commit-Queue: Takuto Ikuta - Auto-Submit: Takuto Ikuta - Reviewed-by: Lei Zhang - Cr-Commit-Position: refs/heads/main@{#1317790} - -diff --git a/chrome/browser/ui/views/side_panel/BUILD.gn b/chrome/browser/ui/views/side_panel/BUILD.gn -index 96f2c30a6dd22..2957730277a29 100644 ---- a/chrome/browser/ui/views/side_panel/BUILD.gn -+++ b/chrome/browser/ui/views/side_panel/BUILD.gn -@@ -201,5 +201,13 @@ source_set("side_panel") { - "//ui/gfx:color_utils", - "//ui/gfx/geometry:geometry_skia", - "//ui/webui", -+ -+ # TODO(crbug.com/346711540,crbug.com/346699817,crbug.com/345645751): -+ # Use //chrome/browser/ui instead after fixing cyclic dependency. -+ "//chrome/browser/ui:webui_name_variants", -+ "//components/enterprise/buildflags", -+ "//components/paint_preview/buildflags", -+ "//components/segmentation_platform/public/proto", -+ "//components/webapps/common:mojo_bindings", - ] - } diff --git a/chromium-127-ninja-1.21.1-deps-part3.patch b/chromium-127-ninja-1.21.1-deps-part3.patch deleted file mode 100644 index bfb46d9..0000000 --- a/chromium-127-ninja-1.21.1-deps-part3.patch +++ /dev/null @@ -1,49 +0,0 @@ -commit f2b43c18b8ecfc3ddc49c42c062d796c8b563984 -Author: Takuto Ikuta -Date: Wed Jul 3 09:00:47 2024 +0000 - - chrome/browser/ui: add missing dependency - - This is to fix build error due to missing dependency when we update - ninja to 1.12. - e.g. https://ci.chromium.org/ui/p/chromium/builders/build.shadow/win-build-perf-developer/1/overview - - Bug: 40253918, 345645751, 346694160, 346709958, 346707816 - Change-Id: I3ede8e345aef5d6d2d8bf5b155601650828bc817 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5644627 - Reviewed-by: Hidehiko Abe - Auto-Submit: Takuto Ikuta - Commit-Queue: Takuto Ikuta - Reviewed-by: Lei Zhang - Cr-Commit-Position: refs/heads/main@{#1322655} - -diff --git a/chrome/browser/ui/views/side_panel/BUILD.gn b/chrome/browser/ui/views/side_panel/BUILD.gn -index 2957730277a29..2680a77d855d5 100644 ---- a/chrome/browser/ui/views/side_panel/BUILD.gn -+++ b/chrome/browser/ui/views/side_panel/BUILD.gn -@@ -202,12 +202,24 @@ source_set("side_panel") { - "//ui/gfx/geometry:geometry_skia", - "//ui/webui", - -- # TODO(crbug.com/346711540,crbug.com/346699817,crbug.com/345645751): -+ # TODO(crbug.com/345645751): Use //chrome/browser instead after fixing cyclic dependency. -+ "//components/enterprise/common/proto:connectors_proto", -+ -+ # TODO(crbug.com/346711540,crbug.com/346699817,crbug.com/345645751, -+ # crbug.com/346694160,crbug.com/346709958,crbug.com/346707816): - # Use //chrome/browser/ui instead after fixing cyclic dependency. -+ "//chrome/browser/cart:mojo_bindings", -+ "//chrome/browser/companion/visual_query", - "//chrome/browser/ui:webui_name_variants", -+ "//chrome/browser/ui/webui/side_panel/bookmarks:mojo_bindings", -+ "//chrome/browser/ui/webui/side_panel/customize_chrome:mojo_bindings", -+ "//chrome/browser/ui/webui/side_panel/reading_list:mojo_bindings", - "//components/enterprise/buildflags", -+ "//components/page_image_service/mojom:mojo_bindings", - "//components/paint_preview/buildflags", - "//components/segmentation_platform/public/proto", -+ "//components/user_education/webui", - "//components/webapps/common:mojo_bindings", -+ "//ui/webui/resources/cr_components/commerce:mojo_bindings", - ] - } diff --git a/chromium.spec b/chromium.spec index 944138a..62312a5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -415,7 +415,10 @@ Patch379: 0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch Patch380: 0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch Patch381: 0002-Add-PPC64-generated-files-for-boringssl.patch Patch382: 0002-third_party-lss-kernel-structs.patch + +# error: undefined symbol: llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF() Patch383: 0001-swiftshader-fix-build.patch + Patch384: Rtc_base-system-arch.h-PPC.patch Patch385: 0002-Include-cstddef-to-fix-build.patch @@ -459,9 +462,6 @@ Patch412: add-ppc64-architecture-to-extensions.diff # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff -# error: undefined symbol: llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF() -Patch414: fix-swiftshader-compile.patch - # upstream patches # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: @@ -1137,7 +1137,6 @@ Qt6 UI for chromium. %patch -P373 -p1 -b .0007-sandbox-linux-add-ppc64-stat %patch -P374 -p1 -b .Sandbox-linux-services-credentials.cc-PPC %patch -P375 -p1 -b .0008-sandbox-fix-ppc64le-glibc234 - %patch -P376 -p1 -b .0001-third_party-angle-Include-missing-header-cstddef-in- %patch -P377 -p1 -b .0001-Add-PPC64-support-for-boringssl %patch -P378 -p1 -b .0001-third_party-libvpx-Properly-generate-gni-on-ppc64 @@ -1147,23 +1146,17 @@ Qt6 UI for chromium. %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs %patch -P383 -p1 -b .0001-swiftshader-fix-build %patch -P384 -p1 -b .Rtc_base-system-arch.h-PPC - %patch -P385 -p1 -b .0002-Include-cstddef-to-fix-build %patch -P386 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 - %patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu %patch -P388 -p1 -b .HACK-debian-clang-disable-skia-musttail %patch -P389 -p1 -b .HACK-debian-clang-disable-base-musttail - %patch -P390 -p1 -b .0001-Add-ppc64-target-to-libaom %patch -P391 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 - %patch -P392 -p1 -b .0002-third_party-libvpx-Remove-bad-ppc64-config %patch -P393 -p1 -b .0003-third_party-libvpx-Add-ppc64-generated-config %patch -P394 -p1 -b .0004-third_party-libvpx-work-around-ambiguous-vsx - %patch -P395 -p1 -b .skia-vsx-instructions - %patch -P396 -p1 -b .0001-Implement-support-for-ppc64-on-Linux %patch -P397 -p1 -b .0001-Implement-support-for-PPC64-on-Linux %patch -P398 -p1 -b .0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when- @@ -1176,17 +1169,12 @@ Qt6 UI for chromium. %patch -P405 -p1 -b .memory-allocator-dcheck-assert-fix %patch -P406 -p1 -b .fix-different-data-layouts %patch -P407 -p1 -b .0002-Add-ppc64-trap-instructions - %patch -P408 -p1 -b .fix-ppc64-linux-syscalls-headers %patch -P409 -p1 -b .use-sysconf-page-size-on-ppc64 - %patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection - %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions - %patch -P413 -p1 -b .fix-unknown-warning-option-messages -%patch -P414 -p1 -b .fix-swiftshader-compile %endif # Change shebang in all relevant files in this directory and all subdirectories @@ -1287,6 +1275,10 @@ CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" %endif +%ifarch ppc64le +CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' +%endif + # reduce the size of relocations %if 0%{?fedora} || 0%{?rhel} > 9 LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs" diff --git a/fix-swiftshader-compile.patch b/fix-swiftshader-compile.patch deleted file mode 100644 index 5411a0d..0000000 --- a/fix-swiftshader-compile.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- chromium-101.0.4951.54/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn.orig 2022-05-15 10:30:50.887333316 +0200 -+++ chromium-101.0.4951.54/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn 2022-05-15 10:31:43.477318032 +0200 -@@ -133,7 +133,6 @@ swiftshader_llvm_source_set("swiftshader_llvm") { - if (is_ubsan_vptr) { - sources = [ - "llvm/lib/MC/MCWasmObjectTargetWriter.cpp", -- "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp", - "llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp", - "llvm/lib/Target/TargetIntrinsicInfo.cpp", - ] -@@ -583,6 +582,7 @@ swiftshader_llvm_source_set("swiftshader_llvm_most") { - "llvm/lib/MC/MCAsmInfoCOFF.cpp", - "llvm/lib/MC/MCAsmInfoDarwin.cpp", - "llvm/lib/MC/MCAsmInfoELF.cpp", -+ "llvm/lib/MC/MCAsmInfoXCOFF.cpp", - "llvm/lib/MC/MCAsmMacro.cpp", - "llvm/lib/MC/MCAsmStreamer.cpp", - "llvm/lib/MC/MCAssembler.cpp", -@@ -637,6 +637,7 @@ swiftshader_llvm_source_set("swiftshader_llvm_most") { - "llvm/lib/MC/MCWin64EH.cpp", - "llvm/lib/MC/MCWinCOFFStreamer.cpp", - "llvm/lib/MC/MCWinEH.cpp", -+ "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp", - "llvm/lib/MC/MCXCOFFStreamer.cpp", - "llvm/lib/MC/MachObjectWriter.cpp", - "llvm/lib/MC/StringTableBuilder.cpp", From 7187ed89f5772f7469b22211b5e0eea52bb6c29e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 6 Sep 2024 17:51:40 +0200 Subject: [PATCH 041/244] workaround for build error on epel and fedora39 --- chromium-119-system-minizip-header-fix.patch | 65 -------------------- chromium-81.0.4044.92-unbundle-zlib.patch | 12 ---- chromium.spec | 19 +----- 3 files changed, 3 insertions(+), 93 deletions(-) delete mode 100644 chromium-119-system-minizip-header-fix.patch delete mode 100644 chromium-81.0.4044.92-unbundle-zlib.patch diff --git a/chromium-119-system-minizip-header-fix.patch b/chromium-119-system-minizip-header-fix.patch deleted file mode 100644 index 14ac00b..0000000 --- a/chromium-119-system-minizip-header-fix.patch +++ /dev/null @@ -1,65 +0,0 @@ -diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc ---- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc.system-minizip 2023-11-06 12:42:34.928657960 +0100 -+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_extractor.cc 2023-11-06 12:51:12.547834851 +0100 -@@ -28,9 +28,8 @@ limitations under the License. - #include "tensorflow_lite_support/cc/port/status_macros.h" - #include "tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.h" - #include "tensorflow_lite_support/metadata/metadata_schema_generated.h" --#include "third_party/zlib/contrib/minizip/ioapi.h" --#include "third_party/zlib/contrib/minizip/unzip.h" -- -+#include -+#include - - namespace tflite { - namespace metadata { -diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc ---- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc.system-minizip 2023-11-01 19:11:24.000000000 +0100 -+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/metadata_populator.cc 2023-11-06 12:42:34.928657960 +0100 -@@ -26,8 +26,8 @@ limitations under the License. - #include "tensorflow_lite_support/cc/port/statusor.h" - #include "tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h" - #include "tensorflow_lite_support/metadata/metadata_schema_generated.h" --#include "third_party/zlib/contrib/minizip/ioapi.h" --#include "third_party/zlib/contrib/minizip/unzip.h" -+#include -+#include - - namespace tflite { - namespace metadata { -diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc ---- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc.system-minizip 2023-11-01 19:11:24.000000000 +0100 -+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_readonly_mem_file.cc 2023-11-06 12:42:34.929657982 +0100 -@@ -19,7 +19,7 @@ limitations under the License. - #include - - #include "absl/strings/string_view.h" // from @com_google_absl --#include "third_party/zlib/contrib/minizip/ioapi.h" -+#include - - namespace tflite { - namespace metadata { -diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc ---- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc.system-minizip 2023-11-01 19:11:24.000000000 +0100 -+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc 2023-11-06 12:42:34.929657982 +0100 -@@ -19,7 +19,7 @@ limitations under the License. - #include - - #include "absl/strings/string_view.h" // from @com_google_absl --#include "third_party/zlib/contrib/minizip/ioapi.h" -+#include - - namespace tflite { - namespace metadata { -diff -up chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h.system-minizip chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h ---- chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h.system-minizip 2023-11-01 19:11:24.000000000 +0100 -+++ chromium-119.0.6045.105/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h 2023-11-06 12:42:34.929657982 +0100 -@@ -19,7 +19,7 @@ limitations under the License. - #include - - #include "absl/strings/string_view.h" // from @com_google_absl --#include "third_party/zlib/contrib/minizip/ioapi.h" -+#include - - namespace tflite { - namespace metadata { diff --git a/chromium-81.0.4044.92-unbundle-zlib.patch b/chromium-81.0.4044.92-unbundle-zlib.patch deleted file mode 100644 index ff4e3b1..0000000 --- a/chromium-81.0.4044.92-unbundle-zlib.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn.unbundle-zlib chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn ---- chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn.unbundle-zlib 2020-04-13 12:25:09.001172601 -0400 -+++ chromium-81.0.4044.92/third_party/perfetto/gn/BUILD.gn 2020-04-13 12:25:23.688921586 -0400 -@@ -294,7 +294,7 @@ if (enable_perfetto_zlib) { - public_configs = [ "//buildtools:zlib_config" ] - public_deps = [ "//buildtools:zlib" ] - } else { -- public_configs = [ "//third_party/zlib:zlib_config" ] -+ public_configs = [ "//third_party/zlib:system_zlib" ] - public_deps = [ "//third_party/zlib" ] - } - } diff --git a/chromium.spec b/chromium.spec index 62312a5..4504799 100644 --- a/chromium.spec +++ b/chromium.spec @@ -230,12 +230,10 @@ %global bundlehighway 1 %endif -# enable bundleminizip for Fedora > 39 due to switch to minizip-ng -# which breaks the build -%global bundleminizip 0 -%if 0%{?fedora} > 39 +# workaround for build error +# disable bundleminizip for Fedora > 39 due to switch to minizip-ng +# disable bundleminizip for epel and Fedora39 due to old minizip version %global bundleminizip 1 -%endif %if 0%{?fedora} || 0%{?rhel} >= 9 %global bundlezstd 0 @@ -314,12 +312,6 @@ Patch20: chromium-disable-font-tests.patch # don't download binary blob Patch21: chromium-123-screen-ai-service.patch -# https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium/files/chromium-unbundle-zlib.patch -Patch52: chromium-81.0.4044.92-unbundle-zlib.patch - -# Fix headers to look for system paths when we are using system minizip -Patch61: chromium-119-system-minizip-header-fix.patch - # Fix issue where closure_compiler thinks java is only allowed in android builds # https://bugs.chromium.org/p/chromium/issues/detail?id=1192875 Patch65: chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch @@ -1048,11 +1040,6 @@ Qt6 UI for chromium. %patch -P20 -p1 -b .disable-font-test %patch -P21 -p1 -b .screen-ai-service -%if ! %{bundleminizip} -%patch -P52 -p1 -b .unbundle-zlib -%patch -P61 -p1 -b .system-minizip -%endif - %patch -P65 -p1 -b .java-only-allowed %patch -P69 -p1 -b .update-rjsmin-to-1.2.0 %patch -P82 -p1 -b .remoting-no-tests From ada748216c555e29dcae054214d045c3ae0f6a90 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 6 Sep 2024 20:23:23 +0200 Subject: [PATCH 042/244] removed patch for 64kpage support on aarch64, merged by upstream --- chromium-124-el8-support-64kpage.patch | 127 ------------------------- chromium.spec | 3 - 2 files changed, 130 deletions(-) delete mode 100644 chromium-124-el8-support-64kpage.patch diff --git a/chromium-124-el8-support-64kpage.patch b/chromium-124-el8-support-64kpage.patch deleted file mode 100644 index ed4a4e6..0000000 --- a/chromium-124-el8-support-64kpage.patch +++ /dev/null @@ -1,127 +0,0 @@ -diff -up chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.h.orig chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.h ---- chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.h.orig 2024-04-12 21:56:54.000000000 +0200 -+++ chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.h 2024-04-14 20:53:16.043867871 +0200 -@@ -147,7 +147,13 @@ struct PartitionBucket { - // Returns a slot number starting from the beginning of the slot span. - PA_ALWAYS_INLINE size_t GetSlotNumber(size_t offset_in_slot_span) const { - // See the static assertion for `kReciprocalShift` above. -- PA_DCHECK(offset_in_slot_span <= kMaxBucketed); -+ // TODO(casey.smalley@arm.com): triggers on Aarch64/Linux -+ // systems with 64k system pages. Constants need to be -+ // adjusted to prevent different parts of the allocator -+ // from overlapping. For now this will allow 64k pages -+ // to function on Aarch64/Linux systems, albeit not -+ // very efficiently. -+ PA_DCHECK(internal::SystemPageSize() == (size_t{1} << 16) || offset_in_slot_span <= kMaxBucketed); - PA_DCHECK(slot_size <= kMaxBucketed); - - const size_t offset_in_slot = -diff -up chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h.orig chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h ---- chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h.orig 2024-04-14 20:53:16.043867871 +0200 -+++ chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h 2024-04-14 21:39:18.147052845 +0200 -@@ -17,10 +17,8 @@ namespace partition_alloc::internal { - // PartitionPageSize() is 4 times the OS page size. - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; - #elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) --// System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is --// currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, --// so we use the 16 kiB maximum (64 kiB will crash). --static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; -+// System page size can be 4, 16, or 64 kiB on Linux on AArch64. -+static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; - #else - // A slot span can "span" multiple PartitionPages, but then its slot size is - // larger, so it doesn't have as many slots. -diff -up chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc.orig chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc ---- chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc.orig 2024-04-14 20:53:16.044867889 +0200 -+++ chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc 2024-04-14 21:50:57.926716718 +0200 -@@ -952,12 +952,11 @@ void PartitionRoot::Init(PartitionOption - (internal::SystemPageSize() == (size_t{1} << 14))); - #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) - // Check runtime pagesize. Though the code is currently the same, it is -- // not merged with the IS_APPLE case above as a 1 << 16 case needs to be -- // added here in the future, to allow 64 kiB pagesize. That is only -- // supported on Linux on arm64, not on IS_APPLE, but not yet present here -- // as the rest of the PartitionAlloc does not currently support it. -+ // not merged with the IS_APPLE case above as a 1 << 16 case is only -+ // supported on Linux on AArch64. - PA_CHECK((internal::SystemPageSize() == (size_t{1} << 12)) || -- (internal::SystemPageSize() == (size_t{1} << 14))); -+ (internal::SystemPageSize() == (size_t{1} << 14)) || -+ (internal::SystemPageSize() == (size_t{1} << 16))); - #endif - - ::partition_alloc::internal::ScopedGuard guard{lock_}; -diff -up chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page.h.me chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page.h ---- chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page.h.me 2024-04-14 22:08:40.655011536 +0200 -+++ chromium-124.0.6367.49/base/allocator/partition_allocator/src/partition_alloc/partition_page.h 2024-04-14 22:12:46.665731577 +0200 -@@ -86,27 +86,25 @@ struct SlotSpanMetadata { - - // CHECK()ed in AllocNewSlotSpan(). - // The maximum number of bits needed to cover all currently supported OSes. -- static constexpr size_t kMaxSlotsPerSlotSpanBits = 13; -+ static constexpr size_t kMaxSlotsPerSlotSpanBits = 15; - static_assert(kMaxSlotsPerSlotSpan < (1 << kMaxSlotsPerSlotSpanBits), ""); - -- // |marked_full| isn't equivalent to being full. Slot span is marked as full -- // iff it isn't on the active slot span list (or any other list). -- uint32_t marked_full : 1; - // |num_allocated_slots| is 0 for empty or decommitted slot spans, which can - // be further differentiated by checking existence of the freelist. -- uint32_t num_allocated_slots : kMaxSlotsPerSlotSpanBits; -- uint32_t num_unprovisioned_slots : kMaxSlotsPerSlotSpanBits; -+ uint16_t num_allocated_slots : kMaxSlotsPerSlotSpanBits; -+ uint16_t num_unprovisioned_slots : kMaxSlotsPerSlotSpanBits; -+ -+ // |marked_full| isn't equivalent to being full. Slot span is marked as full -+ // iff it isn't on the active slot span list (or any other list). -+ bool marked_full : 1; - - private: -- const uint32_t can_store_raw_size_ : 1; -- uint32_t freelist_is_sorted_ : 1; -- uint32_t unused1_ : (32 - 1 - 2 * kMaxSlotsPerSlotSpanBits - 1 - 1); -+ const uint8_t can_store_raw_size_ : 1; -+ uint8_t freelist_is_sorted_ : 1; - // If |in_empty_cache_|==1, |empty_cache_index| is undefined and mustn't be - // used. -- uint16_t in_empty_cache_ : 1; -- uint16_t empty_cache_index_ -- : kMaxEmptyCacheIndexBits; // < kMaxFreeableSpans. -- uint16_t unused2_ : (16 - 1 - kMaxEmptyCacheIndexBits); -+ bool in_empty_cache_ : 1; -+ uint8_t empty_cache_index_ : kMaxEmptyCacheIndexBits; // < kMaxFreeableSpans. - // Can use only 48 bits (6B) in this bitfield, as this structure is embedded - // in PartitionPage which has 2B worth of fields and must fit in 32B. - -@@ -246,18 +244,13 @@ static_assert(sizeof(SlotSpanMetadata) < - "SlotSpanMetadata must fit into a Page Metadata slot."); - - inline constexpr SlotSpanMetadata::SlotSpanMetadata() noexcept -- : marked_full(0), -- num_allocated_slots(0), -+ : num_allocated_slots(0), - num_unprovisioned_slots(0), -+ marked_full(0), - can_store_raw_size_(false), - freelist_is_sorted_(true), -- unused1_(0), - in_empty_cache_(0), -- empty_cache_index_(0), -- unused2_(0) { -- (void)unused1_; -- (void)unused2_; --} -+ empty_cache_index_(0) {} - - inline SlotSpanMetadata::SlotSpanMetadata(const SlotSpanMetadata&) = default; - -@@ -752,7 +745,7 @@ PA_ALWAYS_INLINE void SlotSpanMetadata:: - - size_t num_slots_per_span = bucket->get_slots_per_span(); - PA_DCHECK(num_slots_per_span <= kMaxSlotsPerSlotSpan); -- num_unprovisioned_slots = static_cast(num_slots_per_span); -+ num_unprovisioned_slots = static_cast(num_slots_per_span); - PA_DCHECK(num_unprovisioned_slots); - - ToSuperPageExtent()->IncrementNumberOfNonemptySlotSpans(); diff --git a/chromium.spec b/chromium.spec index 4504799..bbda085 100644 --- a/chromium.spec +++ b/chromium.spec @@ -354,8 +354,6 @@ Patch150: chromium-124-qt6.patch # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch Patch306: chromium-127-el8-ifunc-header.patch -# 64kpage support on aarch64 (el8) -Patch308: chromium-124-el8-support-64kpage.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -1081,7 +1079,6 @@ Qt6 UI for chromium. %ifarch aarch64 %patch -P305 -p1 -b .el8-memory_tagging %patch -P306 -p1 -b .el8-ifunc-header -%patch -P308 -p1 -b .el8-support-64kpage.patch %endif %endif From e54d1538eaa4b0a26d27f281a1af7ecb73c3d0f1 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 6 Sep 2024 20:44:09 +0200 Subject: [PATCH 043/244] enable bundlelibopenjpeg2 as workaround for old openjpeg on epel error: use of undeclared identifier 'opj_decoder_set_strict_mode' --- chromium.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index bbda085..00caad8 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,15 +244,17 @@ %global bundlelibdrm 0 %global bundleffmpegfree 0 %global bundlefreetype 0 -%global bundlelibopenjpeg2 0 %global bundlelibtiff 0 %global bundlelibxml 0 %if 0%{?rhel} == 9 +# old version, need to update openjpeg to 2.5.x +%global bundlelibopenjpeg2 1 %global bundlecrc32c 1 %global bundleharfbuzz 1 %global bundlebrotli 1 %global bundlelibwebp 1 %else +%global bundlelibopenjpeg2 0 %global bundlecrc32c 0 %global bundleharfbuzz 0 %global bundlebrotli 0 From 97da4a0b9f58ad691ca72988914ff8341abd1557 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 10 Sep 2024 12:19:37 +0200 Subject: [PATCH 044/244] - removed workaround for missing bindgen-cli on el8 - removed partition-alloc-4k-detect.patch --- chromium.spec | 23 ------- partition-alloc-4k-detect.patch | 112 -------------------------------- sources | 2 - 3 files changed, 137 deletions(-) delete mode 100644 partition-alloc-4k-detect.patch diff --git a/chromium.spec b/chromium.spec index 00caad8..68ee6af 100644 --- a/chromium.spec +++ b/chromium.spec @@ -489,10 +489,6 @@ Source14: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_ve Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz %endif -# bindgen for epel8 -Source16: https://than.fedorapeople.org/epel8/bindgen-cli-aarch64.tar.xz -Source17: https://than.fedorapeople.org/epel8/bindgen-cli-x86_64.tar.xz - # esbuild binary from fedora %if 0%{?fedora} BuildRequires: golang-github-evanw-esbuild @@ -519,12 +515,7 @@ BuildRequires: binutils %endif BuildRequires: rustc -%if 0%{?rhel} == 8 -# need to build bindgen on el8 -BuildRequires: cargo -%else BuildRequires: bindgen-cli -%endif %if ! %{bundlezstd} BuildRequires: libzstd-devel @@ -1167,20 +1158,6 @@ Qt6 UI for chromium. # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + -# workaround for missing bindgen on el8 -%if 0%{?rhel} == 8 -%ifarch aarch64 -tar -Jxf %{SOURCE16} -%endif -%ifarch x86_64 -tar -Jxf %{SOURCE17} -%endif -mkdir -p usr/%{_lib} -pushd usr/%{_lib} -ln -fs %{_libdir}/libclang* . -popd -%endif - # Add correct path for nodejs binary %if ! %{system_nodejs} pushd third_party/node/linux diff --git a/partition-alloc-4k-detect.patch b/partition-alloc-4k-detect.patch deleted file mode 100644 index a0a3f95..0000000 --- a/partition-alloc-4k-detect.patch +++ /dev/null @@ -1,112 +0,0 @@ ---- a/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -@@ -100,21 +100,21 @@ - // other constant values, we pack _all_ `PartitionRoot::Alloc` sizes perfectly - // up against the end of a system page. - --#if defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) -+#if (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t - PartitionPageShift() { -- return 16; // 64 KiB -+ return PageAllocationGranularityShift() + 2; - } --#elif defined(ARCH_CPU_PPC64) -+#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t - PartitionPageShift() { -- return 18; // 256 KiB -+ return 16; // 64 KiB - } --#elif (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ -- defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) -+#elif defined(ARCH_CPU_PPC64) - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t - PartitionPageShift() { -- return PageAllocationGranularityShift() + 2; -+ return 18; // 256 KiB - } - #else - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t ---- a/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -@@ -26,7 +26,8 @@ - #define PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR __attribute__((const)) - - #elif (BUILDFLAG(IS_ANDROID) && defined(ARCH_CPU_64_BITS)) || \ -- (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) -+ (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) || \ -+ (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_PPC64)) - // This should work for all POSIX (if needed), but currently all other - // supported OS/architecture combinations use either hard-coded values - // (such as x86) or have means to determine these values without needing -@@ -86,17 +87,7 @@ - - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t - PageAllocationGranularityShift() { --#if BUILDFLAG(IS_WIN) || defined(ARCH_CPU_PPC64) -- // Modern ppc64 systems support 4kB (shift = 12) and 64kB (shift = 16) page -- // sizes. Since 64kB is the de facto standard on the platform and binaries -- // compiled for 64kB are likely to work on 4kB systems, 64kB is a good choice -- // here. -- return 16; // 64kB --#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) -- return 14; // 16kB --#elif BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS) -- return static_cast(vm_page_shift); --#elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) -+#if defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) - // arm64 supports 4kb (shift = 12), 16kb (shift = 14), and 64kb (shift = 16) - // page sizes. Retrieve from or initialize cache. - size_t shift = page_characteristics.shift.load(std::memory_order_relaxed); -@@ -106,6 +97,16 @@ - page_characteristics.shift.store(shift, std::memory_order_relaxed); - } - return shift; -+#elif BUILDFLAG(IS_WIN) || defined(ARCH_CPU_PPC64) -+ // Modern ppc64 systems support 4kB (shift = 12) and 64kB (shift = 16) page -+ // sizes. Since 64kB is the de facto standard on the platform and binaries -+ // compiled for 64kB are likely to work on 4kB systems, 64kB is a good choice -+ // here. -+ return 16; // 64kB -+#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) -+ return 14; // 16kB -+#elif BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS) -+ return static_cast(vm_page_shift); - #else - return 12; // 4kB - #endif ---- a/base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h -@@ -180,10 +180,10 @@ - #else // !BUILDFLAG(IS_AIX) && !defined(ARCH_CPU_BIG_ENDIAN) - - // Little-endian Linux PPC has 48 bits of virtual addressing. Use 46. -- PA_ALWAYS_INLINE constexpr uintptr_t ASLRMask() { -+ PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR uintptr_t ASLRMask() { - return AslrMask(46); - } -- PA_ALWAYS_INLINE constexpr uintptr_t ASLROffset() { -+ PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR uintptr_t ASLROffset() { - return AslrAddress(0); - } - ---- a/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_page_constants.h -@@ -17,10 +17,15 @@ - // PartitionPageSize() is 4 times the OS page size. - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; - #elif defined(PARTITION_ALLOCATOR_CONSTANTS_POSIX_NONCONST_PAGE_SIZE) -+#if defined(ARCH_CPU_PPC64) -+// System page size can be 4 or 64 kiB on Linux on ppc64. Use 64 kiB maximum. -+static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 16) / kSmallestBucket; -+#else - // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is - // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, - // so we use the 16 kiB maximum (64 kiB will crash). - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; -+#endif - #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_PPC64) - // System page size is not a constant on OpenPOWER systems, but is either 4kiB - // or 64kiB (1 << 12 or 1 << 16) diff --git a/sources b/sources index c282601..4f4f7c2 100644 --- a/sources +++ b/sources @@ -2,6 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (bindgen-cli-aarch64.tar.xz) = 1a5ae4e8fdd31d80e8111c4d5f2115336684763ecd3a442ffecdbc2a37bab146f88bdee0bb1ea7a98e1049f81b12e64bd0ce5510529b30a74ce3306488ac129b -SHA512 (bindgen-cli-x86_64.tar.xz) = 7ccc9b43b32d3a064a75cfc150e060711356da8fe98e83d855bae017108ef8e9e172fbdd6e2579433c19cfb56ababa5b77a8db6fa57a5e657a3878778ca10a37 SHA512 (chromium-128.0.6613.119-clean.tar.xz) = d7aeba7d9aa34ce85dae9bea52da40d4534c11343332a4bfde4af6bc58c07911bb6f9147bc8931f9e3dac6efce2b8b56a91d624367bf0cfb572af0b09d141db9 From c3dc494bbbc54aa08a3418ed2188e9f946666b66 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 11 Sep 2024 08:53:31 +0200 Subject: [PATCH 045/244] - update to 128.0.6613.137 * High CVE-2024-8636: Heap buffer overflow in Skia * High CVE-2024-8637: Use after free in Media Router * High CVE-2024-8638: Type Confusion in V8 * High CVE-2024-8639: Use after free in Autofill --- chromium.spec | 9 ++++++++- sources | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 68ee6af..2cee53e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -296,7 +296,7 @@ %endif Name: chromium%{chromium_channel} -Version: 128.0.6613.119 +Version: 128.0.6613.137 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1965,6 +1965,13 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Sep 11 2024 Than Ngo - 128.0.6613.137-1 +- update to 128.0.6613.137 + * High CVE-2024-8636: Heap buffer overflow in Skia + * High CVE-2024-8637: Use after free in Media Router + * High CVE-2024-8638: Type Confusion in V8 + * High CVE-2024-8639: Use after free in Autofill + * Thu Sep 05 2024 Than Ngo - 128.0.6613.119-1 - update to 128.0.6613.119 * High CVE-2024-8362: Use after free in WebAudio diff --git a/sources b/sources index 4f4f7c2..f6bbb9c 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-128.0.6613.119-clean.tar.xz) = d7aeba7d9aa34ce85dae9bea52da40d4534c11343332a4bfde4af6bc58c07911bb6f9147bc8931f9e3dac6efce2b8b56a91d624367bf0cfb572af0b09d141db9 +SHA512 (chromium-128.0.6613.137-clean.tar.xz) = 9a625dd4dc214fbfa0d003381c87e9ce1ff6ffd6c9b9390256523930d7a54c2a65da485584fcc887f830217de964ea2e7cfd898ac48b3b6d7be49b0e3711a9d3 From a00f39b9741af55b2951228f501279aa0d620775 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 11 Sep 2024 13:18:33 +0200 Subject: [PATCH 046/244] set correct rust_bindgen_root for el8 --- chromium.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chromium.spec b/chromium.spec index 2cee53e..2af75fb 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1280,11 +1280,7 @@ export RUSTC_BOOTSTRAP=1 # set rustc version rustc_version="$(rustc --version)" # set rust bindgen root -%if 0%{?rhel} == 8 -rust_bindgen_root="$PWD%{_prefix}" -%else rust_bindgen_root="%{_prefix}" -%endif # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" From 6fd59387662db278e3eae58d688a25b8f00dc06e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 18 Sep 2024 01:28:16 +0200 Subject: [PATCH 047/244] - update to 129.0.6668.58 * High CVE-2024-8904: Type Confusion in V8 * Medium CVE-2024-8905: Inappropriate implementation in V8 * Medium CVE-2024-8906: Incorrect security UI in Downloads * Medium CVE-2024-8907: Insufficient data validation in Omnibox * Low CVE-2024-8908: Inappropriate implementation in Autofill * Low CVE-2024-8909: Inappropriate implementation in UI --- ...generated-config-for-libaom-on-ppc64.patch | 219 ++---- ...Implement-support-for-PPC64-on-Linux.patch | 214 ++---- ...ox-linux-services-credentials.cc-PPC.patch | 10 +- cargo-add-ppc64.diff | 12 + chromium-126-system-libstdc++.patch | 667 ------------------ ...m-128.0.6613.137-python-3.13-warning.patch | 13 + ...e-H.264-video-parser-during-demuxing.patch | 32 + chromium.spec | 40 +- dawn-fix-ppc64le-detection.patch | 12 +- dawn-fix-typos.patch | 16 - sources | 2 +- 11 files changed, 230 insertions(+), 1007 deletions(-) create mode 100644 cargo-add-ppc64.diff delete mode 100644 chromium-126-system-libstdc++.patch create mode 100644 chromium-128.0.6613.137-python-3.13-warning.patch create mode 100644 chromium-129-disable-H.264-video-parser-during-demuxing.patch delete mode 100644 dawn-fix-typos.patch diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 52c5072..5fd44ff 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,10 +1,10 @@ -Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm ++++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm @@ -0,0 +1,95 @@ +; -+; Copyright (c) 2024, Alliance for Open Media. All rights reserved ++; Copyright (c) 2024, Alliance for Open Media. All rights reserved. +; +; This source code is subject to the terms of the BSD 2 Clause License and +; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -67,8 +67,8 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +CONFIG_SALIENCY_MAP equ 0 +CONFIG_SHARED equ 0 +CONFIG_SIZE_LIMIT equ 1 -+CONFIG_SPATIAL_RESAMPLING equ 1 +CONFIG_SPEED_STATS equ 0 ++CONFIG_SVT_AV1 equ 1 +CONFIG_TFLITE equ 0 +CONFIG_THREE_PASS equ 0 +CONFIG_TUNE_BUTTERAUGLI equ 0 @@ -98,13 +98,13 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved ++ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -116,13 +116,13 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +#include "aom/aom_codec.h" +static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_config.h -@@ -0,0 +1,99 @@ ++++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +@@ -0,0 +1,98 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved ++ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -187,8 +187,8 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +#define CONFIG_SALIENCY_MAP 0 +#define CONFIG_SHARED 0 +#define CONFIG_SIZE_LIMIT 1 -+#define CONFIG_SPATIAL_RESAMPLING 1 +#define CONFIG_SPEED_STATS 0 ++#define CONFIG_SVT_AV1 1 +#define CONFIG_TFLITE 0 +#define CONFIG_THREE_PASS 0 +#define CONFIG_TUNE_BUTTERAUGLI 0 @@ -217,14 +217,24 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +#define HAVE_UNISTD_H 1 +#define HAVE_VSX 1 +#define HAVE_WXWIDGETS 0 -+#define INLINE inline +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h -@@ -0,0 +1,1541 @@ ++++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +@@ -0,0 +1,1501 @@ ++/* ++ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * ++ * This source code is subject to the terms of the BSD 2 Clause License and ++ * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ++ * was not distributed with this source code in the LICENSE file, you can ++ * obtain it at www.aomedia.org/license/software. If the Alliance for Open ++ * Media Patent License 1.0 was not distributed with this source code in the ++ * PATENTS file, you can obtain it at www.aomedia.org/license/patent. ++ */ ++ +// This file is generated. Do not edit. +#ifndef AOM_DSP_RTCD_H_ +#define AOM_DSP_RTCD_H_ @@ -273,9 +283,6 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +void aom_comp_mask_pred_c(uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride, const uint8_t *mask, int mask_stride, int invert_mask); +#define aom_comp_mask_pred aom_comp_mask_pred_c + -+void aom_convolve8_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -+#define aom_convolve8 aom_convolve8_c -+ +void aom_convolve8_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h); +#define aom_convolve8_horiz aom_convolve8_horiz_c + @@ -822,99 +829,51 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +unsigned int aom_masked_sad128x128_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad128x128 aom_masked_sad128x128_c + -+void aom_masked_sad128x128x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad128x128x4d aom_masked_sad128x128x4d_c -+ +unsigned int aom_masked_sad128x64_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad128x64 aom_masked_sad128x64_c + -+void aom_masked_sad128x64x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad128x64x4d aom_masked_sad128x64x4d_c -+ +unsigned int aom_masked_sad16x16_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad16x16 aom_masked_sad16x16_c + -+void aom_masked_sad16x16x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad16x16x4d aom_masked_sad16x16x4d_c -+ +unsigned int aom_masked_sad16x32_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad16x32 aom_masked_sad16x32_c + -+void aom_masked_sad16x32x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad16x32x4d aom_masked_sad16x32x4d_c -+ +unsigned int aom_masked_sad16x8_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad16x8 aom_masked_sad16x8_c + -+void aom_masked_sad16x8x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad16x8x4d aom_masked_sad16x8x4d_c -+ +unsigned int aom_masked_sad32x16_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad32x16 aom_masked_sad32x16_c + -+void aom_masked_sad32x16x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad32x16x4d aom_masked_sad32x16x4d_c -+ +unsigned int aom_masked_sad32x32_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad32x32 aom_masked_sad32x32_c + -+void aom_masked_sad32x32x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad32x32x4d aom_masked_sad32x32x4d_c -+ +unsigned int aom_masked_sad32x64_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad32x64 aom_masked_sad32x64_c + -+void aom_masked_sad32x64x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad32x64x4d aom_masked_sad32x64x4d_c -+ +unsigned int aom_masked_sad4x4_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad4x4 aom_masked_sad4x4_c + -+void aom_masked_sad4x4x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad4x4x4d aom_masked_sad4x4x4d_c -+ +unsigned int aom_masked_sad4x8_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad4x8 aom_masked_sad4x8_c + -+void aom_masked_sad4x8x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad4x8x4d aom_masked_sad4x8x4d_c -+ +unsigned int aom_masked_sad64x128_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad64x128 aom_masked_sad64x128_c + -+void aom_masked_sad64x128x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad64x128x4d aom_masked_sad64x128x4d_c -+ +unsigned int aom_masked_sad64x32_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad64x32 aom_masked_sad64x32_c + -+void aom_masked_sad64x32x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad64x32x4d aom_masked_sad64x32x4d_c -+ +unsigned int aom_masked_sad64x64_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad64x64 aom_masked_sad64x64_c + -+void aom_masked_sad64x64x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad64x64x4d aom_masked_sad64x64x4d_c -+ +unsigned int aom_masked_sad8x16_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad8x16 aom_masked_sad8x16_c + -+void aom_masked_sad8x16x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad8x16x4d aom_masked_sad8x16x4d_c -+ +unsigned int aom_masked_sad8x4_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad8x4 aom_masked_sad8x4_c + -+void aom_masked_sad8x4x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad8x4x4d aom_masked_sad8x4x4d_c -+ +unsigned int aom_masked_sad8x8_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask); +#define aom_masked_sad8x8 aom_masked_sad8x8_c + -+void aom_masked_sad8x8x4d_c(const uint8_t *src, int src_stride, const uint8_t *ref[4], int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned sads[4]); -+#define aom_masked_sad8x8x4d aom_masked_sad8x8x4d_c -+ +unsigned int aom_masked_sub_pixel_variance128x128_c(const uint8_t *src, int src_stride, int xoffset, int yoffset, const uint8_t *ref, int ref_stride, const uint8_t *second_pred, const uint8_t *msk, int msk_stride, int invert_mask, unsigned int *sse); +#define aom_masked_sub_pixel_variance128x128 aom_masked_sub_pixel_variance128x128_c + @@ -1766,11 +1725,22 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +#endif + +#endif -Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h -@@ -0,0 +1,107 @@ ++++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +@@ -0,0 +1,91 @@ ++/* ++ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * ++ * This source code is subject to the terms of the BSD 2 Clause License and ++ * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ++ * was not distributed with this source code in the LICENSE file, you can ++ * obtain it at www.aomedia.org/license/software. If the Alliance for Open ++ * Media Patent License 1.0 was not distributed with this source code in the ++ * PATENTS file, you can obtain it at www.aomedia.org/license/patent. ++ */ ++ +// This file is generated. Do not edit. +#ifndef AOM_SCALE_RTCD_H_ +#define AOM_SCALE_RTCD_H_ @@ -1795,33 +1765,6 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +void aom_extend_frame_borders_plane_row_c(const struct yv12_buffer_config *ybf, int plane, int v_start, int v_end); +#define aom_extend_frame_borders_plane_row aom_extend_frame_borders_plane_row_c + -+void aom_extend_frame_borders_y_c(struct yv12_buffer_config *ybf); -+#define aom_extend_frame_borders_y aom_extend_frame_borders_y_c -+ -+void aom_extend_frame_inner_borders_c(struct yv12_buffer_config *ybf, const int num_planes); -+#define aom_extend_frame_inner_borders aom_extend_frame_inner_borders_c -+ -+void aom_horizontal_line_2_1_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); -+#define aom_horizontal_line_2_1_scale aom_horizontal_line_2_1_scale_c -+ -+void aom_horizontal_line_5_3_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); -+#define aom_horizontal_line_5_3_scale aom_horizontal_line_5_3_scale_c -+ -+void aom_horizontal_line_5_4_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); -+#define aom_horizontal_line_5_4_scale aom_horizontal_line_5_4_scale_c -+ -+void aom_vertical_band_2_1_scale_c(unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width); -+#define aom_vertical_band_2_1_scale aom_vertical_band_2_1_scale_c -+ -+void aom_vertical_band_2_1_scale_i_c(unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width); -+#define aom_vertical_band_2_1_scale_i aom_vertical_band_2_1_scale_i_c -+ -+void aom_vertical_band_5_3_scale_c(unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width); -+#define aom_vertical_band_5_3_scale aom_vertical_band_5_3_scale_c -+ -+void aom_vertical_band_5_4_scale_c(unsigned char *source, int src_pitch, unsigned char *dest, int dest_pitch, unsigned int dest_width); -+#define aom_vertical_band_5_4_scale aom_vertical_band_5_4_scale_c -+ +void aom_yv12_copy_frame_c(const struct yv12_buffer_config *src_bc, struct yv12_buffer_config *dst_bc, const int num_planes); +#define aom_yv12_copy_frame aom_yv12_copy_frame_c + @@ -1878,11 +1821,22 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +#endif + +#endif -Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h -@@ -0,0 +1,484 @@ ++++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +@@ -0,0 +1,438 @@ ++/* ++ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * ++ * This source code is subject to the terms of the BSD 2 Clause License and ++ * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ++ * was not distributed with this source code in the LICENSE file, you can ++ * obtain it at www.aomedia.org/license/software. If the Alliance for Open ++ * Media Patent License 1.0 was not distributed with this source code in the ++ * PATENTS file, you can obtain it at www.aomedia.org/license/patent. ++ */ ++ +// This file is generated. Do not edit. +#ifndef AV1_RTCD_H_ +#define AV1_RTCD_H_ @@ -1967,12 +1921,6 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf + int ref_stride, int subpel_search); +#define aom_comp_avg_upsampled_pred aom_comp_avg_upsampled_pred_c + -+void aom_dist_wtd_comp_avg_upsampled_pred_c(MACROBLOCKD *xd, const struct AV1Common *const cm, int mi_row, int mi_col, -+ const MV *const mv, uint8_t *comp_pred, const uint8_t *pred, int width, -+ int height, int subpel_x_q3, int subpel_y_q3, const uint8_t *ref, -+ int ref_stride, const DIST_WTD_COMP_PARAMS *jcp_param, int subpel_search); -+#define aom_dist_wtd_comp_avg_upsampled_pred aom_dist_wtd_comp_avg_upsampled_pred_c -+ +void aom_quantize_b_helper_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan, const qm_val_t *qm_ptr, const qm_val_t *iqm_ptr, const int log_scale); +#define aom_quantize_b_helper aom_quantize_b_helper_c + @@ -2050,6 +1998,9 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +void av1_dr_prediction_z3_c(uint8_t *dst, ptrdiff_t stride, int bw, int bh, const uint8_t *above, const uint8_t *left, int upsample_left, int dx, int dy); +#define av1_dr_prediction_z3 av1_dr_prediction_z3_c + ++void av1_fdwt8x8_uint8_input_c(const uint8_t *input, tran_low_t *output, int stride, int hbd); ++#define av1_fdwt8x8_uint8_input av1_fdwt8x8_uint8_input_c ++ +void av1_filter_intra_edge_c(uint8_t *p, int sz, int strength); +#define av1_filter_intra_edge av1_filter_intra_edge_c + @@ -2113,60 +2064,6 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +void av1_highbd_inv_txfm_add_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); +#define av1_highbd_inv_txfm_add av1_highbd_inv_txfm_add_c + -+void av1_highbd_inv_txfm_add_16x32_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_16x32 av1_highbd_inv_txfm_add_16x32_c -+ -+void av1_highbd_inv_txfm_add_16x4_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_16x4 av1_highbd_inv_txfm_add_16x4_c -+ -+void av1_highbd_inv_txfm_add_16x64_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_16x64 av1_highbd_inv_txfm_add_16x64_c -+ -+void av1_highbd_inv_txfm_add_16x8_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_16x8 av1_highbd_inv_txfm_add_16x8_c -+ -+void av1_highbd_inv_txfm_add_32x16_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_32x16 av1_highbd_inv_txfm_add_32x16_c -+ -+void av1_highbd_inv_txfm_add_32x32_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_32x32 av1_highbd_inv_txfm_add_32x32_c -+ -+void av1_highbd_inv_txfm_add_32x64_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_32x64 av1_highbd_inv_txfm_add_32x64_c -+ -+void av1_highbd_inv_txfm_add_32x8_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_32x8 av1_highbd_inv_txfm_add_32x8_c -+ -+void av1_highbd_inv_txfm_add_4x16_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_4x16 av1_highbd_inv_txfm_add_4x16_c -+ -+void av1_highbd_inv_txfm_add_4x4_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_4x4 av1_highbd_inv_txfm_add_4x4_c -+ -+void av1_highbd_inv_txfm_add_4x8_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_4x8 av1_highbd_inv_txfm_add_4x8_c -+ -+void av1_highbd_inv_txfm_add_64x16_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_64x16 av1_highbd_inv_txfm_add_64x16_c -+ -+void av1_highbd_inv_txfm_add_64x32_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_64x32 av1_highbd_inv_txfm_add_64x32_c -+ -+void av1_highbd_inv_txfm_add_64x64_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_64x64 av1_highbd_inv_txfm_add_64x64_c -+ -+void av1_highbd_inv_txfm_add_8x16_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_8x16 av1_highbd_inv_txfm_add_8x16_c -+ -+void av1_highbd_inv_txfm_add_8x32_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_8x32 av1_highbd_inv_txfm_add_8x32_c -+ -+void av1_highbd_inv_txfm_add_8x4_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_8x4 av1_highbd_inv_txfm_add_8x4_c -+ -+void av1_highbd_inv_txfm_add_8x8_c(const tran_low_t *input, uint8_t *dest, int stride, const TxfmParam *txfm_param); -+#define av1_highbd_inv_txfm_add_8x8 av1_highbd_inv_txfm_add_8x8_c -+ +void av1_highbd_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride, int bd); +#define av1_highbd_iwht4x4_16_add av1_highbd_iwht4x4_16_add_c + @@ -2260,7 +2157,7 @@ Index: chromium-128.0.6613.113/third_party/libaom/source/config/linux/ppc64/conf +void av1_resize_and_extend_frame_c(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, const InterpFilter filter, const int phase, const int num_planes); +#define av1_resize_and_extend_frame av1_resize_and_extend_frame_c + -+void av1_resize_horz_dir_c(const uint8_t *const input, int in_stride, uint8_t *intbuf, int height, int filteredlength, int width2); ++void av1_resize_horz_dir_c(const uint8_t *const input, int in_stride, uint8_t *intbuf, int height, int filtered_length, int width2); +#define av1_resize_horz_dir av1_resize_horz_dir_c + +bool av1_resize_vert_dir_c(uint8_t *intbuf, uint8_t *output, int out_stride, int height, int height2, int width2, int start_col); diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index d413b08..623cf5a 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,16 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/CONTRIBUTORS -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/CONTRIBUTORS +--- a/third_party/crashpad/crashpad/CONTRIBUTORS ++++ b/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context.h +--- a/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ b/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -687,6 +687,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +121,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_c } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- a/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +186,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_c +} } // namespace crashpad -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- a/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,11 +238,9 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_c } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -@@ -328,6 +328,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 +--- a/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +@@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +262,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_c } // namespace } // namespace test } // namespace crashpad -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- a/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ b/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +273,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/minidump_m #else #error define kCPU for this CPU #endif -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- a/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ b/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +355,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minid + } // namespace test } // namespace crashpad -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- a/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ b/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +367,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/minidump/test/minid //! \} } // namespace test -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/capture_memory.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- a/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ b/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +381,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/capture_me #else #error Port. #endif -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- a/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ b/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +393,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_archit }; } // namespace crashpad -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- a/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ b/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -424,18 +402,18 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_contex + case kCPUArchitecturePPC64: + return ppc64->nip; default: - NOTREACHED_IN_MIGRATION(); - return ~0ull; -@@ -191,6 +193,8 @@ uint64_t CPUContext::StackPointer() cons + NOTREACHED(); + } +@@ -190,6 +192,8 @@ uint64_t CPUContext::StackPointer() cons return arm64->sp; case kCPUArchitectureRISCV64: return riscv64->regs[1]; + case kCPUArchitecturePPC64: + return ppc64->regs[1]; default: - NOTREACHED_IN_MIGRATION(); - return ~0ull; -@@ -231,6 +235,7 @@ bool CPUContext::Is64Bit() const { + NOTREACHED(); + } +@@ -226,6 +230,7 @@ bool CPUContext::Is64Bit() const { case kCPUArchitectureX86_64: case kCPUArchitectureARM64: case kCPUArchitectureMIPS64EL: @@ -443,10 +421,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_contex case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- a/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ b/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +456,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/cpu_contex }; }; -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- a/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ b/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +545,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/cpu_ } // namespace internal } // namespace crashpad -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- a/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ b/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +564,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/debu }, module_mapping->name, module_mapping->device, -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +636,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exce #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -91,6 +91,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +647,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exce #endif } context_union_; CPUContext context_; -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +678,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/exce #else #error Port. #endif -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- a/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ b/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +689,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/proc #else #error Port. #endif -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- a/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ b/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +891,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/test/test_ + } // namespace test } // namespace crashpad -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- a/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ b/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +901,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/snapshot/test/test_ //! \} } // namespace test -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/test/linux/get_tls.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- a/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ b/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +912,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/test/linux/get_tls. #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/test/multiprocess_posix.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- a/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ b/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +924,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/test/multiprocess_p SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- a/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ b/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +938,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/auxiliar if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/ptracer.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- a/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ b/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1015,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/ptracer. GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/thread_info.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/thread_info.h +--- a/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ b/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1135,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/linux/thread_i //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context.h +--- a/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ b/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1145,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_c //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- a/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ b/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1373,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_c #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- a/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ b/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1384,8 @@ Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_c // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- a/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ b/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/Sandbox-linux-services-credentials.cc-PPC.patch b/Sandbox-linux-services-credentials.cc-PPC.patch index e578daf..7535d69 100644 --- a/Sandbox-linux-services-credentials.cc-PPC.patch +++ b/Sandbox-linux-services-credentials.cc-PPC.patch @@ -1,10 +1,8 @@ -Index: chromium-128.0.6613.113/sandbox/linux/services/credentials.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/services/credentials.cc -+++ chromium-128.0.6613.113/sandbox/linux/services/credentials.cc -@@ -85,7 +85,7 @@ bool ChrootToSafeEmptyDir() { - pid_t pid = -1; +--- a/sandbox/linux/services/credentials.cc ++++ b/sandbox/linux/services/credentials.cc +@@ -91,7 +91,7 @@ bool ChrootToSafeEmptyDir() { alignas(16) char stack_buf[PTHREAD_STACK_MIN]; + #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ - defined(ARCH_CPU_MIPS_FAMILY) + defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) diff --git a/cargo-add-ppc64.diff b/cargo-add-ppc64.diff new file mode 100644 index 0000000..275bf02 --- /dev/null +++ b/cargo-add-ppc64.diff @@ -0,0 +1,12 @@ +diff -up chromium-129.0.6668.42/build/rust/cargo_crate.gni.me chromium-129.0.6668.42/build/rust/cargo_crate.gni +--- chromium-129.0.6668.42/build/rust/cargo_crate.gni.me 2024-09-16 14:19:49.407900780 +0200 ++++ chromium-129.0.6668.42/build/rust/cargo_crate.gni 2024-09-16 14:21:33.411392581 +0200 +@@ -429,7 +429,7 @@ template("cargo_crate") { + rust_abi_target, + ] + } +- if (current_cpu == "arm64" || current_cpu == "x64") { ++ if (current_cpu == "arm64" || current_cpu == "x64" || current_cpu == "ppc64") { + args += [ + "--pointer-width", + "64", diff --git a/chromium-126-system-libstdc++.patch b/chromium-126-system-libstdc++.patch deleted file mode 100644 index 396f48f..0000000 --- a/chromium-126-system-libstdc++.patch +++ /dev/null @@ -1,667 +0,0 @@ -diff -up chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/starscan/stats_collector.h.system-libstdc++ chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/starscan/stats_collector.h ---- chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/starscan/stats_collector.h.system-libstdc++ 2024-05-29 18:00:45.000000000 +0200 -+++ chromium-126.0.6478.26/base/allocator/partition_allocator/src/partition_alloc/starscan/stats_collector.h 2024-06-02 23:51:25.562917154 +0200 -@@ -14,7 +14,7 @@ - #include - #include - --#include "partition_alloc/internal_allocator_forward.h" -+#include "partition_alloc/internal_allocator.h" - #include "partition_alloc/partition_alloc_base/threading/platform_thread.h" - #include "partition_alloc/partition_alloc_base/time/time.h" - #include "partition_alloc/partition_alloc_check.h" -diff -up chromium-126.0.6478.26/chrome/browser/ui/tabs/tab_strip_model.h.system-libstdc++ chromium-126.0.6478.26/chrome/browser/ui/tabs/tab_strip_model.h ---- chromium-126.0.6478.26/chrome/browser/ui/tabs/tab_strip_model.h.system-libstdc++ 2024-05-29 18:00:59.000000000 +0200 -+++ chromium-126.0.6478.26/chrome/browser/ui/tabs/tab_strip_model.h 2024-06-02 23:51:25.563917178 +0200 -@@ -12,6 +12,7 @@ - #include - #include - #include -+#include - #include - - #include "base/containers/span.h" -diff -up chromium-126.0.6478.26/components/viz/service/display/surface_aggregator.cc.system-libstdc++ chromium-126.0.6478.26/components/viz/service/display/surface_aggregator.cc ---- chromium-126.0.6478.26/components/viz/service/display/surface_aggregator.cc.system-libstdc++ 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/components/viz/service/display/surface_aggregator.cc 2024-06-02 23:51:25.563917178 +0200 -@@ -2296,7 +2296,7 @@ AggregatedFrame SurfaceAggregator::Aggre - root_surface_id_ = surface_id; - - // Start recording new stats for this aggregation. -- stats_.emplace(); -+ stats_ = AggregateStatistics{}; - - base::ElapsedTimer prewalk_timer; - ResolvedFrameData* resolved_frame = GetResolvedFrame(surface_id); -diff -up chromium-126.0.6478.26/content/browser/first_party_sets/first_party_sets_handler_database_helper.cc.system-libstdc++ chromium-126.0.6478.26/content/browser/first_party_sets/first_party_sets_handler_database_helper.cc ---- chromium-126.0.6478.26/content/browser/first_party_sets/first_party_sets_handler_database_helper.cc.system-libstdc++ 2024-05-29 18:01:12.000000000 +0200 -+++ chromium-126.0.6478.26/content/browser/first_party_sets/first_party_sets_handler_database_helper.cc 2024-06-02 23:51:25.563917178 +0200 -@@ -2,6 +2,7 @@ - // Use of this source code is governed by a BSD-style license that can be - // found in the LICENSE file. - -+#include - #include "content/browser/first_party_sets/first_party_sets_handler_database_helper.h" - - #include "base/containers/contains.h" -diff -up chromium-126.0.6478.26/content/services/auction_worklet/real_time_reporting_bindings.h.system-libstdc++ chromium-126.0.6478.26/content/services/auction_worklet/real_time_reporting_bindings.h ---- chromium-126.0.6478.26/content/services/auction_worklet/real_time_reporting_bindings.h.system-libstdc++ 2024-06-04 13:52:43.689553459 +0200 -+++ chromium-126.0.6478.26/content/services/auction_worklet/real_time_reporting_bindings.h 2024-06-04 13:52:01.117778943 +0200 -@@ -12,7 +12,7 @@ - #include "content/common/content_export.h" - #include "content/services/auction_worklet/auction_v8_helper.h" - #include "content/services/auction_worklet/context_recycler.h" --#include "content/services/auction_worklet/public/mojom/real_time_reporting.mojom-forward.h" -+#include "content/services/auction_worklet/public/mojom/real_time_reporting.mojom.h" - #include "v8/include/v8-forward.h" - - namespace auction_worklet { -diff -up chromium-126.0.6478.26/gpu/command_buffer/service/shared_image/shared_image_backing.h.system-libstdc++ chromium-126.0.6478.26/gpu/command_buffer/service/shared_image/shared_image_backing.h ---- chromium-126.0.6478.26/gpu/command_buffer/service/shared_image/shared_image_backing.h.system-libstdc++ 2024-05-29 18:01:26.000000000 +0200 -+++ chromium-126.0.6478.26/gpu/command_buffer/service/shared_image/shared_image_backing.h 2024-06-02 23:51:25.564917202 +0200 -@@ -111,6 +111,25 @@ using VideoDecodeDevice = Microsoft::WRL - using VideoDecodeDevice = void*; - #endif // BUILDFLAG(IS_WIN) - -+class ScopedWriteUMA { -+ public: -+ ScopedWriteUMA() = default; -+ -+ ScopedWriteUMA(const ScopedWriteUMA&) = delete; -+ ScopedWriteUMA& operator=(const ScopedWriteUMA&) = delete; -+ -+ ~ScopedWriteUMA() { -+ UMA_HISTOGRAM_BOOLEAN("GPU.SharedImage.ContentConsumed", -+ content_consumed_); -+ } -+ -+ bool content_consumed() const { return content_consumed_; } -+ void SetConsumed() { content_consumed_ = true; } -+ -+ private: -+ bool content_consumed_ = false; -+}; -+ - // Represents the actual storage (GL texture, VkImage, GMB) for a SharedImage. - // Should not be accessed directly, instead is accessed through a - // SharedImageRepresentation. -@@ -384,25 +403,6 @@ class GPU_GLES2_EXPORT SharedImageBackin - mutable std::optional lock_; - - private: -- class ScopedWriteUMA { -- public: -- ScopedWriteUMA() = default; -- -- ScopedWriteUMA(const ScopedWriteUMA&) = delete; -- ScopedWriteUMA& operator=(const ScopedWriteUMA&) = delete; -- -- ~ScopedWriteUMA() { -- UMA_HISTOGRAM_BOOLEAN("GPU.SharedImage.ContentConsumed", -- content_consumed_); -- } -- -- bool content_consumed() const { return content_consumed_; } -- void SetConsumed() { content_consumed_ = true; } -- -- private: -- bool content_consumed_ = false; -- }; -- - const Mailbox mailbox_; - const viz::SharedImageFormat format_; - const gfx::Size size_; -diff -up chromium-126.0.6478.26/mojo/public/cpp/bindings/lib/multiplex_router.cc.system-libstdc++ chromium-126.0.6478.26/mojo/public/cpp/bindings/lib/multiplex_router.cc ---- chromium-126.0.6478.26/mojo/public/cpp/bindings/lib/multiplex_router.cc.system-libstdc++ 2024-05-29 18:01:33.000000000 +0200 -+++ chromium-126.0.6478.26/mojo/public/cpp/bindings/lib/multiplex_router.cc 2024-06-02 23:51:25.564917202 +0200 -@@ -893,7 +893,7 @@ bool MultiplexRouter::ExclusiveSyncWaitF - DCHECK(!exclusive_sync_wait_); - - scoped_refptr keep_alive(this); -- exclusive_sync_wait_.emplace(); -+ exclusive_sync_wait_ = ExclusiveSyncWaitInfo{}; - exclusive_sync_wait_->interface_id = interface_id; - exclusive_sync_wait_->request_id = request_id; - while (!exclusive_sync_wait_->finished) { -diff -up chromium-126.0.6478.26/third_party/blink/common/interest_group/auction_config_mojom_traits.cc.system-libstdc++ chromium-126.0.6478.26/third_party/blink/common/interest_group/auction_config_mojom_traits.cc ---- chromium-126.0.6478.26/third_party/blink/common/interest_group/auction_config_mojom_traits.cc.system-libstdc++ 2024-05-29 18:01:37.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/common/interest_group/auction_config_mojom_traits.cc 2024-06-02 23:51:25.565917225 +0200 -@@ -225,8 +225,6 @@ bool StructTraitsall_buyers_priority_signals) || - !data.ReadAuctionReportBuyerKeys(&out->auction_report_buyer_keys) || - !data.ReadAuctionReportBuyers(&out->auction_report_buyers) || -- !data.ReadAuctionReportBuyerDebugModeConfig( -- &out->auction_report_buyer_debug_mode_config) || - !data.ReadRequiredSellerCapabilities( - &out->required_seller_capabilities) || - !data.ReadRequestedSize(&out->requested_size) || -diff -up chromium-126.0.6478.26/third_party/blink/renderer/core/loader/history_item.cc.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/core/loader/history_item.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/core/loader/history_item.cc.system-libstdc++ 2024-05-29 18:01:39.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/core/loader/history_item.cc 2024-06-02 23:51:25.565917225 +0200 -@@ -182,26 +182,26 @@ void HistoryItem::SetReferrerPolicy(netw - - void HistoryItem::SetVisualViewportScrollOffset(const ScrollOffset& offset) { - if (!view_state_) -- view_state_ = std::make_optional(); -+ view_state_ = blink::HistoryItem::ViewState{}; - view_state_->visual_viewport_scroll_offset_ = offset; - } - - void HistoryItem::SetScrollOffset(const ScrollOffset& offset) { - if (!view_state_) -- view_state_ = std::make_optional(); -+ view_state_ = blink::HistoryItem::ViewState{}; - view_state_->scroll_offset_ = offset; - } - - void HistoryItem::SetPageScaleFactor(float scale_factor) { - if (!view_state_) -- view_state_ = std::make_optional(); -+ view_state_ = blink::HistoryItem::ViewState{}; - view_state_->page_scale_factor_ = scale_factor; - } - - void HistoryItem::SetScrollAnchorData( - const ScrollAnchorData& scroll_anchor_data) { - if (!view_state_) -- view_state_ = std::make_optional(); -+ view_state_ = blink::HistoryItem::ViewState{}; - view_state_->scroll_anchor_data_ = scroll_anchor_data; - } - -diff -up chromium-126.0.6478.26/third_party/blink/renderer/core/page/page_popup_controller.h.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/core/page/page_popup_controller.h ---- chromium-126.0.6478.26/third_party/blink/renderer/core/page/page_popup_controller.h.system-libstdc++ 2024-06-04 17:01:05.066469613 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/core/page/page_popup_controller.h 2024-06-04 16:51:41.076869743 +0200 -@@ -31,6 +31,7 @@ - #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAGE_PAGE_POPUP_CONTROLLER_H_ - #define THIRD_PARTY_BLINK_RENDERER_CORE_PAGE_PAGE_POPUP_CONTROLLER_H_ - -+#include - #include "third_party/blink/renderer/platform/bindings/script_wrappable.h" - #include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h" - #include "third_party/blink/renderer/platform/heap/garbage_collected.h" -diff -up chromium-126.0.6478.26/third_party/blink/renderer/core/paint/fragment_data_iterator.h.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/core/paint/fragment_data_iterator.h ---- chromium-126.0.6478.26/third_party/blink/renderer/core/paint/fragment_data_iterator.h.system-libstdc++ 2024-05-29 18:01:40.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/core/paint/fragment_data_iterator.h 2024-06-02 23:51:25.565917225 +0200 -@@ -22,7 +22,7 @@ class FragmentDataIteratorBase { - - public: - explicit FragmentDataIteratorBase(Head& head) : fragment_head_(head) {} -- explicit FragmentDataIteratorBase(nullptr_t) {} -+ explicit FragmentDataIteratorBase(std::nullptr_t) {} - - Data* GetFragmentData() const { - return !IsDone() ? &fragment_head_.at(idx_) : nullptr; -diff -up chromium-126.0.6478.26/third_party/blink/renderer/modules/encoding/text_decoder.h.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/modules/encoding/text_decoder.h ---- chromium-126.0.6478.26/third_party/blink/renderer/modules/encoding/text_decoder.h.system-libstdc++ 2024-06-03 23:14:03.138724802 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/modules/encoding/text_decoder.h 2024-06-03 23:14:41.395654435 +0200 -@@ -31,6 +31,7 @@ - #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_ENCODING_TEXT_DECODER_H_ - #define THIRD_PARTY_BLINK_RENDERER_MODULES_ENCODING_TEXT_DECODER_H_ - -+#include - #include - - #include "third_party/blink/renderer/bindings/core/v8/v8_typedefs.h" -diff -up chromium-126.0.6478.26/third_party/blink/renderer/modules/media_controls/elements/media_control_timeline_element.cc.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/modules/media_controls/elements/media_control_timeline_element.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/modules/media_controls/elements/media_control_timeline_element.cc.system-libstdc++ 2024-05-29 18:01:40.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/modules/media_controls/elements/media_control_timeline_element.cc 2024-06-02 23:51:25.566917250 +0200 -@@ -102,7 +102,7 @@ void MediaControlTimelineElement::Update - void MediaControlTimelineElement::SetPosition(double current_time, - bool suppress_aria) { - if (is_live_ && !live_anchor_time_ && current_time != 0) { -- live_anchor_time_.emplace(); -+ live_anchor_time_ = LiveAnchorTime{}; - live_anchor_time_->clock_time_ = base::TimeTicks::Now(); - live_anchor_time_->media_time_ = MediaElement().currentTime(); - } -diff -up chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h ---- chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h.system-libstdc++ 2024-06-04 16:52:15.268516255 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h 2024-06-04 16:56:23.906705337 +0200 -@@ -7,6 +7,7 @@ - - #include - #include -+#include - #include "third_party/blink/renderer/platform/fonts/font_orientation.h" - #include "third_party/blink/renderer/platform/fonts/orientation_iterator.h" - #include "third_party/blink/renderer/platform/fonts/script_run_iterator.h" -diff -up chromium-126.0.6478.26/third_party/blink/renderer/platform/graphics/paint/geometry_mapper_transform_cache.cc.system-libstdc++ chromium-126.0.6478.26/third_party/blink/renderer/platform/graphics/paint/geometry_mapper_transform_cache.cc ---- chromium-126.0.6478.26/third_party/blink/renderer/platform/graphics/paint/geometry_mapper_transform_cache.cc.system-libstdc++ 2024-05-29 18:01:41.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/blink/renderer/platform/graphics/paint/geometry_mapper_transform_cache.cc 2024-06-02 23:51:25.566917250 +0200 -@@ -70,7 +70,7 @@ void GeometryMapperTransformCache::Updat - to_2d_translation_root_ += translation; - - if (parent.plane_root_transform_) { -- plane_root_transform_.emplace(); -+ plane_root_transform_ = PlaneRootTransform{}; - plane_root_transform_->plane_root = parent.plane_root(); - plane_root_transform_->to_plane_root = parent.to_plane_root(); - plane_root_transform_->to_plane_root.Translate(translation.x(), -@@ -98,7 +98,7 @@ void GeometryMapperTransformCache::Updat - // as the 2d translation root. - plane_root_transform_ = std::nullopt; - } else { -- plane_root_transform_.emplace(); -+ plane_root_transform_ = PlaneRootTransform{}; - plane_root_transform_->plane_root = parent.plane_root(); - plane_root_transform_->to_plane_root.MakeIdentity(); - parent.ApplyToPlaneRoot(plane_root_transform_->to_plane_root); -@@ -140,7 +140,7 @@ void GeometryMapperTransformCache::Updat - parent_node->UpdateScreenTransform(); - const auto& parent = parent_node->GetTransformCache(); - -- screen_transform_.emplace(); -+ screen_transform_ = ScreenTransform{}; - parent.ApplyToScreen(screen_transform_->to_screen); - if (node.FlattensInheritedTransform()) - screen_transform_->to_screen.Flatten(); -diff -up chromium-126.0.6478.26/third_party/ruy/src/ruy/profiler/instrumentation.h.system-libstdc++ chromium-126.0.6478.26/third_party/ruy/src/ruy/profiler/instrumentation.h ---- chromium-126.0.6478.26/third_party/ruy/src/ruy/profiler/instrumentation.h.system-libstdc++ 2024-05-29 18:03:01.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/ruy/src/ruy/profiler/instrumentation.h 2024-06-02 23:51:25.566917250 +0200 -@@ -19,6 +19,7 @@ limitations under the License. - #ifdef RUY_PROFILER - #include - #include -+#include - #include - #endif - -diff -up chromium-126.0.6478.26/third_party/webrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc.system-libstdc++ chromium-126.0.6478.26/third_party/webrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc ---- chromium-126.0.6478.26/third_party/webrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc.system-libstdc++ 2024-05-29 18:03:48.000000000 +0200 -+++ chromium-126.0.6478.26/third_party/webrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc 2024-06-02 23:51:25.567917273 +0200 -@@ -549,7 +549,7 @@ absl::optional L - if (!enabled.Get()) { - return config; - } -- config.emplace(); -+ config = Config{}; - config->bandwidth_rampup_upper_bound_factor = - bandwidth_rampup_upper_bound_factor.Get(); - config->bandwidth_rampup_upper_bound_factor_in_hold = -diff -up chromium-126.0.6478.26/ui/gfx/x/generated_protos/randr.cc.system-libstdc++ chromium-126.0.6478.26/ui/gfx/x/generated_protos/randr.cc ---- chromium-126.0.6478.26/ui/gfx/x/generated_protos/randr.cc.system-libstdc++ 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/gfx/x/generated_protos/randr.cc 2024-06-02 23:51:25.568917297 +0200 -@@ -305,7 +305,7 @@ void ReadEvent(RandR - // data - auto data_expr = subCode; - if (CaseEq(data_expr, RandR::Notify::CrtcChange)) { -- data.cc.emplace(); -+ data.cc = RandR::NotifyEvent::Cc{}; - auto& timestamp = (*data.cc).timestamp; - auto& window = (*data.cc).window; - auto& crtc = (*data.cc).crtc; -@@ -349,7 +349,7 @@ void ReadEvent(RandR - Read(&height, &buf); - } - if (CaseEq(data_expr, RandR::Notify::OutputChange)) { -- data.oc.emplace(); -+ data.oc = RandR::NotifyEvent::Oc{}; - auto& timestamp = (*data.oc).timestamp; - auto& config_timestamp = (*data.oc).config_timestamp; - auto& window = (*data.oc).window; -@@ -394,7 +394,7 @@ void ReadEvent(RandR - subpixel_order = static_cast(tmp6); - } - if (CaseEq(data_expr, RandR::Notify::OutputProperty)) { -- data.op.emplace(); -+ data.op = RandR::NotifyEvent::Op{}; - auto& window = (*data.op).window; - auto& output = (*data.op).output; - auto& atom = (*data.op).atom; -@@ -422,7 +422,7 @@ void ReadEvent(RandR - Pad(&buf, 11); - } - if (CaseEq(data_expr, RandR::Notify::ProviderChange)) { -- data.pc.emplace(); -+ data.pc = RandR::NotifyEvent::Pc{}; - auto& timestamp = (*data.pc).timestamp; - auto& window = (*data.pc).window; - auto& provider = (*data.pc).provider; -@@ -440,7 +440,7 @@ void ReadEvent(RandR - Pad(&buf, 16); - } - if (CaseEq(data_expr, RandR::Notify::ProviderProperty)) { -- data.pp.emplace(); -+ data.pp = RandR::NotifyEvent::Pp{}; - auto& window = (*data.pp).window; - auto& provider = (*data.pp).provider; - auto& atom = (*data.pp).atom; -@@ -466,7 +466,7 @@ void ReadEvent(RandR - Pad(&buf, 11); - } - if (CaseEq(data_expr, RandR::Notify::ResourceChange)) { -- data.rc.emplace(); -+ data.rc = RandR::NotifyEvent::Rc{}; - auto& timestamp = (*data.rc).timestamp; - auto& window = (*data.rc).window; - -@@ -480,7 +480,7 @@ void ReadEvent(RandR - Pad(&buf, 20); - } - if (CaseEq(data_expr, RandR::Notify::Lease)) { -- data.lc.emplace(); -+ data.lc = RandR::NotifyEvent::Lc{}; - auto& timestamp = (*data.lc).timestamp; - auto& window = (*data.lc).window; - auto& lease = (*data.lc).lease; -diff -up chromium-126.0.6478.26/ui/gfx/x/generated_protos/xinput.cc.system-libstdc++ chromium-126.0.6478.26/ui/gfx/x/generated_protos/xinput.cc ---- chromium-126.0.6478.26/ui/gfx/x/generated_protos/xinput.cc.system-libstdc++ 2024-05-29 18:02:32.000000000 +0200 -+++ chromium-126.0.6478.26/ui/gfx/x/generated_protos/xinput.cc 2024-06-02 23:51:25.569917321 +0200 -@@ -560,7 +560,7 @@ void ReadEvent detail - // map - auto map_expr = present; - if (CaseAnd(map_expr, Xkb::MapPart::KeyTypes)) { -- map.types_rtrn.emplace(); -+ map.types_rtrn = std::vector{}; - auto& types_rtrn = *map.types_rtrn; - - // types_rtrn -@@ -5207,7 +5207,7 @@ std::unique_ptr - if (CaseAnd(replies_expr, Xkb::GBNDetail::Types) || - CaseAnd(replies_expr, Xkb::GBNDetail::ClientSymbols) || - CaseAnd(replies_expr, Xkb::GBNDetail::ServerSymbols)) { -- replies.types.emplace(); -+ replies.types = Xkb::GetKbdByNameReply::Types{}; - auto& getmap_type = (*replies.types).getmap_type; - auto& typeDeviceID = (*replies.types).typeDeviceID; - auto& getmap_sequence = (*replies.types).getmap_sequence; -@@ -5626,7 +5626,7 @@ std::unique_ptr - } - } - if (CaseAnd(replies_expr, Xkb::GBNDetail::CompatMap)) { -- replies.compat_map.emplace(); -+ replies.compat_map = Xkb::GetKbdByNameReply::CompatMap{}; - auto& compatmap_type = (*replies.compat_map).compatmap_type; - auto& compatDeviceID = (*replies.compat_map).compatDeviceID; - auto& compatmap_sequence = (*replies.compat_map).compatmap_sequence; -@@ -5747,7 +5747,7 @@ std::unique_ptr - } - } - if (CaseAnd(replies_expr, Xkb::GBNDetail::IndicatorMaps)) { -- replies.indicator_maps.emplace(); -+ replies.indicator_maps = Xkb::GetKbdByNameReply::IndicatorMaps{}; - auto& indicatormap_type = (*replies.indicator_maps).indicatormap_type; - auto& indicatorDeviceID = (*replies.indicator_maps).indicatorDeviceID; - auto& indicatormap_sequence = -@@ -5840,7 +5840,7 @@ std::unique_ptr - } - if (CaseAnd(replies_expr, Xkb::GBNDetail::KeyNames) || - CaseAnd(replies_expr, Xkb::GBNDetail::OtherNames)) { -- replies.key_names.emplace(); -+ replies.key_names = Xkb::GetKbdByNameReply::KeyNames{}; - auto& keyname_type = (*replies.key_names).keyname_type; - auto& keyDeviceID = (*replies.key_names).keyDeviceID; - auto& keyname_sequence = (*replies.key_names).keyname_sequence; -@@ -6087,7 +6087,7 @@ std::unique_ptr - } - } - if (CaseAnd(replies_expr, Xkb::GBNDetail::Geometry)) { -- replies.geometry.emplace(); -+ replies.geometry = Xkb::GetKbdByNameReply::Geometry{}; - auto& geometry_type = (*replies.geometry).geometry_type; - auto& geometryDeviceID = (*replies.geometry).geometryDeviceID; - auto& geometry_sequence = (*replies.geometry).geometry_sequence; diff --git a/chromium-128.0.6613.137-python-3.13-warning.patch b/chromium-128.0.6613.137-python-3.13-warning.patch new file mode 100644 index 0000000..3923e29 --- /dev/null +++ b/chromium-128.0.6613.137-python-3.13-warning.patch @@ -0,0 +1,13 @@ +diff -up chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py.me chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py +--- chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py.me 2024-09-16 12:47:47.541825252 +0200 ++++ chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py 2024-09-16 12:48:39.210990291 +0200 +@@ -147,8 +147,7 @@ def dash_to_camelcase(word): + + def to_snake_case(name): + name = re.sub(r"([A-Z]{2,})([A-Z][a-z])", r"\1_\2", name) +- return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", name, sys.maxsize).lower() +- ++ return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", name, count=sys.maxsize).lower() + + def to_method_case(config, name): + if config.use_title_case_methods: diff --git a/chromium-129-disable-H.264-video-parser-during-demuxing.patch b/chromium-129-disable-H.264-video-parser-during-demuxing.patch new file mode 100644 index 0000000..78f49fa --- /dev/null +++ b/chromium-129-disable-H.264-video-parser-during-demuxing.patch @@ -0,0 +1,32 @@ +diff -up chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc.me chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc +--- chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc.me 2024-09-15 22:12:33.945186323 +0200 ++++ chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc 2024-09-16 10:53:13.334970539 +0200 +@@ -17,14 +17,11 @@ + + namespace media { + +-// Kill switches in case things explode. Remove after M132. ++// Kill switch in case things explode. Remove after M132. + // TODO(crbug.com/355485812): Re-enable this flag. + BASE_FEATURE(kAllowOnlyAudioCodecsDuringDemuxing, + "AllowOnlyAudioCodecsDuringDemuxing", + base::FEATURE_ENABLED_BY_DEFAULT); +-BASE_FEATURE(kForbidH264ParsingDuringDemuxing, +- "ForbidH264ParsingDuringDemuxing", +- base::FEATURE_ENABLED_BY_DEFAULT); + + // Internal buffer size used by AVIO for reading. + // TODO(dalecurtis): Experiment with this buffer size and measure impact on +@@ -118,12 +115,6 @@ FFmpegGlue::FFmpegGlue(FFmpegURLProtocol + // Enable fast, but inaccurate seeks for MP3. + format_context_->flags |= AVFMT_FLAG_FAST_SEEK; + +- // We don't allow H.264 parsing during demuxing since we have our own parser +- // and the ffmpeg one increases memory usage unnecessarily. +- if (base::FeatureList::IsEnabled(kForbidH264ParsingDuringDemuxing)) { +- format_context_->flags |= AVFMT_FLAG_NOH264PARSE; +- } +- + // Ensures format parsing errors will bail out. From an audit on 11/2017, all + // instances were real failures. Solves bugs like http://crbug.com/710791. + format_context_->error_recognition |= AV_EF_EXPLODE; diff --git a/chromium.spec b/chromium.spec index 2af75fb..0c399a7 100644 --- a/chromium.spec +++ b/chromium.spec @@ -296,7 +296,7 @@ %endif Name: chromium%{chromium_channel} -Version: 128.0.6613.137 +Version: 129.0.6668.58 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -333,6 +333,9 @@ Patch90: chromium-121-system-libxml.patch # patch for using system opus Patch91: chromium-108-system-opus.patch +# python-3,13, Deprecationwarning: 'count' is passed as positionaö argument +Patch100: chromium-128.0.6613.137-python-3.13-warning.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -345,6 +348,8 @@ Patch132: chromium-118-sigtrap_system_ffmpeg.patch Patch133: chromium-121-system-old-ffmpeg.patch # disable FFmpegAllowLists by default to allow external ffmpeg patch134: chromium-125-disable-FFmpegAllowLists.patch +# revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' +Patch135: chromium-129-disable-H.264-video-parser-during-demuxing.patch # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch @@ -373,9 +378,6 @@ Patch353: chromium-127-aarch64-duplicate-case-value.patch # remove flag split-threshold-for-reg-with-hint, it's not supported in clang <= 17 Patch354: chromium-126-split-threshold-for-reg-with-hint.patch -# use system libstdc++ -Patch355: chromium-126-system-libstdc++.patch - # set clang_lib path Patch358: chromium-127-rust-clanglib.patch @@ -447,12 +449,12 @@ Patch407: 0002-Add-ppc64-trap-instructions.patch Patch408: fix-ppc64-linux-syscalls-headers.patch Patch409: use-sysconf-page-size-on-ppc64.patch -Patch410: dawn-fix-typos.patch Patch411: dawn-fix-ppc64le-detection.patch Patch412: add-ppc64-architecture-to-extensions.diff # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff +Patch414: cargo-add-ppc64.diff # upstream patches @@ -638,6 +640,10 @@ BuildRequires: libappstream-glib BuildRequires: libstdc++-static %endif +%if ! %{use_custom_libcxx} +BuildRequires: libcxx-devel +%endif + # Fedora tries to use system libs whenever it can. BuildRequires: bzip2-devel BuildRequires: dbus-glib-devel @@ -1049,6 +1055,10 @@ Qt6 UI for chromium. %patch -P91 -p1 -b .system-opus %endif +%if 0%{?fedora} +%patch -P100 -p1 -b .python-3.13-warning +%endif + %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque @@ -1058,6 +1068,7 @@ Qt6 UI for chromium. %patch -P132 -p1 -b .sigtrap_system_ffmpeg %patch -P133 -p1 -b .system-old-ffmpeg %patch -P134 -p1 -b .disable-FFmpegAllowLists +%patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing %endif %if 0%{?rhel} == 8 || 0%{?rhel} == 9 @@ -1091,9 +1102,6 @@ Qt6 UI for chromium. %patch -P354 -p1 -b .split-threshold-for-reg-with-hint %endif -%if ! %{use_custom_libcxx} -%patch -P355 -p1 -b .system-libstdc++ -%endif %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le @@ -1148,10 +1156,10 @@ Qt6 UI for chromium. %patch -P407 -p1 -b .0002-Add-ppc64-trap-instructions %patch -P408 -p1 -b .fix-ppc64-linux-syscalls-headers %patch -P409 -p1 -b .use-sysconf-page-size-on-ppc64 -%patch -P410 -p1 -b .dawn-fix-typos %patch -P411 -p1 -b .dawn-fix-ppc64le-detection %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions %patch -P413 -p1 -b .fix-unknown-warning-option-messages +%patch -P414 -p1 -b .rust-add-ppc64-case %endif # Change shebang in all relevant files in this directory and all subdirectories @@ -1238,6 +1246,11 @@ CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" %endif +%if ! %{use_custom_libcxx} +CXXFLAGS="$FLAGS -stdlib=libc++" +LDFLAGS="$LDFLAGS -stdlib=libc++" +%endif + %ifarch ppc64le CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' %endif @@ -1961,6 +1974,15 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Tue Sep 17 2024 Than Ngo - 129.0.6668.58-1 +- update to 129.0.6668.58 + * High CVE-2024-8904: Type Confusion in V8 + * Medium CVE-2024-8905: Inappropriate implementation in V8 + * Medium CVE-2024-8906: Incorrect security UI in Downloads + * Medium CVE-2024-8907: Insufficient data validation in Omnibox + * Low CVE-2024-8908: Inappropriate implementation in Autofill + * Low CVE-2024-8909: Inappropriate implementation in UI + * Wed Sep 11 2024 Than Ngo - 128.0.6613.137-1 - update to 128.0.6613.137 * High CVE-2024-8636: Heap buffer overflow in Skia diff --git a/dawn-fix-ppc64le-detection.patch b/dawn-fix-ppc64le-detection.patch index 360ec35..4379d4e 100644 --- a/dawn-fix-ppc64le-detection.patch +++ b/dawn-fix-ppc64le-detection.patch @@ -1,8 +1,6 @@ -Index: chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Platform.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Platform.h -@@ -158,10 +158,12 @@ +--- a/third_party/dawn/src/dawn/common/Platform.h ++++ b/third_party/dawn/src/dawn/common/Platform.h +@@ -159,10 +159,12 @@ #elif defined(__s390x__) #define DAWN_PLATFORM_IS_S390X 1 @@ -15,5 +13,5 @@ Index: chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Platform.h +#elif defined(__PPC__) +#define DAWN_PLATFORM_IS_PPC 1 - #else - #error "Unsupported platform." + #elif defined(__wasm32__) + #define DAWN_PLATFORM_IS_WASM32 1 diff --git a/dawn-fix-typos.patch b/dawn-fix-typos.patch deleted file mode 100644 index b3206b9..0000000 --- a/dawn-fix-typos.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Assert.cpp -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/dawn/src/dawn/common/Assert.cpp -+++ chromium-128.0.6613.113/third_party/dawn/src/dawn/common/Assert.cpp -@@ -52,9 +52,9 @@ void BreakPoint() { - __asm__ __volatile__("ebreak"); - #elif DAWN_PLATFORM_IS(MIPS) - __asm__ __volatile__("break"); --#elif DAWN_PLATFORM_IS(S390) || DAWN_PLATFORM_IS_(S390X) -+#elif DAWN_PLATFORM_IS(S390) || DAWN_PLATFORM_IS(S390X) - __asm__ __volatile__(".word 0x0001"); --#elif DAWN_PLATFORM_IS(PPC) || DAWN_PLATFORM_IS_(PPC64) -+#elif DAWN_PLATFORM_IS(PPC) || DAWN_PLATFORM_IS(PPC64) - __asm__ __volatile__("twge 2,2"); - #else - #error "Unsupported platform" diff --git a/sources b/sources index f6bbb9c..36ac1d6 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-128.0.6613.137-clean.tar.xz) = 9a625dd4dc214fbfa0d003381c87e9ce1ff6ffd6c9b9390256523930d7a54c2a65da485584fcc887f830217de964ea2e7cfd898ac48b3b6d7be49b0e3711a9d3 +SHA512 (chromium-129.0.6668.58-clean.tar.xz) = 68554cc18e325514361df3bf9a585ba4cd1923decc2317cc362c6c44998b5bcbcaf055f0e788ce527723eab57382b09d2345974fb2cc6ac48866a0d535b431a4 From ddd82910888e222f53d06d13f8ce709ec09012ab Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 18 Sep 2024 20:37:15 +0200 Subject: [PATCH 048/244] workaround for build error due to old atk version on el8 --- chromium-129-el8-atk-compiler-error.patch | 1083 +++++++++++++++++++++ chromium.spec | 6 +- 2 files changed, 1088 insertions(+), 1 deletion(-) create mode 100644 chromium-129-el8-atk-compiler-error.patch diff --git a/chromium-129-el8-atk-compiler-error.patch b/chromium-129-el8-atk-compiler-error.patch new file mode 100644 index 0000000..58e4cfb --- /dev/null +++ b/chromium-129-el8-atk-compiler-error.patch @@ -0,0 +1,1083 @@ +diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc.me chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc +--- chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc.me 2024-09-18 19:26:40.951100740 +0200 ++++ chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc 2024-09-18 19:28:06.219700474 +0200 +@@ -3,6 +3,7 @@ + // found in the LICENSE file. + + #include ++#include + + #include + #include +@@ -547,6 +548,10 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + g_object_unref(div_element); + } + ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 30, 0) ++#define ATK_230 ++#endif ++ + IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, + TestCharacterExtentsWithInvalidArguments) { + AtkText* atk_text = SetUpSampleParagraph(); +@@ -569,12 +574,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + EXPECT_EQ(expect, width); + EXPECT_EQ(expect, height); + ++#ifdef ATK_230 + atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, + &height, ATK_XY_PARENT); + EXPECT_EQ(expect, x); + EXPECT_EQ(expect, y); + EXPECT_EQ(expect, width); + EXPECT_EQ(expect, height); ++#endif // ATK_230 + + atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, + &height, ATK_XY_WINDOW); +@@ -593,12 +600,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + EXPECT_EQ(expect, width); + EXPECT_EQ(expect, height); + ++#ifdef ATK_230 + atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, + &height, ATK_XY_PARENT); + EXPECT_EQ(expect, x); + EXPECT_EQ(expect, y); + EXPECT_EQ(expect, width); + EXPECT_EQ(expect, height); ++#endif // ATK_230 + + atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, + &height, ATK_XY_WINDOW); +@@ -613,7 +622,9 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + AtkCoordType kCoordinateTypes[] = { + ATK_XY_SCREEN, + ATK_XY_WINDOW, ++#ifdef ATK_230 + ATK_XY_PARENT, ++#endif // ATK_230 + }; + + IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, +@@ -872,6 +883,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + TestCharacterExtentsInScrollableInput(); + } + ++#if defined(ATK_230) + typedef bool (*ScrollToPointFunc)(AtkComponent* component, + AtkCoordType coords, + gint x, +@@ -881,6 +893,18 @@ typedef bool (*ScrollToFunc)(AtkComponen + // TODO(crbug.com/40866728): Enable this test. + IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, + DISABLED_TestScrollToPoint) { ++ // There's a chance we may be compiled with a newer version of ATK and then ++ // run with an older one, so we need to do a runtime check for this method ++ // that is available in ATK 2.30 instead of linking directly. ++ ScrollToPointFunc scroll_to_point = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_component_scroll_to_point")); ++ if (!scroll_to_point) { ++ LOG(WARNING) ++ << "Skipping AccessibilityAuraLinuxBrowserTest::TestScrollToPoint" ++ " because ATK version < 2.30 detected."; ++ return; ++ } ++ + LoadSampleParagraphInScrollableDocument(); + AtkText* atk_text = GetSampleParagraph(); + ASSERT_TRUE(ATK_IS_COMPONENT(atk_text)); +@@ -893,7 +917,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + AccessibilityNotificationWaiter location_changed_waiter( + shell()->web_contents(), ui::kAXModeComplete, + ax::mojom::Event::kLocationChanged); +- atk_component_scroll_to_point(atk_component, ATK_XY_PARENT, 0, 0); ++ scroll_to_point(atk_component, ATK_XY_PARENT, 0, 0); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + + atk_component_get_extents(atk_component, &x, &y, nullptr, nullptr, +@@ -902,20 +926,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + EXPECT_GT(prev_y, y); + + constexpr int kScrollToY = 0; +- atk_component_scroll_to_point(atk_component, ATK_XY_SCREEN, 0, kScrollToY); ++ scroll_to_point(atk_component, ATK_XY_SCREEN, 0, kScrollToY); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + atk_component_get_extents(atk_component, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_EQ(kScrollToY, y); + + constexpr int kScrollToY_2 = 243; +- atk_component_scroll_to_point(atk_component, ATK_XY_SCREEN, 0, kScrollToY_2); ++ scroll_to_point(atk_component, ATK_XY_SCREEN, 0, kScrollToY_2); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + atk_component_get_extents(atk_component, nullptr, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_EQ(kScrollToY_2, y); + +- atk_component_scroll_to_point(atk_component, ATK_XY_SCREEN, 0, 129); ++ scroll_to_point(atk_component, ATK_XY_SCREEN, 0, 129); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + atk_component_get_extents(atk_component, nullptr, &y, nullptr, nullptr, + ATK_XY_SCREEN); +@@ -932,6 +956,17 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + // TODO(crbug.com/40866728): Enable this test. + IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, + DISABLED_TestScrollTo) { ++ // There's a chance we may be compiled with a newer version of ATK and then ++ // run with an older one, so we need to do a runtime check for this method ++ // that is available in ATK 2.30 instead of linking directly. ++ ScrollToFunc scroll_to = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_component_scroll_to")); ++ if (!scroll_to) { ++ LOG(WARNING) << "Skipping AccessibilityAuraLinuxBrowserTest::TestScrollTo" ++ " because ATK version < 2.30 detected."; ++ return; ++ } ++ + LoadInitialAccessibilityTreeFromHtml( + R"HTML( + +@@ -973,8 +1008,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + AccessibilityNotificationWaiter waiter( + shell()->web_contents(), ui::kAXModeComplete, + ax::mojom::Event::kScrollPositionChanged); +- ASSERT_TRUE( +- atk_component_scroll_to(ATK_COMPONENT(target), ATK_SCROLL_TOP_EDGE)); ++ ASSERT_TRUE(scroll_to(ATK_COMPONENT(target), ATK_SCROLL_TOP_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + int x, y; + atk_component_get_extents(ATK_COMPONENT(target), &x, &y, nullptr, nullptr, +@@ -982,40 +1016,35 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + EXPECT_EQ(y, doc_y); + EXPECT_NE(x, doc_x); + +- ASSERT_TRUE( +- atk_component_scroll_to(ATK_COMPONENT(target), ATK_SCROLL_TOP_LEFT)); ++ ASSERT_TRUE(scroll_to(ATK_COMPONENT(target), ATK_SCROLL_TOP_LEFT)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_component_get_extents(ATK_COMPONENT(target), &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_EQ(y, doc_y); + EXPECT_EQ(x, doc_x); + +- ASSERT_TRUE( +- atk_component_scroll_to(ATK_COMPONENT(target), ATK_SCROLL_BOTTOM_EDGE)); ++ ASSERT_TRUE(scroll_to(ATK_COMPONENT(target), ATK_SCROLL_BOTTOM_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_component_get_extents(ATK_COMPONENT(target), &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_NE(y, doc_y); + EXPECT_EQ(x, doc_x); + +- ASSERT_TRUE( +- atk_component_scroll_to(ATK_COMPONENT(target), ATK_SCROLL_RIGHT_EDGE)); ++ ASSERT_TRUE(scroll_to(ATK_COMPONENT(target), ATK_SCROLL_RIGHT_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_component_get_extents(ATK_COMPONENT(target), &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_NE(y, doc_y); + EXPECT_NE(x, doc_x); + +- ASSERT_TRUE( +- atk_component_scroll_to(ATK_COMPONENT(target2), ATK_SCROLL_LEFT_EDGE)); ++ ASSERT_TRUE(scroll_to(ATK_COMPONENT(target2), ATK_SCROLL_LEFT_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_component_get_extents(ATK_COMPONENT(target2), &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_NE(y, doc_y); + EXPECT_EQ(x, doc_x); + +- ASSERT_TRUE( +- atk_component_scroll_to(ATK_COMPONENT(target2), ATK_SCROLL_TOP_LEFT)); ++ ASSERT_TRUE(scroll_to(ATK_COMPONENT(target2), ATK_SCROLL_TOP_LEFT)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_component_get_extents(ATK_COMPONENT(target2), &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); +@@ -1047,10 +1076,39 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + g_object_unref(target2); + g_object_unref(target3); + } ++#endif // defined(ATK_230) ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 32, 0) ++typedef gboolean (*ScrollSubstringToFunc)(AtkText* text, ++ gint start_offset, ++ gint end_offset, ++ AtkScrollType type); ++ScrollSubstringToFunc g_scroll_substring_to = nullptr; ++ ++NO_SANITIZE("cfi-icall") ++gboolean ScrollSubstringTo(AtkText* text, ++ gint start_offset, ++ gint end_offset, ++ AtkScrollType type) { ++ EXPECT_NE(g_scroll_substring_to, nullptr); ++ return g_scroll_substring_to(text, start_offset, end_offset, type); ++} + + // TODO(crbug.com/40866728): Enable this test. + IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, + DISABLED_TestScrollSubstringTo) { ++ // There's a chance we may be compiled with a newer version of ATK and then ++ // run with an older one, so we need to do a runtime check for this method ++ // that is available in ATK 2.32 instead of linking directly. ++ g_scroll_substring_to = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_text_scroll_substring_to")); ++ if (!g_scroll_substring_to) { ++ LOG(WARNING) << "Skipping " ++ "AccessibilityAuraLinuxBrowserTest::TestSubstringScrollTo" ++ " because ATK version < 2.32 detected."; ++ return; ++ } ++ + LoadInitialAccessibilityTreeFromHtml( + R"HTML( + +@@ -1084,8 +1142,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + AccessibilityNotificationWaiter waiter( + shell()->web_contents(), ui::kAXModeComplete, + ax::mojom::Event::kScrollPositionChanged); +- ASSERT_TRUE(atk_text_scroll_substring_to(ATK_TEXT(target1), 1, 2, +- ATK_SCROLL_TOP_EDGE)); ++ ASSERT_TRUE(ScrollSubstringTo(ATK_TEXT(target1), 1, 2, ATK_SCROLL_TOP_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + int x, y; + atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, +@@ -1093,40 +1150,37 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + EXPECT_EQ(y, doc_y); + EXPECT_NE(x, doc_x); + +- ASSERT_TRUE(atk_text_scroll_substring_to(ATK_TEXT(target1), 1, 2, +- ATK_SCROLL_TOP_LEFT)); ++ ASSERT_TRUE(ScrollSubstringTo(ATK_TEXT(target1), 1, 2, ATK_SCROLL_TOP_LEFT)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_EQ(y, doc_y); + EXPECT_EQ(x, doc_x); + +- ASSERT_TRUE(atk_text_scroll_substring_to(ATK_TEXT(target1), 1, 2, +- ATK_SCROLL_BOTTOM_EDGE)); ++ ASSERT_TRUE( ++ ScrollSubstringTo(ATK_TEXT(target1), 1, 2, ATK_SCROLL_BOTTOM_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_NE(y, doc_y); + EXPECT_EQ(x, doc_x); + +- ASSERT_TRUE(atk_text_scroll_substring_to(ATK_TEXT(target1), 1, 2, +- ATK_SCROLL_RIGHT_EDGE)); ++ ASSERT_TRUE( ++ ScrollSubstringTo(ATK_TEXT(target1), 1, 2, ATK_SCROLL_RIGHT_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_NE(y, doc_y); + EXPECT_NE(x, doc_x); + +- ASSERT_TRUE(atk_text_scroll_substring_to(ATK_TEXT(target1), 1, 2, +- ATK_SCROLL_LEFT_EDGE)); ++ ASSERT_TRUE(ScrollSubstringTo(ATK_TEXT(target1), 1, 2, ATK_SCROLL_LEFT_EDGE)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_NE(y, doc_y); + EXPECT_EQ(x, doc_x); + +- ASSERT_TRUE(atk_text_scroll_substring_to(ATK_TEXT(target1), 1, 2, +- ATK_SCROLL_TOP_LEFT)); ++ ASSERT_TRUE(ScrollSubstringTo(ATK_TEXT(target1), 1, 2, ATK_SCROLL_TOP_LEFT)); + ASSERT_TRUE(waiter.WaitForNotification()); + atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); +@@ -1136,9 +1190,42 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + g_object_unref(target1); + } + ++typedef gboolean (*ScrollSubstringToPointFunc)(AtkText* text, ++ gint start_offset, ++ gint end_offset, ++ AtkCoordType coord_type, ++ gint x, ++ gint y); ++ScrollSubstringToPointFunc g_scroll_substring_to_point = nullptr; ++ ++NO_SANITIZE("cfi-icall") ++gboolean ScrollSubstringToPoint(AtkText* text, ++ gint start_offset, ++ gint end_offset, ++ AtkCoordType coord_type, ++ gint x, ++ gint y) { ++ EXPECT_NE(g_scroll_substring_to_point, nullptr); ++ return g_scroll_substring_to_point(text, start_offset, end_offset, coord_type, ++ x, y); ++} ++ + // TODO(crbug.com/40866728): Enable this test. + IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, + DISABLED_TestScrollSubstringToPoint) { ++ // There's a chance we may be compiled with a newer version of ATK and then ++ // run with an older one, so we need to do a runtime check for this method ++ // that is available in ATK 2.30 instead of linking directly. ++ g_scroll_substring_to_point = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_text_scroll_substring_to_point")); ++ if (!g_scroll_substring_to_point) { ++ LOG(WARNING) ++ << "Skipping " ++ "AccessibilityAuraLinuxBrowserTest::TestScrollSubstringToPoint" ++ " because ATK version < 2.30 detected."; ++ return; ++ } ++ + LoadSampleParagraphInScrollableDocument(); + AtkText* atk_text = GetSampleParagraph(); + ASSERT_TRUE(ATK_IS_COMPONENT(atk_text)); +@@ -1151,7 +1238,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + AccessibilityNotificationWaiter location_changed_waiter( + shell()->web_contents(), ui::kAXModeComplete, + ax::mojom::Event::kLocationChanged); +- atk_text_scroll_substring_to_point(atk_text, 1, 2, ATK_XY_PARENT, 0, 0); ++ ScrollSubstringToPoint(atk_text, 1, 2, ATK_XY_PARENT, 0, 0); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + + atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, +@@ -1160,22 +1247,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + EXPECT_GT(prev_y, y); + + constexpr int kScrollToY = 0; +- atk_text_scroll_substring_to_point(atk_text, 1, 2, ATK_XY_SCREEN, 0, +- kScrollToY); ++ ScrollSubstringToPoint(atk_text, 1, 2, ATK_XY_SCREEN, 0, kScrollToY); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_EQ(kScrollToY, y); + + constexpr int kScrollToY_2 = 243; +- atk_text_scroll_substring_to_point(atk_text, 1, 2, ATK_XY_SCREEN, 0, +- kScrollToY_2); ++ ScrollSubstringToPoint(atk_text, 1, 2, ATK_XY_SCREEN, 0, kScrollToY_2); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); + EXPECT_EQ(kScrollToY_2, y); + +- atk_text_scroll_substring_to_point(atk_text, 1, 2, ATK_XY_SCREEN, 0, 129); ++ ScrollSubstringToPoint(atk_text, 1, 2, ATK_XY_SCREEN, 0, 129); + ASSERT_TRUE(location_changed_waiter.WaitForNotification()); + atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, + ATK_XY_SCREEN); +@@ -1191,6 +1276,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura + + g_object_unref(atk_text); + } ++#endif // defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 32, 0) + + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) + // Flaky on crbug.com/1026149 +diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc.me chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc +--- chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc.me 2024-09-18 19:26:26.040821017 +0200 ++++ chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc 2024-09-18 19:28:06.220700493 +0200 +@@ -2,7 +2,6 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + +-#include "base/version.h" + #ifdef UNSAFE_BUFFERS_BUILD + // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. + #pragma allow_unsafe_buffers +@@ -10,6 +9,7 @@ + + #include "ui/accessibility/platform/ax_platform_node_auralinux.h" + ++#include + #include + + #include +@@ -47,14 +47,33 @@ + #include "ui/accessibility/platform/child_iterator.h" + #include "ui/gfx/geometry/rect_conversions.h" + +-// Function availability can be tested by checking whether its address is not +-// nullptr. +-#define WEAK_ATK_FN(x) extern "C" __attribute__((weak)) decltype(x) x +- +-// TODO(https://crbug.com/40549424): This may be removed when support for +-// Ubuntu 18.04 is dropped. +-WEAK_ATK_FN(atk_component_scroll_to_point); +-WEAK_ATK_FN(atk_text_scroll_substring_to_point); ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 10, 0) ++#define ATK_210 ++#endif ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 12, 0) ++#define ATK_212 ++#endif ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 16, 0) ++#define ATK_216 ++#endif ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 26, 0) ++#define ATK_226 ++#endif ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 30, 0) ++#define ATK_230 ++#endif ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 32, 0) ++#define ATK_232 ++#endif ++ ++#if defined(ATK_CHECK_VERSION) && ATK_CHECK_VERSION(2, 34, 0) ++#define ATK_234 ++#endif + + namespace ui { + +@@ -146,11 +165,29 @@ AtkObject* g_active_top_level_frame = nu + + AtkObject* g_active_views_dialog = nullptr; + ++#if defined(ATK_216) + constexpr AtkRole kStaticRole = ATK_ROLE_STATIC; + constexpr AtkRole kSubscriptRole = ATK_ROLE_SUBSCRIPT; + constexpr AtkRole kSuperscriptRole = ATK_ROLE_SUPERSCRIPT; ++#else ++constexpr AtkRole kStaticRole = ATK_ROLE_TEXT; ++constexpr AtkRole kSubscriptRole = ATK_ROLE_TEXT; ++constexpr AtkRole kSuperscriptRole = ATK_ROLE_TEXT; ++#endif + ++#if defined(ATK_226) + constexpr AtkRole kAtkFootnoteRole = ATK_ROLE_FOOTNOTE; ++#else ++constexpr AtkRole kAtkFootnoteRole = ATK_ROLE_LIST_ITEM; ++#endif ++ ++#if defined(ATK_234) ++constexpr AtkRole kAtkRoleContentDeletion = ATK_ROLE_CONTENT_DELETION; ++constexpr AtkRole kAtkRoleContentInsertion = ATK_ROLE_CONTENT_INSERTION; ++#else ++constexpr AtkRole kAtkRoleContentDeletion = ATK_ROLE_SECTION; ++constexpr AtkRole kAtkRoleContentInsertion = ATK_ROLE_SECTION; ++#endif + + using GetTypeFunc = GType (*)(); + using GetColumnHeaderCellsFunc = GPtrArray* (*)(AtkTableCell* cell); +@@ -161,6 +198,11 @@ using GetRowColumnSpanFunc = bool (*)(At + gint* row_span, + gint* col_span); + ++static GetTypeFunc g_atk_table_cell_get_type; ++static GetColumnHeaderCellsFunc g_atk_table_cell_get_column_header_cells; ++static GetRowHeaderCellsFunc g_atk_table_cell_get_row_header_cells; ++static GetRowColumnSpanFunc g_atk_table_cell_get_row_column_span; ++ + // The ATK API often requires pointers to be used as out arguments, while + // allowing for those pointers to be null if the caller is not interested in + // the value. This function is a simpler helper to avoid continually checking +@@ -170,35 +212,17 @@ void SetIntPointerValueIfNotNull(int* po + *pointer = value; + } + +-// TODO(https://crbug.com/40549424): This may be removed when support for +-// Ubuntu 18.04 is dropped. ++#if defined(ATK_230) + bool SupportsAtkComponentScrollingInterface() { +- return atk_component_scroll_to_point; ++ return dlsym(RTLD_DEFAULT, "atk_component_scroll_to_point"); + } ++#endif + +-// TODO(https://crbug.com/40549424): This may be removed when support for +-// Ubuntu 18.04 is dropped. ++#if defined(ATK_232) + bool SupportsAtkTextScrollingInterface() { +- return atk_text_scroll_substring_to_point; +-} +- +-// TODO(https://crbug.com/40549424): This may be removed when support for +-// Ubuntu 18.04 is dropped. +-AtkRole GetAtkRoleContentDeletion() { +- base::Version atk_version(atk_get_version()); +- return atk_version.CompareTo(base::Version("2.34.0")) >= 0 +- ? ATK_ROLE_CONTENT_DELETION +- : ATK_ROLE_SECTION; +-} +- +-// TODO(https://crbug.com/40549424): This may be removed when support for +-// Ubuntu 18.04 is dropped. +-AtkRole GetAtkRoleContentInsertion() { +- base::Version atk_version(atk_get_version()); +- return atk_version.CompareTo(base::Version("2.34.0")) >= 0 +- ? ATK_ROLE_CONTENT_INSERTION +- : ATK_ROLE_SECTION; ++ return dlsym(RTLD_DEFAULT, "atk_text_scroll_substring_to_point"); + } ++#endif + + AtkObject* FindAtkObjectParentFrame(AtkObject* atk_object) { + AXPlatformNodeAuraLinux* node = +@@ -297,10 +321,12 @@ AXCoordinateSystem AtkCoordTypeToAXCoord + return AXCoordinateSystem::kScreenDIPs; + case ATK_XY_WINDOW: + return AXCoordinateSystem::kRootFrame; ++#if defined(ATK_230) + case ATK_XY_PARENT: + // AXCoordinateSystem does not support parent coordinates. + NOTIMPLEMENTED(); + return AXCoordinateSystem::kFrame; ++#endif + default: + return AXCoordinateSystem::kScreenDIPs; + } +@@ -513,6 +539,7 @@ gboolean GrabFocus(AtkComponent* atk_com + return obj->GrabFocus(); + } + ++#if defined(ATK_230) + gboolean ScrollTo(AtkComponent* atk_component, AtkScrollType scroll_type) { + g_return_val_if_fail(ATK_IS_COMPONENT(atk_component), FALSE); + +@@ -539,6 +566,7 @@ gboolean ScrollToPoint(AtkComponent* atk + obj->ScrollToPoint(atk_coord_type, x, y); + return TRUE; + } ++#endif + + void Init(AtkComponentIface* iface) { + iface->get_extents = GetExtents; +@@ -546,10 +574,12 @@ void Init(AtkComponentIface* iface) { + iface->get_size = GetSize; + iface->ref_accessible_at_point = RefAccesibleAtPoint; + iface->grab_focus = GrabFocus; ++#if defined(ATK_230) + if (SupportsAtkComponentScrollingInterface()) { + iface->scroll_to = ScrollTo; + iface->scroll_to_point = ScrollToPoint; + } ++#endif + } + + const GInterfaceInfo Info = {reinterpret_cast(Init), +@@ -1232,6 +1262,7 @@ gboolean AddSelection(AtkText* atk_text, + return SetSelection(atk_text, 0, start_offset, end_offset); + } + ++#if defined(ATK_210) + char* GetStringAtOffset(AtkText* atk_text, + int offset, + AtkTextGranularity atk_granularity, +@@ -1246,7 +1277,9 @@ char* GetStringAtOffset(AtkText* atk_tex + return GetTextWithBoundaryType(atk_text, offset, boundary, start_offset, + end_offset); + } ++#endif + ++#if defined(ATK_230) + gfx::Rect GetUnclippedParentHypertextRangeBoundsRect( + AXPlatformNodeDelegate* ax_platform_node_delegate, + const int start_offset, +@@ -1270,6 +1303,7 @@ gfx::Rect GetUnclippedParentHypertextRan + AXClippingBehavior::kClipped) + .OffsetFromOrigin(); + } ++#endif + + void GetCharacterExtents(AtkText* atk_text, + int offset, +@@ -1285,10 +1319,12 @@ void GetCharacterExtents(AtkText* atk_te + AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(atk_text)); + if (obj) { + switch (coordinate_type) { ++#if defined(ATK_230) + case ATK_XY_PARENT: + rect = GetUnclippedParentHypertextRangeBoundsRect(obj->GetDelegate(), + offset, offset + 1); + break; ++#endif + default: + rect = obj->GetDelegate()->GetHypertextRangeBoundsRect( + obj->UnicodeToUTF16OffsetInText(offset), +@@ -1324,10 +1360,12 @@ void GetRangeExtents(AtkText* atk_text, + AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(atk_text)); + if (obj) { + switch (coordinate_type) { ++#if defined(ATK_230) + case ATK_XY_PARENT: + rect = GetUnclippedParentHypertextRangeBoundsRect( + obj->GetDelegate(), start_offset, end_offset); + break; ++#endif + default: + rect = obj->GetDelegate()->GetHypertextRangeBoundsRect( + obj->UnicodeToUTF16OffsetInText(start_offset), +@@ -1377,6 +1415,7 @@ AtkAttributeSet* GetDefaultAttributes(At + return ToAtkAttributeSet(obj->GetDefaultTextAttributes()); + } + ++#if defined(ATK_232) + gboolean ScrollSubstringTo(AtkText* atk_text, + gint start_offset, + gint end_offset, +@@ -1407,6 +1446,7 @@ gboolean ScrollSubstringToPoint(AtkText* + return obj->ScrollSubstringToPoint(start_offset, end_offset, atk_coord_type, + x, y); + } ++#endif // ATK_232 + + void Init(AtkTextIface* iface) { + iface->get_text = GetText; +@@ -1429,12 +1469,16 @@ void Init(AtkTextIface* iface) { + iface->get_run_attributes = GetRunAttributes; + iface->get_default_attributes = GetDefaultAttributes; + ++#if defined(ATK_210) + iface->get_string_at_offset = GetStringAtOffset; ++#endif + ++#if defined(ATK_232) + if (SupportsAtkTextScrollingInterface()) { + iface->scroll_substring_to = ScrollSubstringTo; + iface->scroll_substring_to_point = ScrollSubstringToPoint; + } ++#endif + } + + const GInterfaceInfo Info = {reinterpret_cast(Init), +@@ -1837,11 +1881,15 @@ const GInterfaceInfo Info = {reinterpret + + } // namespace atk_table + ++// The ATK table cell interface was added in ATK 2.12. ++#if defined(ATK_212) ++ + namespace atk_table_cell { + + gint GetColumnSpan(AtkTableCell* cell) { ++ DCHECK(g_atk_table_cell_get_type); + g_return_val_if_fail( +- G_TYPE_CHECK_INSTANCE_TYPE((cell), atk_table_cell_get_type()), 0); ++ G_TYPE_CHECK_INSTANCE_TYPE((cell), AtkTableCellInterface::GetType()), 0); + + if (const AXPlatformNodeBase* obj = + AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { +@@ -1853,8 +1901,10 @@ gint GetColumnSpan(AtkTableCell* cell) { + } + + GPtrArray* GetColumnHeaderCells(AtkTableCell* cell) { ++ DCHECK(g_atk_table_cell_get_type); + g_return_val_if_fail( +- G_TYPE_CHECK_INSTANCE_TYPE((cell), atk_table_cell_get_type()), nullptr); ++ G_TYPE_CHECK_INSTANCE_TYPE((cell), AtkTableCellInterface::GetType()), ++ nullptr); + + GPtrArray* array = g_ptr_array_new_with_free_func(g_object_unref); + +@@ -1888,8 +1938,10 @@ GPtrArray* GetColumnHeaderCells(AtkTable + } + + gboolean GetCellPosition(AtkTableCell* cell, gint* row, gint* column) { ++ DCHECK(g_atk_table_cell_get_type); + g_return_val_if_fail( +- G_TYPE_CHECK_INSTANCE_TYPE((cell), atk_table_cell_get_type()), FALSE); ++ G_TYPE_CHECK_INSTANCE_TYPE((cell), AtkTableCellInterface::GetType()), ++ FALSE); + + if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { + std::optional row_index = obj->GetTableRow(); +@@ -1906,8 +1958,9 @@ gboolean GetCellPosition(AtkTableCell* c + } + + gint GetRowSpan(AtkTableCell* cell) { ++ DCHECK(g_atk_table_cell_get_type); + g_return_val_if_fail( +- G_TYPE_CHECK_INSTANCE_TYPE((cell), atk_table_cell_get_type()), 0); ++ G_TYPE_CHECK_INSTANCE_TYPE((cell), AtkTableCellInterface::GetType()), 0); + + if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { + // If the object is not a cell, we return 0. +@@ -1918,8 +1971,10 @@ gint GetRowSpan(AtkTableCell* cell) { + } + + GPtrArray* GetRowHeaderCells(AtkTableCell* cell) { ++ DCHECK(g_atk_table_cell_get_type); + g_return_val_if_fail( +- G_TYPE_CHECK_INSTANCE_TYPE((cell), atk_table_cell_get_type()), nullptr); ++ G_TYPE_CHECK_INSTANCE_TYPE((cell), AtkTableCellInterface::GetType()), ++ nullptr); + + GPtrArray* array = g_ptr_array_new_with_free_func(g_object_unref); + +@@ -1953,8 +2008,10 @@ GPtrArray* GetRowHeaderCells(AtkTableCel + } + + AtkObject* GetTable(AtkTableCell* cell) { ++ DCHECK(g_atk_table_cell_get_type); + g_return_val_if_fail( +- G_TYPE_CHECK_INSTANCE_TYPE((cell), atk_table_cell_get_type()), nullptr); ++ G_TYPE_CHECK_INSTANCE_TYPE((cell), AtkTableCellInterface::GetType()), ++ nullptr); + + if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { + if (auto* table = obj->GetTable()) +@@ -1980,6 +2037,8 @@ const GInterfaceInfo Info = {reinterpret + + } // namespace atk_table_cell + ++#endif // ATK_212 ++ + namespace atk_object { + + gpointer kAXPlatformNodeAuraLinuxParentClass = nullptr; +@@ -2246,6 +2305,50 @@ void Detach(AXPlatformNodeAuraLinuxObjec + + } // namespace + ++// static ++NO_SANITIZE("cfi-icall") ++GType AtkTableCellInterface::GetType() { ++ return g_atk_table_cell_get_type(); ++} ++ ++// static ++NO_SANITIZE("cfi-icall") ++GPtrArray* AtkTableCellInterface::GetColumnHeaderCells(AtkTableCell* cell) { ++ return g_atk_table_cell_get_column_header_cells(cell); ++} ++ ++// static ++NO_SANITIZE("cfi-icall") ++GPtrArray* AtkTableCellInterface::GetRowHeaderCells(AtkTableCell* cell) { ++ return g_atk_table_cell_get_row_header_cells(cell); ++} ++ ++// static ++NO_SANITIZE("cfi-icall") ++bool AtkTableCellInterface::GetRowColumnSpan(AtkTableCell* cell, ++ gint* row, ++ gint* column, ++ gint* row_span, ++ gint* col_span) { ++ return g_atk_table_cell_get_row_column_span(cell, row, column, row_span, ++ col_span); ++} ++ ++// static ++bool AtkTableCellInterface::Exists() { ++ g_atk_table_cell_get_type = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_table_cell_get_type")); ++ g_atk_table_cell_get_column_header_cells = ++ reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_table_cell_get_column_header_cells")); ++ g_atk_table_cell_get_row_header_cells = ++ reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_table_cell_get_row_header_cells")); ++ g_atk_table_cell_get_row_column_span = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_table_cell_get_row_column_span")); ++ return *g_atk_table_cell_get_type; ++} ++ + void AXPlatformNodeAuraLinux::EnsureGTypeInit() { + #if !GLIB_CHECK_VERSION(2, 36, 0) + static bool first_time = true; +@@ -2353,8 +2456,11 @@ GType AXPlatformNodeAuraLinux::GetAccess + g_type_add_interface_static(type, ATK_TYPE_TABLE, &atk_table::Info); + + if (interface_mask_.Implements(ImplementedAtkInterfaces::Value::kTableCell)) { +- g_type_add_interface_static(type, atk_table_cell_get_type(), +- &atk_table_cell::Info); ++ // Run-time check to ensure AtkTableCell is supported (requires ATK 2.12). ++ if (AtkTableCellInterface::Exists()) { ++ g_type_add_interface_static(type, AtkTableCellInterface::GetType(), ++ &atk_table_cell::Info); ++ } + } + + return type; +@@ -2584,9 +2690,9 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkR + case ax::mojom::Role::kComplementary: + return ATK_ROLE_LANDMARK; + case ax::mojom::Role::kContentDeletion: +- return GetAtkRoleContentDeletion(); ++ return kAtkRoleContentDeletion; + case ax::mojom::Role::kContentInsertion: +- return GetAtkRoleContentInsertion(); ++ return kAtkRoleContentInsertion; + case ax::mojom::Role::kContentInfo: + case ax::mojom::Role::kFooter: + return ATK_ROLE_LANDMARK; +@@ -3020,12 +3126,14 @@ void AXPlatformNodeAuraLinux::GetAtkStat + static_cast(ax::mojom::AriaCurrentState::kFalse)) { + atk_state_set_add_state(atk_state_set, ATK_STATE_ACTIVE); + } ++#if defined(ATK_216) + // Runtime checks in case we were compiled with a newer version of ATK. + if (IsPlatformCheckable() && PlatformSupportsState(ATK_STATE_CHECKABLE)) + atk_state_set_add_state(atk_state_set, ATK_STATE_CHECKABLE); + if (HasIntAttribute(ax::mojom::IntAttribute::kHasPopup) && + PlatformSupportsState(ATK_STATE_HAS_POPUP)) + atk_state_set_add_state(atk_state_set, ATK_STATE_HAS_POPUP); ++#endif + if (GetBoolAttribute(ax::mojom::BoolAttribute::kBusy)) + atk_state_set_add_state(atk_state_set, ATK_STATE_BUSY); + if (GetBoolAttribute(ax::mojom::BoolAttribute::kModal)) +@@ -3064,9 +3172,11 @@ void AXPlatformNodeAuraLinux::GetAtkStat + if (GetData().GetRestriction() != ax::mojom::Restriction::kDisabled) { + if (GetDelegate()->IsReadOnlySupported() && + GetDelegate()->IsReadOnlyOrDisabled()) { ++#if defined(ATK_216) + // Runtime check in case we were compiled with a newer version of ATK. + if (PlatformSupportsState(ATK_STATE_READ_ONLY)) + atk_state_set_add_state(atk_state_set, ATK_STATE_READ_ONLY); ++#endif + } else { + atk_state_set_add_state(atk_state_set, ATK_STATE_ENABLED); + atk_state_set_add_state(atk_state_set, ATK_STATE_SENSITIVE); +@@ -3100,12 +3210,16 @@ struct AtkIntListRelation { + static AtkIntListRelation kIntListRelations[] = { + {ax::mojom::IntListAttribute::kControlsIds, ATK_RELATION_CONTROLLER_FOR, + ATK_RELATION_CONTROLLED_BY}, ++#if defined(ATK_226) + {ax::mojom::IntListAttribute::kDetailsIds, ATK_RELATION_DETAILS, + ATK_RELATION_DETAILS_FOR}, ++#endif + {ax::mojom::IntListAttribute::kDescribedbyIds, ATK_RELATION_DESCRIBED_BY, + ATK_RELATION_DESCRIPTION_FOR}, ++#if defined(ATK_226) + {ax::mojom::IntListAttribute::kErrormessageIds, ATK_RELATION_ERROR_MESSAGE, + ATK_RELATION_ERROR_FOR}, ++#endif + {ax::mojom::IntListAttribute::kFlowtoIds, ATK_RELATION_FLOWS_TO, + ATK_RELATION_FLOWS_FROM}, + {ax::mojom::IntListAttribute::kLabelledbyIds, ATK_RELATION_LABELLED_BY, +@@ -3884,6 +3998,7 @@ void AXPlatformNodeAuraLinux::OnReadonly + if (!obj) + return; + ++#if defined(ATK_216) + // Runtime check in case we were compiled with a newer version of ATK. + if (!PlatformSupportsState(ATK_STATE_READ_ONLY)) + return; +@@ -3891,6 +4006,7 @@ void AXPlatformNodeAuraLinux::OnReadonly + atk_object_notify_state_change( + obj, ATK_STATE_READ_ONLY, + GetData().GetRestriction() == ax::mojom::Restriction::kReadOnly); ++#endif + } + + void AXPlatformNodeAuraLinux::OnInvalidStatusChanged() { +@@ -4217,11 +4333,13 @@ gfx::Rect AXPlatformNodeAuraLinux::GetEx + extents.Offset(window_origin); + break; + } ++#if defined(ATK_230) + case ATK_XY_PARENT: { + gfx::Vector2d parent_origin = -GetParentOriginInScreenCoordinates(); + extents.Offset(parent_origin); + break; + } ++#endif + } + + return extents; +@@ -4651,6 +4769,7 @@ bool AXPlatformNodeAuraLinux::IsInLiveRe + return HasStringAttribute(ax::mojom::StringAttribute::kContainerLiveStatus); + } + ++#if defined(ATK_230) + void AXPlatformNodeAuraLinux::ScrollToPoint(AtkCoordType atk_coord_type, + int x, + int y) { +@@ -4723,7 +4842,9 @@ void AXPlatformNodeAuraLinux::ScrollNode + rect -= rect.OffsetFromOrigin(); + ScrollNodeRectIntoView(rect, atk_scroll_type); + } ++#endif // defined(ATK_230) + ++#if defined(ATK_232) + std::optional + AXPlatformNodeAuraLinux::GetUnclippedHypertextRangeBoundsRect(int start_offset, + int end_offset) { +@@ -4782,6 +4903,7 @@ bool AXPlatformNodeAuraLinux::ScrollSubs + + return true; + } ++#endif // defined(ATK_232) + + void AXPlatformNodeAuraLinux::ComputeStylesIfNeeded() { + if (!offset_to_text_attributes_.empty()) +@@ -4964,8 +5086,10 @@ gfx::Point AXPlatformNodeAuraLinux::Conv + switch (atk_coord_type) { + case ATK_XY_WINDOW: + return point + GetParentFrameOriginInScreenCoordinates(); ++#if defined(ATK_230) + case ATK_XY_PARENT: + return point + GetParentOriginInScreenCoordinates(); ++#endif + case ATK_XY_SCREEN: + default: + return point; +diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h.me chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h +--- chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h.me 2024-09-18 19:26:54.167348688 +0200 ++++ chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h 2024-09-18 19:28:06.220700493 +0200 +@@ -52,6 +52,31 @@ struct FindInPageResultInfo { + } + }; + ++// AtkTableCell was introduced in ATK 2.12. Ubuntu Trusty has ATK 2.10. ++// Compile-time checks are in place for ATK versions that are older than 2.12. ++// However, we also need runtime checks in case the version we are building ++// against is newer than the runtime version. To prevent a runtime error, we ++// check that we have a version of ATK that supports AtkTableCell. If we do, ++// we dynamically load the symbol; if we don't, the interface is absent from ++// the accessible object and its methods will not be exposed or callable. ++// The definitions below ensure we have no missing symbols. Note that in ++// environments where we have ATK > 2.12, the definitions of AtkTableCell and ++// AtkTableCellIface below are overridden by the runtime version. ++// TODO(accessibility) Remove AtkTableCellInterface when 2.12 is the minimum ++// supported version. ++struct COMPONENT_EXPORT(AX_PLATFORM) AtkTableCellInterface { ++ typedef struct _AtkTableCell AtkTableCell; ++ static GType GetType(); ++ static GPtrArray* GetColumnHeaderCells(AtkTableCell* cell); ++ static GPtrArray* GetRowHeaderCells(AtkTableCell* cell); ++ static bool GetRowColumnSpan(AtkTableCell* cell, ++ gint* row, ++ gint* column, ++ gint* row_span, ++ gint* col_span); ++ static bool Exists(); ++}; ++ + // This class with an enum is used to generate a bitmask which tracks the ATK + // interfaces that an AXPlatformNodeAuraLinux's ATKObject implements. + class ImplementedAtkInterfaces { +diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.me chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc +--- chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.me 2024-09-18 19:27:10.728659400 +0200 ++++ chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc 2024-09-18 19:28:06.221700512 +0200 +@@ -8,6 +8,7 @@ + #endif + + #include ++#include + #include + #include + +@@ -884,6 +885,17 @@ typedef bool (*ScrollToPointFunc)(AtkCom + typedef bool (*ScrollToFunc)(AtkComponent* component, AtkScrollType type); + + TEST_F(AXPlatformNodeAuraLinuxTest, AtkComponentScrollToPoint) { ++ // There's a chance we may be compiled with a newer version of ATK and then ++ // run with an older one, so we need to do a runtime check for this method ++ // that is available in ATK 2.30 instead of linking directly. ++ ScrollToPointFunc scroll_to_point = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_component_scroll_to_point")); ++ if (!scroll_to_point) { ++ LOG(WARNING) << "Skipping AtkComponentScrollToPoint" ++ " because ATK version < 2.30 detected."; ++ return; ++ } ++ + AXNodeData root; + root.id = 1; + root.role = ax::mojom::Role::kRootWebArea; +@@ -911,8 +923,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC + EXPECT_EQ(10, width); + EXPECT_EQ(10, height); + +- atk_component_scroll_to_point(ATK_COMPONENT(child_obj), ATK_XY_SCREEN, 600, +- 650); ++ scroll_to_point(ATK_COMPONENT(child_obj), ATK_XY_SCREEN, 600, 650); + atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, + &height, ATK_XY_SCREEN); + EXPECT_EQ(610, x_left); +@@ -920,8 +931,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC + EXPECT_EQ(10, width); + EXPECT_EQ(10, height); + +- atk_component_scroll_to_point(ATK_COMPONENT(child_obj), ATK_XY_PARENT, 10, +- 10); ++ scroll_to_point(ATK_COMPONENT(child_obj), ATK_XY_PARENT, 10, 10); + atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, + &height, ATK_XY_SCREEN); + // The test wrapper scrolls every element when scrolling, so this should be +@@ -938,6 +948,17 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC + } + + TEST_F(AXPlatformNodeAuraLinuxTest, AtkComponentScrollTo) { ++ // There's a chance we may be compiled with a newer version of ATK and then ++ // run with an older one, so we need to do a runtime check for this method ++ // that is available in ATK 2.30 instead of linking directly. ++ ScrollToFunc scroll_to = reinterpret_cast( ++ dlsym(RTLD_DEFAULT, "atk_component_scroll_to")); ++ if (!scroll_to) { ++ LOG(WARNING) << "Skipping AtkComponentScrollTo" ++ " because ATK version < 2.30 detected."; ++ return; ++ } ++ + AXNodeData root; + root.id = 1; + root.role = ax::mojom::Role::kRootWebArea; +@@ -965,7 +986,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC + EXPECT_EQ(10, width); + EXPECT_EQ(10, height); + +- atk_component_scroll_to(ATK_COMPONENT(child_obj), ATK_SCROLL_ANYWHERE); ++ scroll_to(ATK_COMPONENT(child_obj), ATK_SCROLL_ANYWHERE); + atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, + &height, ATK_XY_SCREEN); + EXPECT_EQ(0, x_left); +diff -up chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.me chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc +--- chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.me 2024-09-18 19:27:20.965851455 +0200 ++++ chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc 2024-09-18 19:28:06.221700512 +0200 +@@ -474,18 +474,34 @@ void AXTreeFormatterAuraLinux::AddTableC + int row = 0, col = 0, row_span = 0, col_span = 0; + int n_row_headers = 0, n_column_headers = 0; + +- AtkTableCell* cell = G_TYPE_CHECK_INSTANCE_CAST( +- (atk_object), atk_table_cell_get_type(), AtkTableCell); ++ // Properties obtained via AtkTableCell, if possible. If we do not have at ++ // least ATK 2.12, use the same logic in our AtkTableCell implementation so ++ // that tests can still be run. ++ if (AtkTableCellInterface::Exists()) { ++ AtkTableCell* cell = G_TYPE_CHECK_INSTANCE_CAST( ++ (atk_object), AtkTableCellInterface::GetType(), AtkTableCell); + +- atk_table_cell_get_row_column_span(cell, &row, &col, &row_span, &col_span); ++ AtkTableCellInterface::GetRowColumnSpan(cell, &row, &col, &row_span, ++ &col_span); + +- GPtrArray* column_headers = atk_table_cell_get_column_header_cells(cell); +- n_column_headers = column_headers->len; +- g_ptr_array_unref(column_headers); ++ GPtrArray* column_headers = ++ AtkTableCellInterface::GetColumnHeaderCells(cell); ++ n_column_headers = column_headers->len; ++ g_ptr_array_unref(column_headers); + +- GPtrArray* row_headers = atk_table_cell_get_row_header_cells(cell); +- n_row_headers = row_headers->len; +- g_ptr_array_unref(row_headers); ++ GPtrArray* row_headers = AtkTableCellInterface::GetRowHeaderCells(cell); ++ n_row_headers = row_headers->len; ++ g_ptr_array_unref(row_headers); ++ } else { ++ row = node->GetTableRow().value_or(-1); ++ col = node->GetTableColumn().value_or(-1); ++ row_span = node->GetTableRowSpan().value_or(0); ++ col_span = node->GetTableColumnSpan().value_or(0); ++ if (role == ATK_ROLE_TABLE_CELL) { ++ n_column_headers = node->GetDelegate()->GetColHeaderNodeIds(col).size(); ++ n_row_headers = node->GetDelegate()->GetRowHeaderNodeIds(row).size(); ++ } ++ } + + std::vector cell_info; + cell_info.push_back(base::StringPrintf("row=%i", row)); diff --git a/chromium.spec b/chromium.spec index 0c399a7..7e0661a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -39,7 +39,7 @@ %global build_chromedriver 1 # enable|disable headless client build -%global build_headless 1 +%global build_headless 0 %ifarch ppc64le %global build_headless 0 %endif @@ -362,6 +362,9 @@ Patch150: chromium-124-qt6.patch Patch305: chromium-124-el8-arm64-memory_tagging.patch Patch306: chromium-127-el8-ifunc-header.patch +# workaround for build error due to old atk version on el8 +Patch307: chromium-129-el8-atk-compiler-error.patch + # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -1084,6 +1087,7 @@ Qt6 UI for chromium. %patch -P305 -p1 -b .el8-memory_tagging %patch -P306 -p1 -b .el8-ifunc-header %endif +%patch -P307 -p1 -b .el8-atk-compiler-error %endif %patch -P312 -p1 -b .fstack-protector-strong From 89b96d8a84095b3aa0ad237dc06b06b9db7d1288 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 18 Sep 2024 20:50:54 +0200 Subject: [PATCH 049/244] fixed typo (enable headless_shell) --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 7e0661a..3430d49 100644 --- a/chromium.spec +++ b/chromium.spec @@ -39,7 +39,7 @@ %global build_chromedriver 1 # enable|disable headless client build -%global build_headless 0 +%global build_headless 1 %ifarch ppc64le %global build_headless 0 %endif From cb09b6d3baf4f35870424c4a255915886358cbeb Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 19 Sep 2024 11:32:25 +0200 Subject: [PATCH 050/244] clean up --- ...103.0.5060.53-update-rjsmin-to-1.2.0.patch | 1700 ----------------- ...-java-only-allowed-in-android-builds.patch | 13 - chromium.spec | 72 +- 3 files changed, 4 insertions(+), 1781 deletions(-) delete mode 100644 chromium-103.0.5060.53-update-rjsmin-to-1.2.0.patch delete mode 100644 chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch diff --git a/chromium-103.0.5060.53-update-rjsmin-to-1.2.0.patch b/chromium-103.0.5060.53-update-rjsmin-to-1.2.0.patch deleted file mode 100644 index 29a5d9c..0000000 --- a/chromium-103.0.5060.53-update-rjsmin-to-1.2.0.patch +++ /dev/null @@ -1,1700 +0,0 @@ -diff -up chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.c.12 chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.c ---- chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.c.12 2022-06-28 12:50:10.167324583 +0000 -+++ chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.c 2021-11-14 19:50:55.000000000 +0000 -@@ -1,5 +1,5 @@ - /* -- * Copyright 2011 - 2015 -+ * Copyright 2011 - 2021 - * Andr\xe9 Malo or his licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); -@@ -18,21 +18,21 @@ - #include "cext.h" - EXT_INIT_FUNC; - --#define RJSMIN_DULL_BIT (1 << 0) --#define RJSMIN_PRE_REGEX_BIT (1 << 1) --#define RJSMIN_REGEX_DULL_BIT (1 << 2) --#define RJSMIN_REGEX_CC_DULL_BIT (1 << 3) --#define RJSMIN_ID_LIT_BIT (1 << 4) --#define RJSMIN_ID_LIT_O_BIT (1 << 5) --#define RJSMIN_ID_LIT_C_BIT (1 << 6) --#define RJSMIN_STRING_DULL_BIT (1 << 7) --#define RJSMIN_SPACE_BIT (1 << 8) --#define RJSMIN_POST_REGEX_OFF_BIT (1 << 9) -+#define RJSMIN_DULL_BIT (1 << 0) -+#define RJSMIN_PRE_REGEX_BIT (1 << 1) -+#define RJSMIN_REGEX_DULL_BIT (1 << 2) -+#define RJSMIN_REGEX_CC_DULL_BIT (1 << 3) -+#define RJSMIN_ID_LIT_BIT (1 << 4) -+#define RJSMIN_ID_LIT_O_BIT (1 << 5) -+#define RJSMIN_ID_LIT_C_BIT (1 << 6) -+#define RJSMIN_STRING_DULL_BIT (1 << 7) -+#define RJSMIN_SPACE_BIT (1 << 8) -+#define RJSMIN_POST_REGEX_OFF_BIT (1 << 9) -+#define RJSMIN_A_Z_BIT (1 << 10) - --#ifdef EXT3 --typedef Py_UNICODE rchar; --#else - typedef unsigned char rchar; -+#ifdef U -+#undef U - #endif - #define U(c) ((rchar)(c)) - -@@ -66,66 +66,120 @@ typedef unsigned char rchar; - #define RJSMIN_IS_PRE_REGEX_1(c) ((U(c) <= 127) && \ - (rjsmin_charmask[U(c) & 0x7F] & RJSMIN_PRE_REGEX_BIT)) - -+#define RJSMIN_IS_A_Z(c) ((U(c) <= 127) && \ -+ (rjsmin_charmask[U(c) & 0x7F] & RJSMIN_A_Z_BIT)) -+ - - static const unsigned short rjsmin_charmask[128] = { -- 396, 396, 396, 396, 396, 396, 396, 396, -- 396, 396, 2, 396, 396, 2, 396, 396, -- 396, 396, 396, 396, 396, 396, 396, 396, -- 396, 396, 396, 396, 396, 396, 396, 396, -- 396, 687, 588, 653, 765, 653, 143, 588, -- 687, 205, 653, 237, 143, 237, 141, 648, -- 765, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 143, 143, 653, 143, 653, 143, -- 653, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 765, 683, 513, 197, 653, 765, -- 653, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 765, 765, 765, 765, 765, 765, -- 765, 765, 765, 687, 143, 207, 653, 765 -+ 396, 396, 396, 396, 396, 396, 396, 396, -+ 396, 396, 2, 396, 396, 2, 396, 396, -+ 396, 396, 396, 396, 396, 396, 396, 396, -+ 396, 396, 396, 396, 396, 396, 396, 396, -+ 396, 687, 588, 653, 765, 653, 143, 588, -+ 687, 205, 655, 239, 143, 239, 141, 648, -+ 765, 765, 765, 765, 765, 765, 765, 765, -+ 765, 765, 143, 143, 653, 143, 653, 143, -+ 653, 765, 765, 765, 765, 765, 765, 765, -+ 765, 765, 765, 765, 765, 765, 765, 765, -+ 765, 765, 765, 765, 765, 765, 765, 765, -+ 765, 765, 765, 683, 513, 197, 653, 765, -+ 588, 1789, 1789, 1789, 1789, 1789, 1789, 1789, -+ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, -+ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, -+ 1789, 1789, 1789, 687, 143, 207, 653, 765 - }; - -+ - static Py_ssize_t - rjsmin(const rchar *source, rchar *target, Py_ssize_t length, - int keep_bang_comments) - { -- const rchar *reset, *pcreset = NULL, *pctoken = NULL, *xtarget, -- *sentinel = source + length; -- rchar *tstart = target; -- int post_regex = 0; -- rchar c, quote, spaced = U(' '); -+ const rchar -+ *sentinel = source + length, /* never hit this pointer (source buf) */ -+ *reset, /* reset pointer (source buf) */ -+ *pcreset = NULL, /* pre-comment reset pointer (source buf) */ -+ *pctoken = NULL, /* pre-comment token pointer (target buf) -+ * Pointing to before the last kept comment, if any */ -+ *rsreset = NULL, /* regex-with-method reset pointer (source buf) */ -+ *xtarget; /* pre-regex-2 target pointer */ -+ -+ rchar *tstart = target, /* Target start pointer for reference */ -+ *rtreset = NULL; /* regex-with-method reset pointer (target buf) */ -+ -+ int rsdot, /* seen dot after regex-with-method pattern? */ -+ post_regex = 0; -+ rchar c, quote, -+ spaced = U(' '); /* the last seen kind of space (nl taking prio), -+ * init with ' ' */ - -+ /* main loop */ - while (source < sentinel) { - c = *source++; -+ - if (RJSMIN_IS_DULL(c)) { - if (post_regex) post_regex = 0; - if (pctoken) pctoken = NULL; - if (spaced == U('\n')) spaced = U(' '); -+ if (rsreset) { -+ /* both a-z and . are covered by "dull" */ -+ if (!rsdot) { -+ if (c != U('.')) { -+ /* reset regex-with-method to the starting slash */ -+ source = rsreset; -+ target = rtreset; -+ rsreset = NULL; -+ continue; /* main loop */ -+ } -+ /* Found a dot after possible regex, looking for a-z now */ -+ rsdot = 1; -+ } -+ else if (!RJSMIN_IS_A_Z(c)) { -+ /* reset regex-with-method to the starting slash */ -+ source = rsreset; -+ target = rtreset; -+ rsreset = NULL; -+ continue; /* main loop */ -+ } -+ else { -+ /* Successfull finish the regex-with-method match */ -+ rsreset = NULL; -+ } -+ } - - *target++ = c; -- continue; -+ continue; /* main loop */ - } -+ - switch (c) { - - /* String */ -- case U('\''): case U('"'): -+ case U('\''): case U('"'): case U('`'): - if (post_regex) post_regex = 0; - if (pctoken) pctoken = NULL; - if (spaced == U('\n')) spaced = U(' '); -+ if (rsreset) { -+ /* reset regex-with-method to the starting slash */ -+ source = rsreset; -+ target = rtreset; -+ rsreset = NULL; -+ continue; /* main loop */ -+ } - - reset = source; - *target++ = quote = c; -+ -+ /* string loop */ - while (source < sentinel) { - c = *source++; - *target++ = c; - if (RJSMIN_IS_STRING_DULL(c)) -- continue; -+ continue; /* string loop */ -+ - switch (c) { -- case U('\''): case U('"'): -+ case U('\''): case U('"'): case U('`'): - if (c == quote) -- goto cont; -- continue; -+ goto cont; /* main loop */ -+ continue; /* string loop */ - case U('\\'): - if (source < sentinel) { - c = *source++; -@@ -134,13 +188,18 @@ rjsmin(const rchar *source, rchar *targe - && *source == U('\n')) - *target++ = *source++; - } -- continue; -+ continue; /* string loop */ -+ case U('\r'): case U('\n'): -+ if (quote != U('`')) -+ break; /* string reset */ -+ continue; /* string loop */ - } -- break; -+ break; /* string reset */ - } -+ /* string reset */ - target -= source - reset; - source = reset; -- continue; -+ continue; /* main loop */ - - /* Comment or Regex or something else entirely */ - case U('/'): -@@ -148,6 +207,13 @@ rjsmin(const rchar *source, rchar *targe - if (post_regex) post_regex = 0; - if (pctoken) pctoken = NULL; - if (spaced == U('\n')) spaced = U(' '); -+ if (rsreset) { -+ /* reset regex-with-method to the starting slash */ -+ source = rsreset; -+ target = rtreset; -+ rsreset = NULL; -+ continue; /* main loop */ -+ } - - *target++ = c; - } -@@ -157,7 +223,19 @@ rjsmin(const rchar *source, rchar *targe - case U('*'): case U('/'): - goto skip_or_copy_ws; - -+ /* Regex or slash */ - default: -+ if (rsreset) { -+ /* reset regex-with-method to the starting slash */ -+ if (post_regex) post_regex = 0; -+ if (pctoken) pctoken = NULL; -+ if (spaced == U('\n')) spaced = U(' '); -+ source = rsreset; -+ target = rtreset; -+ rsreset = NULL; -+ continue; /* main loop */ -+ } -+ - xtarget = NULL; - if ( target == tstart - || RJSMIN_IS_PRE_REGEX_1(*((pctoken ? pctoken : target) -@@ -176,99 +254,148 @@ rjsmin(const rchar *source, rchar *targe - || !RJSMIN_IS_ID_LITERAL(*(xtarget - 7)) - ) - )) { -- -- /* Regex */ -+ /* nothing to do here, continuing down below -+ * We could unset rsreset here, but we know it already -+ * is. */ -+ ; -+ } -+ else if (*((pctoken ? pctoken : target) - 1) == U(')')) { -+ xtarget = NULL; -+ rsreset = source; -+ rtreset = target + 1; -+ rsdot = 0; -+ } -+ else { -+ /* Just a slash */ - if (post_regex) post_regex = 0; - if (pctoken) pctoken = NULL; -+ if (spaced == U('\n')) spaced = U(' '); - -- reset = source; -- if (spaced == U('\n')) { -- spaced = U(' '); -- if (xtarget) -- *target++ = U('\n'); -- } -+ *target++ = c; -+ continue; /* main loop */ -+ } - -- *target++ = U('/'); -- while (source < sentinel) { -- c = *source++; -- *target++ = c; -- if (RJSMIN_IS_REGEX_DULL(c)) -- continue; -- switch (c) { -- case U('/'): -- post_regex = 1; -- goto cont; -- case U('\\'): -- if (source < sentinel) { -- c = *source++; -- *target++ = c; -- if (c == U('\r') || c == U('\n')) -- break; -- } -- continue; -- case U('['): -- while (source < sentinel) { -- c = *source++; -- *target++ = c; -- if (RJSMIN_IS_REGEX_CC_DULL(c)) -- continue; -- switch (c) { -- case U('\\'): -- if (source < sentinel) { -- c = *source++; -- *target++ = c; -- if (c == U('\r') || c == U('\n')) -- break; -- } -- continue; -- case U(']'): -- goto cont_regex; -+ if (post_regex) post_regex = 0; -+ if (pctoken) pctoken = NULL; -+ -+ reset = source; -+ if (spaced == U('\n')) { -+ spaced = U(' '); -+ if (xtarget) -+ *target++ = U('\n'); -+ } -+ -+ *target++ = U('/'); -+ -+ /* regex loop */ -+ while (source < sentinel) { -+ c = *source++; -+ *target++ = c; -+ -+ if (RJSMIN_IS_REGEX_DULL(c)) -+ continue; /* regex loop */ -+ -+ switch (c) { -+ case U('/'): -+ while (source < sentinel -+ && RJSMIN_IS_A_Z(*source)) -+ *target++ = *source++; -+ post_regex = !rsreset; -+ /* This check is supposed to make it faster. -+ * It doesn't. It slows it down. I wonder why... -+ */ -+ /* -+ * if (!post_regex -+ * && source < sentinel - 1 -+ * && *source == U('.') -+ * && RJSMIN_IS_A_Z(*(source + 1))) -+ * rsreset = NULL; -+ */ -+ -+ goto cont; /* main loop */ -+ -+ case U('\\'): -+ if (source < sentinel) { -+ c = *source++; -+ *target++ = c; -+ if (c == U('\r') || c == U('\n')) -+ break; /* regex reset */ -+ } -+ continue; /* regex loop */ -+ -+ case U('['): -+ /* regex CC loop */ -+ while (source < sentinel) { -+ c = *source++; -+ *target++ = c; -+ -+ if (RJSMIN_IS_REGEX_CC_DULL(c)) -+ continue; /* regex CC loop */ -+ -+ switch (c) { -+ case U('\\'): -+ if (source < sentinel) { -+ c = *source++; -+ *target++ = c; -+ if (c == U('\r') || c == U('\n')) -+ break; /* regex reset */ - } -+ continue; /* regex CC loop */ -+ -+ case U(']'): -+ goto cont_regex; /* regex loop */ - } -- break; - } -- break; -- cont_regex: -- continue; -+ break; /* regex reset */ -+ - } -- target -= source - reset; -- source = reset; -- } -- else { -- /* Just a slash */ -- if (post_regex) post_regex = 0; -- if (pctoken) pctoken = NULL; -- if (spaced == U('\n')) spaced = U(' '); -+ break; /* regex reset */ - -- *target++ = c; -+ cont_regex: -+ continue; /* regex loop */ - } -- continue; -+ -+ /* regex reset */ -+ target -= source - reset; -+ source = reset; -+ rsreset = NULL; -+ continue; /* main loop */ - } - } -- continue; -+ continue; /* main loop */ /* LCOV_EXCL_LINE */ - - /* Whitespace */ - default: - skip_or_copy_ws: -+ /* remember if we've seen a newline, start with: no */ - quote = U(' '); - --source; -+ -+ /* space loop */ - while (source < sentinel) { - c = *source++; - if (RJSMIN_IS_SPACE(c)) -- continue; -+ continue; /* space loop */ -+ - switch (c) { - case U('\r'): case U('\n'): - quote = U('\n'); -- continue; -+ continue; /* space loop */ -+ -+ /* Can only be a comment at this point -+ * (or ending prematurely) */ - case U('/'): - if (source < sentinel) { - switch (*source) { -+ -+ /* multiline comment */ - case U('*'): - reset = source++; - /* copy bang comment, if requested */ - if ( keep_bang_comments && source < sentinel - && *source == U('!')) { - if (!pctoken) { -+ /* Backtracking if ending prematurely */ - pctoken = target; - pcreset = reset; - } -@@ -276,6 +403,8 @@ rjsmin(const rchar *source, rchar *targe - *target++ = U('/'); - *target++ = U('*'); - *target++ = *source++; -+ -+ /* comment loop */ - while (source < sentinel) { - c = *source++; - *target++ = c; -@@ -283,20 +412,21 @@ rjsmin(const rchar *source, rchar *targe - && *source == U('/')) { - *target++ = *source++; - reset = NULL; -- break; -+ break; /* continue space loop */ - } - } - if (!reset) -- continue; -+ continue; /* space loop */ - -+ /* comment reset */ - target -= source - reset; - source = reset; - if (pcreset == reset) { - pctoken = NULL; - pcreset = NULL; - } -- - } -+ - /* strip regular comment */ - else { - while (source < sentinel) { -@@ -305,41 +435,52 @@ rjsmin(const rchar *source, rchar *targe - && *source == U('/')) { - ++source; - reset = NULL; -- break; -+ break; /* continue space loop */ - } - } - if (!reset) -- continue; -+ continue; /* space loop */ -+ -+ /* comment reset: fallback to slash */ - source = reset; - *target++ = U('/'); - } -- goto cont; -+ goto cont; /* main loop */ -+ -+ /* single line comment */ - case U('/'): - ++source; -+ -+ /* single line comment loop */ - while (source < sentinel) { - c = *source++; - switch (c) { - case U('\n'): -- break; -+ break; /* continue space loop */ -+ - case U('\r'): - if (source < sentinel - && *source == U('\n')) - ++source; -- break; -+ break; /* continue space loop */ -+ - default: -- continue; -+ continue; /* single line comment loop */ - } -- break; -+ break; /* continue space loop */ - } - quote = U('\n'); -- continue; -+ continue; /* space loop */ - } - } - } -+ -+ /* No more spacy character found */ - --source; -- break; -+ break; /* end space loop */ - } - -+ /* Copy a space if needed */ - if ((tstart < (pctoken ? pctoken : target) && source < sentinel) - && ((quote == U('\n') - && ((RJSMIN_IS_ID_LITERAL_CLOSE(*((pctoken ? -@@ -363,8 +504,9 @@ rjsmin(const rchar *source, rchar *targe - pcreset = NULL; - spaced = quote; - } -+ - cont: -- continue; -+ continue; /* main loop */ - } - return (Py_ssize_t)(target - tstart); - } -@@ -385,15 +527,15 @@ substitution regex.\n\ - :Note: This is a hand crafted C implementation built on the regex\n\ - semantics.\n\ - \n\ --:Parameters:\n\ -- `script` : ``str``\n\ -+Parameters:\n\ -+ script (str):\n\ - Script to minify\n\ - \n\ -- `keep_bang_comments` : ``bool``\n\ -+ keep_bang_comments (bool):\n\ - Keep comments starting with an exclamation mark? (``/*!...*/``)\n\ - \n\ --:Return: Minified script\n\ --:Rtype: ``str``"); -+Returns:\n\ -+ str: Minified script"); - - static PyObject * - rjsmin_jsmin(PyObject *self, PyObject *args, PyObject *kwds) -@@ -404,15 +546,15 @@ rjsmin_jsmin(PyObject *self, PyObject *a - int keep_bang_comments; - #ifdef EXT2 - int uni; --#define UOBJ "O" - #endif - #ifdef EXT3 --#define UOBJ "U" -+ int bytes; -+ rchar *bytescript; - #endif - -- if (!PyArg_ParseTupleAndKeywords(args, kwds, UOBJ "|O", kwlist, -+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O", kwlist, - &script, &keep_bang_comments_)) -- return NULL; -+ LCOV_EXCL_LINE_RETURN(NULL); - - if (!keep_bang_comments_) - keep_bang_comments = 0; -@@ -425,28 +567,27 @@ rjsmin_jsmin(PyObject *self, PyObject *a - #ifdef EXT2 - if (PyUnicode_Check(script)) { - if (!(script = PyUnicode_AsUTF8String(script))) -- return NULL; -+ LCOV_EXCL_LINE_RETURN(NULL); - uni = 1; - } -+ else if (!PyString_Check(script)) { -+ PyErr_SetString(PyExc_TypeError, "Unexpected type"); -+ return NULL; -+ } - else { - if (!(script = PyObject_Str(script))) -- return NULL; -+ LCOV_EXCL_LINE_RETURN(NULL); - uni = 0; - } --#endif -- --#ifdef EXT3 -- Py_INCREF(script); --#define PyString_GET_SIZE PyUnicode_GET_SIZE --#define PyString_AS_STRING PyUnicode_AS_UNICODE --#define _PyString_Resize PyUnicode_Resize --#define PyString_FromStringAndSize PyUnicode_FromUnicode --#endif -- - slength = PyString_GET_SIZE(script); -+ - if (!(result = PyString_FromStringAndSize(NULL, slength))) { -+ LCOV_EXCL_START -+ - Py_DECREF(script); - return NULL; -+ -+ LCOV_EXCL_STOP - } - Py_BEGIN_ALLOW_THREADS - length = rjsmin((rchar *)PyString_AS_STRING(script), -@@ -456,30 +597,97 @@ rjsmin_jsmin(PyObject *self, PyObject *a - - Py_DECREF(script); - if (length < 0) { -+ LCOV_EXCL_START -+ - Py_DECREF(result); - return NULL; -+ -+ LCOV_EXCL_STOP - } - if (length != slength && _PyString_Resize(&result, length) == -1) -- return NULL; -+ LCOV_EXCL_LINE_RETURN(NULL); - --#ifdef EXT2 - if (uni) { - script = PyUnicode_DecodeUTF8(PyString_AS_STRING(result), - PyString_GET_SIZE(result), "strict"); - Py_DECREF(result); -- if (!script) -- return NULL; -- result = script; -+ return script; - } --#endif -+ - return result; -+ -+#else /* EXT3 */ -+ -+ if (PyUnicode_Check(script)) { -+ bytes = 0; -+ script = PyUnicode_AsUTF8String(script); -+ bytescript = (rchar *)PyBytes_AS_STRING(script); -+ slength = PyBytes_GET_SIZE(script); -+ } -+ else if (PyBytes_Check(script)) { -+ bytes = 1; -+ Py_INCREF(script); -+ bytescript = (rchar *)PyBytes_AS_STRING(script); -+ slength = PyBytes_GET_SIZE(script); -+ } -+ else if (PyByteArray_Check(script)) { -+ bytes = 2; -+ Py_INCREF(script); -+ bytescript = (rchar *)PyByteArray_AS_STRING(script); -+ slength = PyByteArray_GET_SIZE(script); -+ } -+ else { -+ PyErr_SetString(PyExc_TypeError, "Unexpected type"); -+ return NULL; -+ } -+ -+ if (!(result = PyBytes_FromStringAndSize(NULL, slength))) { -+ LCOV_EXCL_START -+ -+ Py_DECREF(script); -+ return NULL; -+ -+ LCOV_EXCL_STOP -+ } -+ Py_BEGIN_ALLOW_THREADS -+ length = rjsmin(bytescript, (rchar *)PyBytes_AS_STRING(result), -+ slength, keep_bang_comments); -+ Py_END_ALLOW_THREADS -+ -+ Py_DECREF(script); -+ if (length < 0) { -+ LCOV_EXCL_START -+ -+ Py_DECREF(result); -+ return NULL; -+ -+ LCOV_EXCL_STOP -+ } -+ -+ if (!bytes) { -+ script = PyUnicode_DecodeUTF8(PyBytes_AS_STRING(result), length, -+ "strict"); -+ Py_DECREF(result); -+ return script; -+ } -+ if (bytes == 1) { -+ if (length != slength) { -+ _PyBytes_Resize(&result, length); -+ } -+ return result; -+ } -+ /* bytes == 2: bytearray */ -+ script = PyByteArray_FromStringAndSize(PyBytes_AS_STRING(result), length); -+ Py_DECREF(result); -+ return script; -+#endif - } - - /* ------------------------ BEGIN MODULE DEFINITION ------------------------ */ - - EXT_METHODS = { - {"jsmin", -- (PyCFunction)rjsmin_jsmin, METH_VARARGS | METH_KEYWORDS, -+ EXT_CFUNC(rjsmin_jsmin), METH_VARARGS | METH_KEYWORDS, - rjsmin_jsmin__doc__}, - - {NULL} /* Sentinel */ -@@ -499,10 +707,10 @@ EXT_INIT_FUNC { - - /* Create the module and populate stuff */ - if (!(m = EXT_CREATE(&EXT_DEFINE_VAR))) -- EXT_INIT_ERROR(NULL); -+ EXT_INIT_ERROR(LCOV_EXCL_LINE(NULL)); - - EXT_ADD_UNICODE(m, "__author__", "Andr\xe9 Malo", "latin-1"); -- EXT_ADD_STRING(m, "__docformat__", "restructuredtext en"); -+ EXT_ADD_STRING(m, "__version__", STRINGIFY(EXT_VERSION)); - - EXT_INIT_RETURN(m); - } -diff -up chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.py.12 chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.py ---- chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.py.12 2022-07-01 20:33:39.317727375 +0000 -+++ chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/rjsmin.py 2021-11-14 20:24:16.000000000 +0000 -@@ -1,6 +1,6 @@ - #!/usr/bin/env python - # -*- coding: ascii -*- --r""" -+u""" - ===================== - Javascript Minifier - ===================== -@@ -11,7 +11,7 @@ The minifier is based on the semantics o - - :Copyright: - -- Copyright 2011 - 2015 -+ Copyright 2011 - 2021 - Andr\xe9 Malo or his licensors, as applicable - - :License: -@@ -39,9 +39,11 @@ same results as the original ``jsmin.c`` - - Newline characters are not allowed inside string and regex literals, except - for line continuations in string literals (ECMA-5). - - "return /regex/" is recognized correctly. -+- More characters are allowed before regexes. - - Line terminators after regex literals are handled more sensibly - - "+ +" and "- -" sequences are not collapsed to '++' or '--' - - Newlines before ! operators are removed more sensibly -+- (Unnested) template literals are supported (ECMA-6) - - Comments starting with an exclamation mark (``!``) can be kept optionally - - rJSmin does not handle streams, but only complete strings. (However, the - module provides a "streamy" interface). -@@ -56,20 +58,17 @@ file for details. - - rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even more. - --Both python 2 and python 3 are supported. -+Supported python versions are 2.7 and 3.6+. - - .. _jsmin.c by Douglas Crockford: - http://www.crockford.com/javascript/jsmin.c - """ --if __doc__: -- # pylint: disable = redefined-builtin -- __doc__ = __doc__.encode('ascii').decode('unicode_escape') --__author__ = r"Andr\xe9 Malo".encode('ascii').decode('unicode_escape') --__docformat__ = "restructuredtext en" -+__author__ = u"Andr\xe9 Malo" - __license__ = "Apache License, Version 2.0" --__version__ = '1.0.12' -+__version__ = '1.2.0' - __all__ = ['jsmin'] - -+import functools as _ft - import re as _re - - -@@ -80,13 +79,13 @@ def _make_jsmin(python_only=False): - .. _jsmin.c by Douglas Crockford: - http://www.crockford.com/javascript/jsmin.c - -- :Parameters: -- `python_only` : ``bool`` -+ Parameters: -+ python_only (bool): - Use only the python variant. If true, the c extension is not even - tried to be loaded. - -- :Return: Minifier -- :Rtype: ``callable`` -+ Returns: -+ callable: Minifier - """ - # pylint: disable = unused-variable - # pylint: disable = too-many-locals -@@ -97,7 +96,10 @@ def _make_jsmin(python_only=False): - except ImportError: - pass - else: -- return _rjsmin.jsmin -+ # Ensure that the C version is in sync -+ # https://github.com/ndparker/rjsmin/issues/11 -+ if getattr(_rjsmin, '__version__', None) == __version__: -+ return _rjsmin.jsmin - try: - xrange - except NameError: -@@ -110,15 +112,16 @@ def _make_jsmin(python_only=False): - space_comment_nobang = r'(?:/\*(?!!)[^*]*\*+(?:[^/*][^*]*\*+)*/)' - bang_comment = r'(?:/\*![^*]*\*+(?:[^/*][^*]*\*+)*/)' - -- string1 = \ -- r'(?:\047[^\047\\\r\n]*(?:\\(?:[^\r\n]|\r?\n|\r)[^\047\\\r\n]*)*\047)' -+ string1 = r"(?:'[^'\\\r\n]*(?:\\(?:[^\r\n]|\r?\n|\r)[^'\\\r\n]*)*')" -+ string1 = string1.replace("'", r'\047') # portability - string2 = r'(?:"[^"\\\r\n]*(?:\\(?:[^\r\n]|\r?\n|\r)[^"\\\r\n]*)*")' -- string3 = r'(?:`(?:[^`\\]|\\.)*`)' -+ string3 = r'(?:`[^`\\]*(?:\\(?:[^\r\n]|\r?\n|\r)[^`\\]*)*`)' -+ string3 = string3.replace('`', r'\140') # portability - strings = r'(?:%s|%s|%s)' % (string1, string2, string3) - - charclass = r'(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^\\\]\r\n]*)*\])' - nospecial = r'[^/\\\[\r\n]' -- regex = r'(?:/(?![\r\n/*])%s*(?:(?:\\[^\r\n]|%s)%s*)*/)' % ( -+ regex = r'(?:/(?![\r\n/*])%s*(?:(?:\\[^\r\n]|%s)%s*)*/[a-z]*)' % ( - nospecial, charclass, nospecial - ) - space = r'(?:%s|%s)' % (space_chars, space_comment) -@@ -154,7 +157,7 @@ def _make_jsmin(python_only=False): - ) for first, last in result]) # noqa - - return _re.sub( -- r'([\000-\040\047])', # \047 for better portability -+ r"([\000-\040'`])", # ' and ` for better portability - lambda m: '\\%03o' % ord(m.group(1)), ( - sequentize(result) - .replace('\\', '\\\\') -@@ -180,42 +183,48 @@ def _make_jsmin(python_only=False): - return r'[%s]' % fix_charclass(result) - - not_id_literal = not_id_literal_(r'[a-zA-Z0-9_$]') -- preregex1 = r'[(,=:\[!&|?{};\r\n]' -+ preregex1 = r'[(,=:\[!&|?{};\r\n+*-]' - preregex2 = r'%(not_id_literal)sreturn' % locals() - - id_literal = id_literal_(r'[a-zA-Z0-9_$]') - id_literal_open = id_literal_(r'[a-zA-Z0-9_${\[(!+-]') -- id_literal_close = id_literal_(r'[a-zA-Z0-9_$}\])"\047+-]') -+ id_literal_close = id_literal_(r'[a-zA-Z0-9_$}\])"\047\140+-]') - post_regex_off = id_literal_(r'[^\000-\040}\])?:|,;.&=+-]') - -- dull = r'[^\047"`/\000-\040]' -+ dull = r'[^\047"\140/\000-\040]' - - space_sub_simple = _re.compile(( -- # noqa pylint: disable = bad-continuation -+ # noqa pylint: disable = bad-option-value, bad-continuation - - r'(%(dull)s+)' # 0 - r'|(%(strings)s%(dull)s*)' # 1 -- r'|(?<=%(preregex1)s)' -+ r'|(?<=[)])' - r'%(space)s*(?:%(newline)s%(space)s*)*' - r'(%(regex)s)' # 2 -- r'(%(space)s*(?:%(newline)s%(space)s*)+' # 3 -+ r'(?=%(space)s*(?:%(newline)s%(space)s*)*' -+ r'\.' -+ r'%(space)s*(?:%(newline)s%(space)s*)*[a-z])' -+ r'|(?<=%(preregex1)s)' -+ r'%(space)s*(?:%(newline)s%(space)s*)*' -+ r'(%(regex)s)' # 3 -+ r'(%(space)s*(?:%(newline)s%(space)s*)+' # 4 - r'(?=%(post_regex_off)s))?' - r'|(?<=%(preregex2)s)' -- r'%(space)s*(?:(%(newline)s)%(space)s*)*' # 4 -- r'(%(regex)s)' # 5 -- r'(%(space)s*(?:%(newline)s%(space)s*)+' # 6 -+ r'%(space)s*(?:(%(newline)s)%(space)s*)*' # 5 -+ r'(%(regex)s)' # 6 -+ r'(%(space)s*(?:%(newline)s%(space)s*)+' # 7 - r'(?=%(post_regex_off)s))?' - r'|(?<=%(id_literal_close)s)' -- r'%(space)s*(?:(%(newline)s)%(space)s*)+' # 7 -+ r'%(space)s*(?:(%(newline)s)%(space)s*)+' # 8 - r'(?=%(id_literal_open)s)' -- r'|(?<=%(id_literal)s)(%(space)s)+(?=%(id_literal)s)' # 8 -- r'|(?<=\+)(%(space)s)+(?=\+)' # 9 -- r'|(?<=-)(%(space)s)+(?=-)' # 10 -+ r'|(?<=%(id_literal)s)(%(space)s)+(?=%(id_literal)s)' # 9 -+ r'|(?<=\+)(%(space)s)+(?=\+)' # 10 -+ r'|(?<=-)(%(space)s)+(?=-)' # 11 - r'|%(space)s+' - r'|(?:%(newline)s%(space)s*)+' - ) % locals()).sub - -- # print space_sub_simple.__self__.pattern -+ # print(space_sub_simple.__self__.pattern) - - def space_subber_simple(match): - """ Substitution callback """ -@@ -227,48 +236,56 @@ def _make_jsmin(python_only=False): - elif groups[1]: - return groups[1] - elif groups[2]: -- if groups[3]: -- return groups[2] + '\n' - return groups[2] -- elif groups[5]: -+ elif groups[3]: -+ if groups[4]: -+ return groups[3] + '\n' -+ return groups[3] -+ elif groups[6]: - return "%s%s%s" % ( -- groups[4] and '\n' or '', -- groups[5], -- groups[6] and '\n' or '', -+ groups[5] and '\n' or '', -+ groups[6], -+ groups[7] and '\n' or '', - ) -- elif groups[7]: -+ elif groups[8]: - return '\n' -- elif groups[8] or groups[9] or groups[10]: -+ elif groups[9] or groups[10] or groups[11]: - return ' ' - else: - return '' - - space_sub_banged = _re.compile(( -- # noqa pylint: disable = bad-continuation -+ # noqa pylint: disable = bad-option-value, bad-continuation - - r'(%(dull)s+)' # 0 - r'|(%(strings)s%(dull)s*)' # 1 -- r'|(?<=%(preregex1)s)' -+ r'|(?<=[)])' - r'(%(space)s*(?:%(newline)s%(space)s*)*)' # 2 - r'(%(regex)s)' # 3 -- r'(%(space)s*(?:%(newline)s%(space)s*)+' # 4 -+ r'(?=%(space)s*(?:%(newline)s%(space)s*)*' -+ r'\.' -+ r'%(space)s*(?:%(newline)s%(space)s*)*[a-z])' -+ r'|(?<=%(preregex1)s)' -+ r'(%(space)s*(?:%(newline)s%(space)s*)*)' # 4 -+ r'(%(regex)s)' # 5 -+ r'(%(space)s*(?:%(newline)s%(space)s*)+' # 6 - r'(?=%(post_regex_off)s))?' - r'|(?<=%(preregex2)s)' -- r'(%(space)s*(?:(%(newline)s)%(space)s*)*)' # 5, 6 -- r'(%(regex)s)' # 7 -- r'(%(space)s*(?:%(newline)s%(space)s*)+' # 8 -+ r'(%(space)s*(?:(%(newline)s)%(space)s*)*)' # 7, 8 -+ r'(%(regex)s)' # 9 -+ r'(%(space)s*(?:%(newline)s%(space)s*)+' # 10 - r'(?=%(post_regex_off)s))?' - r'|(?<=%(id_literal_close)s)' -- r'(%(space)s*(?:%(newline)s%(space)s*)+)' # 9 -+ r'(%(space)s*(?:%(newline)s%(space)s*)+)' # 11 - r'(?=%(id_literal_open)s)' -- r'|(?<=%(id_literal)s)(%(space)s+)(?=%(id_literal)s)' # 10 -- r'|(?<=\+)(%(space)s+)(?=\+)' # 11 -- r'|(?<=-)(%(space)s+)(?=-)' # 12 -- r'|(%(space)s+)' # 13 -- r'|((?:%(newline)s%(space)s*)+)' # 14 -+ r'|(?<=%(id_literal)s)(%(space)s+)(?=%(id_literal)s)' # 12 -+ r'|(?<=\+)(%(space)s+)(?=\+)' # 13 -+ r'|(?<=-)(%(space)s+)(?=-)' # 14 -+ r'|(%(space)s+)' # 15 -+ r'|((?:%(newline)s%(space)s*)+)' # 16 - ) % locals()).sub - -- # print space_sub_banged.__self__.pattern -+ # print(space_sub_banged.__self__.pattern) - - keep = _re.compile(( - r'%(space_chars)s+|%(space_comment_nobang)s+|%(newline)s+' -@@ -276,7 +293,7 @@ def _make_jsmin(python_only=False): - ) % locals()).sub - keeper = lambda m: m.groups()[0] or '' - -- # print keep.__self__.pattern -+ # print(keep.__self__.pattern) - - def space_subber_banged(match): - """ Substitution callback """ -@@ -288,26 +305,34 @@ def _make_jsmin(python_only=False): - elif groups[1]: - return groups[1] - elif groups[3]: -- return "%s%s%s%s" % ( -+ return "%s%s" % ( - keep(keeper, groups[2]), - groups[3], -- keep(keeper, groups[4] or ''), -- groups[4] and '\n' or '', - ) -- elif groups[7]: -- return "%s%s%s%s%s" % ( -- keep(keeper, groups[5]), -+ elif groups[5]: -+ return "%s%s%s%s" % ( -+ keep(keeper, groups[4]), -+ groups[5], -+ keep(keeper, groups[6] or ''), - groups[6] and '\n' or '', -- groups[7], -- keep(keeper, groups[8] or ''), -- groups[8] and '\n' or '', - ) - elif groups[9]: -- return keep(keeper, groups[9]) + '\n' -- elif groups[10] or groups[11] or groups[12]: -- return keep(keeper, groups[10] or groups[11] or groups[12]) or ' ' -+ return "%s%s%s%s%s" % ( -+ keep(keeper, groups[7]), -+ groups[8] and '\n' or '', -+ groups[9], -+ keep(keeper, groups[10] or ''), -+ groups[10] and '\n' or '', -+ ) -+ elif groups[11]: -+ return keep(keeper, groups[11]) + '\n' -+ elif groups[12] or groups[13] or groups[14]: -+ return keep(keeper, groups[12] or groups[13] or groups[14]) or ' ' - else: -- return keep(keeper, groups[13] or groups[14]) -+ return keep(keeper, groups[15] or groups[16]) -+ -+ banged = _ft.partial(space_sub_banged, space_subber_banged) -+ simple = _ft.partial(space_sub_simple, space_subber_simple) - - def jsmin(script, keep_bang_comments=False): - r""" -@@ -320,32 +345,51 @@ def _make_jsmin(python_only=False): - .. _jsmin.c by Douglas Crockford: - http://www.crockford.com/javascript/jsmin.c - -- :Parameters: -- `script` : ``str`` -+ Parameters: -+ script (str): - Script to minify - -- `keep_bang_comments` : ``bool`` -+ keep_bang_comments (bool): - Keep comments starting with an exclamation mark? (``/*!...*/``) - -- :Return: Minified script -- :Rtype: ``str`` -+ Returns: -+ str: Minified script - """ - # pylint: disable = redefined-outer-name - -- if keep_bang_comments: -- return space_sub_banged( -- space_subber_banged, '\n%s\n' % script -- ).strip() -- else: -- return space_sub_simple( -- space_subber_simple, '\n%s\n' % script -- ).strip() -+ is_bytes, script = _as_str(script) -+ script = (banged if keep_bang_comments else simple)( -+ '\n%s\n' % script -+ ).strip() -+ if is_bytes: -+ script = script.encode('latin-1') -+ if is_bytes == 2: -+ script = bytearray(script) -+ return script - - return jsmin - - jsmin = _make_jsmin() - - -+def _as_str(script): -+ """ Make sure the script is a text string """ -+ is_bytes = False -+ if str is bytes: -+ if not isinstance(script, basestring): # noqa pylint: disable = undefined-variable -+ raise TypeError("Unexpected type") -+ elif isinstance(script, bytes): -+ is_bytes = True -+ script = script.decode('latin-1') -+ elif isinstance(script, bytearray): -+ is_bytes = 2 -+ script = script.decode('latin-1') -+ elif not isinstance(script, str): -+ raise TypeError("Unexpected type") -+ -+ return is_bytes, script -+ -+ - def jsmin_for_posers(script, keep_bang_comments=False): - r""" - Minify javascript based on `jsmin.c by Douglas Crockford`_\. -@@ -361,49 +405,61 @@ def jsmin_for_posers(script, keep_bang_c - utilizes the resulting regexes. It's here for fun and may - vanish any time. Use the `jsmin` function instead. - -- :Parameters: -- `script` : ``str`` -+ Parameters: -+ script (str): - Script to minify - -- `keep_bang_comments` : ``bool`` -+ keep_bang_comments (bool): - Keep comments starting with an exclamation mark? (``/*!...*/``) - -- :Return: Minified script -- :Rtype: ``str`` -+ Returns: -+ str: Minified script - """ - if not keep_bang_comments: - rex = ( -- r'([^\047"/\000-\040]+)|((?:(?:\047[^\047\\\r\n]*(?:\\(?:[^\r\n]' -- r'|\r?\n|\r)[^\047\\\r\n]*)*\047)|(?:"[^"\\\r\n]*(?:\\(?:[^\r\n]' -- r'|\r?\n|\r)[^"\\\r\n]*)*"))[^\047"/\000-\040]*)|(?<=[(,=:\[!&|?' -- r'{};\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*' -- r'][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\0' -- r'14\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)*((?:/(?![\r' -- r'\n/*])[^/\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^\r' -- r'\n][^\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*/))((?:[\000-\011\013\014' -+ r'([^\047"\140/\000-\040]+)|((?:(?:\047[^\047\\\r\n]*(?:\\(?:[^' -+ r'\r\n]|\r?\n|\r)[^\047\\\r\n]*)*\047)|(?:"[^"\\\r\n]*(?:\\(?:[^' -+ r'\r\n]|\r?\n|\r)[^"\\\r\n]*)*")|(?:\140[^\140\\]*(?:\\(?:[^\r\n' -+ r']|\r?\n|\r)[^\140\\]*)*\140))[^\047"\140/\000-\040]*)|(?<=[)])' -+ r'(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+' -+ r')*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\0' -+ r'40]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)*((?:/(?![\r\n/*])[^/' -+ r'\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^\\\]' -+ r'\r\n]*)*\]))[^/\\\[\r\n]*)*/[a-z]*))(?=(?:[\000-\011\013\014\0' -+ r'16-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r\n' -+ r']*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^' -+ r'/*][^*]*\*+)*/))*)*\.(?:[\000-\011\013\014\016-\040]|(?:/\*[^*' -+ r']*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\00' -+ r'0-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)' -+ r'*[a-z])|(?<=[(,=:\[!&|?{};\r\n+*-])(?:[\000-\011\013\014\016-' -+ r'\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)' -+ r'?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*]' -+ r'[^*]*\*+)*/))*)*((?:/(?![\r\n/*])[^/\\\[\r\n]*(?:(?:\\[^\r\n]|' -+ r'(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*' -+ r'/[a-z]*))((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/' -+ r'*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013' -+ r'\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+(?=[^\000' -+ r'-\040&)+,.:;=?\]|}-]))?|(?<=[\000-#%-,./:-@\[-^\140{-~-]return' -+ r')(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*' -+ r'+)*/))*(?:((?:(?://[^\r\n]*)?[\r\n]))(?:[\000-\011\013\014\016' -+ r'-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)*((?:/(?![\r\n/*])' -+ r'[^/\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^' -+ r'\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*/[a-z]*))((?:[\000-\011\013\014' - r'\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r' - r'\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:' -- r'[^/*][^*]*\*+)*/))*)+(?=[^\000-\040&)+,.:;=?\]|}-]))?|(?<=[\00' -- r'0-#%-,./:-@\[-^`{-~-]return)(?:[\000-\011\013\014\016-\040]|(?' -- r':/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:((?:(?://[^\r\n]*)?[\r\n]' -- r'))(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*' -- r'\*+)*/))*)*((?:/(?![\r\n/*])[^/\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[' -- r'[^\\\]\r\n]*(?:\\[^\r\n][^\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*/))((' -- r'?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)' -- r'*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\04' -- r'0]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+(?=[^\000-\040&)+,.:;' -- r'=?\]|}-]))?|(?<=[^\000-!#%&(*,./:-@\[\\^`{|~])(?:[\000-\011\01' -- r'3\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:((?:(?:' -- r'//[^\r\n]*)?[\r\n]))(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]' -- r'*\*+(?:[^/*][^*]*\*+)*/))*)+(?=[^\000-\040"#%-\047)*,./:-@\\-^' -- r'`|-~])|(?<=[^\000-#%-,./:-@\[-^`{-~-])((?:[\000-\011\013\014\0' -- r'16-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)))+(?=[^\000-#%-,./' -- r':-@\[-^`{-~-])|(?<=\+)((?:[\000-\011\013\014\016-\040]|(?:/\*[' -- r'^*]*\*+(?:[^/*][^*]*\*+)*/)))+(?=\+)|(?<=-)((?:[\000-\011\013' -- r'\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)))+(?=-)|(?:[' -- r'\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)' -- r')+|(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]' -- r'|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+' -+ r'[^/*][^*]*\*+)*/))*)+(?=[^\000-\040&)+,.:;=?\]|}-]))?|(?<=[^\0' -+ r'00-!#%&(*,./:-@\[\\^{|~])(?:[\000-\011\013\014\016-\040]|(?:/' -+ r'\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:((?:(?://[^\r\n]*)?[\r\n]))' -+ r'(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+' -+ r')*/))*)+(?=[^\000-\040"#%-\047)*,./:-@\\-^\140|-~])|(?<=[^\000' -+ r'-#%-,./:-@\[-^\140{-~-])((?:[\000-\011\013\014\016-\040]|(?:/' -+ r'\*[^*]*\*+(?:[^/*][^*]*\*+)*/)))+(?=[^\000-#%-,./:-@\[-^\140{-' -+ r'~-])|(?<=\+)((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:' -+ r'[^/*][^*]*\*+)*/)))+(?=\+)|(?<=-)((?:[\000-\011\013\014\016-\0' -+ r'40]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)))+(?=-)|(?:[\000-\011\0' -+ r'13\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+|(?:(?:(?' -+ r'://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]' -+ r'*\*+(?:[^/*][^*]*\*+)*/))*)+' - ) - - def subber(match): -@@ -412,59 +468,72 @@ def jsmin_for_posers(script, keep_bang_c - return ( - groups[0] or - groups[1] or -- (groups[3] and (groups[2] + '\n')) or - groups[2] or -- (groups[5] and "%s%s%s" % ( -- groups[4] and '\n' or '', -- groups[5], -- groups[6] and '\n' or '', -+ (groups[4] and (groups[3] + '\n')) or -+ groups[3] or -+ (groups[6] and "%s%s%s" % ( -+ groups[5] and '\n' or '', -+ groups[6], -+ groups[7] and '\n' or '', - )) or -- (groups[7] and '\n') or -- (groups[8] and ' ') or -+ (groups[8] and '\n') or - (groups[9] and ' ') or - (groups[10] and ' ') or -+ (groups[11] and ' ') or - '' - ) - else: - rex = ( -- r'([^\047"/\000-\040]+)|((?:(?:\047[^\047\\\r\n]*(?:\\(?:[^\r\n]' -- r'|\r?\n|\r)[^\047\\\r\n]*)*\047)|(?:"[^"\\\r\n]*(?:\\(?:[^\r\n]' -- r'|\r?\n|\r)[^"\\\r\n]*)*"))[^\047"/\000-\040]*)|(?<=[(,=:\[!&|?' -- r'{};\r\n])((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/' -- r'*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013' -- r'\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)*)((?:/(?!' -- r'[\r\n/*])[^/\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^' -- r'\r\n][^\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*/))((?:[\000-\011\013\01' -- r'4\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^' -+ r'([^\047"\140/\000-\040]+)|((?:(?:\047[^\047\\\r\n]*(?:\\(?:[^' -+ r'\r\n]|\r?\n|\r)[^\047\\\r\n]*)*\047)|(?:"[^"\\\r\n]*(?:\\(?:[^' -+ r'\r\n]|\r?\n|\r)[^"\\\r\n]*)*")|(?:\140[^\140\\]*(?:\\(?:[^\r\n' -+ r']|\r?\n|\r)[^\140\\]*)*\140))[^\047"\140/\000-\040]*)|(?<=[)])' -+ r'((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*' -+ r'+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-' -+ r'\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)*)((?:/(?![\r\n/*])' -+ r'[^/\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^' -+ r'\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*/[a-z]*))(?=(?:[\000-\011\013\0' -+ r'14\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^' - r'\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(' -- r'?:[^/*][^*]*\*+)*/))*)+(?=[^\000-\040&)+,.:;=?\]|}-]))?|(?<=[' -- r'\000-#%-,./:-@\[-^`{-~-]return)((?:[\000-\011\013\014\016-\040' -- r']|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:((?:(?://[^\r\n]*)?[' -- r'\r\n]))(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][' -- r'^*]*\*+)*/))*)*)((?:/(?![\r\n/*])[^/\\\[\r\n]*(?:(?:\\[^\r\n]|' -- r'(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*' -- r'/))((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]' -- r'*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\01' -- r'6-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+(?=[^\000-\040&)' -- r'+,.:;=?\]|}-]))?|(?<=[^\000-!#%&(*,./:-@\[\\^`{|~])((?:[\000-' -- r'\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:' -- r'(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/' -- r'\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+)(?=[^\000-\040"#%-\047)*,./' -- r':-@\\-^`|-~])|(?<=[^\000-#%-,./:-@\[-^`{-~-])((?:[\000-\011\01' -- r'3\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+)(?=[^\000' -- r'-#%-,./:-@\[-^`{-~-])|(?<=\+)((?:[\000-\011\013\014\016-\040]|' -- r'(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+)(?=\+)|(?<=-)((?:[\000-\0' -- r'11\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+)(?=-' -- r')|((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*' -- r'\*+)*/))+)|((?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014' -- r'\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+)' -+ r'?:[^/*][^*]*\*+)*/))*)*\.(?:[\000-\011\013\014\016-\040]|(?:/' -+ r'\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?' -+ r':[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*' -+ r'/))*)*[a-z])|(?<=[(,=:\[!&|?{};\r\n+*-])((?:[\000-\011\013\014' -+ r'\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r' -+ r'\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:' -+ r'[^/*][^*]*\*+)*/))*)*)((?:/(?![\r\n/*])[^/\\\[\r\n]*(?:(?:\\[^' -+ r'\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^\r\n][^\\\]\r\n]*)*\]))[^/\\\[\r' -+ r'\n]*)*/[a-z]*))((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+' -+ r'(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\01' -+ r'1\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+(?=[' -+ r'^\000-\040&)+,.:;=?\]|}-]))?|(?<=[\000-#%-,./:-@\[-^\140{-~-]r' -+ r'eturn)((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][' -+ r'^*]*\*+)*/))*(?:((?:(?://[^\r\n]*)?[\r\n]))(?:[\000-\011\013\0' -+ r'14\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)*)((?:/(?![' -+ r'\r\n/*])[^/\\\[\r\n]*(?:(?:\\[^\r\n]|(?:\[[^\\\]\r\n]*(?:\\[^' -+ r'\r\n][^\\\]\r\n]*)*\]))[^/\\\[\r\n]*)*/[a-z]*))((?:[\000-\011' -+ r'\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(' -+ r'?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*' -+ r']*\*+(?:[^/*][^*]*\*+)*/))*)+(?=[^\000-\040&)+,.:;=?\]|}-]))?|' -+ r'(?<=[^\000-!#%&(*,./:-@\[\\^{|~])((?:[\000-\011\013\014\016-\0' -+ r'40]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*(?:(?:(?://[^\r\n]*)?[' -+ r'\r\n])(?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^' -+ r'*]*\*+)*/))*)+)(?=[^\000-\040"#%-\047)*,./:-@\\-^\140|-~])|(?<' -+ r'=[^\000-#%-,./:-@\[-^\140{-~-])((?:[\000-\011\013\014\016-\040' -+ r']|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+)(?=[^\000-#%-,./:-@\[-^' -+ r'\140{-~-])|(?<=\+)((?:[\000-\011\013\014\016-\040]|(?:/\*[^*]*' -+ r'\*+(?:[^/*][^*]*\*+)*/))+)(?=\+)|(?<=-)((?:[\000-\011\013\014' -+ r'\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+)(?=-)|((?:[\00' -+ r'0-\011\013\014\016-\040]|(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))+)' -+ r'|((?:(?:(?://[^\r\n]*)?[\r\n])(?:[\000-\011\013\014\016-\040]|' -+ r'(?:/\*[^*]*\*+(?:[^/*][^*]*\*+)*/))*)+)' - ) - -- keep = _re.compile(( -+ keep = _re.compile( - r'[\000-\011\013\014\016-\040]+|(?:/\*(?!!)[^*]*\*+(?:[^/*][^*]*' - r'\*+)*/)+|(?:(?://[^\r\n]*)?[\r\n])+|((?:/\*![^*]*\*+(?:[^/*][^' - r'*]*\*+)*/)+)' -- ) % locals()).sub -+ ).sub - keeper = lambda m: m.groups()[0] or '' - - def subber(match): -@@ -473,27 +542,37 @@ def jsmin_for_posers(script, keep_bang_c - return ( - groups[0] or - groups[1] or -- (groups[3] and "%s%s%s%s" % ( -+ groups[3] and "%s%s" % ( - keep(keeper, groups[2]), - groups[3], -- keep(keeper, groups[4] or ''), -- groups[4] and '\n' or '', -- )) or -- (groups[7] and "%s%s%s%s%s" % ( -- keep(keeper, groups[5]), -+ ) or -+ groups[5] and "%s%s%s%s" % ( -+ keep(keeper, groups[4]), -+ groups[5], -+ keep(keeper, groups[6] or ''), - groups[6] and '\n' or '', -- groups[7], -- keep(keeper, groups[8] or ''), -+ ) or -+ groups[9] and "%s%s%s%s%s" % ( -+ keep(keeper, groups[7]), - groups[8] and '\n' or '', -- )) or -- (groups[9] and keep(keeper, groups[9] + '\n')) or -- (groups[10] and keep(keeper, groups[10]) or ' ') or -- (groups[11] and keep(keeper, groups[11]) or ' ') or -- (groups[12] and keep(keeper, groups[12]) or ' ') or -- keep(keeper, groups[13] or groups[14]) -+ groups[9], -+ keep(keeper, groups[10] or ''), -+ groups[10] and '\n' or '', -+ ) or -+ groups[11] and (keep(keeper, groups[11]) + '\n') or -+ groups[12] and (keep(keeper, groups[12]) or ' ') or -+ groups[13] and (keep(keeper, groups[13]) or ' ') or -+ groups[14] and (keep(keeper, groups[14]) or ' ') or -+ keep(keeper, groups[15] or groups[16]) - ) - -- return _re.sub(rex, subber, '\n%s\n' % script).strip() -+ is_bytes, script = _as_str(script) -+ script = _re.sub(rex, subber, '\n%s\n' % script).strip() -+ if is_bytes: -+ script = script.encode('latin-1') -+ if is_bytes == 2: -+ script = bytearray(script) -+ return script - - - if __name__ == '__main__': -diff -up chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/setup.py.12 chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/setup.py ---- chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/setup.py.12 2022-06-28 12:50:10.171324444 +0000 -+++ chromium-103.0.5060.53/third_party/catapult/common/py_vulcanize/third_party/rjsmin/setup.py 2021-11-05 17:03:12.000000000 +0000 -@@ -1,41 +1,264 @@ - #!/usr/bin/env python - # -*- coding: ascii -*- --# --# Copyright 2006 - 2013 --# Andr\xe9 Malo or his licensors, as applicable --# --# Licensed under the Apache License, Version 2.0 (the "License"); --# you may not use this file except in compliance with the License. --# You may obtain a copy of the License at --# --# http://www.apache.org/licenses/LICENSE-2.0 --# --# Unless required by applicable law or agreed to in writing, software --# distributed under the License is distributed on an "AS IS" BASIS, --# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --# See the License for the specific language governing permissions and --# limitations under the License. -+u""" -+:Copyright: - -+ Copyright 2011 - 2021 -+ Andr\xe9 Malo or his licensors, as applicable -+ -+:License: -+ -+ Licensed under the Apache License, Version 2.0 (the "License"); -+ you may not use this file except in compliance with the License. -+ You may obtain a copy of the License at -+ -+ http://www.apache.org/licenses/LICENSE-2.0 -+ -+ Unless required by applicable law or agreed to in writing, software -+ distributed under the License is distributed on an "AS IS" BASIS, -+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -+ See the License for the specific language governing permissions and -+ limitations under the License. -+ -+=========================================== -+ rJSmin - A Javascript Minifier For Python -+=========================================== -+ -+rJSmin - A Javascript Minifier For Python. -+""" -+from __future__ import print_function -+__author__ = u"Andr\xe9 Malo" -+__docformat__ = "restructuredtext en" -+ -+import os as _os -+import posixpath as _posixpath - import sys as _sys --from _setup import run - -+# pylint: disable = no-name-in-module, import-error, raise-missing-from -+import setuptools as _setuptools -+ -+# pylint: disable = invalid-name -+ -+ -+def _doc(filename): -+ """ Read docs file """ -+ # pylint: disable = unspecified-encoding -+ args = {} if str is bytes else dict(encoding='utf-8') -+ try: -+ with open(_os.path.join('docs', filename), **args) as fp: -+ return fp.read() -+ except IOError: -+ return None -+ -+ -+def _lines(multiline): -+ """ Split multiline string into single line % empty and comments """ -+ return [line for line in ( -+ line.strip() for line in multiline.splitlines(False) -+ ) if line and not line.startswith('#')] -+ -+ -+package = dict( -+ name='rjsmin', -+ top='.', -+ pathname='.', -+ provides=_doc('PROVIDES'), -+ desc=_doc('SUMMARY').strip(), -+ longdesc=_doc('DESCRIPTION'), -+ author=__author__, -+ email='nd@perlig.de', -+ license="Apache License, Version 2.0", -+ keywords=_lines(_doc('KEYWORDS')), -+ url='http://opensource.perlig.de/rjsmin/', -+ classifiers=_lines(_doc('CLASSIFIERS') or ''), -+ -+ packages=False, -+ py_modules=['rjsmin'], -+ version_file='rjsmin.py', -+ install_requires=[], -+) -+ -+ -+class BuildFailed(Exception): -+ """ The build has failed """ -+ -+ -+from distutils.command import build_ext as _build_ext # pylint: disable = wrong-import-order -+from distutils import errors as _errors # pylint: disable = wrong-import-order -+class build_ext(_build_ext.build_ext): # pylint: disable = no-init -+ """ Improved extension building code """ -+ -+ def run(self): -+ """ Unify exception """ -+ try: -+ _build_ext.build_ext.run(self) -+ except _errors.DistutilsPlatformError: -+ raise BuildFailed() -+ -+ -+ def build_extension(self, ext): -+ """ -+ Build C extension - with extended functionality - --def setup(args=None, _manifest=0): -- """ Main setup function """ -- from _setup.ext import Extension -+ The following features are added here: - -- if 'java' in _sys.platform.lower(): -- # no c extension for jython -- ext = None -+ - The macros ``EXT_PACKAGE`` and ``EXT_MODULE`` will be filled (or -+ unset) depending on the extensions name, but only if they are not -+ already defined. -+ -+ - "." is added to the include directories (for cext.h) -+ -+ :Parameters: -+ `ext` : `Extension` -+ The extension to build -+ -+ :Return: whatever ``distutils.command.build_ext.build_ext`` returns -+ :Rtype: any -+ """ -+ # handle name macros -+ macros = dict(ext.define_macros or ()) -+ tup = ext.name.split('.') -+ if len(tup) == 1: -+ pkg, mod = None, tup[0] -+ else: -+ pkg, mod = '.'.join(tup[:-1]), tup[-1] -+ if pkg is not None and 'EXT_PACKAGE' not in macros: -+ ext.define_macros.append(('EXT_PACKAGE', pkg)) -+ if 'EXT_MODULE' not in macros: -+ ext.define_macros.append(('EXT_MODULE', mod)) -+ if pkg is None: -+ macros = dict(ext.undef_macros or ()) -+ if 'EXT_PACKAGE' not in macros: -+ ext.undef_macros.append('EXT_PACKAGE') -+ -+ import pprint; pprint.pprint(ext.__dict__) -+ try: -+ return _build_ext.build_ext.build_extension(self, ext) -+ except (_errors.CCompilerError, _errors.DistutilsExecError, -+ _errors.DistutilsPlatformError, IOError, ValueError): -+ raise BuildFailed() -+ -+ -+class Extension(_setuptools.Extension): -+ """ improved functionality """ -+ -+ def __init__(self, *args, **kwargs): -+ """ Initialization """ -+ version = kwargs.pop('version') -+ self.depends = [] -+ if 'depends' in kwargs: -+ self.depends = kwargs['depends'] -+ _setuptools.Extension.__init__(self, *args, **kwargs) -+ self.define_macros.append(('EXT_VERSION', version)) -+ -+ # add include path -+ included = '.' -+ if included not in self.include_dirs: -+ self.include_dirs.append(included) -+ -+ # add cext.h to the dependencies -+ cext_h = _posixpath.normpath(_posixpath.join(included, 'cext.h')) -+ for item in self.depends: -+ if _posixpath.normpath(item) == cext_h: -+ break -+ else: -+ self.depends.append(cext_h) -+ -+ -+EXTENSIONS = lambda v: [Extension('_rjsmin', ["rjsmin.c"], version=v)] -+ -+ -+def do_setup(cext): -+ """ Main """ -+ # pylint: disable = too-many-branches -+ # pylint: disable = unspecified-encoding -+ -+ args = {} if str is bytes else dict(encoding='utf-8') -+ version_file = '%s/%s' % (package['pathname'], -+ package.get('version_file', '__init__.py')) -+ with open(version_file, **args) as fp: -+ for line in fp: # pylint: disable = redefined-outer-name -+ if line.startswith('__version__'): -+ version = line.split('=', 1)[1].strip() -+ if version.startswith(("'", '"')): -+ version = version[1:-1].strip() -+ break -+ else: -+ raise RuntimeError("Version not found") -+ -+ kwargs = {} -+ -+ if not cext or 'java' in _sys.platform.lower(): -+ extensions = [] - else: -- ext=[Extension('_rjsmin', sources=['rjsmin.c'])] -+ extensions = EXTENSIONS(version) -+ -+ if extensions: -+ if 'build_ext' in globals(): -+ kwargs.setdefault('cmdclass', {})['build_ext'] = build_ext -+ kwargs['ext_modules'] = extensions -+ -+ cflags = None -+ if _os.environ.get('CFLAGS') is None: -+ from distutils import ccompiler as _ccompiler -+ -+ compiler = _ccompiler.get_default_compiler() -+ try: -+ with open("debug.%s.cflags" % compiler) as fp: -+ cflags = ' '.join([ -+ line for line in (line.strip() for line in fp) -+ if line and not line.startswith('#') -+ ]).split() or None -+ except IOError: -+ pass -+ -+ if cflags: -+ gcov = 'coverage' in ' '.join(cflags) -+ for ext in extensions: -+ # pylint: disable = attribute-defined-outside-init -+ ext.extra_compile_args = \ -+ getattr(ext, 'extra_compile_args', []) + cflags -+ if gcov: -+ ext.libraries.append('gcov') -+ -+ -+ if package.get('packages', True): -+ kwargs['packages'] = [package['top']] + [ -+ '%s.%s' % (package['top'], item) -+ for item in -+ _setuptools.find_packages(package['pathname']) -+ ] -+ if package.get('py_modules'): -+ kwargs['py_modules'] = package['py_modules'] - -- return run(script_args=args, ext=ext, manifest_only=_manifest) -+ _setuptools.setup( -+ name=package['name'], -+ author=package['author'], -+ author_email=package['email'], -+ license=package['license'], -+ classifiers=package['classifiers'], -+ description=package['desc'], -+ long_description=package['longdesc'], -+ url=package['url'], -+ install_requires=package['install_requires'], -+ version=version, -+ zip_safe=False, -+ **kwargs -+ ) - - --def manifest(): -- """ Create List of packaged files """ -- return setup((), _manifest=1) -+def setup(): -+ """ Run setup """ -+ try: -+ do_setup(True) -+ except BuildFailed: -+ env = 'SETUP_CEXT_REQUIRED' -+ if _os.environ.get(env, '') not in ('', '0'): -+ raise -+ print("C extension build failed - building python only version now. " -+ "Set '%s' environment variable to '1' to make it fail." -+ % (env,), file=_sys.stderr) -+ do_setup(False) - - - if __name__ == '__main__': diff --git a/chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch b/chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch deleted file mode 100644 index a4748d9..0000000 --- a/chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up chromium-91.0.4472.77/third_party/closure_compiler/compiler.py.java-allowed chromium-91.0.4472.77/third_party/closure_compiler/compiler.py ---- chromium-91.0.4472.77/third_party/closure_compiler/compiler.py.java-allowed 2021-06-02 17:14:48.445064647 +0000 -+++ chromium-91.0.4472.77/third_party/closure_compiler/compiler.py 2021-06-02 17:15:12.994836949 +0000 -@@ -13,8 +13,7 @@ import subprocess - - - _CURRENT_DIR = os.path.join(os.path.dirname(__file__)) --_JAVA_PATH = os.path.join(_CURRENT_DIR, "..", "jdk", "current", "bin", "java") --assert os.path.isfile(_JAVA_PATH), "java only allowed in android builds" -+_JAVA_PATH = "java" - - class Compiler(object): - """Runs the Closure compiler on given source files to typecheck them diff --git a/chromium.spec b/chromium.spec index 3430d49..8d0c91d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -59,15 +59,6 @@ # set esbuild_version %global esbuild_version 0.19.2 -# set latest version for devtoolset and gcc-toolset -%global dts_version 12 -%if 0%{?rhel} == 8 || 0%{?rhel} == 9 -%global dts_version 13 -%endif - -# set name for toolset -%global toolset gcc-toolset - %if 0%{?rhel} == 8 %global chromium_pybin /usr/bin/python3.9 %else @@ -156,25 +147,11 @@ # enable|disable use_custom_libcxx %global use_custom_libcxx 1 -# enable clang by default -%global clang 1 - # enable|disable control flow integrity support %global cfi 0 %ifarch x86_64 aarch64 -%if %{clang} -%if 0%{?fedora} || 0%{?rhel} > 7 %global cfi 1 %endif -%endif -%endif - -# set correct toolchain -%if %{clang} -%global toolchain clang -%else -%global toolchain gcc -%endif # enable qt backend %global use_qt6 0 @@ -297,7 +274,7 @@ Name: chromium%{chromium_channel} Version: 129.0.6668.58 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -314,13 +291,6 @@ Patch20: chromium-disable-font-tests.patch # don't download binary blob Patch21: chromium-123-screen-ai-service.patch -# Fix issue where closure_compiler thinks java is only allowed in android builds -# https://bugs.chromium.org/p/chromium/issues/detail?id=1192875 -Patch65: chromium-91.0.4472.77-java-only-allowed-in-android-builds.patch - -# Update rjsmin to 1.2.0 -Patch69: chromium-103.0.5060.53-update-rjsmin-to-1.2.0.patch - # Disable tests on remoting build Patch82: chromium-98.0.4758.102-remoting-no-tests.patch @@ -499,25 +469,10 @@ Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuil BuildRequires: golang-github-evanw-esbuild %endif -%if %{clang} BuildRequires: clang BuildRequires: clang-tools-extra BuildRequires: llvm BuildRequires: lld -# needs for libatomic -%if 0%{?rhel} >= 8 -BuildRequires: %{toolset}-%{dts_version}-libatomic-devel -%endif -%else -%if 0%{?rhel} == 8 -BuildRequires: %{toolset}-%{dts_version}-binutils, %{toolset}-%{dts_version}-libatomic-devel -%endif -%if 0%{?fedora} || 0%{?rhel} > 8 -BuildRequires: gcc-c++ -BuildRequires: gcc -BuildRequires: binutils -%endif -%endif BuildRequires: rustc BuildRequires: bindgen-cli @@ -1040,8 +995,6 @@ Qt6 UI for chromium. %patch -P20 -p1 -b .disable-font-test %patch -P21 -p1 -b .screen-ai-service -%patch -P65 -p1 -b .java-only-allowed -%patch -P69 -p1 -b .update-rjsmin-to-1.2.0 %patch -P82 -p1 -b .remoting-no-tests %if ! %{bundlebrotli} @@ -1233,11 +1186,9 @@ cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav %build # reduce warnings -%if %{clang} FLAGS=' -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line-argument' FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable' FLAGS+=' -Wno-unused-const-variable -Wno-unneeded-internal-declaration -Wno-unknown-attributes -Wno-unknown-pragmas' -%endif %if %{system_build_flags} CFLAGS=${CFLAGS/-fexceptions} @@ -1268,29 +1219,16 @@ RUSTFLAGS=${RUSTFLAGS/debuginfo=?/debuginfo=0} %endif %endif -%if %{clang} export CC=clang export CXX=clang++ export AR=llvm-ar export NM=llvm-nm export READELF=llvm-readelf -%else -export CC=gcc -export CXX=g++ -export AR=ar -export NM=nm -export READELF=readelf -%endif export CFLAGS export CXXFLAGS export LDFLAGS export RUSTFLAGS -# enable gcc toolset on el8 -%if 0%{?rhel} == 8 && ! %{clang} -. /opt/rh/%{toolset}-%{dts_version}/enable -%endif - # need for error: the option `Z` is only accepted on the nightly compiler export RUSTC_BOOTSTRAP=1 @@ -1334,16 +1272,11 @@ CHROMIUM_CORE_GN_DEFINES+=' google_default_client_id="%{default_client_id}"' CHROMIUM_CORE_GN_DEFINES+=' google_default_client_secret="%{default_client_secret}"' %endif -%if %{clang} CHROMIUM_CORE_GN_DEFINES+=' is_clang=true' CHROMIUM_CORE_GN_DEFINES+=" clang_base_path=\"$clang_base_path\"" CHROMIUM_CORE_GN_DEFINES+=" clang_version=\"$clang_version\"" CHROMIUM_CORE_GN_DEFINES+=' clang_use_chrome_plugins=false' CHROMIUM_CORE_GN_DEFINES+=' use_lld=true' -%else -CHROMIUM_CORE_GN_DEFINES+=' is_clang=false' -CHROMIUM_CORE_GN_DEFINES+=' use_lld=false' -%endif # enable system rust CHROMIUM_CORE_GN_DEFINES+=' rust_sysroot_absolute="%{_prefix}"' @@ -1978,6 +1911,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Sep 19 2024 Than Ngo - 129.0.6668.58-2 +- clean up + * Tue Sep 17 2024 Than Ngo - 129.0.6668.58-1 - update to 129.0.6668.58 * High CVE-2024-8904: Type Confusion in V8 From 620aa8905522c44ec6abd4094f87bff82e9a431d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 19 Sep 2024 12:58:24 +0200 Subject: [PATCH 051/244] add BR on gcc-toolset-13-libatomic-devel for el 8/9 --- chromium.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chromium.spec b/chromium.spec index 8d0c91d..5f5192f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -474,6 +474,10 @@ BuildRequires: clang-tools-extra BuildRequires: llvm BuildRequires: lld +%if 0%{?rhel} && 0%{?rhel} <= 9 +BuildRequires: gcc-toolset-13-libatomic-devel +%endif + BuildRequires: rustc BuildRequires: bindgen-cli From 87841bbac747a9f782ab703a9e3b6cf283ccf3e1 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 25 Sep 2024 10:39:38 +0200 Subject: [PATCH 052/244] - update to 129.0.6668.70 * High CVE-2024-9120: Use after free in Dawn * High CVE-2024-9121: Inappropriate implementation in V8 * High CVE-2024-9122: Type Confusion in V8 * High CVE-2024-9123: Integer overflow in Skia --- chromium.spec | 11 +++++++++-- sources | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 5f5192f..ecb45b6 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,8 +273,8 @@ %endif Name: chromium%{chromium_channel} -Version: 129.0.6668.58 -Release: 2%{?dist} +Version: 129.0.6668.70 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1915,6 +1915,13 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Sep 25 2024 Than Ngo - 129.0.6668.70-1 +- update to 129.0.6668.70 + * High CVE-2024-9120: Use after free in Dawn + * High CVE-2024-9121: Inappropriate implementation in V8 + * High CVE-2024-9122: Type Confusion in V8 + * High CVE-2024-9123: Integer overflow in Skia + * Thu Sep 19 2024 Than Ngo - 129.0.6668.58-2 - clean up diff --git a/sources b/sources index 36ac1d6..99b53e7 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-129.0.6668.58-clean.tar.xz) = 68554cc18e325514361df3bf9a585ba4cd1923decc2317cc362c6c44998b5bcbcaf055f0e788ce527723eab57382b09d2345974fb2cc6ac48866a0d535b431a4 +SHA512 (chromium-129.0.6668.70-clean.tar.xz) = ce394984ecbb7cd6c32c32d98c68842e6aed22ccf5dfd64588afb32c830c9990070c01faefe66ee5b1a446e2ea7be20ef1abd228fccbabfb9bb4503fd4f0350d From a8bd0425b9e028ee2715126846d73bca8d3ad635 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Fri, 27 Sep 2024 17:49:22 +0200 Subject: [PATCH 053/244] Rebuilt for FFmpeg 7 --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index ecb45b6..2036a04 100644 --- a/chromium.spec +++ b/chromium.spec @@ -274,7 +274,7 @@ Name: chromium%{chromium_channel} Version: 129.0.6668.70 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1915,6 +1915,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Fri Sep 27 2024 Dominik Mierzejewski - 129.0.6668.70-2 +- Rebuilt for FFmpeg 7 + * Wed Sep 25 2024 Than Ngo - 129.0.6668.70-1 - update to 129.0.6668.70 * High CVE-2024-9120: Use after free in Dawn From a54abdb39277e8f6502af3c2e6c8db2f40c6b6fe Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 30 Sep 2024 11:18:13 +0200 Subject: [PATCH 054/244] add clang-19 support --- chromium-127-rust-clanglib.patch | 2 +- chromium.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch index 55b3ce7..ed4d6c0 100644 --- a/chromium-127-rust-clanglib.patch +++ b/chromium-127-rust-clanglib.patch @@ -46,7 +46,7 @@ diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chrom + assert(false) # Unhandled cpu type + } + # different clang lib dir in fedora/epel -+ if (clang_version == "17" || clang_version == "18") { ++ if (clang_version == "17" || clang_version == "18" || clang_version == "19") { + _suffix = "" + } else if (clang_version == "14" || clang_version == "15" || clang_version == "16") { + _libprefix = "64" diff --git a/chromium.spec b/chromium.spec index 2036a04..d96f359 100644 --- a/chromium.spec +++ b/chromium.spec @@ -274,7 +274,7 @@ Name: chromium%{chromium_channel} Version: 129.0.6668.70 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1915,6 +1915,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Mon Sep 30 2024 Than Ngo - 129.0.6668.70-3 +- add clang-19 support + * Fri Sep 27 2024 Dominik Mierzejewski - 129.0.6668.70-2 - Rebuilt for FFmpeg 7 From f13f23629d0662e473f3aa36a95d1c5075456b05 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 2 Oct 2024 18:55:51 +0200 Subject: [PATCH 055/244] - update to 129.0.6668.89 * High CVE -2024-7025: Integer overflow in Layout * High CVE-2024-9369: Insufficient data validation in Mojo * High CVE-2024-9370: Inappropriate implementation in V8 --- chromium.spec | 10 ++++++++-- sources | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index d96f359..fcfec04 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,8 +273,8 @@ %endif Name: chromium%{chromium_channel} -Version: 129.0.6668.70 -Release: 3%{?dist} +Version: 129.0.6668.89 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1915,6 +1915,12 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Oct 02 2024 Than Ngo - 129.0.6668.89-1 +- update to 129.0.6668.89 + * High CVE -2024-7025: Integer overflow in Layout + * High CVE-2024-9369: Insufficient data validation in Mojo + * High CVE-2024-9370: Inappropriate implementation in V8 + * Mon Sep 30 2024 Than Ngo - 129.0.6668.70-3 - add clang-19 support diff --git a/sources b/sources index 99b53e7..abed074 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-129.0.6668.70-clean.tar.xz) = ce394984ecbb7cd6c32c32d98c68842e6aed22ccf5dfd64588afb32c830c9990070c01faefe66ee5b1a446e2ea7be20ef1abd228fccbabfb9bb4503fd4f0350d +SHA512 (chromium-129.0.6668.89-clean.tar.xz) = d5e25c91f1d22f781095d9e440b4d8352ed6fa07bbefee614888fe90b4f3b239871b6012b03ca99cd96a49336b7881ab8eb0600a4d68157f95fafff7c89787bf From 975468507cebfdc2d0ba4902d95240d0e5867a91 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 9 Oct 2024 21:11:20 +0200 Subject: [PATCH 056/244] * Wed Oct 09 2024 Than Ngo - 129.0.6668.100-1 - update to 129.0.6668.100 * CVE-2024-9602: Type Confusion in V8 * CVE-2024-9603: Type Confusion in V8 --- chromium.spec | 7 ++++++- sources | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index fcfec04..fb482ac 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,7 +273,7 @@ %endif Name: chromium%{chromium_channel} -Version: 129.0.6668.89 +Version: 129.0.6668.100 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1915,6 +1915,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Oct 09 2024 Than Ngo - 129.0.6668.100-1 +- update to 129.0.6668.100 + * CVE-2024-9602: Type Confusion in V8 + * CVE-2024-9603: Type Confusion in V8 + * Wed Oct 02 2024 Than Ngo - 129.0.6668.89-1 - update to 129.0.6668.89 * High CVE -2024-7025: Integer overflow in Layout diff --git a/sources b/sources index abed074..a3ee18e 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-129.0.6668.89-clean.tar.xz) = d5e25c91f1d22f781095d9e440b4d8352ed6fa07bbefee614888fe90b4f3b239871b6012b03ca99cd96a49336b7881ab8eb0600a4d68157f95fafff7c89787bf +SHA512 (chromium-129.0.6668.100-clean.tar.xz) = 0c235e68d89ed8fb0ffc5d81dedced7f4f4d3580ab0089be04a69d80b036038d29291a94479c50690a63099c85fea9dabade53e8b3390a8701b250db4cc2e1b2 From cfb5842982c88445ae17d4fcbe868c0fedde8a1e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 17 Oct 2024 09:30:07 +0200 Subject: [PATCH 057/244] - update to 130.0.6723.58 * High CVE-2024-9954: Use after free in AI * Medium CVE-2024-9955: Use after free in Web Authentication * Medium CVE-2024-9956: Inappropriate implementation in Web Authentication * Medium CVE-2024-9957: Use after free in UI * Medium CVE-2024-9958: Inappropriate implementation in PictureInPicture * Medium CVE-2024-9959: Use after free in DevTools * Medium CVE-2024-9960: Use after free in Dawn * Medium CVE-2024-9961: Use after free in Parcel Tracking * Medium CVE-2024-9962: Inappropriate implementation in Permissions * Medium CVE-2024-9963: Insufficient data validation in Downloads * Low CVE-2024-9964: Inappropriate implementation in Payments * Low CVE-2024-9965: Insufficient data validation in DevTools * Low CVE-2024-9966: Inappropriate implementation in Navigations - enable noopenh264 support for epel >8 --- 0001-Add-PPC64-support-for-boringssl.patch | 308 +++++++++--------- ...OWER8-AltiVec-VSX-CPU-features-when-.patch | 23 +- ...Implement-support-for-PPC64-on-Linux.patch | 198 +++++++---- ...Implement-support-for-ppc64-on-Linux.patch | 138 ++++---- ...date-syscall-helpers-lists-for-ppc64.patch | 68 ++-- ...-PPC64-generated-files-for-boringssl.patch | 48 +-- ...party-libvpx-Remove-bad-ppc64-config.patch | 42 +-- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- 0008-sandbox-fix-ppc64le-glibc234.patch | 36 +- HACK-debian-clang-disable-skia-musttail.patch | 14 +- HACK-third_party-libvpx-use-generic-gnu.patch | 20 +- cargo-add-ppc64.diff | 15 +- ...rdware_destructive_interference_size.patch | 21 ++ chromium.spec | 33 +- skia-vsx-instructions.patch | 187 ++++++----- sources | 2 +- 16 files changed, 638 insertions(+), 543 deletions(-) create mode 100644 chromium-130-hardware_destructive_interference_size.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index f8e0ded..ee6cb89 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/cpu_ppc64le.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le.c =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/cpu_ppc64le.c ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le.c @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/cpu_ppc64le.c +} + +#endif // OPENSSL_PPC64LE -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/crypto.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/crypto.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/crypto.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/crypto.c +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/crypto.c ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/crypto.c @@ -66,6 +66,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -350,10 +350,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/crypto.c #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) #include -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,11 +4164,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/a +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -@@ -59,6 +59,12 @@ OPENSSL_INLINE int vpaes_capable(void) { +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +@@ -61,6 +61,12 @@ OPENSSL_INLINE int vpaes_capable(void) { OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4181,22 +4181,22 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/aes/i #endif #endif // !NO_ASM -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bcm.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bcm.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bcm.c -@@ -102,6 +102,7 @@ - #include "self_check/fips.c" - #include "self_check/self_check.c" - #include "service_indicator/service_indicator.c" -+#include "sha/sha1-altivec.c" - #include "sha/sha1.c" - #include "sha/sha256.c" - #include "sha/sha512.c" -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bcm.c +@@ -101,6 +101,7 @@ + #include "self_check/fips.c.inc" + #include "self_check/self_check.c.inc" + #include "service_indicator/service_indicator.c.inc" ++#include "sha/sha1-altivec.c.inc" + #include "sha/sha1.c.inc" + #include "sha/sha256.c.inc" + #include "sha/sha512.c.inc" +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc @@ -384,6 +384,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4221,11 +4221,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/bn/bn if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c -@@ -1455,6 +1455,8 @@ int EVP_has_aes_hardware(void) { +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc +@@ -1456,6 +1456,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); @@ -4234,10 +4234,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/ciphe #else return 0; #endif -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4910,10 +4910,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc @@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4928,10 +4928,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes #endif gcm_init_nohw(out_table, H); -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc @@ -209,5 +209,15 @@ TEST(GCMTest, ABI) { } } @@ -4948,10 +4948,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h @@ -325,6 +325,13 @@ void aes_gcm_dec_kernel(const uint8_t *i const u128 Htable[16]); #endif @@ -4966,10 +4966,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/modes #endif #endif // OPENSSL_NO_ASM -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/getrandom_fillin.h +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4979,11 +4979,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/ #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c -@@ -431,6 +431,11 @@ void RAND_bytes_with_additional_data(uin +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc +@@ -427,6 +427,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with // |rand_thread_state_clear_all|. @@ -4995,10 +4995,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/rand/ CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5016,10 +5016,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/i // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c.inc =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c.inc @@ -0,0 +1,361 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. @@ -5382,10 +5382,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/s +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/internal.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/internal.h +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h @@ -183,8 +183,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ @@ -5398,7 +5398,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1657,6 +1658,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51 +@@ -1723,6 +1724,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51 #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5415,10 +5415,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5740,10 +5740,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/perlasm/ppc-xlat +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5850,10 +5850,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6117,10 +6117,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/test/asm/trampol + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-128.0.6613.113/third_party/boringssl/src/include/openssl/target.h +Index: chromium-130.0.6723.44/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-128.0.6613.113/third_party/boringssl/src/include/openssl/target.h +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-130.0.6723.44/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6131,10 +6131,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/include/openssl/target. #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -37,6 +37,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6144,10 +6144,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/acvp/mod #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -54,7 +54,8 @@ type stringWriter interface { type processorType int @@ -6206,7 +6206,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate return statement, nil } -@@ -646,6 +658,191 @@ func (d *delocation) processAarch64Instr +@@ -659,6 +671,191 @@ func (d *delocation) processAarch64Instr return statement, nil } @@ -6398,7 +6398,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate func (d *delocation) gatherOffsets(symRef *node32, offsets string) (*node32, string) { for symRef != nil && symRef.pegRule == ruleOffset { offset := d.contents(symRef) -@@ -700,6 +897,215 @@ func (d *delocation) parseMemRef(memRef +@@ -713,6 +910,215 @@ func (d *delocation) parseMemRef(memRef return } @@ -6614,7 +6614,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate /* Intel */ type instructionType int -@@ -1332,6 +1738,8 @@ func writeAarch64Function(w stringWriter +@@ -1345,6 +1751,8 @@ func writeAarch64Function(w stringWriter func transform(w stringWriter, inputs []inputFile) error { // symbols contains all defined symbols. symbols := make(map[string]struct{}) @@ -6623,7 +6623,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate // fileNumbers is the set of IDs seen in .file directives. fileNumbers := make(map[int]struct{}) // maxObservedFileNumber contains the largest seen file number in a -@@ -1355,6 +1763,25 @@ func transform(w stringWriter, inputs [] +@@ -1368,6 +1776,25 @@ func transform(w stringWriter, inputs [] }, ruleStatement, ruleLabel, ruleSymbolName) forEachPath(input.ast.up, func(node *node32) { @@ -6649,7 +6649,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate assertNodeType(node, ruleLocationDirective) directive := input.contents[node.begin:node.end] if !strings.HasPrefix(directive, ".file") { -@@ -1402,11 +1829,13 @@ func transform(w stringWriter, inputs [] +@@ -1415,11 +1842,13 @@ func transform(w stringWriter, inputs [] d := &delocation{ symbols: symbols, @@ -6663,7 +6663,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate gotExternalsNeeded: make(map[string]struct{}), gotOffsetsNeeded: make(map[string]struct{}), gotOffOffsetsNeeded: make(map[string]struct{}), -@@ -1441,6 +1870,22 @@ func transform(w stringWriter, inputs [] +@@ -1454,6 +1883,22 @@ func transform(w stringWriter, inputs [] for _, name := range redirectorNames { redirector := d.redirectors[name] switch d.processor { @@ -6686,7 +6686,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate case aarch64: writeAarch64Function(w, redirector, func(w stringWriter) { w.WriteString("\tb " + name + "\n") -@@ -1465,6 +1910,13 @@ func transform(w stringWriter, inputs [] +@@ -1478,6 +1923,13 @@ func transform(w stringWriter, inputs [] target := d.bssAccessorsNeeded[name] switch d.processor { @@ -6700,7 +6700,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate case x86_64: w.WriteString(".type " + funcName + ", @function\n") w.WriteString(funcName + ":\n") -@@ -1480,6 +1932,26 @@ func transform(w stringWriter, inputs [] +@@ -1493,6 +1945,26 @@ func transform(w stringWriter, inputs [] } switch d.processor { @@ -6727,7 +6727,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate case aarch64: externalNames := sortedSet(d.gotExternalsNeeded) for _, symbol := range externalNames { -@@ -1790,6 +2262,10 @@ func localTargetName(name string) string +@@ -1803,6 +2275,10 @@ func localTargetName(name string) string return ".L" + name + "_local_target" } @@ -6738,7 +6738,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate func isSynthesized(symbol string) bool { return strings.HasSuffix(symbol, "_bss_get") || symbol == "OPENSSL_ia32cap_get" || -@@ -1845,6 +2321,8 @@ func detectProcessor(input inputFile) pr +@@ -1858,6 +2334,8 @@ func detectProcessor(input inputFile) pr switch instructionName { case "movq", "call", "leaq": return x86_64 @@ -6747,10 +6747,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,7 +12,7 @@ # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ @@ -6760,10 +6760,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate # https://github.com/pointlander/peg. delocate.go has a go:generate line for # rebuilding delocate.peg.go from this file. -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6776,10 +6776,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6790,10 +6790,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -6857,19 +6857,19 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -6943,10 +6943,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.c" + .abiversion 2 @@ -7109,10 +7109,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -7666,10 +7666,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.c" + .abiversion 2 @@ -7897,10 +7897,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -8579,10 +8579,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8607,10 +8607,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.c" @@ -8790,11 +8790,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/fipstools/delocate +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c +Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c -+++ chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c -@@ -416,6 +416,10 @@ static void sha1_block_data_order(uint32 +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc ++++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc +@@ -408,6 +408,10 @@ static void sha1_block_data_order(uint32 return; } #endif @@ -8805,11 +8805,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/crypto/fipsmodule/sha/s sha1_block_data_order_nohw(state, data, num); } -Index: chromium-128.0.6613.113/third_party/boringssl/src/build.json +Index: chromium-130.0.6723.44/third_party/boringssl/src/build.json =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/build.json -+++ chromium-128.0.6613.113/third_party/boringssl/src/build.json -@@ -122,6 +122,10 @@ +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/build.json ++++ chromium-130.0.6723.44/third_party/boringssl/src/build.json +@@ -118,6 +118,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} ], @@ -8820,7 +8820,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, {"src": "crypto/fipsmodule/bn/asm/bn-586.pl"}, -@@ -225,6 +229,7 @@ +@@ -219,6 +223,7 @@ "crypto/cpu_arm_freebsd.c", "crypto/cpu_arm_linux.c", "crypto/cpu_intel.c", @@ -8828,7 +8828,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/build.json "crypto/crypto.c", "crypto/curve25519/curve25519.c", "crypto/curve25519/curve25519_64_adx.c", -@@ -775,6 +780,9 @@ +@@ -799,6 +804,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8838,10 +8838,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-128.0.6613.113/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-130.0.6723.44/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-128.0.6613.113/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-130.0.6723.44/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8860,38 +8860,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/util/pregenerate/build. for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-128.0.6613.113/third_party/boringssl/BUILD.generated.gni -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/BUILD.generated.gni -+++ chromium-128.0.6613.113/third_party/boringssl/BUILD.generated.gni -@@ -92,6 +92,7 @@ crypto_sources = [ - "src/crypto/cpu_arm_linux.c", - "src/crypto/cpu_arm_linux.h", - "src/crypto/cpu_intel.c", -+ "src/crypto/cpu_ppc64le.c", - "src/crypto/crypto.c", - "src/crypto/curve25519/curve25519.c", - "src/crypto/curve25519/curve25519_64_adx.c", -@@ -335,6 +336,7 @@ crypto_sources_asm = [ - "src/gen/bcm/aesv8-gcm-armv8-apple.S", - "src/gen/bcm/aesv8-gcm-armv8-linux.S", - "src/gen/bcm/aesv8-gcm-armv8-win.S", -+ "src/gen/bcm/aesp8-ppc-linux.S", - "src/gen/bcm/armv4-mont-linux.S", - "src/gen/bcm/armv8-mont-apple.S", - "src/gen/bcm/armv8-mont-linux.S", -@@ -351,6 +353,7 @@ crypto_sources_asm = [ - "src/gen/bcm/ghash-neon-armv8-apple.S", - "src/gen/bcm/ghash-neon-armv8-linux.S", - "src/gen/bcm/ghash-neon-armv8-win.S", -+ "src/gen/bcm/ghashp8-ppc-linux.S", - "src/gen/bcm/ghash-ssse3-x86-apple.S", - "src/gen/bcm/ghash-ssse3-x86-linux.S", - "src/gen/bcm/ghash-ssse3-x86_64-apple.S", -Index: chromium-128.0.6613.113/third_party/boringssl/README.ppc64le +Index: chromium-130.0.6723.44/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/README.ppc64le ++++ chromium-130.0.6723.44/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8901,3 +8873,31 @@ Index: chromium-128.0.6613.113/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen +Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni +@@ -107,6 +107,7 @@ bcm_sources_asm = [ + "gen/bcm/aesv8-gcm-armv8-apple.S", + "gen/bcm/aesv8-gcm-armv8-linux.S", + "gen/bcm/aesv8-gcm-armv8-win.S", ++ "gen/bcm/aesp8-ppc-linux.S", + "gen/bcm/armv4-mont-linux.S", + "gen/bcm/armv8-mont-apple.S", + "gen/bcm/armv8-mont-linux.S", +@@ -123,6 +124,7 @@ bcm_sources_asm = [ + "gen/bcm/ghash-neon-armv8-apple.S", + "gen/bcm/ghash-neon-armv8-linux.S", + "gen/bcm/ghash-neon-armv8-win.S", ++ "gen/bcm/ghashp8-ppc-linux.S", + "gen/bcm/ghash-ssse3-x86-apple.S", + "gen/bcm/ghash-ssse3-x86-linux.S", + "gen/bcm/ghash-ssse3-x86_64-apple.S", +@@ -314,6 +316,7 @@ crypto_sources = [ + "crypto/cpu_arm_freebsd.c", + "crypto/cpu_arm_linux.c", + "crypto/cpu_intel.c", ++ "crypto/cpu_ppc64le.c", + "crypto/crypto.c", + "crypto/curve25519/curve25519.c", + "crypto/curve25519/curve25519_64_adx.c", diff --git a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch index 477b3f3..4ac1414 100644 --- a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +++ b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch @@ -8,20 +8,23 @@ Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) -Index: chromium-128.0.6613.113/v8/BUILD.gn +Index: chromium-130.0.6723.44/v8/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/v8/BUILD.gn -+++ chromium-128.0.6613.113/v8/BUILD.gn -@@ -1417,6 +1417,12 @@ config("toolchain") { - } - if (host_byteorder == "little") { - defines += [ "V8_TARGET_ARCH_PPC_LE" ] +--- chromium-130.0.6723.44.orig/v8/BUILD.gn ++++ chromium-130.0.6723.44/v8/BUILD.gn +@@ -1431,7 +1431,14 @@ config("toolchain") { + if (v8_current_cpu == "ppc64") { + defines += [ "V8_TARGET_ARCH_PPC64" ] + cflags += [ "-ffp-contract=off" ] +- if (current_os == "aix") { ++ if (current_os == "linux") { + cflags += [ + # Enable usage of AltiVec, VSX, and other POWER8 and higher features + "-mcpu=power8", + "-maltivec", + "-mvsx", + ] - } else if (host_byteorder == "big") { - defines += [ "V8_TARGET_ARCH_PPC_BE" ] - if (current_os == "aix") { ++ } else if (current_os == "aix") { + cflags += [ + # Work around AIX ceil, trunc and round oddities. + "-mcpu=power5+", diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index 623cf5a..c3c71b2 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,16 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) ---- a/third_party/crashpad/crashpad/CONTRIBUTORS -+++ b/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/CONTRIBUTORS +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson ---- a/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ b/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -687,6 +687,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -121,8 +125,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ ---- a/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -186,8 +192,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. +} } // namespace crashpad ---- a/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -238,8 +246,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ ---- a/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ b/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -262,8 +272,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. } // namespace } // namespace test } // namespace crashpad ---- a/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ b/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -273,8 +285,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #else #error define kCPU for this CPU #endif ---- a/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ b/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -355,8 +369,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. + } // namespace test } // namespace crashpad ---- a/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ b/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -367,8 +383,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. //! \} } // namespace test ---- a/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ b/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/capture_memory.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -381,8 +399,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #else #error Port. #endif ---- a/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ b/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -393,8 +413,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. }; } // namespace crashpad ---- a/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ b/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -421,8 +443,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: ---- a/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ b/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -456,8 +480,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. }; }; ---- a/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ b/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -545,8 +571,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. } // namespace internal } // namespace crashpad ---- a/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ b/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -564,8 +592,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. }, module_mapping->name, module_mapping->device, ---- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -636,8 +666,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( ---- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -91,6 +91,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -647,8 +679,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #endif } context_union_; CPUContext context_; ---- a/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ b/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -678,8 +712,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #else #error Port. #endif ---- a/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ b/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -689,8 +725,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #else #error Port. #endif ---- a/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ b/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -891,8 +937,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. + } // namespace test } // namespace crashpad ---- a/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ b/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -901,8 +949,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. //! \} } // namespace test ---- a/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ b/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/test/linux/get_tls.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -912,8 +962,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #else #error Port. #endif // ARCH_CPU_ARMEL ---- a/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ b/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/test/multiprocess_posix.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -924,8 +976,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); ---- a/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ b/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -938,8 +992,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; ---- a/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ b/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/ptracer.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1015,8 +1071,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, ---- a/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ b/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/thread_info.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1135,8 +1193,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; ---- a/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ b/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context.h +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1145,8 +1205,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. ---- a/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ b/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1373,8 +1435,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 ---- a/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ b/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1384,8 +1448,10 @@ This patch implements support for the PPC64 architecture on Linux hosts. // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = ---- a/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ b/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +=================================================================== +--- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index 7d283dc..8253398 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/du #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/du +#endif + } // namespace google_breakpad -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/du }; } // namespace google_breakpad -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/du #endif } // namespace google_breakpad -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,10 +247,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/du #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc @@ -464,6 +464,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); @@ -295,10 +295,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/ha #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -200,7 +200,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -312,10 +312,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/ha fpstate_t float_state; #endif }; -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc @@ -321,7 +321,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; @@ -347,10 +347,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/ha const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -141,7 +141,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -393,10 +393,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,10 +446,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -461,10 +461,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,10 +475,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -56,6 +56,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -488,10 +488,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi #else #error This test has not been ported to this platform. #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -533,10 +533,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -556,10 +556,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi #else #error This test has not been ported to this platform. #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -144,7 +144,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -613,10 +613,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/client/linux/mi #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,10 +654,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/me struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -672,10 +672,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/linux/me for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); @@ -687,10 +687,10 @@ Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/common/memory_a for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == NULL); -Index: chromium-128.0.6613.113/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-128.0.6613.113/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +--- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc @@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index a191e74..a1eee2e 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -12,10 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 sandbox/linux/services/syscall_wrappers.cc | 2 +- 6 files changed, 73 insertions(+), 55 deletions(-) -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -54,10 +54,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc @@ -36,7 +36,7 @@ #include "sandbox/linux/system_headers/linux_time.h" @@ -146,10 +146,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_paramet PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -159,10 +159,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_paramet // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -357,7 +357,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc bool SyscallSets::IsNetworkSocketInformation(int sysno) { switch (sysno) { case __NR_getpeername: -@@ -553,7 +567,7 @@ bool SyscallSets::IsAllowedAddressSpaceA +@@ -554,7 +568,7 @@ bool SyscallSets::IsAllowedAddressSpaceA case __NR_mincore: case __NR_mlockall: #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -366,7 +366,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_mmap: #endif #if defined(__i386__) || defined(__arm__) || \ -@@ -583,7 +597,8 @@ bool SyscallSets::IsAllowedGeneralIo(int +@@ -584,7 +598,8 @@ bool SyscallSets::IsAllowedGeneralIo(int switch (sysno) { case __NR_lseek: #if defined(__i386__) || defined(__arm__) || \ @@ -376,7 +376,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR__llseek: #endif #if !defined(__aarch64__) -@@ -603,26 +618,28 @@ bool SyscallSets::IsAllowedGeneralIo(int +@@ -604,26 +619,28 @@ bool SyscallSets::IsAllowedGeneralIo(int case __NR_readv: case __NR_pread64: #if defined(__arm__) || \ @@ -411,7 +411,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_sendmsg: // Could specify destination. case __NR_sendto: // Could specify destination. #endif -@@ -678,7 +695,8 @@ bool SyscallSets::IsAllowedBasicSchedule +@@ -679,7 +696,8 @@ bool SyscallSets::IsAllowedBasicSchedule return true; case __NR_getpriority: #if defined(__i386__) || defined(__arm__) || \ @@ -421,7 +421,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_nice: #endif case __NR_setpriority: -@@ -690,7 +708,8 @@ bool SyscallSets::IsAllowedBasicSchedule +@@ -691,7 +709,8 @@ bool SyscallSets::IsAllowedBasicSchedule bool SyscallSets::IsAdminOperation(int sysno) { switch (sysno) { #if defined(__i386__) || defined(__arm__) || \ @@ -431,7 +431,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_bdflush: #endif case __NR_kexec_load: -@@ -706,7 +725,8 @@ bool SyscallSets::IsAdminOperation(int s +@@ -707,7 +726,8 @@ bool SyscallSets::IsAdminOperation(int s bool SyscallSets::IsKernelModule(int sysno) { switch (sysno) { @@ -441,7 +441,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_create_module: case __NR_get_kernel_syms: // Should ENOSYS. case __NR_query_module: -@@ -739,7 +759,8 @@ bool SyscallSets::IsFsControl(int sysno) +@@ -740,7 +760,8 @@ bool SyscallSets::IsFsControl(int sysno) case __NR_swapoff: case __NR_swapon: #if defined(__i386__) || \ @@ -451,7 +451,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_umount: #endif case __NR_umount2: -@@ -755,7 +776,7 @@ bool SyscallSets::IsNuma(int sysno) { +@@ -756,7 +777,7 @@ bool SyscallSets::IsNuma(int sysno) { case __NR_getcpu: case __NR_mbind: #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -460,7 +460,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_migrate_pages: #endif case __NR_move_pages: -@@ -790,14 +811,15 @@ bool SyscallSets::IsGlobalProcessEnviron +@@ -791,14 +812,15 @@ bool SyscallSets::IsGlobalProcessEnviron switch (sysno) { case __NR_acct: // Privileged. #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -479,7 +479,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_ulimit: #endif case __NR_getrusage: -@@ -831,7 +853,7 @@ bool SyscallSets::IsGlobalSystemStatus(i +@@ -832,7 +854,7 @@ bool SyscallSets::IsGlobalSystemStatus(i #endif case __NR_sysinfo: case __NR_uname: @@ -488,7 +488,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_olduname: case __NR_oldolduname: #endif -@@ -915,7 +937,8 @@ bool SyscallSets::IsSystemVSemaphores(in +@@ -916,7 +938,8 @@ bool SyscallSets::IsSystemVSemaphores(in #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ defined(__aarch64__) || \ @@ -498,7 +498,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc // These give a lot of ambient authority and bypass the setuid sandbox. bool SyscallSets::IsSystemVSharedMemory(int sysno) { switch (sysno) { -@@ -946,7 +969,8 @@ bool SyscallSets::IsSystemVMessageQueue( +@@ -947,7 +970,8 @@ bool SyscallSets::IsSystemVMessageQueue( #endif #if defined(__i386__) || \ @@ -508,7 +508,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc // Big system V multiplexing system call. bool SyscallSets::IsSystemVIpc(int sysno) { switch (sysno) { -@@ -966,7 +990,8 @@ bool SyscallSets::IsAnySystemV(int sysno +@@ -967,7 +991,8 @@ bool SyscallSets::IsAnySystemV(int sysno return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || IsSystemVSharedMemory(sysno); #elif defined(__i386__) || \ @@ -518,7 +518,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc return IsSystemVIpc(sysno); #endif } -@@ -1023,7 +1048,8 @@ bool SyscallSets::IsFaNotify(int sysno) +@@ -1024,7 +1049,8 @@ bool SyscallSets::IsFaNotify(int sysno) bool SyscallSets::IsTimer(int sysno) { switch (sysno) { case __NR_getitimer: @@ -528,7 +528,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_alarm: #endif case __NR_setitimer: -@@ -1102,18 +1128,22 @@ bool SyscallSets::IsMisc(int sysno) { +@@ -1103,18 +1129,22 @@ bool SyscallSets::IsMisc(int sysno) { case __NR_syncfs: case __NR_vhangup: // The system calls below are not implemented. @@ -555,7 +555,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_gtty: case __NR_idle: case __NR_lock: -@@ -1121,20 +1151,22 @@ bool SyscallSets::IsMisc(int sysno) { +@@ -1122,20 +1152,22 @@ bool SyscallSets::IsMisc(int sysno) { case __NR_prof: case __NR_profil: #endif @@ -582,10 +582,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -623,10 +623,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-128.0.6613.113/sandbox/linux/services/syscall_wrappers.cc +Index: chromium-130.0.6723.44/sandbox/linux/services/syscall_wrappers.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-128.0.6613.113/sandbox/linux/services/syscall_wrappers.cc +--- chromium-130.0.6723.44.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-130.0.6723.44/sandbox/linux/services/syscall_wrappers.cc @@ -61,7 +61,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 7ae06a9..535a0d6 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux +// See https://www.airs.com/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,11 +4271,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/bcm/ghashp8-ppc-lin +// See https://www.airs.com/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake +Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake -@@ -110,6 +110,7 @@ set( +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake +@@ -106,6 +106,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S gen/bcm/aesni-x86_64-linux.S @@ -4283,7 +4283,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake gen/bcm/aesv8-armv7-linux.S gen/bcm/aesv8-armv8-apple.S gen/bcm/aesv8-armv8-linux.S -@@ -141,6 +142,7 @@ set( +@@ -137,6 +138,7 @@ set( gen/bcm/ghash-x86-linux.S gen/bcm/ghash-x86_64-apple.S gen/bcm/ghash-x86_64-linux.S @@ -4291,7 +4291,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake gen/bcm/ghashv8-armv7-linux.S gen/bcm/ghashv8-armv8-apple.S gen/bcm/ghashv8-armv8-linux.S -@@ -338,6 +340,7 @@ set( +@@ -328,6 +330,7 @@ set( crypto/cpu_arm_freebsd.c crypto/cpu_arm_linux.c crypto/cpu_intel.c @@ -4299,7 +4299,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake crypto/crypto.c crypto/curve25519/curve25519.c crypto/curve25519/curve25519_64_adx.c -@@ -778,37 +781,6 @@ set( +@@ -805,37 +808,6 @@ set( CRYPTO_TEST_DATA crypto/blake2/blake2b256_tests.txt @@ -4337,7 +4337,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake crypto/curve25519/ed25519_tests.txt crypto/dilithium/dilithium_tests.txt crypto/dilithium/edge_cases_draft_dilithium3_sign.txt -@@ -1198,1413 +1170,6 @@ set( +@@ -1279,1413 +1251,6 @@ set( set( PKI_TEST_DATA @@ -5751,7 +5751,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake pki/testdata/verify_unittest/google-intermediate1.der pki/testdata/verify_unittest/google-intermediate2.der pki/testdata/verify_unittest/google-leaf.der -@@ -2725,6 +1290,7 @@ set( +@@ -2838,6 +1403,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -5759,11 +5759,11 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json +Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-128.0.6613.113.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json -@@ -88,6 +88,7 @@ +--- chromium-130.0.6723.44.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json +@@ -84,6 +84,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", "gen/bcm/aesni-x86_64-linux.S", @@ -5771,7 +5771,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json "gen/bcm/aesv8-armv7-linux.S", "gen/bcm/aesv8-armv8-apple.S", "gen/bcm/aesv8-armv8-linux.S", -@@ -119,6 +120,7 @@ +@@ -115,6 +116,7 @@ "gen/bcm/ghash-x86-linux.S", "gen/bcm/ghash-x86_64-apple.S", "gen/bcm/ghash-x86_64-linux.S", @@ -5779,7 +5779,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json "gen/bcm/ghashv8-armv7-linux.S", "gen/bcm/ghashv8-armv8-apple.S", "gen/bcm/ghashv8-armv8-linux.S", -@@ -308,6 +310,7 @@ +@@ -298,6 +300,7 @@ "crypto/cpu_arm_freebsd.c", "crypto/cpu_arm_linux.c", "crypto/cpu_intel.c", @@ -5787,7 +5787,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json "crypto/crypto.c", "crypto/curve25519/curve25519.c", "crypto/curve25519/curve25519_64_adx.c", -@@ -732,37 +735,6 @@ +@@ -759,37 +762,6 @@ ], "data": [ "crypto/blake2/blake2b256_tests.txt", @@ -5825,7 +5825,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json "crypto/curve25519/ed25519_tests.txt", "crypto/dilithium/dilithium_tests.txt", "crypto/dilithium/edge_cases_draft_dilithium3_sign.txt", -@@ -1136,1413 +1108,6 @@ +@@ -1216,1413 +1188,6 @@ "pki/verify_unittest.cc" ], "data": [ @@ -7239,7 +7239,7 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json "pki/testdata/verify_unittest/google-intermediate1.der", "pki/testdata/verify_unittest/google-intermediate2.der", "pki/testdata/verify_unittest/google-leaf.der", -@@ -2648,6 +1213,7 @@ +@@ -2758,6 +1323,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -7247,10 +7247,10 @@ Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-128.0.6613.113/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-130.0.6723.44/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index cbaaab6..6b655bd 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,12 +1,6 @@ -commit f752c1b0973a1dd61854b290a05fc1cd57b7b313 -Author: Timothy Pearson -Date: Tue Aug 20 22:40:12 2024 -0500 - - OLD - -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null @@ -1,330 +0,0 @@ -/* @@ -338,10 +332,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_ -} // extern "C" -#endif - --#endif -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +-#endif // VP8_RTCD_H_ +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null @@ -1,203 +0,0 @@ -/* @@ -546,10 +540,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_ -} // extern "C" -#endif - --#endif -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +-#endif // VP9_RTCD_H_ +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,108 +0,0 @@ -@ This file was created from a .asm file @@ -660,9 +654,9 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -675,9 +669,9 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -797,9 +791,9 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null @@ -1,2138 +0,0 @@ -/* @@ -2939,10 +2933,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ -} // extern "C" -#endif - --#endif -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +-#endif // VPX_DSP_RTCD_H_ +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null @@ -1,110 +0,0 @@ -/* @@ -3054,4 +3048,4 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ -} // extern "C" -#endif - --#endif +-#endif // VPX_SCALE_RTCD_H_ diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index 2430ee9..4aab2ee 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp8_ +#endif + +#endif -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vp9_ +#endif + +#endif -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_ +#endif + +#endif -Index: chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch index 6dd9d64..2e70fef 100644 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ b/0008-sandbox-fix-ppc64le-glibc234.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_utility_policy_linux.cc +Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- chromium-130.0.6723.44.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -11,10 +11,10 @@ Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-130.0.6723.44.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -87,7 +87,7 @@ ResultExpr RendererProcessPolicy::Evalua case __NR_ftruncate64: #endif @@ -24,10 +24,10 @@ Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-130.0.6723.44.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -58,9 +58,9 @@ #elif defined(__powerpc64__) @@ -40,11 +40,11 @@ Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h #define MAX_SYSCALL MAX_PUBLIC_SYSCALL #else -Index: chromium-128.0.6613.113/sandbox/linux/services/credentials.cc +Index: chromium-130.0.6723.44/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/services/credentials.cc -+++ chromium-128.0.6613.113/sandbox/linux/services/credentials.cc -@@ -94,7 +94,8 @@ bool ChrootToSafeEmptyDir() { +--- chromium-130.0.6723.44.orig/sandbox/linux/services/credentials.cc ++++ chromium-130.0.6723.44/sandbox/linux/services/credentials.cc +@@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() { int clone_flags = CLONE_FS | LINUX_SIGCHLD; void* tls = nullptr; @@ -54,7 +54,7 @@ Index: chromium-128.0.6613.113/sandbox/linux/services/credentials.cc !defined(MEMORY_SANITIZER) // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. // Since clone writes to the new child's TLS before returning, we must set a -@@ -102,6 +103,11 @@ bool ChrootToSafeEmptyDir() { +@@ -104,6 +105,11 @@ bool ChrootToSafeEmptyDir() { // glibc performs syscalls by calling a function pointer in TLS, so we do not // attempt this optimization. // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. @@ -65,11 +65,11 @@ Index: chromium-128.0.6613.113/sandbox/linux/services/credentials.cc + // configuration loading failures and no fonts will be displayed! clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; - // PTHREAD_STACK_MIN can be dynamic in glibc2.34+, so it is not possible to -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc + char tls_buf[PTHREAD_STACK_MIN_CONST] = {0}; +Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +--- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc @@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && diff --git a/HACK-debian-clang-disable-skia-musttail.patch b/HACK-debian-clang-disable-skia-musttail.patch index 3ef861a..0aee7d8 100644 --- a/HACK-debian-clang-disable-skia-musttail.patch +++ b/HACK-debian-clang-disable-skia-musttail.patch @@ -1,13 +1,13 @@ -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkRasterPipeline.h +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkRasterPipeline.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkRasterPipeline.h -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkRasterPipeline.h +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkRasterPipeline.h ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkRasterPipeline.h @@ -27,7 +27,7 @@ struct SkImageInfo; struct skcms_TransferFunction; #if __has_cpp_attribute(clang::musttail) && !defined(__EMSCRIPTEN__) && !defined(SK_CPU_ARM32) && \ -- !defined(SK_CPU_LOONGARCH) -+ !defined(SK_CPU_LOONGARCH) && !defined(__powerpc64__) +- !defined(SK_CPU_LOONGARCH) && !(defined(_WIN32) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)) ++ !defined(SK_CPU_LOONGARCH) && !(defined(_WIN32) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)) && !defined(__powerpc64__) + // [[clang::musttail]] is disabled for the Android version of Skia running on Windows as it + // causes crashes (This is probably related to http://crbug.com/1505442). #define SK_HAS_MUSTTAIL 1 - #else - #define SK_HAS_MUSTTAIL 0 diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index 895c6ad..c4a9298 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/libvpx/generate_gni.sh +Index: chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/generate_gni.sh -+++ chromium-128.0.6613.113/third_party/libvpx/generate_gni.sh +--- chromium-130.0.6723.44.orig/third_party/libvpx/generate_gni.sh ++++ chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh @@ -433,7 +433,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ @@ -11,11 +11,11 @@ Index: chromium-128.0.6613.113/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/build/make/rtcd.pl -@@ -508,8 +508,9 @@ if ($opts{arch} eq 'x86') { +--- chromium-130.0.6723.44.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.pl +@@ -509,8 +509,9 @@ if ($opts{arch} eq 'x86') { &require(@REQUIRES); arm; } elsif ($opts{arch} =~ /^ppc/ ) { @@ -27,10 +27,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/build/make/rtcd. } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-128.0.6613.113/third_party/libvpx/BUILD.gn +Index: chromium-130.0.6723.44/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/BUILD.gn -+++ chromium-128.0.6613.113/third_party/libvpx/BUILD.gn +--- chromium-130.0.6723.44.orig/third_party/libvpx/BUILD.gn ++++ chromium-130.0.6723.44/third_party/libvpx/BUILD.gn @@ -102,6 +102,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] diff --git a/cargo-add-ppc64.diff b/cargo-add-ppc64.diff index 275bf02..482f6f6 100644 --- a/cargo-add-ppc64.diff +++ b/cargo-add-ppc64.diff @@ -1,12 +1,13 @@ -diff -up chromium-129.0.6668.42/build/rust/cargo_crate.gni.me chromium-129.0.6668.42/build/rust/cargo_crate.gni ---- chromium-129.0.6668.42/build/rust/cargo_crate.gni.me 2024-09-16 14:19:49.407900780 +0200 -+++ chromium-129.0.6668.42/build/rust/cargo_crate.gni 2024-09-16 14:21:33.411392581 +0200 -@@ -429,7 +429,7 @@ template("cargo_crate") { - rust_abi_target, +Index: chromium-130.0.6723.44/build/rust/cargo_crate.gni +=================================================================== +--- chromium-130.0.6723.44.orig/build/rust/cargo_crate.gni ++++ chromium-130.0.6723.44/build/rust/cargo_crate.gni +@@ -430,7 +430,7 @@ template("cargo_crate") { ] } -- if (current_cpu == "arm64" || current_cpu == "x64") { -+ if (current_cpu == "arm64" || current_cpu == "x64" || current_cpu == "ppc64") { + if (current_cpu == "arm64" || current_cpu == "x64" || +- current_cpu == "loong64" || current_cpu == "riscv64") { ++ current_cpu == "loong64" || current_cpu == "riscv64" || current_cpu == "ppc64") { args += [ "--pointer-width", "64", diff --git a/chromium-130-hardware_destructive_interference_size.patch b/chromium-130-hardware_destructive_interference_size.patch new file mode 100644 index 0000000..8d02fd9 --- /dev/null +++ b/chromium-130-hardware_destructive_interference_size.patch @@ -0,0 +1,21 @@ +diff -up chromium-130.0.6723.44/components/media_router/common/providers/cast/channel/enum_table.h.me chromium-130.0.6723.44/components/media_router/common/providers/cast/channel/enum_table.h +--- chromium-130.0.6723.44/components/media_router/common/providers/cast/channel/enum_table.h.me 2024-10-15 09:58:39.571798463 +0200 ++++ chromium-130.0.6723.44/components/media_router/common/providers/cast/channel/enum_table.h 2024-10-15 09:59:46.209147226 +0200 +@@ -12,7 +12,6 @@ + + #include + #include +-#include + #include + #include + #include +@@ -368,7 +367,8 @@ class EnumTable { + + private: + #ifdef ARCH_CPU_64_BITS +- alignas(std::hardware_destructive_interference_size) ++ // Align the data on a cache line boundary. ++ alignas(64) + #endif + std::initializer_list data_; + bool is_sorted_; diff --git a/chromium.spec b/chromium.spec index fb482ac..a087c69 100644 --- a/chromium.spec +++ b/chromium.spec @@ -84,7 +84,7 @@ %endif %endif -%if 0%{?fedora} >= 40 +%if 0%{?fedora} >= 40 || 0%{?rhel} >= 9 %global noopenh264 1 %endif @@ -273,7 +273,7 @@ %endif Name: chromium%{chromium_channel} -Version: 129.0.6668.100 +Version: 130.0.6723.58 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -351,6 +351,9 @@ Patch353: chromium-127-aarch64-duplicate-case-value.patch # remove flag split-threshold-for-reg-with-hint, it's not supported in clang <= 17 Patch354: chromium-126-split-threshold-for-reg-with-hint.patch +# fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' +Patch355: chromium-130-hardware_destructive_interference_size.patch + # set clang_lib path Patch358: chromium-127-rust-clanglib.patch @@ -491,15 +494,6 @@ BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavfilter) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavutil) -# chromium fail to start for rpmfusion users due to ABI break in ffmpeg-free-6.0.1 -# bethween fedora and rpmfussion. -%if 0%{?rhel} == 9 || 0%{?fedora} == 37 -Conflicts: libavformat-free%{_isa} < 5.1.4 -Conflicts: ffmpeg-libs%{_isa} < 5.1.4 -%else -Conflicts: libavformat-free%{_isa} < 6.0.1 -Conflicts: ffmpeg-libs%{_isa} < 6.0.1-2 -%endif %endif %if 0%{?noopenh264} @@ -1063,6 +1057,7 @@ Qt6 UI for chromium. %patch -P354 -p1 -b .split-threshold-for-reg-with-hint %endif +%patch -P355 -p1 -b .hardware_destructive_interference_size %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le @@ -1915,6 +1910,22 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Oct 16 2024 Than Ngo - 130.0.6723.58-1 +- update to 130.0.6723.58 + * High CVE-2024-9954: Use after free in AI + * Medium CVE-2024-9955: Use after free in Web Authentication + * Medium CVE-2024-9956: Inappropriate implementation in Web Authentication + * Medium CVE-2024-9957: Use after free in UI + * Medium CVE-2024-9958: Inappropriate implementation in PictureInPicture + * Medium CVE-2024-9959: Use after free in DevTools + * Medium CVE-2024-9960: Use after free in Dawn + * Medium CVE-2024-9961: Use after free in Parcel Tracking + * Medium CVE-2024-9962: Inappropriate implementation in Permissions + * Medium CVE-2024-9963: Insufficient data validation in Downloads + * Low CVE-2024-9964: Inappropriate implementation in Payments + * Low CVE-2024-9965: Insufficient data validation in DevTools + * Low CVE-2024-9966: Inappropriate implementation in Navigations + * Wed Oct 09 2024 Than Ngo - 129.0.6668.100-1 - update to 129.0.6668.100 * CVE-2024-9602: Type Confusion in V8 diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index 979354f..53835cc 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,8 +1,8 @@ -Index: chromium-128.0.6613.113/third_party/skia/BUILD.gn +Index: chromium-130.0.6723.44/third_party/skia/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/BUILD.gn -+++ chromium-128.0.6613.113/third_party/skia/BUILD.gn -@@ -195,6 +195,12 @@ opts("lasx") { +--- chromium-130.0.6723.44.orig/third_party/skia/BUILD.gn ++++ chromium-130.0.6723.44/third_party/skia/BUILD.gn +@@ -192,6 +192,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-128.0.6613.113/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1463,6 +1469,7 @@ skia_component("skia") { +@@ -1466,6 +1472,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-128.0.6613.113/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1640,7 +1647,10 @@ skia_static_library("pathkit") { +@@ -1637,7 +1644,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,10 +35,10 @@ Index: chromium-128.0.6613.113/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-128.0.6613.113/third_party/skia/gn/skia/BUILD.gn +Index: chromium-130.0.6723.44/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-128.0.6613.113/third_party/skia/gn/skia/BUILD.gn +--- chromium-130.0.6723.44.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-130.0.6723.44/third_party/skia/gn/skia/BUILD.gn @@ -167,6 +167,8 @@ config("default") { "-mfpmath=sse", ] @@ -48,11 +48,11 @@ Index: chromium-128.0.6613.113/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-128.0.6613.113/third_party/skia/include/core/SkTypes.h +Index: chromium-130.0.6723.44/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-128.0.6613.113/third_party/skia/include/core/SkTypes.h -@@ -195,5 +195,44 @@ static constexpr uint32_t SK_InvalidGenI +--- chromium-130.0.6723.44.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-130.0.6723.44/third_party/skia/include/core/SkTypes.h +@@ -178,4 +178,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -95,12 +95,11 @@ Index: chromium-128.0.6613.113/third_party/skia/include/core/SkTypes.h + #endif +#endif + - #endif -Index: chromium-128.0.6613.113/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -111,10 +110,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-128.0.6613.113/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-130.0.6723.44/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -130,10 +129,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkBitmapProcState_opts. #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-128.0.6613.113/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-130.0.6723.44/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -143,10 +142,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-130.0.6723.44/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -155,28 +154,28 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. @@ -75,6 +76,8 @@ using NoCtx = const void*; - #define JUMPER_IS_SCALAR + #define SKRP_CPU_SCALAR #elif defined(SK_ARM_HAS_NEON) - #define JUMPER_IS_NEON + #define SKRP_CPU_NEON +#elif defined(SK_PPC64_HAS_SSE_COMPAT) -+ #define JUMPER_IS_VSX ++ #define SKRP_CPU_VSX #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SKX - #define JUMPER_IS_SKX + #define SKRP_CPU_SKX #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_AVX2 @@ -97,6 +100,8 @@ using NoCtx = const void*; #include - #elif defined(JUMPER_IS_NEON) + #elif defined(SKRP_CPU_NEON) #include -+#elif defined(JUMPER_IS_VSX) ++#elif defined(SKRP_CPU_VSX) + #include - #elif defined(JUMPER_IS_LASX) + #elif defined(SKRP_CPU_LASX) #include #include @@ -195,6 +200,184 @@ namespace SK_OPTS_NS { ptr[3] = a; } -+#elif defined(JUMPER_IS_VSX) ++#elif defined(SKRP_CPU_VSX) + // Since we know we're using Clang, we can use its vector extensions. + template using V = T __attribute__((ext_vector_type(4))); + using F = V; @@ -354,16 +353,16 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h + _mm_storeu_ps(ptr +12, a); + } + - #elif defined(JUMPER_IS_NEON) + #elif defined(SKRP_CPU_NEON) template using V = Vec<4, T>; using F = V; @@ -1401,6 +1584,15 @@ SI F from_half(U16 h) { - #elif defined(JUMPER_IS_HSW) + #elif defined(SKRP_CPU_HSW) return _mm256_cvtph_ps((__m128i)h); +// Disabled for now as this is not a particularly hot function +// and there is no good reason to lock Chromium to POWER9+ yet. -+#elif 0 && defined(JUMPER_IS_VSX) && __has_builtin(__builtin_vsx_xvcvhpsp) ++#elif 0 && defined(SKRP_CPU_VSX) && __has_builtin(__builtin_vsx_xvcvhpsp) + #if defined(SK_CPU_LENDIAN) + return __builtin_vsx_xvcvhpsp({h[0], 0, h[1], 0, h[2], 0, h[3], 0}); + #else @@ -374,12 +373,12 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h // Remember, a half is 1-5-10 (sign-exponent-mantissa) with 15 exponent bias. U32 sem = expand(h), @@ -1424,6 +1616,16 @@ SI U16 to_half(F f) { - #elif defined(JUMPER_IS_HSW) + #elif defined(SKRP_CPU_HSW) return (U16)_mm256_cvtps_ph(f, _MM_FROUND_CUR_DIRECTION); +// Disabled for now as this is not a particularly hot function +// and there is no good reason to lock Chromium to POWER9+ yet. -+#elif 0 && defined(JUMPER_IS_VSX) && __has_builtin(__builtin_vsx_xvcvsphp) ++#elif 0 && defined(SKRP_CPU_VSX) && __has_builtin(__builtin_vsx_xvcvsphp) + __vector unsigned short v = __builtin_vsx_xvcvsphp(f); + #if defined(SK_CPU_LENDIAN) + return U16{v[0], v[2], v[4], v[6]}; @@ -393,47 +392,47 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1499,7 +1701,7 @@ static constexpr size_t N = sizeof(F) / // instead of {b,a} on the stack. Narrow stages work best for __vectorcall. #define ABI __vectorcall - #define JUMPER_NARROW_STAGES 1 + #define SKRP_NARROW_STAGES 1 -#elif defined(__x86_64__) || defined(SK_CPU_ARM64) || defined(SK_CPU_LOONGARCH) +#elif defined(__x86_64__) || defined(SK_CPU_ARM64) || defined(SK_CPU_LOONGARCH) || defined(SK_CPU_PPC64) // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI - #define JUMPER_NARROW_STAGES 0 -@@ -5477,6 +5679,10 @@ SI F sqrt_(F x) { + #define SKRP_NARROW_STAGES 0 +@@ -5481,6 +5683,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); -+#elif defined(JUMPER_IS_VSX) ++#elif defined(SKRP_CPU_VSX) + vector float lo,hi; + split(x, &lo,&hi); + return join(vec_sqrt(lo), vec_sqrt(hi)); - #elif defined(JUMPER_IS_LASX) + #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5508,6 +5714,10 @@ SI F floor_(F x) { +@@ -5512,6 +5718,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); -+#elif defined(JUMPER_IS_VSX) ++#elif defined(SKRP_CPU_VSX) + vector float lo,hi; + split(x, &lo,&hi); + return join(vec_floor(lo), vec_floor(hi)); - #elif defined(JUMPER_IS_LASX) + #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5527,6 +5737,7 @@ SI F floor_(F x) { +@@ -5531,6 +5741,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. +// Note: for POWER, the code below was borrowed from emmintrin.h SI I16 scaled_mult(I16 a, I16 b) { - #if defined(JUMPER_IS_SKX) + #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5538,6 +5749,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5542,6 +5753,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); - #elif defined(JUMPER_IS_NEON) + #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); -+#elif defined(JUMPER_IS_VSX) ++#elif defined(SKRP_CPU_VSX) + const vector unsigned int shift = vec_splats((unsigned int)14); + const vector int ones = vec_splats((signed int)1); + vector int c = vec_unpackh((vector short)a); @@ -449,10 +448,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h + d = vec_add(d, ones); + d = vec_sr(d,(vector unsigned int)ones); + return vec_pack(c, d); - #elif defined(JUMPER_IS_LASX) + #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5565,7 +5792,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5569,7 +5796,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -461,7 +460,7 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h + // Just because it sort of seems to work on Intel/ARM on Clang doesn't mean it works everywhere... + // FIXME: For added fun, the existing Skia unit tests do NOT properly test for issues in the + // lowp bilerp path. Investigate and write an appropriate test case... -+#if defined(JUMPER_IS_VSX) ++#if defined(SKRP_CPU_VSX) + // Most POWER compilers end up doing some kind of width promotion that causes memory corruption + // and/or incorrect results. This shows up as snow and general graphics corruption, especially + // noticeable when trying to display a PNG at less than 50% size (resize the browser window down @@ -479,11 +478,11 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6574,8 +6820,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6582,8 +6828,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { -+#if defined(JUMPER_IS_VSX) ++#if defined(SKRP_CPU_VSX) + // constrained_add() on POWER is run in half precision mode to avoid undefined behavior + I16 width = (I16)(right - left) << 6; + U16 middle = (right + left) << 6; @@ -494,11 +493,11 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6587,7 +6839,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6595,7 +6847,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. -+#if defined(JUMPER_IS_VSX) ++#if defined(SKRP_CPU_VSX) + // constrained_add() on POWER is run in half precision mode to avoid undefined behavior + return v2; +#else @@ -507,11 +506,11 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6621,9 +6878,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6629,9 +6886,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. -+#if defined(JUMPER_IS_VSX) ++#if defined(SKRP_CPU_VSX) + // constrained_add() on POWER is run in half precision mode to avoid undefined behavior + U16 blend = constrained_add(scaled_mult(ty, width) / 2, middle / 2) + (0x80 / 2); + return blend >> 7; @@ -524,10 +523,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-128.0.6613.113/third_party/skia/src/base/SkVx.h +Index: chromium-130.0.6723.44/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/base/SkVx.h -+++ chromium-128.0.6613.113/third_party/skia/src/base/SkVx.h +--- chromium-130.0.6723.44.orig/third_party/skia/src/base/SkVx.h ++++ chromium-130.0.6723.44/third_party/skia/src/base/SkVx.h @@ -42,7 +42,13 @@ #if SKVX_USE_SIMD @@ -543,10 +542,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/base/SkVx.h #elif defined(SK_ARM_HAS_NEON) #include #elif defined(__wasm_simd128__) -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -556,10 +555,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts_ssse3.c // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -569,10 +568,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/core/SkSwizzler_opts_ssse3.c !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -582,10 +581,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -595,10 +594,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts. #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkCpu.h +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkCpu.h +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -608,10 +607,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -621,10 +620,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBitmapProcState_opts_ // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-128.0.6613.113/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-130.0.6723.44/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-128.0.6613.113/third_party/skia/include/private/base/SkFeatures.h +--- chromium-130.0.6723.44.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-130.0.6723.44/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -634,10 +633,10 @@ Index: chromium-128.0.6613.113/third_party/skia/include/private/base/SkFeatures. #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-128.0.6613.113/third_party/skia/modules/skcms/src/skcms_internals.h +Index: chromium-130.0.6723.44/third_party/skia/modules/skcms/src/skcms_internals.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/modules/skcms/src/skcms_internals.h -+++ chromium-128.0.6613.113/third_party/skia/modules/skcms/src/skcms_internals.h +--- chromium-130.0.6723.44.orig/third_party/skia/modules/skcms/src/skcms_internals.h ++++ chromium-130.0.6723.44/third_party/skia/modules/skcms/src/skcms_internals.h @@ -47,6 +47,7 @@ extern "C" { && !defined(__EMSCRIPTEN__) \ && !defined(__arm__) \ @@ -646,10 +645,10 @@ Index: chromium-128.0.6613.113/third_party/skia/modules/skcms/src/skcms_internal && !defined(__loongarch__) \ && !defined(_WIN32) && !defined(__SYMBIAN32__) #define SKCMS_HAS_MUSTTAIL 1 -Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-128.0.6613.113/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-130.0.6723.44/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -696,10 +695,10 @@ Index: chromium-128.0.6613.113/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-128.0.6613.113/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-128.0.6613.113.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-128.0.6613.113/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-130.0.6723.44/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -126,6 +126,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index a3ee18e..2d850c6 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-129.0.6668.100-clean.tar.xz) = 0c235e68d89ed8fb0ffc5d81dedced7f4f4d3580ab0089be04a69d80b036038d29291a94479c50690a63099c85fea9dabade53e8b3390a8701b250db4cc2e1b2 +SHA512 (chromium-130.0.6723.58-clean.tar.xz) = 1db9db62de458d0d6e45eb5017c5051fa35c06328e429b7f3331b4cc73c79ba5cbe6b394d3c0235f7860b3bede5c7ebaee1237a4db3fb934474614a32489de92 From c675db4ac0623d2d97344be0b3b2d9f1ac931446 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 17 Oct 2024 19:36:48 +0200 Subject: [PATCH 058/244] fix build error on ppc64le --- chromium-130-size-assertions.patch | 90 ++++++++++++++++++++++++++++++ chromium.spec | 10 +++- 2 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 chromium-130-size-assertions.patch diff --git a/chromium-130-size-assertions.patch b/chromium-130-size-assertions.patch new file mode 100644 index 0000000..cc75fb3 --- /dev/null +++ b/chromium-130-size-assertions.patch @@ -0,0 +1,90 @@ +commit f457e3c32b8170a39ead84ceaf9f0fdbe0696649 +Author: Michael Lippautz +Date: Tue Oct 15 19:27:32 2024 +0000 + + Fix size assertions across Blink + + The ASSERT_SIZE() macro is used to check that certain object sizes do + not grow unexpectedly. Fix a few occurrences that assumed that Member + is always the same size as debug builds may blow up the pointer size + to allow verifying some conditions. + + Bug: 373485798 + Change-Id: I243dd7d75810e2cfda0141817986a6c4a03c6392 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5934877 + Commit-Queue: Michael Lippautz + Reviewed-by: Steinar H Gunderson + Cr-Commit-Position: refs/heads/main@{#1368939} + +diff --git a/third_party/blink/renderer/core/css/css_selector.cc b/third_party/blink/renderer/core/css/css_selector.cc +index e9cd483e0ce13..3d99eab57489e 100644 +--- a/third_party/blink/renderer/core/css/css_selector.cc ++++ b/third_party/blink/renderer/core/css/css_selector.cc +@@ -88,7 +88,11 @@ unsigned MaximumSpecificity( + + struct SameSizeAsCSSSelector { + unsigned bitfields; +- void* pointers[1]; ++ union { ++ AtomicString value_; ++ QualifiedName tag_q_name_or_attribute_; ++ Member rare_data_; ++ } pointers; + }; + + ASSERT_SIZE(CSSSelector, SameSizeAsCSSSelector); +diff --git a/third_party/blink/renderer/core/css/resolver/match_result.h b/third_party/blink/renderer/core/css/resolver/match_result.h +index c99bae9777094..210ef8610b808 100644 +--- a/third_party/blink/renderer/core/css/resolver/match_result.h ++++ b/third_party/blink/renderer/core/css/resolver/match_result.h +@@ -34,6 +34,7 @@ + #include "third_party/blink/renderer/core/dom/tree_scope.h" + #include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h" + #include "third_party/blink/renderer/platform/heap/garbage_collected.h" ++#include "third_party/blink/renderer/platform/wtf/size_assertions.h" + #include "third_party/blink/renderer/platform/wtf/vector.h" + + namespace blink { +@@ -88,8 +89,13 @@ struct CORE_EXPORT MatchedProperties { + Member properties; + Data data_; + }; +-static_assert(sizeof(MatchedProperties) <= 12, +- "MatchedProperties should not grow without thinking"); ++ ++struct SameSizeAsMatchedProperties { ++ Member properties; ++ uint8_t data_[8]; ++}; ++ ++ASSERT_SIZE(MatchedProperties, SameSizeAsMatchedProperties); + + } // namespace blink + +diff --git a/third_party/blink/renderer/core/dom/element_data.cc b/third_party/blink/renderer/core/dom/element_data.cc +index 0e616444cbf92..6f3592bfa907b 100644 +--- a/third_party/blink/renderer/core/dom/element_data.cc ++++ b/third_party/blink/renderer/core/dom/element_data.cc +@@ -46,7 +46,8 @@ struct SameSizeAsElementData final + : public GarbageCollected { + unsigned bitfield; + Member willbe_member; +- void* pointers[2]; ++ SpaceSplitString class_names_; ++ void* pointers[1]; + }; + + ASSERT_SIZE(ElementData, SameSizeAsElementData); +diff --git a/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc b/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc +index 98a9f6988ae3d..68b3c922cb362 100644 +--- a/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc ++++ b/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc +@@ -75,7 +75,7 @@ struct SameSizeAsRunInfo { + void* pointers[2]; + unsigned integer; + } glyph_data; +- void* pointer; ++ Member pointer; + Vector vector; + int integers[6]; + }; diff --git a/chromium.spec b/chromium.spec index a087c69..85afbcf 100644 --- a/chromium.spec +++ b/chromium.spec @@ -354,6 +354,10 @@ Patch354: chromium-126-split-threshold-for-reg-with-hint.patch # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch +# fix build error on ppc64le +# error: static assertion failed due to requirement 'sizeof(blink::MatchedProperties) <= 12': MatchedProperties should not grow without thinking +Patch356: chromium-130-size-assertions.patch + # set clang_lib path Patch358: chromium-127-rust-clanglib.patch @@ -1058,6 +1062,7 @@ Qt6 UI for chromium. %endif %patch -P355 -p1 -b .hardware_destructive_interference_size +%patch -P356 -p1 -b .size-assertions %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le @@ -2200,10 +2205,13 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt * Wed Mar 06 2024 Than Ngo - 122.0.6261.111-1 - upstream security release 122.0.6261.111 - * High CVE-2024-2173: Out of bounds memory access in V8 + * High CVE-2024-2173: Out of bounds memory access in V8 * High CVE-2024-2174: Inappropriate implementation in V8 * High CVE-2024-2176: Use after free in FedCM +* Sat Mar 02 2024 Jiri Vanek - 122.0.6261.94-2 +- Rebuilt for java-21-openjdk as system jdk + * Wed Feb 28 2024 Than Ngo - 122.0.6261.94-1 - upstream security release 122.0.6261.94 * High : Type Confusion in V8 From eec6ad9bad9653517ef5d3517bfe1f90d6df92a3 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 21 Oct 2024 11:37:03 +0200 Subject: [PATCH 059/244] Add missing pthread stack size for ppc64 (openpower-patches) --- add-ppc64-pthread-stack-size.patch | 12 ++++++++++++ chromium.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 add-ppc64-pthread-stack-size.patch diff --git a/add-ppc64-pthread-stack-size.patch b/add-ppc64-pthread-stack-size.patch new file mode 100644 index 0000000..7252ca2 --- /dev/null +++ b/add-ppc64-pthread-stack-size.patch @@ -0,0 +1,12 @@ +--- a/base/process/launch.h ++++ b/base/process/launch.h +@@ -54,6 +54,9 @@ + #if defined(ARCH_CPU_ARM64) + #define PTHREAD_STACK_MIN_CONST \ + (__builtin_constant_p(PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : 131072) ++#elif defined(ARCH_CPU_PPC64) ++#define PTHREAD_STACK_MIN_CONST \ ++ (__builtin_constant_p(PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : 131072) + #else + #define PTHREAD_STACK_MIN_CONST \ + (__builtin_constant_p(PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : 16384) diff --git a/chromium.spec b/chromium.spec index 85afbcf..dab7bea 100644 --- a/chromium.spec +++ b/chromium.spec @@ -274,7 +274,7 @@ Name: chromium%{chromium_channel} Version: 130.0.6723.58 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -435,6 +435,7 @@ Patch412: add-ppc64-architecture-to-extensions.diff # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff Patch414: cargo-add-ppc64.diff +Patch415: add-ppc64-pthread-stack-size.patch # upstream patches @@ -1121,6 +1122,7 @@ Qt6 UI for chromium. %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions %patch -P413 -p1 -b .fix-unknown-warning-option-messages %patch -P414 -p1 -b .rust-add-ppc64-case +%patch -P415 -p1 -b .add-ppc64-pthread-stack-size %endif # Change shebang in all relevant files in this directory and all subdirectories @@ -1915,6 +1917,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Mon Oct 21 2024 Than Ngo - 130.0.6723.58-2 +- Add missing pthread stack size for ppc64 (openpower-patches) + * Wed Oct 16 2024 Than Ngo - 130.0.6723.58-1 - update to 130.0.6723.58 * High CVE-2024-9954: Use after free in AI From 79dea59fdf4e7ab259271d3134116e3c7cdeed1c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 23 Oct 2024 17:05:20 +0200 Subject: [PATCH 060/244] fixed a condition for epel10 --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index dab7bea..e44d2d3 100644 --- a/chromium.spec +++ b/chromium.spec @@ -551,7 +551,7 @@ BuildRequires: libgcrypt-devel BuildRequires: libudev-devel BuildRequires: libuuid-devel -%if 0%{?fedora} >= 37 +%if 0%{?fedora} >= 37 || %if 0%{?rhel} > 9 BuildRequires: libusb-compat-0.1-devel %else BuildRequires: libusb-devel From 611aa08482fde559b3c7e4e5dbb09904bb5ff98d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 23 Oct 2024 17:07:10 +0200 Subject: [PATCH 061/244] fix typo --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index e44d2d3..a1c75c4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -551,7 +551,7 @@ BuildRequires: libgcrypt-devel BuildRequires: libudev-devel BuildRequires: libuuid-devel -%if 0%{?fedora} >= 37 || %if 0%{?rhel} > 9 +%if 0%{?fedora} >= 37 || 0%{?rhel} > 9 BuildRequires: libusb-compat-0.1-devel %else BuildRequires: libusb-devel From f73c0983b42004dc790b1b1b4a40b1c8d67dd347 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 26 Oct 2024 13:14:22 +0200 Subject: [PATCH 062/244] =?UTF-8?q?-=20update=20to=20130.0.6723.69=20=20?= =?UTF-8?q?=20*=20High=20CVE-2024-10229:=20Inappropriate=20implementation?= =?UTF-8?q?=20in=20Extensions=20=20=20*=20High=20CVE-2024-10230:=20Type=20?= =?UTF-8?q?Confusion=20in=20V8=20=20=20*=20High=20CVE-2024-10231:=20Type?= =?UTF-8?q?=20Confusion=20in=20V8#=20Bitte=20geben=20Sie=20eine=20Commit-B?= =?UTF-8?q?eschreibung=20f=C3=BCr=20Ihre=20=C3=84nderungen=20ein.=20Zeilen?= =?UTF-8?q?,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chromium.spec | 10 ++++++++-- sources | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index a1c75c4..94e49f5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,8 +273,8 @@ %endif Name: chromium%{chromium_channel} -Version: 130.0.6723.58 -Release: 2%{?dist} +Version: 130.0.6723.69 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1917,6 +1917,12 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Sat Oct 26 2024 Than Ngo - 130.0.6723.69-1 +- update to 130.0.6723.69 + * High CVE-2024-10229: Inappropriate implementation in Extensions + * High CVE-2024-10230: Type Confusion in V8 + * High CVE-2024-10231: Type Confusion in V8 + * Mon Oct 21 2024 Than Ngo - 130.0.6723.58-2 - Add missing pthread stack size for ppc64 (openpower-patches) diff --git a/sources b/sources index 2d850c6..3801e9b 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-130.0.6723.58-clean.tar.xz) = 1db9db62de458d0d6e45eb5017c5051fa35c06328e429b7f3331b4cc73c79ba5cbe6b394d3c0235f7860b3bede5c7ebaee1237a4db3fb934474614a32489de92 +SHA512 (chromium-130.0.6723.69-clean.tar.xz) = 68fd9e740e95d1cdd77ca2a6ef58500b7263be6f6a44170adff585a2de788abdff4dac0fc85b8c8bcf78b612062529ff65c0ae1c375acce30e4ec8b2aa4c6d48 From d2e4cc4a9b742b0642c79c2998588100ea672476 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 2 Nov 2024 11:57:19 +0100 Subject: [PATCH 063/244] - Update to 130.0.6723.91 * Critical CVE-2024-10487: Out of bounds write in Dawn * High CVE-2024-10488: Use after free in WebRTC --- chromium.spec | 9 +++++++-- sources | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 94e49f5..1fabc04 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,7 +273,7 @@ %endif Name: chromium%{chromium_channel} -Version: 130.0.6723.69 +Version: 130.0.6723.91 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1917,8 +1917,13 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Oct 30 2024 Than Ngo - 130.0.6723.91-1 +- Update to 130.0.6723.91 + * Critical CVE-2024-10487: Out of bounds write in Dawn + * High CVE-2024-10488: Use after free in WebRTC + * Sat Oct 26 2024 Than Ngo - 130.0.6723.69-1 -- update to 130.0.6723.69 +- Update to 130.0.6723.69 * High CVE-2024-10229: Inappropriate implementation in Extensions * High CVE-2024-10230: Type Confusion in V8 * High CVE-2024-10231: Type Confusion in V8 diff --git a/sources b/sources index 3801e9b..b1d086e 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-130.0.6723.69-clean.tar.xz) = 68fd9e740e95d1cdd77ca2a6ef58500b7263be6f6a44170adff585a2de788abdff4dac0fc85b8c8bcf78b612062529ff65c0ae1c375acce30e4ec8b2aa4c6d48 +SHA512 (chromium-130.0.6723.91-clean.tar.xz) = fd09b713f83a4da85b20d8fbd55732c6b6837b194dab6bbc151c9ca60d96811e2fbe24f2c235e3e644418b93b8f8153fdff2c4d46fc44af04c9815c9c76715b0 From 6bcefe467a0ad3418839a573196314e74395c04f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 10 Nov 2024 13:53:19 +0100 Subject: [PATCH 064/244] - Update to 130.0.6723.91 * Critical CVE-2024-10487: Out of bounds write in Dawn * High CVE-2024-10488: Use after free in WebRTC --- chromium.conf | 2 +- chromium.spec | 7 ++++++- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chromium.conf b/chromium.conf index 62cecce..d89ba3c 100644 --- a/chromium.conf +++ b/chromium.conf @@ -34,7 +34,7 @@ case "$GRAPHIC_DRIVER" in # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --disable-gpu-compositing" FEATURES+="VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs" ;; intel) diff --git a/chromium.spec b/chromium.spec index 1fabc04..16e1b02 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,7 +273,7 @@ %endif Name: chromium%{chromium_channel} -Version: 130.0.6723.91 +Version: 130.0.6723.116 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1917,6 +1917,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Sun Nov 10 2024 Than Ngo - 130.0.6723.116-1 +- Update to 130.0.6723.116 + * High CVE-2024-10826: Use after free in Family Experience + * High CVE-2024-10827: Use after free in Serial + * Wed Oct 30 2024 Than Ngo - 130.0.6723.91-1 - Update to 130.0.6723.91 * Critical CVE-2024-10487: Out of bounds write in Dawn diff --git a/sources b/sources index b1d086e..2bcb712 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-130.0.6723.91-clean.tar.xz) = fd09b713f83a4da85b20d8fbd55732c6b6837b194dab6bbc151c9ca60d96811e2fbe24f2c235e3e644418b93b8f8153fdff2c4d46fc44af04c9815c9c76715b0 +SHA512 (chromium-130.0.6723.116-clean.tar.xz) = ea9a84da6dbf90364e52cef81016683a2a6ac06de75df26c0522090dc0ccb8725b40364cf3d8330ca5d5f6d99ded99f2bf0858ac8d581b974f007c5cc887e62a From da89ab8ed27d5fb76ab85b6b4d11aa3dddf45c86 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 10 Nov 2024 13:53:19 +0100 Subject: [PATCH 065/244] - Update to 130.0.6723.116 * High CVE-2024-10826: Use after free in Family Experience * High CVE-2024-10827: Use after free in Serial --- chromium.conf | 2 +- chromium.spec | 7 ++++++- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chromium.conf b/chromium.conf index 62cecce..d89ba3c 100644 --- a/chromium.conf +++ b/chromium.conf @@ -34,7 +34,7 @@ case "$GRAPHIC_DRIVER" in # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --disable-gpu-compositing" FEATURES+="VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs" ;; intel) diff --git a/chromium.spec b/chromium.spec index 1fabc04..16e1b02 100644 --- a/chromium.spec +++ b/chromium.spec @@ -273,7 +273,7 @@ %endif Name: chromium%{chromium_channel} -Version: 130.0.6723.91 +Version: 130.0.6723.116 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1917,6 +1917,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Sun Nov 10 2024 Than Ngo - 130.0.6723.116-1 +- Update to 130.0.6723.116 + * High CVE-2024-10826: Use after free in Family Experience + * High CVE-2024-10827: Use after free in Serial + * Wed Oct 30 2024 Than Ngo - 130.0.6723.91-1 - Update to 130.0.6723.91 * Critical CVE-2024-10487: Out of bounds write in Dawn diff --git a/sources b/sources index b1d086e..2bcb712 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-130.0.6723.91-clean.tar.xz) = fd09b713f83a4da85b20d8fbd55732c6b6837b194dab6bbc151c9ca60d96811e2fbe24f2c235e3e644418b93b8f8153fdff2c4d46fc44af04c9815c9c76715b0 +SHA512 (chromium-130.0.6723.116-clean.tar.xz) = ea9a84da6dbf90364e52cef81016683a2a6ac06de75df26c0522090dc0ccb8725b40364cf3d8330ca5d5f6d99ded99f2bf0858ac8d581b974f007c5cc887e62a From 922a09c39027f8c05ffd458f8e46adaaf8882f9e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 13 Nov 2024 15:46:03 +0100 Subject: [PATCH 066/244] Fix Build requirement on java-openjdk-headless --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 16e1b02..0c06ebe 100644 --- a/chromium.spec +++ b/chromium.spec @@ -765,7 +765,7 @@ BuildRequires: ninja-build # Yes, java is needed as well.. %if %{build_headless} -BuildRequires: java-1.8.0-openjdk-headless +BuildRequires: java-openjdk-headless %endif BuildRequires: libevdev-devel From e975118e0aca687a423810cbf9a9bf1c4f616fba Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 20 Nov 2024 11:18:18 +0100 Subject: [PATCH 067/244] - Update to 131.0.6778.85 * High CVE-2024-11395: Type Confusion in V8 * High CVE-2024-11110: Inappropriate implementation in Blink * Medium CVE-2024-11111: Inappropriate implementation in Autofill * Medium CVE-2024-11112: Use after free in Media * Medium CVE-2024-11113: Use after free in Accessibility * Medium CVE-2024-11114: Inappropriate implementation in Views * Medium CVE-2024-11115: Insufficient policy enforcement in Navigation * Medium CVE-2024-11116: Inappropriate implementation in Paint * Low CVE-2024-11117: Inappropriate implementation in FileSystem - Add get_chromium_from_git.sh - Disable custom_libcxx - Refresh patches --- ...party-libvpx-Remove-bad-ppc64-config.patch | 54 ++++++++-------- HACK-debian-clang-disable-base-musttail.patch | 19 +++--- chromium-131-system-freetype.patch | 13 ++++ chromium.conf | 4 +- chromium.spec | 51 +++++++++++----- clean_ffmpeg.sh | 7 --- fix-rustc.patch | 16 +++-- get_chromium_from_git.sh | 61 +++++++++++++++++++ sources | 2 +- 9 files changed, 153 insertions(+), 74 deletions(-) create mode 100644 chromium-131-system-freetype.patch create mode 100755 get_chromium_from_git.sh diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index 6b655bd..585d4b8 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,7 +1,6 @@ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h -+++ /dev/null +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,330 +0,0 @@ -/* - * Copyright (c) 2024 The WebM project authors. All Rights Reserved. @@ -333,11 +332,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif // VP8_RTCD_H_ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h -+++ /dev/null -@@ -1,203 +0,0 @@ +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h 1970-01-01 01:00:00.000000000 +0100 +@@ -1,206 +0,0 @@ -/* - * Copyright (c) 2024 The WebM project authors. All Rights Reserved. - * @@ -366,6 +364,9 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_r -#include "vp9/common/vp9_enums.h" -#include "vp9/common/vp9_filter.h" -#include "vpx/vpx_integer.h" +-#if !CONFIG_REALTIME_ONLY && CONFIG_VP9_ENCODER +-#include "vp9/encoder/vp9_temporal_filter.h" +-#endif - -struct macroblockd; - @@ -541,10 +542,9 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif // VP9_RTCD_H_ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm -+++ /dev/null +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm 1970-01-01 01:00:00.000000000 +0100 @@ -1,108 +0,0 @@ -@ This file was created from a .asm file -@ using the ads2gas.pl script. @@ -654,10 +654,9 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.c -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c -+++ /dev/null +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -669,10 +668,9 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_c -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.h -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h -+++ /dev/null +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -791,10 +789,9 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h -+++ /dev/null +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,2138 +0,0 @@ -/* - * Copyright (c) 2024 The WebM project authors. All Rights Reserved. @@ -2934,10 +2931,9 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif // VPX_DSP_RTCD_H_ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h -+++ /dev/null +diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h 2024-11-12 22:49:02.000000000 +0100 ++++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2024 The WebM project authors. All Rights Reserved. diff --git a/HACK-debian-clang-disable-base-musttail.patch b/HACK-debian-clang-disable-base-musttail.patch index 0b3d352..0ccc45b 100644 --- a/HACK-debian-clang-disable-base-musttail.patch +++ b/HACK-debian-clang-disable-base-musttail.patch @@ -1,13 +1,12 @@ -Index: chromium-128.0.6613.113/base/compiler_specific.h -=================================================================== ---- chromium-128.0.6613.113.orig/base/compiler_specific.h -+++ chromium-128.0.6613.113/base/compiler_specific.h -@@ -88,7 +88,7 @@ - // Can be used only on return statements, even for functions returning void. - // Caller and callee must have the same number of arguments and its types must - // be "similar". --#if defined(__clang__) && HAS_ATTRIBUTE(musttail) -+#if defined(__clang__) && HAS_ATTRIBUTE(musttail) && !defined(__powerpc64__) +diff -up chromium-131.0.6778.69/base/compiler_specific.h.me chromium-131.0.6778.69/base/compiler_specific.h +--- chromium-131.0.6778.69/base/compiler_specific.h.me 2024-11-19 20:44:12.404060581 +0100 ++++ chromium-131.0.6778.69/base/compiler_specific.h 2024-11-19 20:44:54.434121935 +0100 +@@ -152,7 +152,7 @@ + // MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. + // } + // ``` +-#if __has_cpp_attribute(clang::musttail) ++#if defined(__clang__) && __has_cpp_attribute(clang::musttail) && !defined(__powerpc64__) #define MUSTTAIL [[clang::musttail]] #else #define MUSTTAIL diff --git a/chromium-131-system-freetype.patch b/chromium-131-system-freetype.patch new file mode 100644 index 0000000..2959690 --- /dev/null +++ b/chromium-131-system-freetype.patch @@ -0,0 +1,13 @@ +diff -up chromium-131.0.6778.69/build/linux/unbundle/freetype.gn.me chromium-131.0.6778.69/build/linux/unbundle/freetype.gn +--- chromium-131.0.6778.69/build/linux/unbundle/freetype.gn.me 2024-11-13 08:48:26.212329841 +0100 ++++ chromium-131.0.6778.69/build/linux/unbundle/freetype.gn 2024-11-13 08:49:03.071985611 +0100 +@@ -11,4 +11,9 @@ declare_args() { + # System FreeType configurations other than as described WILL INTRODUCE TEXT + # RENDERING AND SECURITY REGRESSIONS. + use_system_freetype = true ++ ++ # Use FreeType for font rendering. If this is set to false, FreeType is ++ # replaced with the Rust-based Fontations set of libraries plus Skia ++ # path rendering. ++ enable_freetype = true + } diff --git a/chromium.conf b/chromium.conf index d89ba3c..fd2405d 100644 --- a/chromium.conf +++ b/chromium.conf @@ -34,7 +34,7 @@ case "$GRAPHIC_DRIVER" in # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --disable-gpu-compositing" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" FEATURES+="VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs" ;; intel) @@ -42,7 +42,7 @@ case "$GRAPHIC_DRIVER" in FEATURES+="VaapiVideoEncoder,VaapiVideoDecodeLinuxGL" ;; *) - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --disable-gpu-compositing" FEATURES+="VaapiVideoEncoder,VaapiVideoDecodeLinuxGL" ;; esac diff --git a/chromium.spec b/chromium.spec index 0c06ebe..14a769b 100644 --- a/chromium.spec +++ b/chromium.spec @@ -145,7 +145,7 @@ %global __requires_exclude ^(%{chromium_path}/.*\\.so|%{chromium_path}/.*\\.so.*)$ # enable|disable use_custom_libcxx -%global use_custom_libcxx 1 +%global use_custom_libcxx 0 # enable|disable control flow integrity support %global cfi 0 @@ -154,9 +154,11 @@ %endif # enable qt backend +%global enable_qt 0 %global use_qt6 0 %global use_qt 0 +%if %{enable_qt} %if 0%{?rhel} > 9 || 0%{?fedora} > 39 %global use_qt6 1 %global use_qt 1 @@ -166,6 +168,7 @@ %global use_qt 1 %endif %endif +%endif # bundle re2, jsoncpp, woff2 - build errors with use_custom_libcxx=true %global bundlere2 1 @@ -187,6 +190,7 @@ %global bundlelibdrm 1 %global bundlefontconfig 1 %global bundleffmpegfree 1 +# openjpeg2, need to update to 2.5.x %global bundlelibopenjpeg2 1 %global bundlelibtiff 1 %global bundlelibxml 1 @@ -212,7 +216,7 @@ # disable bundleminizip for epel and Fedora39 due to old minizip version %global bundleminizip 1 -%if 0%{?fedora} || 0%{?rhel} >= 9 +%if 0%{?fedora} || 0%{?rhel} > 8 %global bundlezstd 0 %global bundlefontconfig 0 %global bundledav1d 0 @@ -223,18 +227,17 @@ %global bundlefreetype 0 %global bundlelibtiff 0 %global bundlelibxml 0 -%if 0%{?rhel} == 9 -# old version, need to update openjpeg to 2.5.x -%global bundlelibopenjpeg2 1 -%global bundlecrc32c 1 -%global bundleharfbuzz 1 -%global bundlebrotli 1 -%global bundlelibwebp 1 -%else +%if 0%{?rhel} > 9 +%global bundlelibopenjpeg2 0 +%global bundleharfbuzz 0 +%global bundlebrotli 0 +%global bundlelibwebp 0 +%endif +%if 0%{?fedora} %global bundlelibopenjpeg2 0 %global bundlecrc32c 0 %global bundleharfbuzz 0 -%global bundlebrotli 0 +%global bundlebrotli 0 %global bundlelibwebp 0 %endif %endif @@ -273,7 +276,7 @@ %endif Name: chromium%{chromium_channel} -Version: 130.0.6723.116 +Version: 131.0.6778.85 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -306,6 +309,9 @@ Patch91: chromium-108-system-opus.patch # python-3,13, Deprecationwarning: 'count' is passed as positionaö argument Patch100: chromium-128.0.6613.137-python-3.13-warning.patch +# fix build error with system freetype +Patch101: chromium-131-system-freetype.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -1018,6 +1024,8 @@ Qt6 UI for chromium. %patch -P100 -p1 -b .python-3.13-warning %endif +%patch -P101 -p1 -b .chromium-131-system-freetype + %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque @@ -1185,10 +1193,6 @@ sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' remoting/host/setup/d # bz#2265957, add correct platform sed -i "s/Linux x86_64/Linux %{_arch}/" content/common/user_agent.cc -%if ! %{bundledav1d} -cp -a third_party/dav1d/version/version.h third_party/dav1d/libdav1d/include/dav1d/ -%endif - %build # reduce warnings @@ -1917,6 +1921,21 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Nov 20 2024 Than Ngo - 131.0.6778.85-1 +- Update to 131.0.6778.85 + * High CVE-2024-11395: Type Confusion in V8 + +* Tue Nov 12 2024 Than Ngo - 131.0.6778.69-1 +- Update to 131.0.6778.69 + * High CVE-2024-11110: Inappropriate implementation in Blink + * Medium CVE-2024-11111: Inappropriate implementation in Autofill + * Medium CVE-2024-11112: Use after free in Media + * Medium CVE-2024-11113: Use after free in Accessibility + * Medium CVE-2024-11114: Inappropriate implementation in Views + * Medium CVE-2024-11115: Insufficient policy enforcement in Navigation + * Medium CVE-2024-11116: Inappropriate implementation in Paint + * Low CVE-2024-11117: Inappropriate implementation in FileSystem + * Sun Nov 10 2024 Than Ngo - 130.0.6723.116-1 - Update to 130.0.6723.116 * High CVE-2024-10826: Use after free in Family Experience diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index 1fb4b80..07460ce 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -99,7 +99,6 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/get_bits.h \ libavcodec/h263dsp.h \ libavcodec/h264chroma.h \ - libavcodec/hevc.h \ libavcodec/hpeldsp.h \ libavcodec/hwaccels.h \ libavcodec/hwaccel_internal.h \ @@ -126,11 +125,6 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/mpegvideodata.h \ libavcodec/mpegvideoencdsp.h \ libavcodec/options_table.h \ - libavcodec/opus.h \ - libavcodec/opusdsp.h \ - libavcodec/opus_celt.h \ - libavcodec/opus_pvq.h \ - libavcodec/opus_rc.h \ libavcodec/packet.h \ libavcodec/packet_internal.h \ libavcodec/pcm_tablegen.h \ @@ -270,7 +264,6 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavformat/utils.c \ libavformat/version.c \ libavutil/aarch64/asm.S \ - libavutil/aarch64/bswap.h \ libavutil/aarch64/cpu.c \ libavutil/aarch64/float_dsp_init.c \ libavutil/aarch64/float_dsp_neon.S \ diff --git a/fix-rustc.patch b/fix-rustc.patch index 7f95594..5129bed 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,15 +1,13 @@ -author: Andres Salomon -description: allow ppc64le to build by using proper rustc target -Index: chromium-128.0.6613.113/build/config/rust.gni -=================================================================== ---- chromium-128.0.6613.113.orig/build/config/rust.gni -+++ chromium-128.0.6613.113/build/config/rust.gni -@@ -186,6 +186,8 @@ rust_abi_target = "" - if (is_linux || is_chromeos) { +diff -up chromium-131.0.6778.69/build/config/rust.gni.fix-rustc chromium-131.0.6778.69/build/config/rust.gni +--- chromium-131.0.6778.69/build/config/rust.gni.fix-rustc 2024-11-12 22:48:45.000000000 +0100 ++++ chromium-131.0.6778.69/build/config/rust.gni 2024-11-19 23:01:25.484436409 +0100 +@@ -200,6 +200,9 @@ if (is_linux || is_chromeos) { if (current_cpu == "arm64") { rust_abi_target = "aarch64-unknown-linux-gnu" + cargo_target_abi = "" + } else if (current_cpu == "ppc64") { + rust_abi_target = "powerpc64le-unknown-linux-gnu" ++ cargo_target_abi = "" } else if (current_cpu == "x86") { rust_abi_target = "i686-unknown-linux-gnu" - } else if (current_cpu == "x64") { + cargo_target_abi = "" diff --git a/get_chromium_from_git.sh b/get_chromium_from_git.sh new file mode 100755 index 0000000..c36e5c0 --- /dev/null +++ b/get_chromium_from_git.sh @@ -0,0 +1,61 @@ +#! /bin/bash + +SRC_DIR=chromium-src +VERSION=$1 +if [[ -z $VERSION ]]; then + echo "Version is missing" + exit 1 +fi + +rm -rf $SRC_DIR && mkdir -p $SRC_DIR +pushd $SRC_DIR +cat >.gclient < chromium-$VERSION-clean.tar.xz +echo "Finished!" + diff --git a/sources b/sources index 2bcb712..14364b2 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-130.0.6723.116-clean.tar.xz) = ea9a84da6dbf90364e52cef81016683a2a6ac06de75df26c0522090dc0ccb8725b40364cf3d8330ca5d5f6d99ded99f2bf0858ac8d581b974f007c5cc887e62a +SHA512 (chromium-131.0.6778.85-clean.tar.xz) = e2adae2de0de3910d8c915d0b7e1922ddaec5d8cc68d5fa6b0e99fa34ad052171e83333262ac3767f86fb32e5f31791b0ffee48ce694150d4bbaf30035e36052 From 52367527140335f52a69be77de09b544c2740aab Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 20 Nov 2024 19:53:07 +0100 Subject: [PATCH 068/244] Disable PA_MUSTTAIL to fix build faiure on ppc64le --- HACK-debian-clang-disable-base-musttail.patch | 14 +++++++++++++- chromium.spec | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/HACK-debian-clang-disable-base-musttail.patch b/HACK-debian-clang-disable-base-musttail.patch index 0ccc45b..fbc9116 100644 --- a/HACK-debian-clang-disable-base-musttail.patch +++ b/HACK-debian-clang-disable-base-musttail.patch @@ -6,7 +6,19 @@ diff -up chromium-131.0.6778.69/base/compiler_specific.h.me chromium-131.0.6778. // } // ``` -#if __has_cpp_attribute(clang::musttail) -+#if defined(__clang__) && __has_cpp_attribute(clang::musttail) && !defined(__powerpc64__) ++#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc64__) #define MUSTTAIL [[clang::musttail]] #else #define MUSTTAIL +diff -up chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +--- chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me 2024-11-20 18:50:28.690761262 +0100 ++++ chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h 2024-11-20 18:54:49.374711202 +0100 +@@ -138,7 +138,7 @@ + // PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. + // } + // ``` +-#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) ++#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) && !defined(__powerpc64__) + #define PA_MUSTTAIL [[clang::musttail]] + #else + #define PA_MUSTTAIL diff --git a/chromium.spec b/chromium.spec index 14a769b..4d54d17 100644 --- a/chromium.spec +++ b/chromium.spec @@ -146,6 +146,9 @@ # enable|disable use_custom_libcxx %global use_custom_libcxx 0 +%if 0%{?rhel} || 0%{?fedora} == 39 +%global use_custom_libcxx 1 +%endif # enable|disable control flow integrity support %global cfi 0 From be8867481286ea503b1b37d79ace9696c15c61cc Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 22 Nov 2024 09:51:52 +0100 Subject: [PATCH 069/244] Fix build error on el8 --- chromium-131-el8-libavcodec-parser.patch | 359 +++++++++++++++++++++++ chromium.spec | 6 + 2 files changed, 365 insertions(+) create mode 100644 chromium-131-el8-libavcodec-parser.patch diff --git a/chromium-131-el8-libavcodec-parser.patch b/chromium-131-el8-libavcodec-parser.patch new file mode 100644 index 0000000..c8242a7 --- /dev/null +++ b/chromium-131-el8-libavcodec-parser.patch @@ -0,0 +1,359 @@ +--- /dev/null 2024-11-22 07:51:33.845958571 +0100 ++++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/parser.h 2024-11-19 23:48:49.634320300 +0100 +@@ -0,0 +1,58 @@ ++/* ++ * AVCodecParser prototypes and definitions ++ * Copyright (c) 2003 Fabrice Bellard ++ * Copyright (c) 2003 Michael Niedermayer ++ * ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#ifndef AVCODEC_PARSER_H ++#define AVCODEC_PARSER_H ++ ++#include "avcodec.h" ++ ++typedef struct ParseContext{ ++ uint8_t *buffer; ++ int index; ++ int last_index; ++ unsigned int buffer_size; ++ uint32_t state; ///< contains the last few bytes in MSB order ++ int frame_start_found; ++ int overread; ///< the number of bytes which where irreversibly read from the next frame ++ int overread_index; ///< the index into ParseContext.buffer of the overread bytes ++ uint64_t state64; ///< contains the last 8 bytes in MSB order ++} ParseContext; ++ ++#define END_NOT_FOUND (-100) ++ ++/** ++ * Combine the (truncated) bitstream to a complete frame. ++ * @return -1 if no complete frame could be created, ++ * AVERROR(ENOMEM) if there was a memory allocation error ++ */ ++int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size); ++void ff_parse_close(AVCodecParserContext *s); ++ ++/** ++ * Fetch timestamps for a specific byte within the current access unit. ++ * @param off byte position within the access unit ++ * @param remove Found timestamps will be removed if set to 1, kept if set to 0. ++ * @param fuzzy Only use found value if it is more informative than what we already have ++ */ ++void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove, int fuzzy); ++ ++#endif /* AVCODEC_PARSER_H */ +--- /dev/null 2024-11-22 07:51:33.845958571 +0100 ++++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/parser.c 2024-11-19 23:48:49.633320000 +0100 +@@ -0,0 +1,295 @@ ++/* ++ * Audio and Video frame extraction ++ * Copyright (c) 2003 Fabrice Bellard ++ * Copyright (c) 2003 Michael Niedermayer ++ * ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#include ++#include ++#include ++ ++#include "libavutil/avassert.h" ++#include "libavutil/mem.h" ++ ++#include "parser.h" ++ ++AVCodecParserContext *av_parser_init(int codec_id) ++{ ++ AVCodecParserContext *s = NULL; ++ const AVCodecParser *parser; ++ void *i = 0; ++ int ret; ++ ++ if (codec_id == AV_CODEC_ID_NONE) ++ return NULL; ++ ++ while ((parser = av_parser_iterate(&i))) { ++ if (parser->codec_ids[0] == codec_id || ++ parser->codec_ids[1] == codec_id || ++ parser->codec_ids[2] == codec_id || ++ parser->codec_ids[3] == codec_id || ++ parser->codec_ids[4] == codec_id || ++ parser->codec_ids[5] == codec_id || ++ parser->codec_ids[6] == codec_id) ++ goto found; ++ } ++ return NULL; ++ ++found: ++ s = av_mallocz(sizeof(AVCodecParserContext)); ++ if (!s) ++ goto err_out; ++ s->parser = parser; ++ s->priv_data = av_mallocz(parser->priv_data_size); ++ if (!s->priv_data) ++ goto err_out; ++ s->fetch_timestamp=1; ++ s->pict_type = AV_PICTURE_TYPE_I; ++ if (parser->parser_init) { ++ ret = parser->parser_init(s); ++ if (ret != 0) ++ goto err_out; ++ } ++ s->key_frame = -1; ++ s->dts_sync_point = INT_MIN; ++ s->dts_ref_dts_delta = INT_MIN; ++ s->pts_dts_delta = INT_MIN; ++ s->format = -1; ++ ++ return s; ++ ++err_out: ++ if (s) ++ av_freep(&s->priv_data); ++ av_free(s); ++ return NULL; ++} ++ ++void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove, int fuzzy) ++{ ++ int i; ++ ++ if (!fuzzy) { ++ s->dts = ++ s->pts = AV_NOPTS_VALUE; ++ s->pos = -1; ++ s->offset = 0; ++ } ++ for (i = 0; i < AV_PARSER_PTS_NB; i++) { ++ if (s->cur_offset + off >= s->cur_frame_offset[i] && ++ (s->frame_offset < s->cur_frame_offset[i] || ++ (!s->frame_offset && !s->next_frame_offset)) && // first field/frame ++ // check disabled since MPEG-TS does not send complete PES packets ++ /*s->next_frame_offset + off <*/ s->cur_frame_end[i]){ ++ ++ if (!fuzzy || s->cur_frame_dts[i] != AV_NOPTS_VALUE) { ++ s->dts = s->cur_frame_dts[i]; ++ s->pts = s->cur_frame_pts[i]; ++ s->pos = s->cur_frame_pos[i]; ++ s->offset = s->next_frame_offset - s->cur_frame_offset[i]; ++ } ++ if (remove) ++ s->cur_frame_offset[i] = INT64_MAX; ++ if (s->cur_offset + off < s->cur_frame_end[i]) ++ break; ++ } ++ } ++} ++ ++int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, ++ uint8_t **poutbuf, int *poutbuf_size, ++ const uint8_t *buf, int buf_size, ++ int64_t pts, int64_t dts, int64_t pos) ++{ ++ int index, i; ++ uint8_t dummy_buf[AV_INPUT_BUFFER_PADDING_SIZE]; ++ ++ av_assert1(avctx->codec_id != AV_CODEC_ID_NONE); ++ ++ /* Parsers only work for the specified codec ids. */ ++ av_assert1(avctx->codec_id == s->parser->codec_ids[0] || ++ avctx->codec_id == s->parser->codec_ids[1] || ++ avctx->codec_id == s->parser->codec_ids[2] || ++ avctx->codec_id == s->parser->codec_ids[3] || ++ avctx->codec_id == s->parser->codec_ids[4] || ++ avctx->codec_id == s->parser->codec_ids[5] || ++ avctx->codec_id == s->parser->codec_ids[6]); ++ ++ if (!(s->flags & PARSER_FLAG_FETCHED_OFFSET)) { ++ s->next_frame_offset = ++ s->cur_offset = pos; ++ s->flags |= PARSER_FLAG_FETCHED_OFFSET; ++ } ++ ++ if (buf_size == 0) { ++ /* padding is always necessary even if EOF, so we add it here */ ++ memset(dummy_buf, 0, sizeof(dummy_buf)); ++ buf = dummy_buf; ++ } else if (s->cur_offset + buf_size != s->cur_frame_end[s->cur_frame_start_index]) { /* skip remainder packets */ ++ /* add a new packet descriptor */ ++ i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1); ++ s->cur_frame_start_index = i; ++ s->cur_frame_offset[i] = s->cur_offset; ++ s->cur_frame_end[i] = s->cur_offset + buf_size; ++ s->cur_frame_pts[i] = pts; ++ s->cur_frame_dts[i] = dts; ++ s->cur_frame_pos[i] = pos; ++ } ++ ++ if (s->fetch_timestamp) { ++ s->fetch_timestamp = 0; ++ s->last_pts = s->pts; ++ s->last_dts = s->dts; ++ s->last_pos = s->pos; ++ ff_fetch_timestamp(s, 0, 0, 0); ++ } ++ /* WARNING: the returned index can be negative */ ++ index = s->parser->parser_parse(s, avctx, (const uint8_t **) poutbuf, ++ poutbuf_size, buf, buf_size); ++ av_assert0(index > -0x20000000); // The API does not allow returning AVERROR codes ++#define FILL(name) if(s->name > 0 && avctx->name <= 0) avctx->name = s->name ++ if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) { ++ FILL(field_order); ++ FILL(coded_width); ++ FILL(coded_height); ++ FILL(width); ++ FILL(height); ++ } ++ ++ /* update the file pointer */ ++ if (*poutbuf_size) { ++ /* fill the data for the current frame */ ++ s->frame_offset = s->next_frame_offset; ++ ++ /* offset of the next frame */ ++ s->next_frame_offset = s->cur_offset + index; ++ s->fetch_timestamp = 1; ++ } else { ++ /* Don't return a pointer to dummy_buf. */ ++ *poutbuf = NULL; ++ } ++ if (index < 0) ++ index = 0; ++ s->cur_offset += index; ++ return index; ++} ++ ++void av_parser_close(AVCodecParserContext *s) ++{ ++ if (s) { ++ if (s->parser->parser_close) ++ s->parser->parser_close(s); ++ av_freep(&s->priv_data); ++ av_free(s); ++ } ++} ++ ++int ff_combine_frame(ParseContext *pc, int next, ++ const uint8_t **buf, int *buf_size) ++{ ++ if (pc->overread) { ++ ff_dlog(NULL, "overread %d, state:%"PRIX32" next:%d index:%d o_index:%d\n", ++ pc->overread, pc->state, next, pc->index, pc->overread_index); ++ ff_dlog(NULL, "%X %X %X %X\n", ++ (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]); ++ } ++ ++ /* Copy overread bytes from last frame into buffer. */ ++ for (; pc->overread > 0; pc->overread--) ++ pc->buffer[pc->index++] = pc->buffer[pc->overread_index++]; ++ ++ if (next > *buf_size) ++ return AVERROR(EINVAL); ++ ++ /* flush remaining if EOF */ ++ if (!*buf_size && next == END_NOT_FOUND) ++ next = 0; ++ ++ pc->last_index = pc->index; ++ ++ /* copy into buffer end return */ ++ if (next == END_NOT_FOUND) { ++ void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, ++ *buf_size + pc->index + ++ AV_INPUT_BUFFER_PADDING_SIZE); ++ ++ if (!new_buffer) { ++ av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); ++ pc->index = 0; ++ return AVERROR(ENOMEM); ++ } ++ pc->buffer = new_buffer; ++ memcpy(&pc->buffer[pc->index], *buf, *buf_size); ++ memset(&pc->buffer[pc->index + *buf_size], 0, AV_INPUT_BUFFER_PADDING_SIZE); ++ pc->index += *buf_size; ++ return -1; ++ } ++ ++ av_assert0(next >= 0 || pc->buffer); ++ ++ *buf_size = ++ pc->overread_index = pc->index + next; ++ ++ /* append to buffer */ ++ if (pc->index) { ++ void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, ++ next + pc->index + ++ AV_INPUT_BUFFER_PADDING_SIZE); ++ if (!new_buffer) { ++ av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); ++ *buf_size = ++ pc->overread_index = ++ pc->index = 0; ++ return AVERROR(ENOMEM); ++ } ++ pc->buffer = new_buffer; ++ if (next > -AV_INPUT_BUFFER_PADDING_SIZE) ++ memcpy(&pc->buffer[pc->index], *buf, ++ next + AV_INPUT_BUFFER_PADDING_SIZE); ++ pc->index = 0; ++ *buf = pc->buffer; ++ } ++ ++ if (next < -8) { ++ pc->overread += -8 - next; ++ next = -8; ++ } ++ /* store overread bytes */ ++ for (; next < 0; next++) { ++ pc->state = pc->state << 8 | pc->buffer[pc->last_index + next]; ++ pc->state64 = pc->state64 << 8 | pc->buffer[pc->last_index + next]; ++ pc->overread++; ++ } ++ ++ if (pc->overread) { ++ ff_dlog(NULL, "overread %d, state:%"PRIX32" next:%d index:%d o_index:%d\n", ++ pc->overread, pc->state, next, pc->index, pc->overread_index); ++ ff_dlog(NULL, "%X %X %X %X\n", ++ (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]); ++ } ++ ++ return 0; ++} ++ ++void ff_parse_close(AVCodecParserContext *s) ++{ ++ ParseContext *pc = s->priv_data; ++ ++ av_freep(&pc->buffer); ++} diff --git a/chromium.spec b/chromium.spec index 4d54d17..1bc4855 100644 --- a/chromium.spec +++ b/chromium.spec @@ -329,6 +329,8 @@ Patch133: chromium-121-system-old-ffmpeg.patch patch134: chromium-125-disable-FFmpegAllowLists.patch # revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' Patch135: chromium-129-disable-H.264-video-parser-during-demuxing.patch +# workaround for build error on el8 (should be removed in next rebase) +Patch136: chromium-131-el8-libavcodec-parser.patch # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch @@ -1041,6 +1043,10 @@ Qt6 UI for chromium. %patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing %endif +%if 0%{?rhel} == 8 +%patch -P136 -p1 -b .el8-libavcodec-parser +%endif + %if 0%{?rhel} == 8 || 0%{?rhel} == 9 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict %endif From 6b110a34dbd7169d278cf17c250e043d5965fa7c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 22 Nov 2024 10:43:05 +0100 Subject: [PATCH 070/244] Refresh libavcodec-parser.patch --- chromium-131-el8-libavcodec-parser.patch | 166 +++++++++++++++++++++++ 1 file changed, 166 insertions(+) diff --git a/chromium-131-el8-libavcodec-parser.patch b/chromium-131-el8-libavcodec-parser.patch index c8242a7..3a29ec3 100644 --- a/chromium-131-el8-libavcodec-parser.patch +++ b/chromium-131-el8-libavcodec-parser.patch @@ -357,3 +357,169 @@ + + av_freep(&pc->buffer); +} +--- /dev/null 2024-11-22 07:51:33.845958571 +0100 ++++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/hevc/hevc.h 2024-11-19 23:48:49.494310400 +0100 +@@ -0,0 +1,163 @@ ++/* ++ * HEVC shared code ++ * ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#ifndef AVCODEC_HEVC_HEVC_H ++#define AVCODEC_HEVC_HEVC_H ++ ++/** ++ * Table 7-1 – NAL unit type codes and NAL unit type classes in ++ * T-REC-H.265-201802 ++ */ ++enum HEVCNALUnitType { ++ HEVC_NAL_TRAIL_N = 0, ++ HEVC_NAL_TRAIL_R = 1, ++ HEVC_NAL_TSA_N = 2, ++ HEVC_NAL_TSA_R = 3, ++ HEVC_NAL_STSA_N = 4, ++ HEVC_NAL_STSA_R = 5, ++ HEVC_NAL_RADL_N = 6, ++ HEVC_NAL_RADL_R = 7, ++ HEVC_NAL_RASL_N = 8, ++ HEVC_NAL_RASL_R = 9, ++ HEVC_NAL_VCL_N10 = 10, ++ HEVC_NAL_VCL_R11 = 11, ++ HEVC_NAL_VCL_N12 = 12, ++ HEVC_NAL_VCL_R13 = 13, ++ HEVC_NAL_VCL_N14 = 14, ++ HEVC_NAL_VCL_R15 = 15, ++ HEVC_NAL_BLA_W_LP = 16, ++ HEVC_NAL_BLA_W_RADL = 17, ++ HEVC_NAL_BLA_N_LP = 18, ++ HEVC_NAL_IDR_W_RADL = 19, ++ HEVC_NAL_IDR_N_LP = 20, ++ HEVC_NAL_CRA_NUT = 21, ++ HEVC_NAL_RSV_IRAP_VCL22 = 22, ++ HEVC_NAL_RSV_IRAP_VCL23 = 23, ++ HEVC_NAL_RSV_VCL24 = 24, ++ HEVC_NAL_RSV_VCL25 = 25, ++ HEVC_NAL_RSV_VCL26 = 26, ++ HEVC_NAL_RSV_VCL27 = 27, ++ HEVC_NAL_RSV_VCL28 = 28, ++ HEVC_NAL_RSV_VCL29 = 29, ++ HEVC_NAL_RSV_VCL30 = 30, ++ HEVC_NAL_RSV_VCL31 = 31, ++ HEVC_NAL_VPS = 32, ++ HEVC_NAL_SPS = 33, ++ HEVC_NAL_PPS = 34, ++ HEVC_NAL_AUD = 35, ++ HEVC_NAL_EOS_NUT = 36, ++ HEVC_NAL_EOB_NUT = 37, ++ HEVC_NAL_FD_NUT = 38, ++ HEVC_NAL_SEI_PREFIX = 39, ++ HEVC_NAL_SEI_SUFFIX = 40, ++ HEVC_NAL_RSV_NVCL41 = 41, ++ HEVC_NAL_RSV_NVCL42 = 42, ++ HEVC_NAL_RSV_NVCL43 = 43, ++ HEVC_NAL_RSV_NVCL44 = 44, ++ HEVC_NAL_RSV_NVCL45 = 45, ++ HEVC_NAL_RSV_NVCL46 = 46, ++ HEVC_NAL_RSV_NVCL47 = 47, ++ HEVC_NAL_UNSPEC48 = 48, ++ HEVC_NAL_UNSPEC49 = 49, ++ HEVC_NAL_UNSPEC50 = 50, ++ HEVC_NAL_UNSPEC51 = 51, ++ HEVC_NAL_UNSPEC52 = 52, ++ HEVC_NAL_UNSPEC53 = 53, ++ HEVC_NAL_UNSPEC54 = 54, ++ HEVC_NAL_UNSPEC55 = 55, ++ HEVC_NAL_UNSPEC56 = 56, ++ HEVC_NAL_UNSPEC57 = 57, ++ HEVC_NAL_UNSPEC58 = 58, ++ HEVC_NAL_UNSPEC59 = 59, ++ HEVC_NAL_UNSPEC60 = 60, ++ HEVC_NAL_UNSPEC61 = 61, ++ HEVC_NAL_UNSPEC62 = 62, ++ HEVC_NAL_UNSPEC63 = 63, ++}; ++ ++enum HEVCSliceType { ++ HEVC_SLICE_B = 0, ++ HEVC_SLICE_P = 1, ++ HEVC_SLICE_I = 2, ++}; ++ ++enum { ++ // 7.4.3.1: vps_max_layers_minus1 is in [0, 62]. ++ HEVC_MAX_LAYERS = 63, ++ // 7.4.3.1: vps_max_sub_layers_minus1 is in [0, 6]. ++ HEVC_MAX_SUB_LAYERS = 7, ++ // 7.4.3.1: vps_num_layer_sets_minus1 is in [0, 1023]. ++ HEVC_MAX_LAYER_SETS = 1024, ++ ++ // 7.4.2.1: vps_video_parameter_set_id is u(4). ++ HEVC_MAX_VPS_COUNT = 16, ++ // 7.4.3.2.1: sps_seq_parameter_set_id is in [0, 15]. ++ HEVC_MAX_SPS_COUNT = 16, ++ // 7.4.3.3.1: pps_pic_parameter_set_id is in [0, 63]. ++ HEVC_MAX_PPS_COUNT = 64, ++ ++ // A.4.2: MaxDpbSize is bounded above by 16. ++ HEVC_MAX_DPB_SIZE = 16, ++ // 7.4.3.1: vps_max_dec_pic_buffering_minus1[i] is in [0, MaxDpbSize - 1]. ++ HEVC_MAX_REFS = HEVC_MAX_DPB_SIZE, ++ ++ // 7.4.3.2.1: num_short_term_ref_pic_sets is in [0, 64]. ++ HEVC_MAX_SHORT_TERM_REF_PIC_SETS = 64, ++ // 7.4.3.2.1: num_long_term_ref_pics_sps is in [0, 32]. ++ HEVC_MAX_LONG_TERM_REF_PICS = 32, ++ ++ // A.3: all profiles require that CtbLog2SizeY is in [4, 6]. ++ HEVC_MIN_LOG2_CTB_SIZE = 4, ++ HEVC_MAX_LOG2_CTB_SIZE = 6, ++ ++ // E.3.2: cpb_cnt_minus1[i] is in [0, 31]. ++ HEVC_MAX_CPB_CNT = 32, ++ ++ // A.4.1: in table A.6 the highest level allows a MaxLumaPs of 35 651 584. ++ HEVC_MAX_LUMA_PS = 35651584, ++ // A.4.1: pic_width_in_luma_samples and pic_height_in_luma_samples are ++ // constrained to be not greater than sqrt(MaxLumaPs * 8). Hence height/ ++ // width are bounded above by sqrt(8 * 35651584) = 16888.2 samples. ++ HEVC_MAX_WIDTH = 16888, ++ HEVC_MAX_HEIGHT = 16888, ++ ++ // A.4.1: table A.6 allows at most 22 tile rows for any level. ++ HEVC_MAX_TILE_ROWS = 22, ++ // A.4.1: table A.6 allows at most 20 tile columns for any level. ++ HEVC_MAX_TILE_COLUMNS = 20, ++ ++ // A.4.2: table A.6 allows at most 600 slice segments for any level. ++ HEVC_MAX_SLICE_SEGMENTS = 600, ++ ++ // 7.4.7.1: in the worst case (tiles_enabled_flag and ++ // entropy_coding_sync_enabled_flag are both set), entry points can be ++ // placed at the beginning of every Ctb row in every tile, giving an ++ // upper bound of (num_tile_columns_minus1 + 1) * PicHeightInCtbsY - 1. ++ // Only a stream with very high resolution and perverse parameters could ++ // get near that, though, so set a lower limit here with the maximum ++ // possible value for 4K video (at most 135 16x16 Ctb rows). ++ HEVC_MAX_ENTRY_POINT_OFFSETS = HEVC_MAX_TILE_COLUMNS * 135, ++ ++ // A.3.7: Screen content coding extensions ++ HEVC_MAX_PALETTE_PREDICTOR_SIZE = 128, ++}; ++ ++ ++#endif /* AVCODEC_HEVC_HEVC_H */ From a73b96ac79a19f54675290aa0fcc3a67de1356af Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 22 Nov 2024 14:59:29 +0100 Subject: [PATCH 071/244] Refresh libavcodec-parser.patch --- chromium-131-el8-libavcodec-parser.patch | 165 +++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/chromium-131-el8-libavcodec-parser.patch b/chromium-131-el8-libavcodec-parser.patch index 3a29ec3..24da282 100644 --- a/chromium-131-el8-libavcodec-parser.patch +++ b/chromium-131-el8-libavcodec-parser.patch @@ -523,3 +523,168 @@ + + +#endif /* AVCODEC_HEVC_HEVC_H */ +--- /dev/null 2024-11-22 07:51:33.845958571 +0100 ++++ chromium-131.0.6778.85/third_party/ffmpeg/libavutil/aarch64/intreadwrite.h 2024-11-19 23:48:50.697394400 +0100 +@@ -0,0 +1,42 @@ ++/* ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#ifndef AVUTIL_AARCH64_INTREADWRITE_H ++#define AVUTIL_AARCH64_INTREADWRITE_H ++ ++#if HAVE_INTRINSICS_NEON ++ ++#include ++ ++#define AV_COPY128 AV_COPY128 ++static av_always_inline void AV_COPY128(void *d, const void *s) ++{ ++ uint8x16_t tmp = vld1q_u8((const uint8_t *)s); ++ vst1q_u8((uint8_t *)d, tmp); ++} ++ ++#define AV_ZERO128 AV_ZERO128 ++static av_always_inline void AV_ZERO128(void *d) ++{ ++ uint8x16_t zero = vdupq_n_u8(0); ++ vst1q_u8((uint8_t *)d, zero); ++} ++ ++#endif /* HAVE_INTRINSICS_NEON */ ++ ++#endif /* AVUTIL_AARCH64_INTREADWRITE_H */ +--- /dev/null 2024-11-22 07:51:33.845958571 +0100 ++++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/opus/enc.h 2024-11-19 23:48:49.631320000 +0100 +@@ -0,0 +1,55 @@ ++/* ++ * Opus encoder ++ * Copyright (c) 2017 Rostislav Pehlivanov ++ * ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#ifndef AVCODEC_OPUS_ENC_H ++#define AVCODEC_OPUS_ENC_H ++ ++#include "libavutil/intmath.h" ++#include "opus.h" ++ ++/* Determines the maximum delay the psychoacoustic system will use for lookahead */ ++#define FF_BUFQUEUE_SIZE 145 ++#include "libavfilter/bufferqueue.h" ++ ++#define OPUS_MAX_LOOKAHEAD ((FF_BUFQUEUE_SIZE - 1)*2.5f) ++ ++#define OPUS_MAX_CHANNELS 2 ++ ++/* 120 ms / 2.5 ms = 48 frames (extremely improbable, but the encoder'll work) */ ++#define OPUS_MAX_FRAMES_PER_PACKET 48 ++ ++#define OPUS_BLOCK_SIZE(x) (2 * 15 * (1 << ((x) + 2))) ++ ++#define OPUS_SAMPLES_TO_BLOCK_SIZE(x) (ff_log2((x) / (2 * 15)) - 2) ++ ++typedef struct OpusEncOptions { ++ float max_delay_ms; ++ int apply_phase_inv; ++} OpusEncOptions; ++ ++typedef struct OpusPacketInfo { ++ enum OpusMode mode; ++ enum OpusBandwidth bandwidth; ++ int framesize; ++ int frames; ++} OpusPacketInfo; ++ ++#endif /* AVCODEC_OPUS_ENC_H */ +--- /dev/null 2024-11-22 07:51:33.845958571 +0100 ++++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/opus/opus.h 2024-11-19 23:48:49.631320000 +0100 +@@ -0,0 +1,59 @@ ++/* ++ * Opus common header ++ * Copyright (c) 2012 Andrew D'Addesio ++ * Copyright (c) 2013-2014 Mozilla Corporation ++ * ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#ifndef AVCODEC_OPUS_OPUS_H ++#define AVCODEC_OPUS_OPUS_H ++ ++#include ++ ++#define OPUS_MAX_FRAME_SIZE 1275 ++#define OPUS_MAX_FRAMES 48 ++#define OPUS_MAX_PACKET_DUR 5760 ++ ++#define OPUS_TS_HEADER 0x7FE0 // 0x3ff (11 bits) ++#define OPUS_TS_MASK 0xFFE0 // top 11 bits ++ ++static const uint8_t opus_default_extradata[30] = { ++ 'O', 'p', 'u', 's', 'H', 'e', 'a', 'd', ++ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ++ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ++}; ++ ++enum OpusMode { ++ OPUS_MODE_SILK, ++ OPUS_MODE_HYBRID, ++ OPUS_MODE_CELT, ++ ++ OPUS_MODE_NB ++}; ++ ++enum OpusBandwidth { ++ OPUS_BANDWIDTH_NARROWBAND, ++ OPUS_BANDWIDTH_MEDIUMBAND, ++ OPUS_BANDWIDTH_WIDEBAND, ++ OPUS_BANDWIDTH_SUPERWIDEBAND, ++ OPUS_BANDWIDTH_FULLBAND, ++ ++ OPUS_BANDWITH_NB ++}; ++ ++#endif /* AVCODEC_OPUS_OPUS_H */ From f8685925e254e578b00b3095ef096dc4badf5959 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 22 Nov 2024 19:45:28 +0100 Subject: [PATCH 072/244] Update clean_ffmpeg.sh --- clean_ffmpeg.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index 07460ce..2e21b73 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -72,6 +72,7 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/aacpsdsp.h \ libavcodec/aacsbrdata.h \ libavcodec/aac_ac3_parser.h \ + libavcodec/parser.h \ libavcodec/aac_defines.h \ libavcodec/ac3.h \ libavcodec/ac3defs.h \ @@ -99,6 +100,7 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/get_bits.h \ libavcodec/h263dsp.h \ libavcodec/h264chroma.h \ + libavcodec/hevc/hevc.h \ libavcodec/hpeldsp.h \ libavcodec/hwaccels.h \ libavcodec/hwaccel_internal.h \ @@ -124,6 +126,8 @@ header_files=" libavcodec/x86/inline_asm.h \ libavcodec/mpegvideo.h \ libavcodec/mpegvideodata.h \ libavcodec/mpegvideoencdsp.h \ + libavcodec/opus/enc.h \ + libavcodec/opus/opus.h \ libavcodec/options_table.h \ libavcodec/packet.h \ libavcodec/packet_internal.h \ @@ -180,6 +184,7 @@ header_files=" libavcodec/x86/inline_asm.h \ libavformat/iamf_reader.h \ libavformat/iamf.h \ libavutil/aarch64/cpu.h \ + libavutil/aarch64/intreadwrite.h \ libavutil/x86/asm.h \ libavutil/x86/bswap.h \ libavutil/x86/cpu.h \ @@ -250,6 +255,7 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavcodec/hpel_template.c \ libavcodec/hpeldsp.c \ libavcodec/options.c \ + libavcodec/parser.c \ libavcodec/pcm.c \ libavcodec/pel_template.c \ libavcodec/utils.c \ From b9075d0e1f687f9a5cf80a7778bde99cece9fdf7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 23 Nov 2024 12:33:22 +0100 Subject: [PATCH 073/244] Enable qt-ui --- chromium-131-qt-ui.patch | 12 ++++++++++++ chromium.spec | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 chromium-131-qt-ui.patch diff --git a/chromium-131-qt-ui.patch b/chromium-131-qt-ui.patch new file mode 100644 index 0000000..a834347 --- /dev/null +++ b/chromium-131-qt-ui.patch @@ -0,0 +1,12 @@ +diff -up chromium-131.0.6778.85/ui/qt/qt_shim.cc.me chromium-131.0.6778.85/ui/qt/qt_shim.cc +--- chromium-131.0.6778.85/ui/qt/qt_shim.cc.me 2024-11-23 10:04:16.789121846 +0100 ++++ chromium-131.0.6778.85/ui/qt/qt_shim.cc 2024-11-23 11:40:02.905064702 +0100 +@@ -265,7 +265,7 @@ FontRenderParams QtShim::GetFontRenderPa + FontDescription QtShim::GetFontDescription() const { + QFont font = app_.font(); + return { +- .family = String(font.family().toStdString().c_str()), ++ .family = String(font.family().toUtf8().constData()), + .size_pixels = font.pixelSize(), + .size_points = font.pointSize(), + .is_italic = IsStyleItalic(font.style()), diff --git a/chromium.spec b/chromium.spec index 1bc4855..c983e6f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -157,7 +157,7 @@ %endif # enable qt backend -%global enable_qt 0 +%global enable_qt 1 %global use_qt6 0 %global use_qt 0 @@ -280,7 +280,7 @@ Name: chromium%{chromium_channel} Version: 131.0.6778.85 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -337,6 +337,7 @@ Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch # add correct path for Qt6Gui header and libs Patch150: chromium-124-qt6.patch +Patch151: chromium-131-qt-ui.patch # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found @@ -1053,6 +1054,7 @@ Qt6 UI for chromium. %if 0%{?rhel} > 9 || 0%{?fedora} > 39 %patch -P150 -p1 -b .qt6 +%patch -P151 -p1 -b .qt-ui %endif %if 0%{?rhel} == 8 @@ -1930,6 +1932,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Sat Nov 23 2024 Than Ngo - 131.0.6778.85-2 +- Enable qt-ui + * Wed Nov 20 2024 Than Ngo - 131.0.6778.85-1 - Update to 131.0.6778.85 * High CVE-2024-11395: Type Confusion in V8 From cc4c497ae7dc6c453c1382ffc11e86a53688e3f6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 23 Nov 2024 20:30:27 +0100 Subject: [PATCH 074/244] Revert decommit pooled pages by default patch (fix random crash) --- ...ert-decommit-pooled-pages-by-default.patch | 32 +++++++++++++++++++ chromium.spec | 8 +++++ 2 files changed, 40 insertions(+) create mode 100644 chromium-131-revert-decommit-pooled-pages-by-default.patch diff --git a/chromium-131-revert-decommit-pooled-pages-by-default.patch b/chromium-131-revert-decommit-pooled-pages-by-default.patch new file mode 100644 index 0000000..4639b41 --- /dev/null +++ b/chromium-131-revert-decommit-pooled-pages-by-default.patch @@ -0,0 +1,32 @@ +commit 1ab1a14ad97394d384d8dc6de51bb229625e66d6 +Author: Benoît Lizé +Date: Mon Sep 16 12:01:14 2024 +0200 + + [cppgc] Decommit pooled pages by default + + This reduces committed memory by a large amount, which matters on + Windows. See the field trial results, which measure committed memory: + https://screenshot.googleplex.com/kEBAScqJSEXuRoy + + Bug: chromium:326303884 + Change-Id: I619257871bcdb7ed50a71f41af341d0df634428a + Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5864909 + Reviewed-by: Michael Lippautz + Reviewed-by: Anton Bikineev + Commit-Queue: Anton Bikineev + Auto-Submit: Benoit Lize + Cr-Commit-Position: refs/heads/main@{#96107} + +diff --git a/v8/src/flags/flag-definitions.h b/v8/src/flags/flag-definitions.h +index 69946faf5ed..85c4b68612e 100644 +--- a/v8/src/flags/flag-definitions.h ++++ b/v8/src/flags/flag-definitions.h +@@ -821,7 +821,7 @@ DEFINE_BOOL(trace_block_coverage, false, + "trace collected block coverage information") + DEFINE_BOOL(trace_protector_invalidation, false, + "trace protector cell invalidations") +-DEFINE_BOOL(decommit_pooled_pages, false, ++DEFINE_BOOL(decommit_pooled_pages, true, + "decommit, rather than discard pooled pages") + + #ifdef V8_MINORMS_STRING_SHORTCUTTING diff --git a/chromium.spec b/chromium.spec index c983e6f..7260d33 100644 --- a/chromium.spec +++ b/chromium.spec @@ -339,6 +339,9 @@ Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch Patch150: chromium-124-qt6.patch Patch151: chromium-131-qt-ui.patch +# revert, it causes ramdom crash on aarch64 +Patch300: chromium-131-revert-decommit-pooled-pages-by-default.patch + # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch @@ -1057,6 +1060,10 @@ Qt6 UI for chromium. %patch -P151 -p1 -b .qt-ui %endif +%ifarch aarch64 ppc64le +%patch -P300 -p1 -R -b .revert-decommit-pooled-pages-by-default +%endif + %if 0%{?rhel} == 8 %ifarch aarch64 %patch -P305 -p1 -b .el8-memory_tagging @@ -1934,6 +1941,7 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %changelog * Sat Nov 23 2024 Than Ngo - 131.0.6778.85-2 - Enable qt-ui +- Workaround for random crash * Wed Nov 20 2024 Than Ngo - 131.0.6778.85-1 - Update to 131.0.6778.85 From 3ed80b6d8f288468e2c570b694172d8836a1965d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 4 Dec 2024 10:38:17 +0100 Subject: [PATCH 075/244] - Update to 131.0.6778.108 * High CVE-2024-12053: Type Confusion in V8 - removed a workaround for build error on el8 --- chromium-131-el8-libavcodec-parser.patch | 690 ----------------------- chromium.spec | 14 +- sources | 2 +- 3 files changed, 7 insertions(+), 699 deletions(-) delete mode 100644 chromium-131-el8-libavcodec-parser.patch diff --git a/chromium-131-el8-libavcodec-parser.patch b/chromium-131-el8-libavcodec-parser.patch deleted file mode 100644 index 24da282..0000000 --- a/chromium-131-el8-libavcodec-parser.patch +++ /dev/null @@ -1,690 +0,0 @@ ---- /dev/null 2024-11-22 07:51:33.845958571 +0100 -+++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/parser.h 2024-11-19 23:48:49.634320300 +0100 -@@ -0,0 +1,58 @@ -+/* -+ * AVCodecParser prototypes and definitions -+ * Copyright (c) 2003 Fabrice Bellard -+ * Copyright (c) 2003 Michael Niedermayer -+ * -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#ifndef AVCODEC_PARSER_H -+#define AVCODEC_PARSER_H -+ -+#include "avcodec.h" -+ -+typedef struct ParseContext{ -+ uint8_t *buffer; -+ int index; -+ int last_index; -+ unsigned int buffer_size; -+ uint32_t state; ///< contains the last few bytes in MSB order -+ int frame_start_found; -+ int overread; ///< the number of bytes which where irreversibly read from the next frame -+ int overread_index; ///< the index into ParseContext.buffer of the overread bytes -+ uint64_t state64; ///< contains the last 8 bytes in MSB order -+} ParseContext; -+ -+#define END_NOT_FOUND (-100) -+ -+/** -+ * Combine the (truncated) bitstream to a complete frame. -+ * @return -1 if no complete frame could be created, -+ * AVERROR(ENOMEM) if there was a memory allocation error -+ */ -+int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size); -+void ff_parse_close(AVCodecParserContext *s); -+ -+/** -+ * Fetch timestamps for a specific byte within the current access unit. -+ * @param off byte position within the access unit -+ * @param remove Found timestamps will be removed if set to 1, kept if set to 0. -+ * @param fuzzy Only use found value if it is more informative than what we already have -+ */ -+void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove, int fuzzy); -+ -+#endif /* AVCODEC_PARSER_H */ ---- /dev/null 2024-11-22 07:51:33.845958571 +0100 -+++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/parser.c 2024-11-19 23:48:49.633320000 +0100 -@@ -0,0 +1,295 @@ -+/* -+ * Audio and Video frame extraction -+ * Copyright (c) 2003 Fabrice Bellard -+ * Copyright (c) 2003 Michael Niedermayer -+ * -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#include -+#include -+#include -+ -+#include "libavutil/avassert.h" -+#include "libavutil/mem.h" -+ -+#include "parser.h" -+ -+AVCodecParserContext *av_parser_init(int codec_id) -+{ -+ AVCodecParserContext *s = NULL; -+ const AVCodecParser *parser; -+ void *i = 0; -+ int ret; -+ -+ if (codec_id == AV_CODEC_ID_NONE) -+ return NULL; -+ -+ while ((parser = av_parser_iterate(&i))) { -+ if (parser->codec_ids[0] == codec_id || -+ parser->codec_ids[1] == codec_id || -+ parser->codec_ids[2] == codec_id || -+ parser->codec_ids[3] == codec_id || -+ parser->codec_ids[4] == codec_id || -+ parser->codec_ids[5] == codec_id || -+ parser->codec_ids[6] == codec_id) -+ goto found; -+ } -+ return NULL; -+ -+found: -+ s = av_mallocz(sizeof(AVCodecParserContext)); -+ if (!s) -+ goto err_out; -+ s->parser = parser; -+ s->priv_data = av_mallocz(parser->priv_data_size); -+ if (!s->priv_data) -+ goto err_out; -+ s->fetch_timestamp=1; -+ s->pict_type = AV_PICTURE_TYPE_I; -+ if (parser->parser_init) { -+ ret = parser->parser_init(s); -+ if (ret != 0) -+ goto err_out; -+ } -+ s->key_frame = -1; -+ s->dts_sync_point = INT_MIN; -+ s->dts_ref_dts_delta = INT_MIN; -+ s->pts_dts_delta = INT_MIN; -+ s->format = -1; -+ -+ return s; -+ -+err_out: -+ if (s) -+ av_freep(&s->priv_data); -+ av_free(s); -+ return NULL; -+} -+ -+void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove, int fuzzy) -+{ -+ int i; -+ -+ if (!fuzzy) { -+ s->dts = -+ s->pts = AV_NOPTS_VALUE; -+ s->pos = -1; -+ s->offset = 0; -+ } -+ for (i = 0; i < AV_PARSER_PTS_NB; i++) { -+ if (s->cur_offset + off >= s->cur_frame_offset[i] && -+ (s->frame_offset < s->cur_frame_offset[i] || -+ (!s->frame_offset && !s->next_frame_offset)) && // first field/frame -+ // check disabled since MPEG-TS does not send complete PES packets -+ /*s->next_frame_offset + off <*/ s->cur_frame_end[i]){ -+ -+ if (!fuzzy || s->cur_frame_dts[i] != AV_NOPTS_VALUE) { -+ s->dts = s->cur_frame_dts[i]; -+ s->pts = s->cur_frame_pts[i]; -+ s->pos = s->cur_frame_pos[i]; -+ s->offset = s->next_frame_offset - s->cur_frame_offset[i]; -+ } -+ if (remove) -+ s->cur_frame_offset[i] = INT64_MAX; -+ if (s->cur_offset + off < s->cur_frame_end[i]) -+ break; -+ } -+ } -+} -+ -+int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, -+ uint8_t **poutbuf, int *poutbuf_size, -+ const uint8_t *buf, int buf_size, -+ int64_t pts, int64_t dts, int64_t pos) -+{ -+ int index, i; -+ uint8_t dummy_buf[AV_INPUT_BUFFER_PADDING_SIZE]; -+ -+ av_assert1(avctx->codec_id != AV_CODEC_ID_NONE); -+ -+ /* Parsers only work for the specified codec ids. */ -+ av_assert1(avctx->codec_id == s->parser->codec_ids[0] || -+ avctx->codec_id == s->parser->codec_ids[1] || -+ avctx->codec_id == s->parser->codec_ids[2] || -+ avctx->codec_id == s->parser->codec_ids[3] || -+ avctx->codec_id == s->parser->codec_ids[4] || -+ avctx->codec_id == s->parser->codec_ids[5] || -+ avctx->codec_id == s->parser->codec_ids[6]); -+ -+ if (!(s->flags & PARSER_FLAG_FETCHED_OFFSET)) { -+ s->next_frame_offset = -+ s->cur_offset = pos; -+ s->flags |= PARSER_FLAG_FETCHED_OFFSET; -+ } -+ -+ if (buf_size == 0) { -+ /* padding is always necessary even if EOF, so we add it here */ -+ memset(dummy_buf, 0, sizeof(dummy_buf)); -+ buf = dummy_buf; -+ } else if (s->cur_offset + buf_size != s->cur_frame_end[s->cur_frame_start_index]) { /* skip remainder packets */ -+ /* add a new packet descriptor */ -+ i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1); -+ s->cur_frame_start_index = i; -+ s->cur_frame_offset[i] = s->cur_offset; -+ s->cur_frame_end[i] = s->cur_offset + buf_size; -+ s->cur_frame_pts[i] = pts; -+ s->cur_frame_dts[i] = dts; -+ s->cur_frame_pos[i] = pos; -+ } -+ -+ if (s->fetch_timestamp) { -+ s->fetch_timestamp = 0; -+ s->last_pts = s->pts; -+ s->last_dts = s->dts; -+ s->last_pos = s->pos; -+ ff_fetch_timestamp(s, 0, 0, 0); -+ } -+ /* WARNING: the returned index can be negative */ -+ index = s->parser->parser_parse(s, avctx, (const uint8_t **) poutbuf, -+ poutbuf_size, buf, buf_size); -+ av_assert0(index > -0x20000000); // The API does not allow returning AVERROR codes -+#define FILL(name) if(s->name > 0 && avctx->name <= 0) avctx->name = s->name -+ if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) { -+ FILL(field_order); -+ FILL(coded_width); -+ FILL(coded_height); -+ FILL(width); -+ FILL(height); -+ } -+ -+ /* update the file pointer */ -+ if (*poutbuf_size) { -+ /* fill the data for the current frame */ -+ s->frame_offset = s->next_frame_offset; -+ -+ /* offset of the next frame */ -+ s->next_frame_offset = s->cur_offset + index; -+ s->fetch_timestamp = 1; -+ } else { -+ /* Don't return a pointer to dummy_buf. */ -+ *poutbuf = NULL; -+ } -+ if (index < 0) -+ index = 0; -+ s->cur_offset += index; -+ return index; -+} -+ -+void av_parser_close(AVCodecParserContext *s) -+{ -+ if (s) { -+ if (s->parser->parser_close) -+ s->parser->parser_close(s); -+ av_freep(&s->priv_data); -+ av_free(s); -+ } -+} -+ -+int ff_combine_frame(ParseContext *pc, int next, -+ const uint8_t **buf, int *buf_size) -+{ -+ if (pc->overread) { -+ ff_dlog(NULL, "overread %d, state:%"PRIX32" next:%d index:%d o_index:%d\n", -+ pc->overread, pc->state, next, pc->index, pc->overread_index); -+ ff_dlog(NULL, "%X %X %X %X\n", -+ (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]); -+ } -+ -+ /* Copy overread bytes from last frame into buffer. */ -+ for (; pc->overread > 0; pc->overread--) -+ pc->buffer[pc->index++] = pc->buffer[pc->overread_index++]; -+ -+ if (next > *buf_size) -+ return AVERROR(EINVAL); -+ -+ /* flush remaining if EOF */ -+ if (!*buf_size && next == END_NOT_FOUND) -+ next = 0; -+ -+ pc->last_index = pc->index; -+ -+ /* copy into buffer end return */ -+ if (next == END_NOT_FOUND) { -+ void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, -+ *buf_size + pc->index + -+ AV_INPUT_BUFFER_PADDING_SIZE); -+ -+ if (!new_buffer) { -+ av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); -+ pc->index = 0; -+ return AVERROR(ENOMEM); -+ } -+ pc->buffer = new_buffer; -+ memcpy(&pc->buffer[pc->index], *buf, *buf_size); -+ memset(&pc->buffer[pc->index + *buf_size], 0, AV_INPUT_BUFFER_PADDING_SIZE); -+ pc->index += *buf_size; -+ return -1; -+ } -+ -+ av_assert0(next >= 0 || pc->buffer); -+ -+ *buf_size = -+ pc->overread_index = pc->index + next; -+ -+ /* append to buffer */ -+ if (pc->index) { -+ void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, -+ next + pc->index + -+ AV_INPUT_BUFFER_PADDING_SIZE); -+ if (!new_buffer) { -+ av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); -+ *buf_size = -+ pc->overread_index = -+ pc->index = 0; -+ return AVERROR(ENOMEM); -+ } -+ pc->buffer = new_buffer; -+ if (next > -AV_INPUT_BUFFER_PADDING_SIZE) -+ memcpy(&pc->buffer[pc->index], *buf, -+ next + AV_INPUT_BUFFER_PADDING_SIZE); -+ pc->index = 0; -+ *buf = pc->buffer; -+ } -+ -+ if (next < -8) { -+ pc->overread += -8 - next; -+ next = -8; -+ } -+ /* store overread bytes */ -+ for (; next < 0; next++) { -+ pc->state = pc->state << 8 | pc->buffer[pc->last_index + next]; -+ pc->state64 = pc->state64 << 8 | pc->buffer[pc->last_index + next]; -+ pc->overread++; -+ } -+ -+ if (pc->overread) { -+ ff_dlog(NULL, "overread %d, state:%"PRIX32" next:%d index:%d o_index:%d\n", -+ pc->overread, pc->state, next, pc->index, pc->overread_index); -+ ff_dlog(NULL, "%X %X %X %X\n", -+ (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]); -+ } -+ -+ return 0; -+} -+ -+void ff_parse_close(AVCodecParserContext *s) -+{ -+ ParseContext *pc = s->priv_data; -+ -+ av_freep(&pc->buffer); -+} ---- /dev/null 2024-11-22 07:51:33.845958571 +0100 -+++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/hevc/hevc.h 2024-11-19 23:48:49.494310400 +0100 -@@ -0,0 +1,163 @@ -+/* -+ * HEVC shared code -+ * -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#ifndef AVCODEC_HEVC_HEVC_H -+#define AVCODEC_HEVC_HEVC_H -+ -+/** -+ * Table 7-1 – NAL unit type codes and NAL unit type classes in -+ * T-REC-H.265-201802 -+ */ -+enum HEVCNALUnitType { -+ HEVC_NAL_TRAIL_N = 0, -+ HEVC_NAL_TRAIL_R = 1, -+ HEVC_NAL_TSA_N = 2, -+ HEVC_NAL_TSA_R = 3, -+ HEVC_NAL_STSA_N = 4, -+ HEVC_NAL_STSA_R = 5, -+ HEVC_NAL_RADL_N = 6, -+ HEVC_NAL_RADL_R = 7, -+ HEVC_NAL_RASL_N = 8, -+ HEVC_NAL_RASL_R = 9, -+ HEVC_NAL_VCL_N10 = 10, -+ HEVC_NAL_VCL_R11 = 11, -+ HEVC_NAL_VCL_N12 = 12, -+ HEVC_NAL_VCL_R13 = 13, -+ HEVC_NAL_VCL_N14 = 14, -+ HEVC_NAL_VCL_R15 = 15, -+ HEVC_NAL_BLA_W_LP = 16, -+ HEVC_NAL_BLA_W_RADL = 17, -+ HEVC_NAL_BLA_N_LP = 18, -+ HEVC_NAL_IDR_W_RADL = 19, -+ HEVC_NAL_IDR_N_LP = 20, -+ HEVC_NAL_CRA_NUT = 21, -+ HEVC_NAL_RSV_IRAP_VCL22 = 22, -+ HEVC_NAL_RSV_IRAP_VCL23 = 23, -+ HEVC_NAL_RSV_VCL24 = 24, -+ HEVC_NAL_RSV_VCL25 = 25, -+ HEVC_NAL_RSV_VCL26 = 26, -+ HEVC_NAL_RSV_VCL27 = 27, -+ HEVC_NAL_RSV_VCL28 = 28, -+ HEVC_NAL_RSV_VCL29 = 29, -+ HEVC_NAL_RSV_VCL30 = 30, -+ HEVC_NAL_RSV_VCL31 = 31, -+ HEVC_NAL_VPS = 32, -+ HEVC_NAL_SPS = 33, -+ HEVC_NAL_PPS = 34, -+ HEVC_NAL_AUD = 35, -+ HEVC_NAL_EOS_NUT = 36, -+ HEVC_NAL_EOB_NUT = 37, -+ HEVC_NAL_FD_NUT = 38, -+ HEVC_NAL_SEI_PREFIX = 39, -+ HEVC_NAL_SEI_SUFFIX = 40, -+ HEVC_NAL_RSV_NVCL41 = 41, -+ HEVC_NAL_RSV_NVCL42 = 42, -+ HEVC_NAL_RSV_NVCL43 = 43, -+ HEVC_NAL_RSV_NVCL44 = 44, -+ HEVC_NAL_RSV_NVCL45 = 45, -+ HEVC_NAL_RSV_NVCL46 = 46, -+ HEVC_NAL_RSV_NVCL47 = 47, -+ HEVC_NAL_UNSPEC48 = 48, -+ HEVC_NAL_UNSPEC49 = 49, -+ HEVC_NAL_UNSPEC50 = 50, -+ HEVC_NAL_UNSPEC51 = 51, -+ HEVC_NAL_UNSPEC52 = 52, -+ HEVC_NAL_UNSPEC53 = 53, -+ HEVC_NAL_UNSPEC54 = 54, -+ HEVC_NAL_UNSPEC55 = 55, -+ HEVC_NAL_UNSPEC56 = 56, -+ HEVC_NAL_UNSPEC57 = 57, -+ HEVC_NAL_UNSPEC58 = 58, -+ HEVC_NAL_UNSPEC59 = 59, -+ HEVC_NAL_UNSPEC60 = 60, -+ HEVC_NAL_UNSPEC61 = 61, -+ HEVC_NAL_UNSPEC62 = 62, -+ HEVC_NAL_UNSPEC63 = 63, -+}; -+ -+enum HEVCSliceType { -+ HEVC_SLICE_B = 0, -+ HEVC_SLICE_P = 1, -+ HEVC_SLICE_I = 2, -+}; -+ -+enum { -+ // 7.4.3.1: vps_max_layers_minus1 is in [0, 62]. -+ HEVC_MAX_LAYERS = 63, -+ // 7.4.3.1: vps_max_sub_layers_minus1 is in [0, 6]. -+ HEVC_MAX_SUB_LAYERS = 7, -+ // 7.4.3.1: vps_num_layer_sets_minus1 is in [0, 1023]. -+ HEVC_MAX_LAYER_SETS = 1024, -+ -+ // 7.4.2.1: vps_video_parameter_set_id is u(4). -+ HEVC_MAX_VPS_COUNT = 16, -+ // 7.4.3.2.1: sps_seq_parameter_set_id is in [0, 15]. -+ HEVC_MAX_SPS_COUNT = 16, -+ // 7.4.3.3.1: pps_pic_parameter_set_id is in [0, 63]. -+ HEVC_MAX_PPS_COUNT = 64, -+ -+ // A.4.2: MaxDpbSize is bounded above by 16. -+ HEVC_MAX_DPB_SIZE = 16, -+ // 7.4.3.1: vps_max_dec_pic_buffering_minus1[i] is in [0, MaxDpbSize - 1]. -+ HEVC_MAX_REFS = HEVC_MAX_DPB_SIZE, -+ -+ // 7.4.3.2.1: num_short_term_ref_pic_sets is in [0, 64]. -+ HEVC_MAX_SHORT_TERM_REF_PIC_SETS = 64, -+ // 7.4.3.2.1: num_long_term_ref_pics_sps is in [0, 32]. -+ HEVC_MAX_LONG_TERM_REF_PICS = 32, -+ -+ // A.3: all profiles require that CtbLog2SizeY is in [4, 6]. -+ HEVC_MIN_LOG2_CTB_SIZE = 4, -+ HEVC_MAX_LOG2_CTB_SIZE = 6, -+ -+ // E.3.2: cpb_cnt_minus1[i] is in [0, 31]. -+ HEVC_MAX_CPB_CNT = 32, -+ -+ // A.4.1: in table A.6 the highest level allows a MaxLumaPs of 35 651 584. -+ HEVC_MAX_LUMA_PS = 35651584, -+ // A.4.1: pic_width_in_luma_samples and pic_height_in_luma_samples are -+ // constrained to be not greater than sqrt(MaxLumaPs * 8). Hence height/ -+ // width are bounded above by sqrt(8 * 35651584) = 16888.2 samples. -+ HEVC_MAX_WIDTH = 16888, -+ HEVC_MAX_HEIGHT = 16888, -+ -+ // A.4.1: table A.6 allows at most 22 tile rows for any level. -+ HEVC_MAX_TILE_ROWS = 22, -+ // A.4.1: table A.6 allows at most 20 tile columns for any level. -+ HEVC_MAX_TILE_COLUMNS = 20, -+ -+ // A.4.2: table A.6 allows at most 600 slice segments for any level. -+ HEVC_MAX_SLICE_SEGMENTS = 600, -+ -+ // 7.4.7.1: in the worst case (tiles_enabled_flag and -+ // entropy_coding_sync_enabled_flag are both set), entry points can be -+ // placed at the beginning of every Ctb row in every tile, giving an -+ // upper bound of (num_tile_columns_minus1 + 1) * PicHeightInCtbsY - 1. -+ // Only a stream with very high resolution and perverse parameters could -+ // get near that, though, so set a lower limit here with the maximum -+ // possible value for 4K video (at most 135 16x16 Ctb rows). -+ HEVC_MAX_ENTRY_POINT_OFFSETS = HEVC_MAX_TILE_COLUMNS * 135, -+ -+ // A.3.7: Screen content coding extensions -+ HEVC_MAX_PALETTE_PREDICTOR_SIZE = 128, -+}; -+ -+ -+#endif /* AVCODEC_HEVC_HEVC_H */ ---- /dev/null 2024-11-22 07:51:33.845958571 +0100 -+++ chromium-131.0.6778.85/third_party/ffmpeg/libavutil/aarch64/intreadwrite.h 2024-11-19 23:48:50.697394400 +0100 -@@ -0,0 +1,42 @@ -+/* -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#ifndef AVUTIL_AARCH64_INTREADWRITE_H -+#define AVUTIL_AARCH64_INTREADWRITE_H -+ -+#if HAVE_INTRINSICS_NEON -+ -+#include -+ -+#define AV_COPY128 AV_COPY128 -+static av_always_inline void AV_COPY128(void *d, const void *s) -+{ -+ uint8x16_t tmp = vld1q_u8((const uint8_t *)s); -+ vst1q_u8((uint8_t *)d, tmp); -+} -+ -+#define AV_ZERO128 AV_ZERO128 -+static av_always_inline void AV_ZERO128(void *d) -+{ -+ uint8x16_t zero = vdupq_n_u8(0); -+ vst1q_u8((uint8_t *)d, zero); -+} -+ -+#endif /* HAVE_INTRINSICS_NEON */ -+ -+#endif /* AVUTIL_AARCH64_INTREADWRITE_H */ ---- /dev/null 2024-11-22 07:51:33.845958571 +0100 -+++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/opus/enc.h 2024-11-19 23:48:49.631320000 +0100 -@@ -0,0 +1,55 @@ -+/* -+ * Opus encoder -+ * Copyright (c) 2017 Rostislav Pehlivanov -+ * -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#ifndef AVCODEC_OPUS_ENC_H -+#define AVCODEC_OPUS_ENC_H -+ -+#include "libavutil/intmath.h" -+#include "opus.h" -+ -+/* Determines the maximum delay the psychoacoustic system will use for lookahead */ -+#define FF_BUFQUEUE_SIZE 145 -+#include "libavfilter/bufferqueue.h" -+ -+#define OPUS_MAX_LOOKAHEAD ((FF_BUFQUEUE_SIZE - 1)*2.5f) -+ -+#define OPUS_MAX_CHANNELS 2 -+ -+/* 120 ms / 2.5 ms = 48 frames (extremely improbable, but the encoder'll work) */ -+#define OPUS_MAX_FRAMES_PER_PACKET 48 -+ -+#define OPUS_BLOCK_SIZE(x) (2 * 15 * (1 << ((x) + 2))) -+ -+#define OPUS_SAMPLES_TO_BLOCK_SIZE(x) (ff_log2((x) / (2 * 15)) - 2) -+ -+typedef struct OpusEncOptions { -+ float max_delay_ms; -+ int apply_phase_inv; -+} OpusEncOptions; -+ -+typedef struct OpusPacketInfo { -+ enum OpusMode mode; -+ enum OpusBandwidth bandwidth; -+ int framesize; -+ int frames; -+} OpusPacketInfo; -+ -+#endif /* AVCODEC_OPUS_ENC_H */ ---- /dev/null 2024-11-22 07:51:33.845958571 +0100 -+++ chromium-131.0.6778.85/third_party/ffmpeg/libavcodec/opus/opus.h 2024-11-19 23:48:49.631320000 +0100 -@@ -0,0 +1,59 @@ -+/* -+ * Opus common header -+ * Copyright (c) 2012 Andrew D'Addesio -+ * Copyright (c) 2013-2014 Mozilla Corporation -+ * -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#ifndef AVCODEC_OPUS_OPUS_H -+#define AVCODEC_OPUS_OPUS_H -+ -+#include -+ -+#define OPUS_MAX_FRAME_SIZE 1275 -+#define OPUS_MAX_FRAMES 48 -+#define OPUS_MAX_PACKET_DUR 5760 -+ -+#define OPUS_TS_HEADER 0x7FE0 // 0x3ff (11 bits) -+#define OPUS_TS_MASK 0xFFE0 // top 11 bits -+ -+static const uint8_t opus_default_extradata[30] = { -+ 'O', 'p', 'u', 's', 'H', 'e', 'a', 'd', -+ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -+}; -+ -+enum OpusMode { -+ OPUS_MODE_SILK, -+ OPUS_MODE_HYBRID, -+ OPUS_MODE_CELT, -+ -+ OPUS_MODE_NB -+}; -+ -+enum OpusBandwidth { -+ OPUS_BANDWIDTH_NARROWBAND, -+ OPUS_BANDWIDTH_MEDIUMBAND, -+ OPUS_BANDWIDTH_WIDEBAND, -+ OPUS_BANDWIDTH_SUPERWIDEBAND, -+ OPUS_BANDWIDTH_FULLBAND, -+ -+ OPUS_BANDWITH_NB -+}; -+ -+#endif /* AVCODEC_OPUS_OPUS_H */ diff --git a/chromium.spec b/chromium.spec index 7260d33..bf4f925 100644 --- a/chromium.spec +++ b/chromium.spec @@ -279,8 +279,8 @@ %endif Name: chromium%{chromium_channel} -Version: 131.0.6778.85 -Release: 2%{?dist} +Version: 131.0.6778.108 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -329,8 +329,6 @@ Patch133: chromium-121-system-old-ffmpeg.patch patch134: chromium-125-disable-FFmpegAllowLists.patch # revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' Patch135: chromium-129-disable-H.264-video-parser-during-demuxing.patch -# workaround for build error on el8 (should be removed in next rebase) -Patch136: chromium-131-el8-libavcodec-parser.patch # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch @@ -1047,10 +1045,6 @@ Qt6 UI for chromium. %patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing %endif -%if 0%{?rhel} == 8 -%patch -P136 -p1 -b .el8-libavcodec-parser -%endif - %if 0%{?rhel} == 8 || 0%{?rhel} == 9 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict %endif @@ -1939,6 +1933,10 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Dec 04 2024 Than Ngo - 131.0.6778.108-1 +- Update to 131.0.6778.108 + * High CVE-2024-12053: Type Confusion in V8 + * Sat Nov 23 2024 Than Ngo - 131.0.6778.85-2 - Enable qt-ui - Workaround for random crash diff --git a/sources b/sources index 14364b2..b688a0b 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-131.0.6778.85-clean.tar.xz) = e2adae2de0de3910d8c915d0b7e1922ddaec5d8cc68d5fa6b0e99fa34ad052171e83333262ac3767f86fb32e5f31791b0ffee48ce694150d4bbaf30035e36052 +SHA512 (chromium-131.0.6778.108-clean.tar.xz) = 9af20541cf8cf29842553d7b2744df22a6c162b90d480dff91a8aff62651b108abec9e66d54c1825bc582411f8e806674cb77abab0f3156401122542c11d8049 From 3585ae088cca54eac379992caef259a4eb05a367 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 4 Dec 2024 17:20:45 +0100 Subject: [PATCH 076/244] Enable Vulkan for intel graphic driver by default --- chromium.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chromium.conf b/chromium.conf index fd2405d..1ec54ce 100644 --- a/chromium.conf +++ b/chromium.conf @@ -24,7 +24,7 @@ fi FEATURES="" case "$GRAPHIC_DRIVER" in - amd) + amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode" @@ -37,10 +37,6 @@ case "$GRAPHIC_DRIVER" in CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" FEATURES+="VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs" ;; - intel) - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" - FEATURES+="VaapiVideoEncoder,VaapiVideoDecodeLinuxGL" - ;; *) CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --disable-gpu-compositing" FEATURES+="VaapiVideoEncoder,VaapiVideoDecodeLinuxGL" From 1d58e3042dae709b825d80808703e4a5042e20a2 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 11 Dec 2024 13:23:20 +0100 Subject: [PATCH 077/244] - Update to 131.0.6778.139 * High CVE-2024-12381: Type Confusion in V8 * High CVE-2024-12382: Use after free in Translate --- chromium.spec | 7 ++++++- sources | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index bf4f925..e1186ec 100644 --- a/chromium.spec +++ b/chromium.spec @@ -279,7 +279,7 @@ %endif Name: chromium%{chromium_channel} -Version: 131.0.6778.108 +Version: 131.0.6778.139 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1933,6 +1933,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Dec 11 2024 Than Ngo - 131.0.6778.139-1 +- Update to 131.0.6778.139 + * High CVE-2024-12381: Type Confusion in V8 + * High CVE-2024-12382: Use after free in Translate + * Wed Dec 04 2024 Than Ngo - 131.0.6778.108-1 - Update to 131.0.6778.108 * High CVE-2024-12053: Type Confusion in V8 diff --git a/sources b/sources index b688a0b..20bb9ed 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-131.0.6778.108-clean.tar.xz) = 9af20541cf8cf29842553d7b2744df22a6c162b90d480dff91a8aff62651b108abec9e66d54c1825bc582411f8e806674cb77abab0f3156401122542c11d8049 +SHA512 (chromium-131.0.6778.139-clean.tar.xz) = 5ea7bc96b3efcadf59e561d49093acfc07c42f16cab1de85d4de21755e62c3e6964ee0d4b64c29f281cc3ae3a2b651cdcb93e79281a91464362198b6d9f0c543 From fcd074b9c31411f795ab402fe88e4513a68c843e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 19 Dec 2024 10:58:32 +0100 Subject: [PATCH 078/244] - Update to 131.0.6778.204 * High CVE-2024-12692: Type Confusion in V8 * High CVE-2024-12693: Out of bounds memory access in V8 * High CVE-2024-12694: Use after free in Compositing * High CVE-2024-12695: Out of bounds write in V8 --- chromium.spec | 9 ++++++++- sources | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index e1186ec..43d1b86 100644 --- a/chromium.spec +++ b/chromium.spec @@ -279,7 +279,7 @@ %endif Name: chromium%{chromium_channel} -Version: 131.0.6778.139 +Version: 131.0.6778.204 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1933,6 +1933,13 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Dec 19 2024 Than Ngo - 131.0.6778.204-1 +- Update to 131.0.6778.204 + * High CVE-2024-12692: Type Confusion in V8 + * High CVE-2024-12693: Out of bounds memory access in V8 + * High CVE-2024-12694: Use after free in Compositing + * High CVE-2024-12695: Out of bounds write in V8 + * Wed Dec 11 2024 Than Ngo - 131.0.6778.139-1 - Update to 131.0.6778.139 * High CVE-2024-12381: Type Confusion in V8 diff --git a/sources b/sources index 20bb9ed..5e740f1 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-131.0.6778.139-clean.tar.xz) = 5ea7bc96b3efcadf59e561d49093acfc07c42f16cab1de85d4de21755e62c3e6964ee0d4b64c29f281cc3ae3a2b651cdcb93e79281a91464362198b6d9f0c543 +SHA512 (chromium-131.0.6778.204-clean.tar.xz) = 2e2aeafec4158ba02506b152d582ca2551e45e43bce8ffc2962fbb356145ba8935979e04f383080dd72cf85c242a5aa8970b7d95ca85b88e1c3d1cc497507b9b From 49962a66b96a5f6617d62be36227a32f6d89b291 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 8 Jan 2025 11:05:03 +0100 Subject: [PATCH 079/244] - Update to 131.0.6778.264 * High CVE-2025-0291: Type Confusion in V8 --- chromium.conf | 2 +- chromium.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chromium.conf b/chromium.conf index 1ec54ce..5abc259 100644 --- a/chromium.conf +++ b/chromium.conf @@ -38,7 +38,7 @@ case "$GRAPHIC_DRIVER" in FEATURES+="VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs" ;; *) - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --disable-gpu-compositing" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" FEATURES+="VaapiVideoEncoder,VaapiVideoDecodeLinuxGL" ;; esac diff --git a/chromium.spec b/chromium.spec index 43d1b86..bae17ca 100644 --- a/chromium.spec +++ b/chromium.spec @@ -279,7 +279,7 @@ %endif Name: chromium%{chromium_channel} -Version: 131.0.6778.204 +Version: 131.0.6778.264 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1933,6 +1933,10 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Jan 08 2025 Than Ngo - 131.0.6778.264-1 +- Update to 131.0.6778.264 + * High CVE-2025-0291: Type Confusion in V8 + * Thu Dec 19 2024 Than Ngo - 131.0.6778.204-1 - Update to 131.0.6778.204 * High CVE-2024-12692: Type Confusion in V8 diff --git a/sources b/sources index 5e740f1..f07092d 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-131.0.6778.204-clean.tar.xz) = 2e2aeafec4158ba02506b152d582ca2551e45e43bce8ffc2962fbb356145ba8935979e04f383080dd72cf85c242a5aa8970b7d95ca85b88e1c3d1cc497507b9b +SHA512 (chromium-131.0.6778.264-clean.tar.xz) = 04eee13b17f7ff9e1200d33cdd477854dee2f5b0e6308576165c0b989f3ac17a5c1ae06d97099ca963bec6cf46ecaec34a988771c3b8ac1dc7a11e9b8886baf0 From 35c8f2ca20451bba1b1176c7307bc05a63dbd167 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Jan 2025 09:58:11 +0100 Subject: [PATCH 080/244] - Update to 132.0.6834.83 * High CVE-2025-0434: Out of bounds memory access in V8 * High CVE-2025-0435: Inappropriate implementation in Navigation * High CVE-2025-0436: Integer overflow in Skia * High CVE-2025-0437: Out of bounds read in Metrics * High CVE-2025-0438: Stack buffer overflow in Tracing * Medium CVE-2025-0439: Race in Frames * Medium CVE-2025-0440: Inappropriate implementation in Fullscreen * Medium CVE-2025-0441: Inappropriate implementation in Fenced * Medium CVE-2025-0442: Inappropriate implementation in Payments * Medium CVE-2025-0443: Insufficient data validation in Extensions * Low CVE-2025-0446: Inappropriate implementation in Extensions * Low CVE-2025-0447: Inappropriate implementation in Navigation * Low CVE-2025-0448: Inappropriate implementation in Compositing - Refreshed ppc64 patches - Enabled libtiff for fedora > 41 - Removed useless patches - Fixed some build errors on EL8 --- chromium-127-rust-clanglib.patch | 12 ++ ...m-128.0.6613.137-python-3.13-warning.patch | 13 -- chromium-130-size-assertions.patch | 90 ----------- chromium-131-system-freetype.patch | 13 -- chromium-132-el8-clang18-build-error.patch | 12 ++ chromium-132-el8-unsupport-clang-flags.patch | 17 ++ chromium-132-el8-unsupport-rustc-flags.patch | 11 ++ chromium-latest.py | 13 +- chromium.spec | 64 ++++---- clean_ffmpeg.sh | 5 +- skia-vsx-instructions.patch | 147 ++++++++---------- sources | 2 +- 12 files changed, 164 insertions(+), 235 deletions(-) delete mode 100644 chromium-128.0.6613.137-python-3.13-warning.patch delete mode 100644 chromium-130-size-assertions.patch delete mode 100644 chromium-131-system-freetype.patch create mode 100644 chromium-132-el8-clang18-build-error.patch create mode 100644 chromium-132-el8-unsupport-clang-flags.patch create mode 100644 chromium-132-el8-unsupport-rustc-flags.patch diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch index ed4d6c0..feb4130 100644 --- a/chromium-127-rust-clanglib.patch +++ b/chromium-127-rust-clanglib.patch @@ -65,3 +65,15 @@ diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chrom _lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}" libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ] } +diff -up chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni.me chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni +--- chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni.me 2024-12-31 15:08:27.013151672 +0100 ++++ chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni 2024-12-31 15:08:49.538663024 +0100 +@@ -22,7 +22,7 @@ _libclang_path = rust_bindgen_root + if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. diff --git a/chromium-128.0.6613.137-python-3.13-warning.patch b/chromium-128.0.6613.137-python-3.13-warning.patch deleted file mode 100644 index 3923e29..0000000 --- a/chromium-128.0.6613.137-python-3.13-warning.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py.me chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py ---- chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py.me 2024-09-16 12:47:47.541825252 +0200 -+++ chromium-128.0.6613.137/third_party/inspector_protocol/code_generator.py 2024-09-16 12:48:39.210990291 +0200 -@@ -147,8 +147,7 @@ def dash_to_camelcase(word): - - def to_snake_case(name): - name = re.sub(r"([A-Z]{2,})([A-Z][a-z])", r"\1_\2", name) -- return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", name, sys.maxsize).lower() -- -+ return re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", name, count=sys.maxsize).lower() - - def to_method_case(config, name): - if config.use_title_case_methods: diff --git a/chromium-130-size-assertions.patch b/chromium-130-size-assertions.patch deleted file mode 100644 index cc75fb3..0000000 --- a/chromium-130-size-assertions.patch +++ /dev/null @@ -1,90 +0,0 @@ -commit f457e3c32b8170a39ead84ceaf9f0fdbe0696649 -Author: Michael Lippautz -Date: Tue Oct 15 19:27:32 2024 +0000 - - Fix size assertions across Blink - - The ASSERT_SIZE() macro is used to check that certain object sizes do - not grow unexpectedly. Fix a few occurrences that assumed that Member - is always the same size as debug builds may blow up the pointer size - to allow verifying some conditions. - - Bug: 373485798 - Change-Id: I243dd7d75810e2cfda0141817986a6c4a03c6392 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5934877 - Commit-Queue: Michael Lippautz - Reviewed-by: Steinar H Gunderson - Cr-Commit-Position: refs/heads/main@{#1368939} - -diff --git a/third_party/blink/renderer/core/css/css_selector.cc b/third_party/blink/renderer/core/css/css_selector.cc -index e9cd483e0ce13..3d99eab57489e 100644 ---- a/third_party/blink/renderer/core/css/css_selector.cc -+++ b/third_party/blink/renderer/core/css/css_selector.cc -@@ -88,7 +88,11 @@ unsigned MaximumSpecificity( - - struct SameSizeAsCSSSelector { - unsigned bitfields; -- void* pointers[1]; -+ union { -+ AtomicString value_; -+ QualifiedName tag_q_name_or_attribute_; -+ Member rare_data_; -+ } pointers; - }; - - ASSERT_SIZE(CSSSelector, SameSizeAsCSSSelector); -diff --git a/third_party/blink/renderer/core/css/resolver/match_result.h b/third_party/blink/renderer/core/css/resolver/match_result.h -index c99bae9777094..210ef8610b808 100644 ---- a/third_party/blink/renderer/core/css/resolver/match_result.h -+++ b/third_party/blink/renderer/core/css/resolver/match_result.h -@@ -34,6 +34,7 @@ - #include "third_party/blink/renderer/core/dom/tree_scope.h" - #include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h" - #include "third_party/blink/renderer/platform/heap/garbage_collected.h" -+#include "third_party/blink/renderer/platform/wtf/size_assertions.h" - #include "third_party/blink/renderer/platform/wtf/vector.h" - - namespace blink { -@@ -88,8 +89,13 @@ struct CORE_EXPORT MatchedProperties { - Member properties; - Data data_; - }; --static_assert(sizeof(MatchedProperties) <= 12, -- "MatchedProperties should not grow without thinking"); -+ -+struct SameSizeAsMatchedProperties { -+ Member properties; -+ uint8_t data_[8]; -+}; -+ -+ASSERT_SIZE(MatchedProperties, SameSizeAsMatchedProperties); - - } // namespace blink - -diff --git a/third_party/blink/renderer/core/dom/element_data.cc b/third_party/blink/renderer/core/dom/element_data.cc -index 0e616444cbf92..6f3592bfa907b 100644 ---- a/third_party/blink/renderer/core/dom/element_data.cc -+++ b/third_party/blink/renderer/core/dom/element_data.cc -@@ -46,7 +46,8 @@ struct SameSizeAsElementData final - : public GarbageCollected { - unsigned bitfield; - Member willbe_member; -- void* pointers[2]; -+ SpaceSplitString class_names_; -+ void* pointers[1]; - }; - - ASSERT_SIZE(ElementData, SameSizeAsElementData); -diff --git a/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc b/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc -index 98a9f6988ae3d..68b3c922cb362 100644 ---- a/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc -+++ b/third_party/blink/renderer/platform/fonts/shaping/shape_result.cc -@@ -75,7 +75,7 @@ struct SameSizeAsRunInfo { - void* pointers[2]; - unsigned integer; - } glyph_data; -- void* pointer; -+ Member pointer; - Vector vector; - int integers[6]; - }; diff --git a/chromium-131-system-freetype.patch b/chromium-131-system-freetype.patch deleted file mode 100644 index 2959690..0000000 --- a/chromium-131-system-freetype.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up chromium-131.0.6778.69/build/linux/unbundle/freetype.gn.me chromium-131.0.6778.69/build/linux/unbundle/freetype.gn ---- chromium-131.0.6778.69/build/linux/unbundle/freetype.gn.me 2024-11-13 08:48:26.212329841 +0100 -+++ chromium-131.0.6778.69/build/linux/unbundle/freetype.gn 2024-11-13 08:49:03.071985611 +0100 -@@ -11,4 +11,9 @@ declare_args() { - # System FreeType configurations other than as described WILL INTRODUCE TEXT - # RENDERING AND SECURITY REGRESSIONS. - use_system_freetype = true -+ -+ # Use FreeType for font rendering. If this is set to false, FreeType is -+ # replaced with the Rust-based Fontations set of libraries plus Skia -+ # path rendering. -+ enable_freetype = true - } diff --git a/chromium-132-el8-clang18-build-error.patch b/chromium-132-el8-clang18-build-error.patch new file mode 100644 index 0000000..05b2603 --- /dev/null +++ b/chromium-132-el8-clang18-build-error.patch @@ -0,0 +1,12 @@ +diff -up chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc.me chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc +--- chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc.me 2025-01-10 11:17:44.598459092 +0100 ++++ chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc 2025-01-10 11:18:55.910222909 +0100 +@@ -147,7 +147,7 @@ std::u16string GetPageObjectMarkName(FPD + + // Number of characters, including the NUL. + const size_t expected_size = base::checked_cast(buflen_bytes / 2); +- PDFiumAPIStringBufferAdapter adapter(&name, expected_size, ++ PDFiumAPIStringBufferAdapter adapter(&name, expected_size, + /*check_expected_size=*/true); + unsigned long actual_buflen_bytes = 0; // NOLINT(runtime/int) + bool result = diff --git a/chromium-132-el8-unsupport-clang-flags.patch b/chromium-132-el8-unsupport-clang-flags.patch new file mode 100644 index 0000000..9768883 --- /dev/null +++ b/chromium-132-el8-unsupport-clang-flags.patch @@ -0,0 +1,17 @@ +diff -up chromium-132.0.6834.57/build/config/compiler/BUILD.gn.me chromium-132.0.6834.57/build/config/compiler/BUILD.gn +--- chromium-132.0.6834.57/build/config/compiler/BUILD.gn.me 2025-01-01 13:31:40.472819710 +0100 ++++ chromium-132.0.6834.57/build/config/compiler/BUILD.gn 2025-01-01 16:01:28.373834980 +0100 +@@ -623,13 +623,6 @@ config("compiler") { + cflags += [ "-ffp-contract=off" ] + } + +- # Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF +- # (excluding toolchains that use an older version of LLVM). +- # TODO(crbug.com/376278218): This causes segfault on Linux ARM builds. +- if (is_linux && !llvm_android_mainline && current_cpu != "arm" && +- default_toolchain != "//build/toolchain/cros:target") { +- cflags += [ "-Wa,--crel,--allow-experimental-crel" ] +- } + } + + # C11/C++11 compiler flags setup. diff --git a/chromium-132-el8-unsupport-rustc-flags.patch b/chromium-132-el8-unsupport-rustc-flags.patch new file mode 100644 index 0000000..57d325e --- /dev/null +++ b/chromium-132-el8-unsupport-rustc-flags.patch @@ -0,0 +1,11 @@ +diff -up chromium-132.0.6834.57/build/config/gcc/BUILD.gn.me chromium-132.0.6834.57/build/config/gcc/BUILD.gn +--- chromium-132.0.6834.57/build/config/gcc/BUILD.gn.me 2025-01-01 18:59:29.670002052 +0100 ++++ chromium-132.0.6834.57/build/config/gcc/BUILD.gn 2025-01-01 20:51:11.798696436 +0100 +@@ -32,7 +32,6 @@ declare_args() { + # See http://gcc.gnu.org/wiki/Visibility + config("symbol_visibility_hidden") { + cflags = [ "-fvisibility=hidden" ] +- rustflags = [ "-Zdefault-visibility=hidden" ] + + # Visibility attribute is not supported on AIX. + if (current_os != "aix") { diff --git a/chromium-latest.py b/chromium-latest.py index e06be49..e3f5888 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -73,10 +73,11 @@ def delete_chromium_files(files): full_path = "%s/%s" % (latest_dir, files) print('Deleting ' + full_path + ' ', end=' ') for filename in glob.glob(full_path): - print('Deleting ' + filename + ' ', end=' ') - os.remove(filename) - print('[DONE]') - + if os.path.isfile(filename): + os.remove(filename) + print('[DONE]') + else: + print('[NOT FOUND]') def check_omahaproxy(channel="stable"): @@ -320,10 +321,14 @@ if __name__ == '__main__': 'third_party/node/linux/node-linux-x64', 'third_party/rust-toolchain', 'third_party/rust-src'] + junk_files = ['third_party/node/linux/node-linux-x64.tar.gz'] # First, the dirs: for directory in junk_dirs: delete_chromium_dir(directory) + # Remove junk files + for file in junk_files: + delete_chromium_files(file) # There has got to be a better, more portable way to do this. os.system("find %s -depth -name reference_build -type d -exec rm -rf {} \\;" % latest_dir) diff --git a/chromium.spec b/chromium.spec index bae17ca..c52151f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -158,19 +158,17 @@ # enable qt backend %global enable_qt 1 -%global use_qt6 0 -%global use_qt 0 - %if %{enable_qt} %if 0%{?rhel} > 9 || 0%{?fedora} > 39 %global use_qt6 1 %global use_qt 1 %else -%if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} %global use_qt6 0 %global use_qt 1 %endif -%endif +%else +%global use_qt6 0 +%global use_qt 0 %endif # bundle re2, jsoncpp, woff2 - build errors with use_custom_libcxx=true @@ -228,17 +226,16 @@ %global bundlelibdrm 0 %global bundleffmpegfree 0 %global bundlefreetype 0 -%global bundlelibtiff 0 %global bundlelibxml 0 -%if 0%{?rhel} > 9 -%global bundlelibopenjpeg2 0 -%global bundleharfbuzz 0 -%global bundlebrotli 0 -%global bundlelibwebp 0 +# need libtiff-4.6.1 or newer, error: use of undeclared identifier 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' +%if 0%{?fedora} > 41 +%global bundlelibtiff 0 %endif %if 0%{?fedora} -%global bundlelibopenjpeg2 0 %global bundlecrc32c 0 +%endif +%if 0%{?rhel} > 9 || 0%{?fedora} +%global bundlelibopenjpeg2 0 %global bundleharfbuzz 0 %global bundlebrotli 0 %global bundlelibwebp 0 @@ -279,7 +276,7 @@ %endif Name: chromium%{chromium_channel} -Version: 131.0.6778.264 +Version: 132.0.6834.83 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -309,12 +306,6 @@ Patch90: chromium-121-system-libxml.patch # patch for using system opus Patch91: chromium-108-system-opus.patch -# python-3,13, Deprecationwarning: 'count' is passed as positionaö argument -Patch100: chromium-128.0.6613.137-python-3.13-warning.patch - -# fix build error with system freetype -Patch101: chromium-131-system-freetype.patch - # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -347,6 +338,9 @@ Patch306: chromium-127-el8-ifunc-header.patch # workaround for build error due to old atk version on el8 Patch307: chromium-129-el8-atk-compiler-error.patch +Patch308: chromium-132-el8-unsupport-clang-flags.patch +Patch309: chromium-132-el8-unsupport-rustc-flags.patch +Patch310: chromium-132-el8-clang18-build-error.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -367,10 +361,6 @@ Patch354: chromium-126-split-threshold-for-reg-with-hint.patch # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch -# fix build error on ppc64le -# error: static assertion failed due to requirement 'sizeof(blink::MatchedProperties) <= 12': MatchedProperties should not grow without thinking -Patch356: chromium-130-size-assertions.patch - # set clang_lib path Patch358: chromium-127-rust-clanglib.patch @@ -412,7 +402,6 @@ Patch385: 0002-Include-cstddef-to-fix-build.patch Patch386: 0004-third_party-crashpad-port-curl-transport-ppc64.patch Patch387: HACK-third_party-libvpx-use-generic-gnu.patch -Patch388: HACK-debian-clang-disable-skia-musttail.patch Patch389: HACK-debian-clang-disable-base-musttail.patch Patch390: 0001-Add-ppc64-target-to-libaom.patch @@ -1027,12 +1016,6 @@ Qt6 UI for chromium. %patch -P91 -p1 -b .system-opus %endif -%if 0%{?fedora} -%patch -P100 -p1 -b .python-3.13-warning -%endif - -%patch -P101 -p1 -b .chromium-131-system-freetype - %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque @@ -1064,6 +1047,9 @@ Qt6 UI for chromium. %patch -P306 -p1 -b .el8-ifunc-header %endif %patch -P307 -p1 -b .el8-atk-compiler-error +%patch -P308 -p1 -b .el8-unsupport-clang-flags +%patch -P309 -p1 -b .el8-unsupport-rustc-flags +%patch -P310 -p1 -b .el8-clang18-build-error %endif %patch -P312 -p1 -b .fstack-protector-strong @@ -1083,7 +1069,6 @@ Qt6 UI for chromium. %endif %patch -P355 -p1 -b .hardware_destructive_interference_size -%patch -P356 -p1 -b .size-assertions %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le @@ -1116,7 +1101,6 @@ Qt6 UI for chromium. %patch -P385 -p1 -b .0002-Include-cstddef-to-fix-build %patch -P386 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 %patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu -%patch -P388 -p1 -b .HACK-debian-clang-disable-skia-musttail %patch -P389 -p1 -b .HACK-debian-clang-disable-base-musttail %patch -P390 -p1 -b .0001-Add-ppc64-target-to-libaom %patch -P391 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 @@ -1933,6 +1917,22 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Jan 15 2025 Than Ngo - 132.0.6834.83-1 +- Update to 132.0.6834.83 + * High CVE-2025-0434: Out of bounds memory access in V8 + * High CVE-2025-0435: Inappropriate implementation in Navigation + * High CVE-2025-0436: Integer overflow in Skia + * High CVE-2025-0437: Out of bounds read in Metrics + * High CVE-2025-0438: Stack buffer overflow in Tracing + * Medium CVE-2025-0439: Race in Frames + * Medium CVE-2025-0440: Inappropriate implementation in Fullscreen + * Medium CVE-2025-0441: Inappropriate implementation in Fenced + * Medium CVE-2025-0442: Inappropriate implementation in Payments + * Medium CVE-2025-0443: Insufficient data validation in Extensions + * Low CVE-2025-0446: Inappropriate implementation in Extensions + * Low CVE-2025-0447: Inappropriate implementation in Navigation + * Low CVE-2025-0448: Inappropriate implementation in Compositing + * Wed Jan 08 2025 Than Ngo - 131.0.6778.264-1 - Update to 131.0.6778.264 * High CVE-2025-0291: Type Confusion in V8 diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index 2e21b73..4b3de8a 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -225,11 +225,11 @@ header_files=" libavcodec/x86/inline_asm.h \ libavutil/tx_priv.h \ libavutil/version.h \ libavutil/sfc64.h \ + libavutil/executor.h \ libswresample/swresample.h \ libswresample/version.h \ libswresample/version_major.h \ - compat/va_copy.h \ - compat/atomics/gcc/stdatomic.h " + compat/va_copy.h " manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavcodec/aarch64/hpeldsp_neon.S \ @@ -288,6 +288,7 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavutil/x86/float_dsp_init.c \ libavutil/x86/tx_float_init.c \ libavutil/aarch64/tx_float_init.c \ + libavutil/executor.c \ libavutil/x86/x86inc.asm \ libavutil/x86/x86util.asm " diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index 53835cc..d78d6cd 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,8 +1,8 @@ -Index: chromium-130.0.6723.44/third_party/skia/BUILD.gn +Index: chromium-132.0.6834.83/third_party/skia/BUILD.gn =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/BUILD.gn -+++ chromium-130.0.6723.44/third_party/skia/BUILD.gn -@@ -192,6 +192,12 @@ opts("lasx") { +--- chromium-132.0.6834.83.orig/third_party/skia/BUILD.gn ++++ chromium-132.0.6834.83/third_party/skia/BUILD.gn +@@ -193,6 +193,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-130.0.6723.44/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1466,6 +1472,7 @@ skia_component("skia") { +@@ -1601,6 +1607,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-130.0.6723.44/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1637,7 +1644,10 @@ skia_static_library("pathkit") { +@@ -1772,7 +1779,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,10 +35,10 @@ Index: chromium-130.0.6723.44/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-130.0.6723.44/third_party/skia/gn/skia/BUILD.gn +Index: chromium-132.0.6834.83/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-130.0.6723.44/third_party/skia/gn/skia/BUILD.gn +--- chromium-132.0.6834.83.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-132.0.6834.83/third_party/skia/gn/skia/BUILD.gn @@ -167,6 +167,8 @@ config("default") { "-mfpmath=sse", ] @@ -48,11 +48,11 @@ Index: chromium-130.0.6723.44/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-130.0.6723.44/third_party/skia/include/core/SkTypes.h +Index: chromium-132.0.6834.83/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-130.0.6723.44/third_party/skia/include/core/SkTypes.h -@@ -178,4 +178,43 @@ static constexpr uint32_t SK_InvalidGenI +--- chromium-132.0.6834.83.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-132.0.6834.83/third_party/skia/include/core/SkTypes.h +@@ -183,4 +183,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -96,10 +96,10 @@ Index: chromium-130.0.6723.44/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-130.0.6723.44/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-132.0.6834.83/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -110,10 +110,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-130.0.6723.44/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-132.0.6834.83/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -129,10 +129,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-130.0.6723.44/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-132.0.6834.83/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -142,10 +142,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-130.0.6723.44/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -523,29 +523,28 @@ Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-130.0.6723.44/third_party/skia/src/base/SkVx.h +Index: chromium-132.0.6834.83/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/base/SkVx.h -+++ chromium-130.0.6723.44/third_party/skia/src/base/SkVx.h -@@ -42,7 +42,13 @@ +--- chromium-132.0.6834.83.orig/third_party/skia/src/base/SkVx.h ++++ chromium-132.0.6834.83/third_party/skia/src/base/SkVx.h +@@ -41,7 +41,12 @@ + #endif #if SKVX_USE_SIMD - #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 -- #include -+ #if __PPC64__ -+ #include -+ #include -+ #include -+ #else -+ #include -+ #endif - #elif defined(SK_ARM_HAS_NEON) - #include - #elif defined(__wasm_simd128__) -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +- #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_AVX ++ #if __PPC64__ ++ #define NO_WARN_X86_INTRINSICS ++ #include ++ #include ++ #include ++ #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_AVX + #include + #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 + #include +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -555,10 +554,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -568,10 +567,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -581,10 +580,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -594,10 +593,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkCpu.h +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkCpu.h +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -607,10 +606,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -620,10 +619,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-130.0.6723.44/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-132.0.6834.83/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-130.0.6723.44/third_party/skia/include/private/base/SkFeatures.h +--- chromium-132.0.6834.83.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-132.0.6834.83/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -633,22 +632,10 @@ Index: chromium-130.0.6723.44/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-130.0.6723.44/third_party/skia/modules/skcms/src/skcms_internals.h +Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/modules/skcms/src/skcms_internals.h -+++ chromium-130.0.6723.44/third_party/skia/modules/skcms/src/skcms_internals.h -@@ -47,6 +47,7 @@ extern "C" { - && !defined(__EMSCRIPTEN__) \ - && !defined(__arm__) \ - && !defined(__riscv) \ -+ && !defined(__powerpc64__) \ - && !defined(__loongarch__) \ - && !defined(_WIN32) && !defined(__SYMBIAN32__) - #define SKCMS_HAS_MUSTTAIL 1 -Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkSwizzler_opts.inc -=================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-130.0.6723.44/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-132.0.6834.83/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -695,10 +682,10 @@ Index: chromium-130.0.6723.44/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-130.0.6723.44/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-130.0.6723.44.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-130.0.6723.44/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-132.0.6834.83/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -126,6 +126,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index f07092d..689207a 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-131.0.6778.264-clean.tar.xz) = 04eee13b17f7ff9e1200d33cdd477854dee2f5b0e6308576165c0b989f3ac17a5c1ae06d97099ca963bec6cf46ecaec34a988771c3b8ac1dc7a11e9b8886baf0 +SHA512 (chromium-132.0.6834.83-clean.tar.xz) = af32ca08dcf9e4a9d2c0553079bd3dfe9d27ecb2fc7572843192f519f37364d7d4ccaad987250b45c8ff0c19b9c1bb9c83930cbb1792e3a3ef001cff8c9765a7 From d45c9f075a9ff0b03b3efc25ba244f615fddd62c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Jan 2025 13:43:01 +0100 Subject: [PATCH 081/244] Fix build errors on EL9 --- chromium.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chromium.spec b/chromium.spec index c52151f..2354295 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1047,6 +1047,8 @@ Qt6 UI for chromium. %patch -P306 -p1 -b .el8-ifunc-header %endif %patch -P307 -p1 -b .el8-atk-compiler-error +%endif +%if 0%{?rhel} == 8 || 0%{?rhel} == 9 %patch -P308 -p1 -b .el8-unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error From 0c1b3b7a8900c0d9275633bbe04b97952faefe6d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Jan 2025 20:25:57 +0100 Subject: [PATCH 082/244] Fix build errors on f40 --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 2354295..f137113 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1048,7 +1048,7 @@ Qt6 UI for chromium. %endif %patch -P307 -p1 -b .el8-atk-compiler-error %endif -%if 0%{?rhel} == 8 || 0%{?rhel} == 9 +%if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} == 40 %patch -P308 -p1 -b .el8-unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error From 4027de0281844acbb7c5c42e8d4e11b16adb6a7f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Jan 2025 20:48:10 +0100 Subject: [PATCH 083/244] Fix build error on el9 aarch64 --- chromium-132-el8-ffmpeg.patch | 5 +++++ chromium.spec | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 chromium-132-el8-ffmpeg.patch diff --git a/chromium-132-el8-ffmpeg.patch b/chromium-132-el8-ffmpeg.patch new file mode 100644 index 0000000..e9c939c --- /dev/null +++ b/chromium-132-el8-ffmpeg.patch @@ -0,0 +1,5 @@ +--- /dev/null 2025-01-15 17:59:31.105999986 +0100 ++++ chromium-132.0.6834.83/third_party/ffmpeg/libavcodec/aarch64/autorename_libavcodec_aarch64_vorbisdsp_init.c 2025-01-07 20:49:01.000000000 +0100 +@@ -0,0 +1,2 @@ ++// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. ++#include "vorbisdsp_init.c" diff --git a/chromium.spec b/chromium.spec index f137113..56b2168 100644 --- a/chromium.spec +++ b/chromium.spec @@ -331,6 +331,9 @@ Patch151: chromium-131-qt-ui.patch # revert, it causes ramdom crash on aarch64 Patch300: chromium-131-revert-decommit-pooled-pages-by-default.patch +# Workaround for build error on el8 aarch64 +Patch304: chromium-132-el8-ffmpeg.patch + # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch @@ -1043,6 +1046,7 @@ Qt6 UI for chromium. %if 0%{?rhel} == 8 %ifarch aarch64 +%patch -P304 -p1 -b .el8-ffmpeg %patch -P305 -p1 -b .el8-memory_tagging %patch -P306 -p1 -b .el8-ifunc-header %endif From 7c5eaaf02c3dd8925c78e24393bc8c5d945ade8c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Jan 2025 23:17:13 +0100 Subject: [PATCH 084/244] Fix build error on el9 aarch64 --- chromium-132-el8-ffmpeg.patch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chromium-132-el8-ffmpeg.patch b/chromium-132-el8-ffmpeg.patch index e9c939c..bf42d45 100644 --- a/chromium-132-el8-ffmpeg.patch +++ b/chromium-132-el8-ffmpeg.patch @@ -3,3 +3,8 @@ @@ -0,0 +1,2 @@ +// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. +#include "vorbisdsp_init.c" +--- /dev/null 2025-01-15 23:08:30.985344485 +0100 ++++ chromium-132.0.6834.83/third_party/ffmpeg/libavutil/aarch64/autorename_libavutil_aarch64_cpu.c 2025-01-07 20:49:01.000000000 +0100 +@@ -0,0 +1,2 @@ ++// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. ++#include "cpu.c" From e4a217a53bf47e13fabbddf0dd52854a6c8dd2af Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 16 Jan 2025 09:13:39 +0100 Subject: [PATCH 085/244] Fix build error on el8 aarch64 --- chromium-132-el8-ffmpeg.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chromium-132-el8-ffmpeg.patch b/chromium-132-el8-ffmpeg.patch index bf42d45..061347d 100644 --- a/chromium-132-el8-ffmpeg.patch +++ b/chromium-132-el8-ffmpeg.patch @@ -8,3 +8,13 @@ @@ -0,0 +1,2 @@ +// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. +#include "cpu.c" +--- /dev/null 2025-01-16 08:50:44.906000351 +0100 ++++ chromium-132.0.6834.83/third_party/ffmpeg/libavutil/aarch64/autorename_libavutil_aarch64_float_dsp_init.c 2025-01-07 20:49:01.000000000 +0100 +@@ -0,0 +1,2 @@ ++// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. ++#include "float_dsp_init.c" +--- /dev/null 2025-01-16 08:50:44.906000351 +0100 ++++ chromium-132.0.6834.83/third_party/ffmpeg/libavcodec/aarch64/autorename_libavcodec_aarch64_videodsp_init.c 2025-01-07 20:49:01.000000000 +0100 +@@ -0,0 +1,2 @@ ++// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. ++#include "videodsp_init.c" From 718cc037e472625411e47785f73ab25d05518328 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 13:42:42 +0000 Subject: [PATCH 086/244] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 56b2168..cb186e4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -277,7 +277,7 @@ Name: chromium%{chromium_channel} Version: 132.0.6834.83 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1923,6 +1923,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 132.0.6834.83-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Jan 15 2025 Than Ngo - 132.0.6834.83-1 - Update to 132.0.6834.83 * High CVE-2025-0434: Out of bounds memory access in V8 From 1e146bce284775c93e4a41b157a1cf93918e7aa3 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 16 Jan 2025 14:51:07 +0100 Subject: [PATCH 087/244] Fix build error on el8 aarch64 --- chromium-132-el8-ffmpeg.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/chromium-132-el8-ffmpeg.patch b/chromium-132-el8-ffmpeg.patch index 061347d..d824d69 100644 --- a/chromium-132-el8-ffmpeg.patch +++ b/chromium-132-el8-ffmpeg.patch @@ -18,3 +18,35 @@ @@ -0,0 +1,2 @@ +// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. +#include "videodsp_init.c" +--- /dev/null 2025-01-16 10:42:07.086999986 +0100 ++++ chromium-132.0.6834.83/third_party/ffmpeg/libavutil/aarch64/cpu_sve.S 2025-01-07 20:49:01.000000000 +0100 +@@ -0,0 +1,29 @@ ++/* ++ * Copyright (c) 2023 Martin Storsjo ++ * ++ * This file is part of FFmpeg. ++ * ++ * FFmpeg is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU Lesser General Public ++ * License as published by the Free Software Foundation; either ++ * version 2.1 of the License, or (at your option) any later version. ++ * ++ * FFmpeg is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ * You should have received a copy of the GNU Lesser General Public ++ * License along with FFmpeg; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++#include "config.h" ++#include "asm.S" ++ ++ENABLE_SVE ++ ++function ff_aarch64_sve_length, export=1 ++ cntb x0 ++ ret ++endfunc From b73d675e713417452432988480f63d5dc441b3a0 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 22 Dec 2024 18:20:01 -0500 Subject: [PATCH 088/244] Fix flatpak build This adds patches from Flathub to use the Flatpak sandbox (as the GUID sandbox is not compatible with Flatpak's own), removes dependencies on host services, and uses automatic detection of dependency locations (since dependencies are not necessarily found in /app even when building therein, as the buildroot is still in /usr). --- chromium.spec | 45 +- flatpak-Add-initial-sandbox-support.patch | 1325 +++++++++++++++++ flatpak-Adjust-paths-for-the-sandbox.patch | 86 ++ ...pak-Expose-Widevine-into-the-sandbox.patch | 326 ++++ 4 files changed, 1771 insertions(+), 11 deletions(-) create mode 100644 flatpak-Add-initial-sandbox-support.patch create mode 100644 flatpak-Adjust-paths-for-the-sandbox.patch create mode 100644 flatpak-Expose-Widevine-into-the-sandbox.patch diff --git a/chromium.spec b/chromium.spec index cb186e4..b03f786 100644 --- a/chromium.spec +++ b/chromium.spec @@ -37,12 +37,18 @@ # enable|disable chromedriver %global build_chromedriver 1 +%if 0%{?flatpak} +%global build_chromedriver 0 +%endif # enable|disable headless client build %global build_headless 1 %ifarch ppc64le %global build_headless 0 %endif +%if 0%{?flatpak} +%global build_headless 0 +%endif # enable|disable chrome-remote-desktop build %global build_remoting 0 @@ -442,6 +448,12 @@ Patch413: fix-unknown-warning-option-messages.diff Patch414: cargo-add-ppc64.diff Patch415: add-ppc64-pthread-stack-size.patch +# flatpak sandbox patches from +# https://github.com/flathub/org.chromium.Chromium/tree/master/patches/chromium +Patch416: flatpak-Add-initial-sandbox-support.patch +Patch417: flatpak-Adjust-paths-for-the-sandbox.patch +Patch418: flatpak-Expose-Widevine-into-the-sandbox.patch + # upstream patches # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: @@ -666,7 +678,7 @@ BuildRequires: libXNVCtrl-devel %endif # One of the python scripts invokes git to look for a hash. So helpful. -BuildRequires: /usr/bin/git +BuildRequires: git-core BuildRequires: hwdata BuildRequires: kernel-headers %if ! %{bundlelibevent} @@ -782,7 +794,7 @@ Requires: nss-mdns%{_isa} # GTK modules it expects to find for some reason. Requires: libcanberra-gtk3%{_isa} -%if 0%{?fedora} +%if 0%{?fedora} && %{undefined flatpak} # This enables support for u2f tokens Requires: u2f-hidraw-policy %endif @@ -923,9 +935,11 @@ Provides: bundled(xdg-mime) Provides: bundled(xdg-user-dirs) # Provides: bundled(zlib) = 1.2.11 +%if %{undefined flatpak} # For selinux scriptlet Requires(post): /usr/sbin/semanage Requires(post): /usr/sbin/restorecon +%endif %description Chromium is an open-source web browser, powered by WebKit (Blink). @@ -1135,6 +1149,12 @@ Qt6 UI for chromium. %patch -P415 -p1 -b .add-ppc64-pthread-stack-size %endif +%if 0%{?flatpak} +%patch -P416 -p1 -b .flatpak-initial-sandbox +%patch -P417 -p1 -b .flatpak-sandbox-paths +%patch -P418 -p1 -b .flatpak-widevine +%endif + # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + @@ -1155,12 +1175,12 @@ find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env py popd %else mkdir -p third_party/node/linux/node-linux-x64/bin - ln -s %{_bindir}/node third_party/node/linux/node-linux-x64/bin/node + ln -s $(which node) third_party/node/linux/node-linux-x64/bin/node %endif # Get rid of the bundled esbuild %if 0%{?fedora} - ln -sf %{_bindir}/esbuild third_party/devtools-frontend/src/third_party/esbuild/esbuild + ln -sf $(which esbuild) third_party/devtools-frontend/src/third_party/esbuild/esbuild %else %ifarch x86_64 tar -zxf %{SOURCE14} --directory %{_tmppath} @@ -1175,7 +1195,7 @@ popd rm -rf buildtools/third_party/eu-strip/bin/eu-strip # Replace it with a symlink to the Fedora copy -ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip +ln -s $(which eu-strip) buildtools/third_party/eu-strip/bin/eu-strip %if %{bundlelibusbx} # no hackity hack hack @@ -1183,7 +1203,7 @@ ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip # hackity hack hack rm -rf third_party/libusb/src/libusb/libusb.h # we _shouldn't need to do this, but it looks like we do. -cp -a %{_includedir}/libusb-1.0/libusb.h third_party/libusb/src/libusb/libusb.h +cp -a $(pkg-config --variable=includedir libusb-1.0)/libusb-1.0/libusb.h third_party/libusb/src/libusb/libusb.h %endif # Hard code extra version @@ -1247,7 +1267,8 @@ export RUSTC_BOOTSTRAP=1 # set rustc version rustc_version="$(rustc --version)" # set rust bindgen root -rust_bindgen_root="%{_prefix}" +rust_bindgen_root="$(which bindgen | sed 's#/bin/.*##')" +rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" @@ -1291,7 +1312,7 @@ CHROMIUM_CORE_GN_DEFINES+=' clang_use_chrome_plugins=false' CHROMIUM_CORE_GN_DEFINES+=' use_lld=true' # enable system rust -CHROMIUM_CORE_GN_DEFINES+=' rust_sysroot_absolute="%{_prefix}"' +CHROMIUM_CORE_GN_DEFINES+=" rust_sysroot_absolute=\"$rust_sysroot_absolute\"" CHROMIUM_CORE_GN_DEFINES+=" rust_bindgen_root=\"$rust_bindgen_root\"" CHROMIUM_CORE_GN_DEFINES+=" rustc_version=\"$rustc_version\"" @@ -1343,13 +1364,13 @@ CHROMIUM_BROWSER_GN_DEFINES+=' rtc_use_h264=false' CHROMIUM_BROWSER_GN_DEFINES+=' use_kerberos=true' %if %{use_qt} -CHROMIUM_BROWSER_GN_DEFINES+=' use_qt=true moc_qt5_path="%{_libdir}/qt5/bin/"' +CHROMIUM_BROWSER_GN_DEFINES+=" use_qt=true moc_qt5_path=\"$(%{_qt5_qmake} -query QT_HOST_BINS)\"" %else CHROMIUM_BROWSER_GN_DEFINES+=' use_qt=false' %endif %if %{use_qt6} -CHROMIUM_BROWSER_GN_DEFINES+=' use_qt6=true moc_qt6_path="%{_libdir}/qt6/libexec/"' +CHROMIUM_BROWSER_GN_DEFINES+=" use_qt6=true moc_qt6_path=\"$(%{_qt6_qmake} -query QT_HOST_LIBEXECS)\"" %else CHROMIUM_BROWSER_GN_DEFINES+=' use_qt6=false' %endif @@ -1518,7 +1539,7 @@ fi %if %{bootstrap} tools/gn/bootstrap/bootstrap.py --gn-gen-args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %else -mkdir -p %{chromebuilddir} && cp -a %{_bindir}/gn %{chromebuilddir}/ +mkdir -p %{chromebuilddir} && cp -a $(which gn) %{chromebuilddir}/ %endif %{chromebuilddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{chromebuilddir} @@ -1742,6 +1763,7 @@ cp -a %{SOURCE9} %{buildroot}%{_datadir}/gnome-control-center/default-apps/ # README.fedora cp %{SOURCE1} . +%if %{undefined flatpak} %post # Set SELinux labels - semanage itself will adjust the lib directory naming # But only do it when selinux is enabled, otherwise, it gets noisy. @@ -1751,6 +1773,7 @@ if selinuxenabled; then semanage fcontext -a -t chrome_sandbox_exec_t /usr/lib/chrome-sandbox &>/dev/null || : restorecon -R -v %{chromium_path}/%{chromium_browser_channel} &>/dev/null || : fi +%endif %if %{build_remoting} %pretrans -n chrome-remote-desktop -p diff --git a/flatpak-Add-initial-sandbox-support.patch b/flatpak-Add-initial-sandbox-support.patch new file mode 100644 index 0000000..dae2d94 --- /dev/null +++ b/flatpak-Add-initial-sandbox-support.patch @@ -0,0 +1,1325 @@ +From ab11528f26a212417b0b6084b52c02e992fe43f7 Mon Sep 17 00:00:00 2001 +From: Ryan Gonzalez +Date: Tue, 17 Mar 2020 13:18:27 -0500 +Subject: [PATCH] flatpak: Add initial sandbox support + +--- + .gitignore | 1 + + base/threading/thread_restrictions.h | 5 + + .../sandbox_internals/sandbox_internals.ts | 4 + + .../ui/webui/sandbox/sandbox_internals_ui.cc | 6 +- + content/browser/child_process_host_impl.cc | 8 +- + .../zygote_host/zygote_host_impl_linux.cc | 39 +- + .../zygote_host/zygote_host_impl_linux.h | 1 + + content/zygote/zygote_linux.cc | 6 +- + content/zygote/zygote_linux.h | 2 + + content/zygote/zygote_main_linux.cc | 16 +- + sandbox/linux/BUILD.gn | 10 +- + sandbox/linux/services/flatpak_pid_map.cc | 57 ++ + sandbox/linux/services/flatpak_pid_map.h | 46 ++ + sandbox/linux/services/flatpak_sandbox.cc | 576 ++++++++++++++++++ + sandbox/linux/services/flatpak_sandbox.h | 118 ++++ + sandbox/policy/BUILD.gn | 3 + + sandbox/policy/linux/sandbox_linux.cc | 8 + + sandbox/policy/linux/sandbox_linux.h | 8 + + .../service_process_launcher.cc | 12 +- + 19 files changed, 907 insertions(+), 19 deletions(-) + create mode 100644 sandbox/linux/services/flatpak_pid_map.cc + create mode 100644 sandbox/linux/services/flatpak_pid_map.h + create mode 100644 sandbox/linux/services/flatpak_sandbox.cc + create mode 100644 sandbox/linux/services/flatpak_sandbox.h + +diff --git a/.gitignore b/.gitignore +index 9056030523807..2c13d0ad5f1c7 100644 +--- a/.gitignore ++++ b/.gitignore +@@ -75,6 +75,7 @@ vs-chromium-project.txt + /.android_emulator/ + /.clangd/ + /.clangd-index/ ++/.flatpak-builder/ + # Settings directories for eclipse + /.externalToolBuilders/ + /.settings/ +diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h +index 149838be725f2..81034acc71e97 100644 +--- a/base/threading/thread_restrictions.h ++++ b/base/threading/thread_restrictions.h +@@ -407,6 +407,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; + namespace rlz_lib { + class FinancialPing; + } ++namespace sandbox { ++class FlatpakSandbox; ++} + namespace service_manager { + class ServiceProcessLauncher; + } +@@ -649,6 +652,7 @@ class BASE_EXPORT ScopedAllowBlocking { + friend class remoting:: + ScopedBypassIOThreadRestrictions; // http://crbug.com/1144161 + friend class remoting::ScopedAllowBlockingForCrashReporting; ++ friend class sandbox::FlatpakSandbox; + friend class ui::DrmDisplayHostManager; + friend class ui::ScopedAllowBlockingForGbmSurface; + friend class ui::SelectFileDialogLinux; +@@ -792,6 +796,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { + friend class rlz_lib::FinancialPing; + friend class shell_integration_linux:: + LaunchXdgUtilityScopedAllowBaseSyncPrimitives; ++ friend class sandbox::FlatpakSandbox; + friend class storage::ObfuscatedFileUtil; + friend class syncer::HttpBridge; + friend class syncer::GetLocalChangesRequest; +diff --git a/chrome/browser/resources/sandbox_internals/sandbox_internals.ts b/chrome/browser/resources/sandbox_internals/sandbox_internals.ts +index f6d2f3f0bc41c..fcc58c6735eaa 100644 +--- a/chrome/browser/resources/sandbox_internals/sandbox_internals.ts ++++ b/chrome/browser/resources/sandbox_internals/sandbox_internals.ts +@@ -140,6 +140,7 @@ function addGoodBadRow(name: string, result: boolean): HTMLElement { + function linuxHandler() { + const suidSandbox = loadTimeData.getBoolean('suid'); + const nsSandbox = loadTimeData.getBoolean('userNs'); ++ const flatpakSandbox = loadTimeData.getBoolean('flatpak'); + + let layer1SandboxType = 'None'; + let layer1SandboxCssClass = StatusClass.BAD; +@@ -149,6 +150,9 @@ function linuxHandler() { + } else if (nsSandbox) { + layer1SandboxType = 'Namespace'; + layer1SandboxCssClass = StatusClass.GOOD; ++ } else if (flatpakSandbox) { ++ layer1SandboxType = 'Flatpak'; ++ layer1SandboxCssClass = StatusClass.GOOD; + } + + addStatusRow('Layer 1 Sandbox', layer1SandboxType, layer1SandboxCssClass); +diff --git a/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc b/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc +index 82aa27787a5e0..32bf674f33da6 100644 +--- a/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc ++++ b/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc +@@ -20,6 +20,7 @@ + #include "content/public/browser/web_contents.h" + #include "content/public/browser/web_ui.h" + #include "content/public/browser/web_ui_data_source.h" ++#include "sandbox/policy/linux/sandbox_linux.h" + #include "services/network/public/mojom/content_security_policy.mojom.h" + + #if BUILDFLAG(IS_WIN) +@@ -46,6 +47,8 @@ static void SetSandboxStatusData(content::WebUIDataSource* source) { + + source->AddBoolean("suid", status & sandbox::policy::SandboxLinux::kSUID); + source->AddBoolean("userNs", status & sandbox::policy::SandboxLinux::kUserNS); ++ source->AddBoolean("flatpak", ++ status & sandbox::policy::SandboxLinux::kFlatpak); + source->AddBoolean("pidNs", status & sandbox::policy::SandboxLinux::kPIDNS); + source->AddBoolean("netNs", status & sandbox::policy::SandboxLinux::kNetNS); + source->AddBoolean("seccompBpf", +@@ -63,7 +66,8 @@ static void SetSandboxStatusData(content::WebUIDataSource* source) { + + // Require either the setuid or namespace sandbox for our first-layer sandbox. + bool good_layer1 = (status & sandbox::policy::SandboxLinux::kSUID || +- status & sandbox::policy::SandboxLinux::kUserNS) && ++ status & sandbox::policy::SandboxLinux::kUserNS || ++ status & sandbox::policy::SandboxLinux::kFlatpak) && + status & sandbox::policy::SandboxLinux::kPIDNS && + status & sandbox::policy::SandboxLinux::kNetNS; + // A second-layer sandbox is also required to be adequately sandboxed. +diff --git a/content/browser/child_process_host_impl.cc b/content/browser/child_process_host_impl.cc +index 95df576580a9e..8d5e0694660b6 100644 +--- a/content/browser/child_process_host_impl.cc ++++ b/content/browser/child_process_host_impl.cc +@@ -45,6 +45,7 @@ + + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) + #include "base/linux_util.h" ++#include "sandbox/linux/services/flatpak_sandbox.h" + #elif BUILDFLAG(IS_MAC) + #include "base/apple/foundation_util.h" + #include "content/browser/mac_helpers.h" +@@ -78,7 +79,12 @@ base::FilePath ChildProcessHost::GetChildPath(int flags) { + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) + // Use /proc/self/exe rather than our known binary path so updates + // can't swap out the binary from underneath us. +- if (child_path.empty() && flags & CHILD_ALLOW_SELF) { ++ // This is not needed for Flatpaks, where updates are going to be in ++ // a new hardlink tree. ++ if ((child_path.empty() && ++ sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel() == ++ sandbox::FlatpakSandbox::SandboxLevel::kNone) && ++ flags & CHILD_ALLOW_SELF) { + child_path = base::FilePath(base::kProcSelfExe); + } + #endif +diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc +index 8eca918b65cbe..1703fb6ade044 100644 +--- a/content/browser/zygote_host/zygote_host_impl_linux.cc ++++ b/content/browser/zygote_host/zygote_host_impl_linux.cc +@@ -12,6 +12,7 @@ + #include "base/logging.h" + #include "base/posix/unix_domain_socket.h" + #include "base/process/kill.h" ++#include "base/process/launch.h" + #include "base/process/memory.h" + #include "base/strings/string_number_conversions.h" + #include "base/types/fixed_array.h" +@@ -22,6 +23,7 @@ + #include "content/common/zygote/zygote_handle_impl_linux.h" + #include "content/public/common/zygote/zygote_handle.h" + #include "sandbox/linux/services/credentials.h" ++#include "sandbox/linux/services/flatpak_sandbox.h" + #include "sandbox/linux/services/namespace_sandbox.h" + #include "sandbox/linux/suid/client/setuid_sandbox_host.h" + #include "sandbox/linux/suid/common/sandbox.h" +@@ -72,6 +74,7 @@ ZygoteHostImpl::ZygoteHostImpl() + : use_namespace_sandbox_(false), + use_suid_sandbox_(false), + use_suid_sandbox_for_adj_oom_score_(false), ++ use_flatpak_sandbox_(false), + sandbox_binary_(), + zygote_pids_lock_(), + zygote_pids_() {} +@@ -110,9 +113,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { + sandbox_binary_ = setuid_sandbox_host->GetSandboxBinaryPath().value(); + } + +- if (!command_line.HasSwitch( +- sandbox::policy::switches::kDisableNamespaceSandbox) && +- sandbox::Credentials::CanCreateProcessInNewUserNS()) { ++ if (sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel() != ++ sandbox::FlatpakSandbox::SandboxLevel::kNone) { ++ use_flatpak_sandbox_ = true; ++ } else if (!command_line.HasSwitch( ++ sandbox::policy::switches::kDisableNamespaceSandbox) && ++ sandbox::Credentials::CanCreateProcessInNewUserNS()) { + use_namespace_sandbox_ = true; + } else if (!command_line.HasSwitch( + sandbox::policy::switches::kDisableSetuidSandbox) && +@@ -183,10 +189,16 @@ pid_t ZygoteHostImpl::LaunchZygote( + sandbox_host->SetupLaunchEnvironment(); + } + +- base::Process process = +- (is_sandboxed_zygote && use_namespace_sandbox_) +- ? sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options) +- : base::LaunchProcess(*cmd_line, options); ++ base::Process process; ++ if (is_sandboxed_zygote && use_namespace_sandbox_) { ++ process = sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options); ++ } else if (is_sandboxed_zygote && use_flatpak_sandbox_) { ++ process = sandbox::FlatpakSandbox::GetInstance()->LaunchProcess(*cmd_line, ++ options); ++ } else { ++ process = base::LaunchProcess(*cmd_line, options); ++ } ++ + CHECK(process.IsValid()) << "Failed to launch zygote process"; + + dummy_fd.reset(); +@@ -195,7 +207,8 @@ pid_t ZygoteHostImpl::LaunchZygote( + + pid_t pid = process.Pid(); + +- if (is_sandboxed_zygote && (use_namespace_sandbox_ || use_suid_sandbox_)) { ++ if (is_sandboxed_zygote && ++ (use_namespace_sandbox_ || use_suid_sandbox_ || use_flatpak_sandbox_)) { + // The namespace and SUID sandbox will execute the zygote in a new + // PID namespace, and the main zygote process will then fork from + // there. Watch now our elaborate dance to find and validate the +@@ -223,7 +236,11 @@ pid_t ZygoteHostImpl::LaunchZygote( + + if (real_pid != pid) { + // Reap the sandbox. +- base::EnsureProcessGetsReaped(std::move(process)); ++ if (use_flatpak_sandbox_) { ++ sandbox::FlatpakSandbox::GetInstance()->IgnoreExitStatus(pid); ++ } else { ++ base::EnsureProcessGetsReaped(base::Process(pid)); ++ } + } + pid = real_pid; + } +@@ -274,6 +291,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, + selinux_valid = true; + } + ++ // Flatpaks cannot modify their OOM score. ++ if (use_flatpak_sandbox_) ++ return; ++ + if (!use_suid_sandbox_for_adj_oom_score_) { + if (!base::AdjustOOMScore(pid, score)) + PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid; +diff --git a/content/browser/zygote_host/zygote_host_impl_linux.h b/content/browser/zygote_host/zygote_host_impl_linux.h +index 720d823d4a695..ad470963693c4 100644 +--- a/content/browser/zygote_host/zygote_host_impl_linux.h ++++ b/content/browser/zygote_host/zygote_host_impl_linux.h +@@ -70,6 +70,7 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHost { + bool use_namespace_sandbox_; + bool use_suid_sandbox_; + bool use_suid_sandbox_for_adj_oom_score_; ++ bool use_flatpak_sandbox_; + std::string sandbox_binary_; + + // This lock protects the |zygote_pids_| set. +diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc +index bdcb36f7eb2fe..239a6462e4b41 100644 +--- a/content/zygote/zygote_linux.cc ++++ b/content/zygote/zygote_linux.cc +@@ -127,7 +127,7 @@ bool Zygote::ProcessRequests() { + PCHECK(sigaddset(&sigset, SIGCHLD) == 0); + PCHECK(sigprocmask(SIG_BLOCK, &sigset, &orig_sigmask) == 0); + +- if (UsingSUIDSandbox() || UsingNSSandbox()) { ++ if (UsingSUIDSandbox() || UsingNSSandbox() || UsingFlatpakSandbox()) { + // Let the ZygoteHost know we are ready to go. + // The receiving code is in + // content/browser/zygote_host/zygote_host_impl_linux.cc. +@@ -233,6 +233,10 @@ bool Zygote::UsingNSSandbox() const { + return sandbox_flags_ & sandbox::policy::SandboxLinux::kUserNS; + } + ++bool Zygote::UsingFlatpakSandbox() const { ++ return sandbox_flags_ & sandbox::policy::SandboxLinux::kFlatpak; ++} ++ + bool Zygote::HandleRequestFromBrowser(int fd) { + std::vector fds; + uint8_t buf[kZygoteMaxMessageLength]; +diff --git a/content/zygote/zygote_linux.h b/content/zygote/zygote_linux.h +index 165b758efc899..961afa73f66f5 100644 +--- a/content/zygote/zygote_linux.h ++++ b/content/zygote/zygote_linux.h +@@ -64,6 +64,8 @@ class Zygote { + bool UsingSUIDSandbox() const; + // Returns true if the NS sandbox is active. + bool UsingNSSandbox() const; ++ // Returns true if the Flatpak sandbox is active. ++ bool UsingFlatpakSandbox() const; + + // --------------------------------------------------------------------------- + // Requests from the browser... +diff --git a/content/zygote/zygote_main_linux.cc b/content/zygote/zygote_main_linux.cc +index c7ee91878e6dd..9c2c7a04bd968 100644 +--- a/content/zygote/zygote_main_linux.cc ++++ b/content/zygote/zygote_main_linux.cc +@@ -35,6 +35,7 @@ + #include "content/public/common/zygote/zygote_fork_delegate_linux.h" + #include "content/zygote/zygote_linux.h" + #include "sandbox/linux/services/credentials.h" ++#include "sandbox/linux/services/flatpak_sandbox.h" + #include "sandbox/linux/services/init_process_reaper.h" + #include "sandbox/linux/services/libc_interceptor.h" + #include "sandbox/linux/services/namespace_sandbox.h" +@@ -135,6 +136,7 @@ static void EnterNamespaceSandbox(sandbox::policy::SandboxLinux* linux_sandbox, + + static void EnterLayerOneSandbox(sandbox::policy::SandboxLinux* linux_sandbox, + const bool using_layer1_sandbox, ++ const bool using_flatpak_sandbox, + base::OnceClosure post_fork_parent_callback) { + DCHECK(linux_sandbox); + +@@ -154,7 +156,8 @@ static void EnterLayerOneSandbox(sandbox::policy::SandboxLinux* linux_sandbox, + } else if (sandbox::NamespaceSandbox::InNewUserNamespace()) { + EnterNamespaceSandbox(linux_sandbox, std::move(post_fork_parent_callback)); + } else { +- CHECK(!using_layer1_sandbox); ++ // The Flatpak sandbox means that we're fully sandboxed from the start. ++ CHECK(!using_layer1_sandbox || using_flatpak_sandbox); + } + } + +@@ -178,8 +181,11 @@ bool ZygoteMain( + linux_sandbox->setuid_sandbox_client()->IsSuidSandboxChild(); + const bool using_namespace_sandbox = + sandbox::NamespaceSandbox::InNewUserNamespace(); ++ const bool using_flatpak_sandbox = ++ sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel() == ++ sandbox::FlatpakSandbox::SandboxLevel::kRestricted; + const bool using_layer1_sandbox = +- using_setuid_sandbox || using_namespace_sandbox; ++ using_setuid_sandbox || using_namespace_sandbox || using_flatpak_sandbox; + + if (using_setuid_sandbox) { + linux_sandbox->setuid_sandbox_client()->CloseDummyFile(); +@@ -206,7 +212,7 @@ bool ZygoteMain( + + // Turn on the first layer of the sandbox if the configuration warrants it. + EnterLayerOneSandbox( +- linux_sandbox, using_layer1_sandbox, ++ linux_sandbox, using_layer1_sandbox, using_flatpak_sandbox, + base::BindOnce(CloseFds, linux_sandbox->GetFileDescriptorsToClose())); + + const int sandbox_flags = linux_sandbox->GetStatus(); +@@ -218,6 +224,10 @@ bool ZygoteMain( + !!(sandbox_flags & sandbox::policy::SandboxLinux::kUserNS); + CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged); + ++ const bool flatpak_sandbox_engaged = ++ !!(sandbox_flags & sandbox::policy::SandboxLinux::kFlatpak); ++ CHECK_EQ(using_flatpak_sandbox, flatpak_sandbox_engaged); ++ + Zygote zygote(sandbox_flags, std::move(fork_delegates), + base::GlobalDescriptors::Descriptor( + static_cast(kSandboxIPCChannel), GetSandboxFD())); +diff --git a/sandbox/linux/BUILD.gn b/sandbox/linux/BUILD.gn +index 97e3deed4f2b9..61916ed9805d3 100644 +--- a/sandbox/linux/BUILD.gn ++++ b/sandbox/linux/BUILD.gn +@@ -311,6 +311,10 @@ if (is_linux || is_chromeos) { + + component("sandbox_services") { + sources = [ ++ "services/flatpak_pid_map.cc", ++ "services/flatpak_pid_map.h", ++ "services/flatpak_sandbox.cc", ++ "services/flatpak_sandbox.h", + "services/init_process_reaper.cc", + "services/init_process_reaper.h", + "services/proc_util.cc", +@@ -329,8 +333,10 @@ component("sandbox_services") { + + defines = [ "SANDBOX_IMPLEMENTATION" ] + +- public_deps = [ "//sandbox:sandbox_export" ] +- deps = [ "//base" ] ++ public_deps = [ ++ "//dbus", ++ "//sandbox:sandbox_export", ++ ] + + if (compile_credentials) { + sources += [ +diff --git a/sandbox/linux/services/flatpak_pid_map.cc b/sandbox/linux/services/flatpak_pid_map.cc +new file mode 100644 +index 0000000000000..58b2ab552385b +--- /dev/null ++++ b/sandbox/linux/services/flatpak_pid_map.cc +@@ -0,0 +1,57 @@ ++// Copyright 2020 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#include "sandbox/linux/services/flatpak_pid_map.h" ++ ++namespace sandbox { ++ ++bool FlatpakPidMap::Insert(PidPair pair) { ++ if (external_to_relative_.contains(pair.external) || ++ relative_to_external_.contains(pair.relative)) { ++ return false; ++ } ++ ++ external_to_relative_[pair.external] = pair.relative; ++ relative_to_external_[pair.relative] = pair.external; ++ return true; ++} ++ ++absl::optional FlatpakPidMap::FindRelativeByExternal(pid_t external) { ++ return FindImpl(&external_to_relative_, external); ++} ++ ++absl::optional FlatpakPidMap::FindExternalByRelative(pid_t relative) { ++ return FindImpl(&relative_to_external_, relative); ++} ++ ++absl::optional FlatpakPidMap::DeleteByExternal(pid_t external) { ++ return DeleteImpl(&external_to_relative_, &relative_to_external_, external); ++} ++ ++absl::optional FlatpakPidMap::DeleteByRelative(pid_t relative) { ++ return DeleteImpl(&relative_to_external_, &external_to_relative_, relative); ++} ++ ++absl::optional FlatpakPidMap::FindImpl(base::flat_map* map, ++ pid_t key) { ++ auto it = map->find(key); ++ return it != map->end() ? it->second : absl::optional(); ++} ++ ++absl::optional FlatpakPidMap::DeleteImpl( ++ base::flat_map* map, ++ base::flat_map* reversed, ++ pid_t key) { ++ auto it = map->find(key); ++ if (it == map->end()) { ++ return absl::optional(); ++ } ++ ++ pid_t value = it->second; ++ reversed->erase(value); ++ map->erase(it); ++ return value; ++} ++ ++} // namespace sandbox +diff --git a/sandbox/linux/services/flatpak_pid_map.h b/sandbox/linux/services/flatpak_pid_map.h +new file mode 100644 +index 0000000000000..22799eb42f782 +--- /dev/null ++++ b/sandbox/linux/services/flatpak_pid_map.h +@@ -0,0 +1,46 @@ ++// Copyright 2020 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SERVICES_FLATPAK_PID_MAP_H_ ++#define SANDBOX_LINUX_SERVICES_FLATPAK_PID_MAP_H_ ++ ++#include "base/containers/flat_map.h" ++#include "third_party/abseil-cpp/absl/types/optional.h" ++ ++namespace sandbox { ++ ++// A bidirectional map of external PIDs and relative PIDs for the Flatpak ++// sandbox. "External" PIDs are the PID values that Flatpak's Spawn API returns, ++// relative to the host system, and "relative" PIDs are the PIDs those processes ++// are known by from inside the sandbox. ++class FlatpakPidMap { ++ public: ++ struct PidPair { ++ pid_t external; ++ pid_t relative; ++ }; ++ ++ FlatpakPidMap() = default; ++ ++ bool Insert(PidPair pair); ++ ++ absl::optional FindRelativeByExternal(pid_t external); ++ absl::optional FindExternalByRelative(pid_t relative); ++ ++ absl::optional DeleteByRelative(pid_t relative); ++ absl::optional DeleteByExternal(pid_t external); ++ ++ private: ++ absl::optional FindImpl(base::flat_map* map, pid_t key); ++ absl::optional DeleteImpl(base::flat_map* map, ++ base::flat_map* reversed, ++ pid_t key); ++ ++ base::flat_map external_to_relative_; ++ base::flat_map relative_to_external_; ++}; // namespace sandbox ++ ++} // namespace sandbox ++ ++#endif +diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc +new file mode 100644 +index 0000000000000..2a915a5b9fa11 +--- /dev/null ++++ b/sandbox/linux/services/flatpak_sandbox.cc +@@ -0,0 +1,576 @@ ++// Copyright 2019 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#include "sandbox/linux/services/flatpak_sandbox.h" ++ ++#include ++#include ++#include ++ ++#include "base/files/file_path.h" ++#include "base/files/file_util.h" ++#include "base/functional/bind.h" ++#include "base/logging.h" ++#include "base/process/process_handle.h" ++#include "base/strings/string_number_conversions.h" ++#include "base/strings/string_util.h" ++#include "base/synchronization/lock.h" ++#include "base/threading/scoped_blocking_call.h" ++#include "base/threading/thread_restrictions.h" ++#include "dbus/bus.h" ++#include "dbus/message.h" ++#include "dbus/object_path.h" ++#include "dbus/object_proxy.h" ++#include "dbus/property.h" ++#include "sandbox/linux/services/flatpak_pid_map.h" ++ ++namespace sandbox { ++ ++namespace { ++const base::FilePath kFlatpakAppPath("/app"); ++const base::FilePath kFlatpakInfoPath("/.flatpak-info"); ++ ++const char kFlatpakPortalServiceName[] = "org.freedesktop.portal.Flatpak"; ++const char kFlatpakPortalObjectPath[] = "/org/freedesktop/portal/Flatpak"; ++const char kFlatpakPortalInterfaceName[] = "org.freedesktop.portal.Flatpak"; ++ ++#ifndef NDEBUG ++const char kDisableFullFlatpakSandbox[] = "disable-full-flatpak-sandbox"; ++#endif ++ ++struct PortalProperties : dbus::PropertySet { ++ dbus::Property version; ++ dbus::Property supports; ++ ++ enum FlatpakPortalSupports { ++ kFlatpakPortal_ExposePids = 1 << 0, ++ }; ++ ++ explicit PortalProperties(dbus::ObjectProxy* object_proxy) ++ : dbus::PropertySet(object_proxy, kFlatpakPortalInterfaceName, {}) { ++ RegisterProperty("version", &version); ++ RegisterProperty("supports", &supports); ++ } ++ ++ ~PortalProperties() override = default; ++}; ++ ++void WriteStringAsByteArray(dbus::MessageWriter* writer, ++ const std::string& str) { ++ writer->AppendArrayOfBytes(base::make_span( ++ reinterpret_cast(str.c_str()), str.size() + 1)); ++} ++ ++void WriteFdPairMap(dbus::MessageWriter* writer, int source_fd, int dest_fd) { ++ dbus::MessageWriter entry_writer(nullptr); ++ writer->OpenDictEntry(&entry_writer); ++ ++ entry_writer.AppendUint32(dest_fd); ++ entry_writer.AppendFileDescriptor(source_fd); ++ ++ writer->CloseContainer(&entry_writer); ++} ++ ++} // namespace ++ ++enum FlatpakSpawnFlags { ++ kFlatpakSpawn_ClearEnvironment = 1 << 0, ++ kFlatpakSpawn_Latest = 1 << 1, ++ kFlatpakSpawn_Sandbox = 1 << 2, ++ kFlatpakSpawn_NoNetwork = 1 << 3, ++ kFlatpakSpawn_WatchBus = 1 << 4, ++ kFlatpakSpawn_ExposePids = 1 << 5, ++ kFlatpakSpawn_NotifyStart = 1 << 6, ++}; ++ ++enum FlatpakSpawnSandboxFlags { ++ kFlatpakSpawnSandbox_ShareDisplay = 1 << 0, ++ kFlatpakSpawnSandbox_ShareSound = 1 << 1, ++ kFlatpakSpawnSandbox_ShareGpu = 1 << 2, ++ kFlatpakSpawnSandbox_ShareSessionBus = 1 << 3, ++ kFlatpakSpawnSandbox_ShareA11yBus = 1 << 4, ++}; ++ ++FlatpakSandbox::FlatpakSandbox() ++ : bus_thread_("FlatpakPortalBus"), process_info_cv_(&process_info_lock_) {} ++ ++// static ++FlatpakSandbox* FlatpakSandbox::GetInstance() { ++ static base::NoDestructor instance; ++ return instance.get(); ++} ++ ++FlatpakSandbox::SandboxLevel FlatpakSandbox::GetSandboxLevel() { ++ if (sandbox_level_) { ++ return *sandbox_level_; ++ } ++ ++ // XXX: These operations shouldn't actually have a major blocking time, ++ // as .flatpak-info is on a tmpfs. ++ base::ScopedAllowBlocking scoped_allow_blocking; ++ ++ if (!base::PathExists(kFlatpakInfoPath)) { ++ sandbox_level_ = SandboxLevel::kNone; ++ } else { ++ // chrome has an INI parser, but sandbox can't depend on anything inside ++ // chrome, so the .flatpak-info INI is manually checked for the sandbox ++ // option. ++ ++ std::string contents; ++ CHECK(ReadFileToString(kFlatpakInfoPath, &contents)); ++ DCHECK(!contents.empty()); ++ ++ std::istringstream iss(contents); ++ std::string line; ++ bool in_instance = false; ++ while (std::getline(iss, line)) { ++ if (!line.empty() && line[0] == '[') { ++ DCHECK(line.back() == ']'); ++ ++ if (line == "[Instance]") { ++ DCHECK(!in_instance); ++ in_instance = true; ++ } else if (in_instance) { ++ // Leaving the Instance section, sandbox=true can't come now. ++ break; ++ } ++ } else if (in_instance && line == "sandbox=true") { ++ sandbox_level_ = SandboxLevel::kRestricted; ++ break; ++ } ++ } ++ ++ if (!sandbox_level_) { ++ sandbox_level_ = SandboxLevel::kFlatpak; ++ } ++ } ++ ++#ifndef NDEBUG ++ if (sandbox_level_ == SandboxLevel::kFlatpak && ++ base::CommandLine::ForCurrentProcess()->HasSwitch( ++ kDisableFullFlatpakSandbox)) { ++ sandbox_level_ = SandboxLevel::kRestricted; ++ } ++#endif ++ ++ return *sandbox_level_; ++} ++ ++bool FlatpakSandbox::IsPidSandboxed(base::ProcessId relative_pid) { ++ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, ++ base::BlockingType::MAY_BLOCK); ++ ++ base::AutoLock locker(process_info_lock_); ++ ++ return running_processes_.FindExternalByRelative(relative_pid).has_value(); ++} ++ ++base::Process FlatpakSandbox::LaunchProcess( ++ const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options) { ++ base::ProcessId external_pid = Spawn(cmdline, launch_options); ++ if (external_pid == base::kNullProcessId) { ++ return base::Process(); ++ } ++ ++ base::ProcessId relative_pid = GetRelativePid(external_pid); ++ if (relative_pid == base::kNullProcessId) { ++ // Treat early stops as a launch failure. ++ return base::Process(); ++ } ++ ++ return base::Process(relative_pid); ++} ++ ++bool FlatpakSandbox::Wait(base::ProcessId relative_pid, int* exit_code) { ++ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, ++ base::BlockingType::MAY_BLOCK); ++ ++ base::AutoLock locker(process_info_lock_); ++ ++ for (;;) { ++ if (running_processes_.FindExternalByRelative(relative_pid)) { ++ // Process is still running. ++ process_info_cv_.Wait(); ++ continue; ++ } ++ ++ auto it = exited_process_statuses_.find(relative_pid); ++ if (it == exited_process_statuses_.end()) { ++ // This should only happen if another caller had marked the exit status ++ // to be ignored. Treat it like waitpid returning ESRCH. ++ LOG(ERROR) << "PID " << relative_pid << " had no exit status"; ++ return false; ++ } ++ ++ if (exit_code) { ++ *exit_code = it->second; ++ } ++ exited_process_statuses_.erase(it); ++ return true; ++ } ++} ++ ++void FlatpakSandbox::IgnoreExitStatus(base::ProcessId relative_pid) { ++ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, ++ base::BlockingType::MAY_BLOCK); ++ ++ base::AutoLock locker(process_info_lock_); ++ ++ CHECK(running_processes_.FindExternalByRelative(relative_pid)); ++ ignore_status_.insert(relative_pid); ++} ++ ++void FlatpakSandbox::StartBusThread() { ++ if (!bus_thread_.IsRunning()) { ++ base::Thread::Options options; ++ options.message_pump_type = base::MessagePumpType::IO; ++ CHECK(bus_thread_.StartWithOptions(std::move(options))); ++ ++ bus_thread_.task_runner()->PostTask( ++ FROM_HERE, base::BindOnce(&FlatpakSandbox::InitializeBusThread, ++ base::Unretained(this))); ++ } ++} ++ ++dbus::Bus* FlatpakSandbox::AcquireBusFromBusThread() { ++ // Note that destruction of the bus is not a concern, because once the ++ // thread dies its bus connection will be terminated anyway and the ++ // portal will notice. ++ static base::NoDestructor> bus([] { ++ dbus::Bus::Options options; ++ options.bus_type = dbus::Bus::SESSION; ++ options.connection_type = dbus::Bus::PRIVATE; ++ options.dbus_task_runner = base::SequencedTaskRunner::GetCurrentDefault(); ++ ++ return base::MakeRefCounted(options); ++ }()); ++ ++ return bus->get(); ++} ++ ++dbus::ObjectProxy* FlatpakSandbox::GetPortalObjectProxy() { ++ return AcquireBusFromBusThread()->GetObjectProxy( ++ kFlatpakPortalServiceName, dbus::ObjectPath(kFlatpakPortalObjectPath)); ++} ++ ++void FlatpakSandbox::InitializeBusThread() { ++ dbus::ObjectProxy* object_proxy = GetPortalObjectProxy(); ++ ++ PortalProperties properties(object_proxy); ++ properties.ConnectSignals(); ++ ++ CHECK(properties.GetAndBlock(&properties.version)) ++ << "Failed to get portal version"; ++ CHECK(properties.GetAndBlock(&properties.supports)) ++ << "Failed to get portal supports"; ++ ++ if (properties.version.value() < 4) { ++ LOG(FATAL) << "Your Flatpak version is too old, please update it"; ++ } ++ ++ if (!(properties.supports.value() & ++ PortalProperties::kFlatpakPortal_ExposePids)) { ++ LOG(FATAL) << "Your Flatpak installation is setuid, which is not supported"; ++ } ++ ++ object_proxy->ConnectToSignal( ++ kFlatpakPortalInterfaceName, "SpawnStarted", ++ base::BindRepeating(&FlatpakSandbox::OnSpawnStartedSignal, ++ base::Unretained(this)), ++ base::BindOnce(&FlatpakSandbox::OnSignalConnected, ++ base::Unretained(this))); ++ ++ object_proxy->ConnectToSignal( ++ kFlatpakPortalInterfaceName, "SpawnExited", ++ base::BindRepeating(&FlatpakSandbox::OnSpawnExitedSignal, ++ base::Unretained(this)), ++ base::BindOnce(&FlatpakSandbox::OnSignalConnected, ++ base::Unretained(this))); ++} ++ ++void FlatpakSandbox::OnSignalConnected(const std::string& interface, ++ const std::string& signal, ++ bool connected) { ++ // It's not safe to spawn processes without being able to track their deaths. ++ CHECK(connected) << "Failed to connect to signal " << signal; ++} ++ ++void FlatpakSandbox::OnSpawnStartedSignal(dbus::Signal* signal) { ++ dbus::MessageReader reader(signal); ++ uint32_t external_pid, relative_pid; ++ ++ if (!reader.PopUint32(&external_pid) || !reader.PopUint32(&relative_pid)) { ++ LOG(ERROR) << "Invalid SpawnStarted signal"; ++ return; ++ } ++ ++ VLOG(1) << "Received SpawnStarted: " << external_pid << ' ' << relative_pid; ++ ++ base::AutoLock locker(process_info_lock_); ++ ++ auto it = unmapped_processes_.find(external_pid); ++ if (it == unmapped_processes_.end()) { ++ LOG(ERROR) << "Process " << external_pid ++ << " is already dead or not tracked"; ++ return; ++ } ++ ++ unmapped_processes_.erase(it); ++ ++ // Don't try to map them if the process died too quickly (which is the cause ++ // of relative_pid == 0). ++ if (relative_pid != 0) { ++ FlatpakPidMap::PidPair pair; ++ pair.external = external_pid; ++ pair.relative = relative_pid; ++ running_processes_.Insert(pair); ++ } ++ ++ process_info_cv_.Broadcast(); ++} ++ ++void FlatpakSandbox::OnSpawnExitedSignal(dbus::Signal* signal) { ++ dbus::MessageReader reader(signal); ++ uint32_t external_pid, exit_status; ++ ++ if (!reader.PopUint32(&external_pid) || !reader.PopUint32(&exit_status)) { ++ LOG(ERROR) << "Invalid SpawnExited signal"; ++ return; ++ } ++ ++ VLOG(1) << "Received SpawnExited: " << external_pid << ' ' << exit_status; ++ ++ base::AutoLock locker(process_info_lock_); ++ ++ auto relative_pid = running_processes_.DeleteByExternal(external_pid); ++ // If this isn't found, it likely never ran long enough for SpawnStarted to be ++ // emitted, so we never bother saving the exit status. ++ if (relative_pid) { ++ auto ignore_it = ignore_status_.find(*relative_pid); ++ if (ignore_it != ignore_status_.end()) { ++ // Make sure the exit status is not set. ++ relative_pid.reset(); ++ ignore_status_.erase(ignore_it); ++ } ++ } ++ ++ if (relative_pid) { ++ exited_process_statuses_[*relative_pid] = exit_status; ++ } ++ ++ process_info_cv_.Broadcast(); ++} ++ ++base::ProcessId FlatpakSandbox::Spawn( ++ const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options) { ++ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, ++ base::BlockingType::MAY_BLOCK); ++ base::ScopedAllowBaseSyncPrimitives allow_wait; ++ ++ StartBusThread(); ++ ++ VLOG(1) << "Running via Flatpak: " << cmdline.GetCommandLineString(); ++ ++ DCHECK(GetSandboxLevel() != SandboxLevel::kNone); ++ ++ // These options are not supported with the Flatpak sandbox. ++ DCHECK(launch_options.clone_flags == 0); ++ DCHECK(!launch_options.wait); ++ DCHECK(!launch_options.allow_new_privs); ++ DCHECK(launch_options.real_path.empty()); ++ DCHECK(launch_options.pre_exec_delegate == nullptr); ++ DCHECK(launch_options.maximize_rlimits == nullptr); ++ ++ base::ProcessId external_pid = base::kNullProcessId; ++ base::WaitableEvent event; ++ ++ bus_thread_.task_runner()->PostTask( ++ FROM_HERE, ++ base::BindOnce(&FlatpakSandbox::SpawnOnBusThread, base::Unretained(this), ++ base::Unretained(&external_pid), base::Unretained(&event), ++ cmdline, launch_options)); ++ event.Wait(); ++ ++ return external_pid; ++} ++ ++void FlatpakSandbox::SpawnOnBusThread( ++ base::ProcessId* out_external_pid, ++ base::WaitableEvent* event, ++ const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options) { ++ dbus::ObjectProxy* object_proxy = GetPortalObjectProxy(); ++ dbus::MethodCall method_call(kFlatpakPortalInterfaceName, "Spawn"); ++ dbus::MessageWriter writer(&method_call); ++ ++ const base::FilePath& current_directory = ++ !launch_options.current_directory.empty() ++ ? launch_options.current_directory ++ // Change to /app since it's guaranteed to always be present in ++ // the sandbox. ++ : kFlatpakAppPath; ++ WriteStringAsByteArray(&writer, current_directory.value()); ++ ++ dbus::MessageWriter argv_writer(nullptr); ++ writer.OpenArray("ay", &argv_writer); ++ ++ for (const std::string& arg : cmdline.argv()) { ++ WriteStringAsByteArray(&argv_writer, arg); ++ } ++ ++#ifndef NDEBUG ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch( ++ kDisableFullFlatpakSandbox)) { ++ std::string arg = "--"; ++ arg += kDisableFullFlatpakSandbox; ++ WriteStringAsByteArray(&argv_writer, arg); ++ } ++#endif ++ ++ writer.CloseContainer(&argv_writer); ++ ++ dbus::MessageWriter fds_writer(nullptr); ++ writer.OpenArray("{uh}", &fds_writer); ++ ++ WriteFdPairMap(&fds_writer, STDIN_FILENO, STDIN_FILENO); ++ WriteFdPairMap(&fds_writer, STDOUT_FILENO, STDOUT_FILENO); ++ WriteFdPairMap(&fds_writer, STDERR_FILENO, STDERR_FILENO); ++ ++ for (const auto& pair : launch_options.fds_to_remap) { ++ WriteFdPairMap(&fds_writer, pair.first, pair.second); ++ } ++ ++ writer.CloseContainer(&fds_writer); ++ ++ dbus::MessageWriter env_writer(nullptr); ++ writer.OpenArray("{ss}", &env_writer); ++ ++ for (const auto& pair : launch_options.environment) { ++ dbus::MessageWriter entry_writer(nullptr); ++ env_writer.OpenDictEntry(&entry_writer); ++ ++ entry_writer.AppendString(pair.first); ++ entry_writer.AppendString(pair.second); ++ ++ env_writer.CloseContainer(&entry_writer); ++ } ++ ++ writer.CloseContainer(&env_writer); ++ ++ int spawn_flags = kFlatpakSpawn_Sandbox | kFlatpakSpawn_ExposePids | ++ kFlatpakSpawn_NotifyStart; ++ int sandbox_flags = 0; ++ ++#ifndef NDEBUG ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch( ++ kDisableFullFlatpakSandbox)) { ++ spawn_flags &= ~kFlatpakSpawn_Sandbox; ++ } ++#else ++#endif ++ ++ if (launch_options.clear_environment) { ++ spawn_flags |= kFlatpakSpawn_ClearEnvironment; ++ } ++ ++ if (launch_options.kill_on_parent_death) { ++ spawn_flags |= kFlatpakSpawn_WatchBus; ++ } ++ ++ writer.AppendUint32(spawn_flags); ++ ++ dbus::MessageWriter options_writer(nullptr); ++ writer.OpenArray("{sv}", &options_writer); ++ ++ if (sandbox_flags != 0) { ++ dbus::MessageWriter entry_writer(nullptr); ++ options_writer.OpenDictEntry(&entry_writer); ++ ++ entry_writer.AppendString("sandbox-flags"); ++ ++ dbus::MessageWriter variant_writer(nullptr); ++ entry_writer.OpenVariant("u", &variant_writer); ++ ++ variant_writer.AppendUint32(sandbox_flags); ++ ++ entry_writer.CloseContainer(&variant_writer); ++ options_writer.CloseContainer(&entry_writer); ++ } ++ ++ writer.CloseContainer(&options_writer); ++ ++ object_proxy->CallMethodWithErrorResponse( ++ &method_call, dbus::ObjectProxy::TIMEOUT_INFINITE, ++ base::BindOnce(&FlatpakSandbox::OnSpawnResponse, base::Unretained(this), ++ base::Unretained(out_external_pid), ++ base::Unretained(event))); ++} ++ ++void FlatpakSandbox::OnSpawnResponse(base::ProcessId* out_external_pid, ++ base::WaitableEvent* event, ++ dbus::Response* response, ++ dbus::ErrorResponse* error_response) { ++ if (response) { ++ dbus::MessageReader reader(response); ++ uint32_t external_pid; ++ if (!reader.PopUint32(&external_pid)) { ++ LOG(ERROR) << "Invalid Spawn() response"; ++ } else { ++ VLOG(1) << "Spawn() returned PID " << external_pid; ++ if (out_external_pid != nullptr) { ++ *out_external_pid = external_pid; ++ } ++ ++ base::AutoLock locker(process_info_lock_); ++ unmapped_processes_.insert(external_pid); ++ } ++ } else if (error_response) { ++ std::string error_name = error_response->GetErrorName(); ++ std::string error_message; ++ dbus::MessageReader reader(error_response); ++ reader.PopString(&error_message); ++ ++ LOG(ERROR) << "Error calling Spawn(): " << error_name << ": " ++ << error_message; ++ } else { ++ LOG(ERROR) << "Unknown error occurred calling Spawn()"; ++ } ++ ++ if (event != nullptr) { ++ event->Signal(); ++ } ++} ++ ++base::ProcessId FlatpakSandbox::GetRelativePid(base::ProcessId external_pid) { ++ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, ++ base::BlockingType::MAY_BLOCK); ++ base::ScopedAllowBaseSyncPrimitives allow_wait; ++ ++ base::AutoLock locker(process_info_lock_); ++ ++ for (;;) { ++ auto unmapped_it = unmapped_processes_.find(external_pid); ++ if (unmapped_it != unmapped_processes_.end()) { ++ // No relative PID is known yet. ++ VLOG(1) << "Waiting for " << external_pid; ++ process_info_cv_.Wait(); ++ continue; ++ } ++ ++ auto relative_pid = running_processes_.FindRelativeByExternal(external_pid); ++ if (!relative_pid) { ++ exited_process_statuses_.erase(external_pid); ++ ++ LOG(INFO) << "Already died: " << external_pid; ++ return base::kNullProcessId; ++ } ++ ++ VLOG(1) << "Got " << external_pid << " => " << *relative_pid; ++ return *relative_pid; ++ } ++} ++ ++} // namespace sandbox +diff --git a/sandbox/linux/services/flatpak_sandbox.h b/sandbox/linux/services/flatpak_sandbox.h +new file mode 100644 +index 0000000000000..167bbc85945ad +--- /dev/null ++++ b/sandbox/linux/services/flatpak_sandbox.h +@@ -0,0 +1,118 @@ ++// Copyright 2019 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_ ++#define SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_ ++ ++#include "base/command_line.h" ++#include "base/compiler_specific.h" ++#include "base/containers/flat_map.h" ++#include "base/containers/flat_set.h" ++#include "base/no_destructor.h" ++#include "base/process/kill.h" ++#include "base/process/launch.h" ++#include "base/process/process_handle.h" ++#include "base/synchronization/condition_variable.h" ++#include "base/synchronization/lock.h" ++#include "base/synchronization/waitable_event.h" ++#include "base/threading/thread.h" ++#include "dbus/bus.h" ++#include "dbus/message.h" ++#include "sandbox/linux/services/flatpak_pid_map.h" ++#include "sandbox/sandbox_export.h" ++#include "third_party/abseil-cpp/absl/types/optional.h" ++ ++namespace sandbox { ++ ++// Manages the state of and access to the Flatpak sandbox. ++// Note that there is a distinction between external and internal PIDs: ++// - External PIDs are the PIDs relative to the world outside the sandbox. ++// - Internal PIDs are the PIDs relative to the current PID namespace. ++// Flatpak's sandbox APIs work primarily with external PIDs, and an ++// internal PID must be retrieved from the SpawnStarted signal before ++// it is known inside the sandbox's PID namespace. ++class SANDBOX_EXPORT FlatpakSandbox { ++ public: ++ static FlatpakSandbox* GetInstance(); ++ ++ // Represents the level of sandboxing inside a Flatpak. kNone means this is ++ // not a Flatpak, kFlatpak means it's inside a Flatpak sandbox, and ++ // kRestricted means that this is inside a nested Flatpak sandbox with most ++ // permissions revoked. ++ enum class SandboxLevel { kNone, kFlatpak, kRestricted }; ++ ++ // Get the current level of sandboxing in this Flatpak. ++ SandboxLevel GetSandboxLevel(); ++ ++ // Returns whether or not the given PID was spawned via the Flatpak sandbox. ++ bool IsPidSandboxed(base::ProcessId relative_pid); ++ ++ // Launch the given process inside of a Flatpak sandbox. If allow_x11 is true, ++ // then the process will be given access to the host's X11 display. On ++ // failure, returns kNullProcessId. Note that the return value is the PID ++ // relative to the host i.e. outside the sandbox, to get the internal one call ++ // GetRelativePid. This is the reason why a vanilla ProcessId is returned ++ // rather than a base::Process instance. ++ base::Process LaunchProcess(const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options); ++ ++ // Indefinitely waits for the given process and fills the exit code pointer ++ // if given and non-null. Returns false on wait failure. ++ bool Wait(base::ProcessId relative_pid, int* exit_code); ++ ++ // Skips storing the exit status of the given PID. ++ void IgnoreExitStatus(base::ProcessId relative_pid); ++ ++ private: ++ friend class base::NoDestructor; ++ ++ FlatpakSandbox(); ++ FlatpakSandbox(const FlatpakSandbox&) = delete; ++ FlatpakSandbox(FlatpakSandbox&&) = delete; ++ ~FlatpakSandbox(); ++ ++ void StartBusThread(); ++ dbus::Bus* AcquireBusFromBusThread(); ++ dbus::ObjectProxy* GetPortalObjectProxy(); ++ ++ void InitializeBusThread(); ++ void OnSignalConnected(const std::string& interface, ++ const std::string& signal, ++ bool connected); ++ void OnSpawnStartedSignal(dbus::Signal* signal); ++ void OnSpawnExitedSignal(dbus::Signal* signal); ++ ++ base::ProcessId Spawn(const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options); ++ void SpawnOnBusThread(base::ProcessId* out_external_pid, ++ base::WaitableEvent* event, ++ const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options); ++ void OnSpawnResponse(base::ProcessId* out_external_pid, ++ base::WaitableEvent* event, ++ dbus::Response* response, ++ dbus::ErrorResponse* error_response); ++ ++ base::ProcessId GetRelativePid(base::ProcessId external_pid); ++ ++ absl::optional sandbox_level_; ++ base::Thread bus_thread_; ++ ++ base::Lock process_info_lock_; ++ // Note that broadcast is used in the source, because in general ++ // very few threads will be contending for the lock. ++ base::ConditionVariable process_info_cv_; ++ // Set of processes that have no associated relative PID yet. ++ base::flat_set unmapped_processes_; ++ // Map of running processes. ++ FlatpakPidMap running_processes_; ++ // Map of a relative process ID that has exited to its waitpid status. ++ std::map exited_process_statuses_; ++ // Relative process IDs that should have their statuses ignored on exit. ++ std::set ignore_status_; ++}; ++ ++} // namespace sandbox ++ ++#endif // SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_ +diff --git a/sandbox/policy/BUILD.gn b/sandbox/policy/BUILD.gn +index 4fe53b047b9aa..794e1ad1805d8 100644 +--- a/sandbox/policy/BUILD.gn ++++ b/sandbox/policy/BUILD.gn +@@ -129,6 +129,9 @@ component("policy") { + "//sandbox/linux:suid_sandbox_client", + ] + } ++ if (is_linux) { ++ public_deps += [ "//sandbox/linux:sandbox_services" ] ++ } + if (is_chromeos_ash) { + sources += [ + "linux/bpf_ime_policy_linux.cc", +diff --git a/sandbox/policy/linux/sandbox_linux.cc b/sandbox/policy/linux/sandbox_linux.cc +index c7313416e6183..0cb8043f0ac72 100644 +--- a/sandbox/policy/linux/sandbox_linux.cc ++++ b/sandbox/policy/linux/sandbox_linux.cc +@@ -37,6 +37,7 @@ + #include "sandbox/constants.h" + #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" + #include "sandbox/linux/services/credentials.h" ++#include "sandbox/linux/services/flatpak_sandbox.h" + #include "sandbox/linux/services/libc_interceptor.h" + #include "sandbox/linux/services/namespace_sandbox.h" + #include "sandbox/linux/services/proc_util.h" +@@ -236,6 +237,9 @@ void SandboxLinux::PreinitializeSandbox() { + const int yama_status = Yama::GetStatus(); + yama_is_enforcing_ = (yama_status & Yama::STATUS_PRESENT) && + (yama_status & Yama::STATUS_ENFORCING); ++ ++ flatpak_sandbox_level_ = ++ sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel(); + pre_initialized_ = true; + } + +@@ -274,6 +278,10 @@ int SandboxLinux::GetStatus() { + sandbox_status_flags_ |= kPIDNS; + if (NamespaceSandbox::InNewNetNamespace()) + sandbox_status_flags_ |= kNetNS; ++ } else if (flatpak_sandbox_level_ == ++ sandbox::FlatpakSandbox::SandboxLevel::kRestricted) { ++ // Flatpak sandboxes always use new namespaces. ++ sandbox_status_flags_ |= kFlatpak | kPIDNS | kNetNS; + } + + // We report whether the sandbox will be activated when renderers, workers +diff --git a/sandbox/policy/linux/sandbox_linux.h b/sandbox/policy/linux/sandbox_linux.h +index 0e4f78b9e6cb7..91b638d8a96e0 100644 +--- a/sandbox/policy/linux/sandbox_linux.h ++++ b/sandbox/policy/linux/sandbox_linux.h +@@ -13,6 +13,7 @@ + #include "base/memory/raw_ptr.h" + #include "base/posix/global_descriptors.h" + #include "base/sanitizer_buildflags.h" ++#include "sandbox/linux/services/flatpak_sandbox.h" + #include "sandbox/linux/syscall_broker/broker_command.h" + #include "sandbox/linux/syscall_broker/broker_file_permission.h" + #include "sandbox/policy/export.h" +@@ -91,6 +92,9 @@ class SANDBOX_POLICY_EXPORT SandboxLinux { + // User namespace sandbox active. + kUserNS = 1 << 6, + ++ // Flatpak sandbox active. ++ kFlatpak = 1 << 7, ++ + // A flag that denotes an invalid sandbox status. + kInvalid = 1 << 31, + }; +@@ -292,6 +296,10 @@ class SANDBOX_POLICY_EXPORT SandboxLinux { + bool seccomp_bpf_with_tsync_supported_; // Accurate if pre_initialized_. + bool yama_is_enforcing_; // Accurate if pre_initialized_. + bool initialize_sandbox_ran_; // InitializeSandbox() was called. ++ // Accurate if pre_initialized_, used to save the state of the Flatpak ++ // sandbox, as once we're in the BPF sandbox any attempts to check the Flatpak ++ // state will cause EPERM errors. ++ sandbox::FlatpakSandbox::SandboxLevel flatpak_sandbox_level_; + std::unique_ptr setuid_sandbox_client_; + #if BUILDFLAG(USING_SANITIZER) + std::unique_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; +diff --git a/services/service_manager/service_process_launcher.cc b/services/service_manager/service_process_launcher.cc +index e24a262fe90d5..c20fdbd88a1a6 100644 +--- a/services/service_manager/service_process_launcher.cc ++++ b/services/service_manager/service_process_launcher.cc +@@ -41,6 +41,7 @@ + #endif + + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) ++#include "sandbox/linux/services/flatpak_sandbox.h" + #include "sandbox/linux/services/namespace_sandbox.h" + #endif + +@@ -286,8 +287,15 @@ void ServiceProcessLauncher::ProcessState::StopInBackground() { + return; + + int rv = -1; +- LOG_IF(ERROR, !child_process_.WaitForExit(&rv)) +- << "Failed to wait for child process"; ++ bool success = false; ++ auto* flatpak_sandbox = sandbox::FlatpakSandbox::GetInstance(); ++ if (flatpak_sandbox->IsPidSandboxed(child_process_.Pid())) { ++ success = flatpak_sandbox->Wait(child_process_.Pid(), &rv); ++ } else { ++ success = child_process_.WaitForExit(&rv); ++ } ++ LOG_IF(ERROR, success) << "Failed to wait for child process"; ++ + child_process_.Close(); + } + +-- +2.46.1 + diff --git a/flatpak-Adjust-paths-for-the-sandbox.patch b/flatpak-Adjust-paths-for-the-sandbox.patch new file mode 100644 index 0000000..3b1863d --- /dev/null +++ b/flatpak-Adjust-paths-for-the-sandbox.patch @@ -0,0 +1,86 @@ +From 997c9dc4160c468f26acb851eb65408f41e2a091 Mon Sep 17 00:00:00 2001 +From: Ryan Gonzalez +Date: Tue, 25 Aug 2020 19:26:07 -0500 +Subject: [PATCH] flatpak: Adjust paths for the sandbox + +--- + chrome/common/BUILD.gn | 4 ++++ + chrome/common/chrome_paths.cc | 26 +++++++++++++++++++++++++- + 2 files changed, 29 insertions(+), 1 deletion(-) + +diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn +index 76cf6a5985990..4044c87b656c4 100644 +--- a/chrome/common/BUILD.gn ++++ b/chrome/common/BUILD.gn +@@ -642,6 +642,10 @@ static_library("constants") { + "//third_party/widevine/cdm:headers", + ] + } ++ ++ if (is_linux) { ++ deps += [ "//sandbox/linux:sandbox_services" ] ++ } + } + + # Use a static library here because many test binaries depend on this but don't +diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc +index ec09803ffabcf..ecbc300b99e1d 100644 +--- a/chrome/common/chrome_paths.cc ++++ b/chrome/common/chrome_paths.cc +@@ -38,6 +38,10 @@ + #include "base/win/registry.h" + #endif + ++#if BUILDFLAG(IS_LINUX) ++#include "sandbox/linux/services/flatpak_sandbox.h" ++#endif ++ + #if BUILDFLAG(ENABLE_WIDEVINE) + #include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck + #endif +@@ -537,6 +541,14 @@ bool PathProvider(int key, base::FilePath* result) { + break; + #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_OPENBSD) + case chrome::DIR_POLICY_FILES: { ++#if defined(OS_LINUX) ++ if (sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel() > ++ sandbox::FlatpakSandbox::SandboxLevel::kNone) { ++ cur = base::FilePath( ++ FILE_PATH_LITERAL("/app/chromium/extensions/policies")); ++ break; ++ } ++#endif + cur = base::FilePath(policy::kPolicyPath); + break; + } +@@ -557,7 +569,13 @@ bool PathProvider(int key, base::FilePath* result) { + #endif + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) + case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { +- cur = base::FilePath(kFilepathSinglePrefExtensions); ++ if (sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel() > ++ sandbox::FlatpakSandbox::SandboxLevel::kNone) { ++ cur = base::FilePath( ++ FILE_PATH_LITERAL("/app/chromium/extensions/extensions")); ++ } else { ++ cur = base::FilePath(kFilepathSinglePrefExtensions); ++ } + break; + } + #endif +@@ -604,6 +622,12 @@ bool PathProvider(int key, base::FilePath* result) { + "/Library/Application Support/Chromium/NativeMessagingHosts")); + #endif + #else // BUILDFLAG(IS_MAC) ++ if (sandbox::FlatpakSandbox::GetInstance()->GetSandboxLevel() > ++ sandbox::FlatpakSandbox::SandboxLevel::kNone) { ++ cur = base::FilePath(FILE_PATH_LITERAL( ++ "/app/chromium/extensions/native-messaging-hosts")); ++ break; ++ } + #if BUILDFLAG(GOOGLE_CHROME_BRANDING) + cur = base::FilePath( + FILE_PATH_LITERAL("/etc/opt/chrome/native-messaging-hosts")); +-- +2.46.1 + diff --git a/flatpak-Expose-Widevine-into-the-sandbox.patch b/flatpak-Expose-Widevine-into-the-sandbox.patch new file mode 100644 index 0000000..b6f953d --- /dev/null +++ b/flatpak-Expose-Widevine-into-the-sandbox.patch @@ -0,0 +1,326 @@ +From 0446b3432c90bbab893c7bde22a5e664e14753af Mon Sep 17 00:00:00 2001 +From: Ryan Gonzalez +Date: Tue, 17 Nov 2020 13:00:39 -0600 +Subject: [PATCH] flatpak: Expose Widevine into the sandbox + +--- + .../zygote_host/zygote_host_impl_linux.cc | 54 +++++++++++++- + sandbox/linux/services/flatpak_sandbox.cc | 74 ++++++++++++++----- + sandbox/linux/services/flatpak_sandbox.h | 27 ++++++- + 3 files changed, 131 insertions(+), 24 deletions(-) + +diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc +index 1703fb6ade044..3e8eb87981230 100644 +--- a/content/browser/zygote_host/zygote_host_impl_linux.cc ++++ b/content/browser/zygote_host/zygote_host_impl_linux.cc +@@ -9,7 +9,10 @@ + #include + + #include "base/files/file_enumerator.h" ++#include "base/files/file_util.h" + #include "base/logging.h" ++#include "base/nix/xdg_util.h" ++#include "base/path_service.h" + #include "base/posix/unix_domain_socket.h" + #include "base/process/kill.h" + #include "base/process/launch.h" +@@ -18,9 +21,12 @@ + #include "base/types/fixed_array.h" + #include "build/build_config.h" + #include "build/chromeos_buildflags.h" ++#include "chrome/common/chrome_paths.h" // nogncheck + #include "content/common/zygote/zygote_commands_linux.h" + #include "content/common/zygote/zygote_communication_linux.h" + #include "content/common/zygote/zygote_handle_impl_linux.h" ++#include "content/public/common/cdm_info.h" ++#include "content/public/common/content_client.h" + #include "content/public/common/zygote/zygote_handle.h" + #include "sandbox/linux/services/credentials.h" + #include "sandbox/linux/services/flatpak_sandbox.h" +@@ -29,6 +35,7 @@ + #include "sandbox/linux/suid/common/sandbox.h" + #include "sandbox/policy/linux/sandbox_linux.h" + #include "sandbox/policy/switches.h" ++#include "third_party/widevine/cdm/buildflags.h" // nogncheck + + #if BUILDFLAG(IS_CHROMEOS) + #include "content/common/zygote/zygote_communication_linux.h" +@@ -193,8 +200,51 @@ pid_t ZygoteHostImpl::LaunchZygote( + if (is_sandboxed_zygote && use_namespace_sandbox_) { + process = sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options); + } else if (is_sandboxed_zygote && use_flatpak_sandbox_) { +- process = sandbox::FlatpakSandbox::GetInstance()->LaunchProcess(*cmd_line, +- options); ++ sandbox::FlatpakSandbox::SpawnOptions spawn_options; ++ ++#if BUILDFLAG(ENABLE_LIBRARY_CDMS) ++ // Expose the CDM paths into the sandbox. This is similar to PreSandboxInit ++ // in content_main_runner_impl.cc. ++ std::vector cdms; ++ GetContentClient()->AddContentDecryptionModules(&cdms, nullptr); ++ for (const auto& cdm : cdms) { ++ if (!spawn_options.ExposePathRo(cdm.path)) { ++ LOG(ERROR) << "Failed to expose CDM module"; ++ } ++ } ++#endif ++ ++#if BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT) ++ // Make sure we also expose the full Widevine CDM folder so it can be ++ // detected. ++ // TODO: Remove the explicit dependencies on chrome::. ++ base::FilePath widevine_cdm_path; ++ if (!base::PathService::Get(chrome::DIR_COMPONENT_UPDATED_WIDEVINE_CDM, ++ &widevine_cdm_path)) { ++ LOG(ERROR) << "Failed to get Widevine CDM folder for sandbox forwarding"; ++ } ++ ++ LOG(INFO) << "Widevine CDM path IS: " << widevine_cdm_path; ++ ++ if (!widevine_cdm_path.empty() && base::PathExists(widevine_cdm_path)) { ++ if (!spawn_options.ExposePathRo(widevine_cdm_path)) { ++ LOG(ERROR) << "Failed to expose updated Widevine CDM path"; ++ } ++ } ++ ++ // The Widevine data is found relative to $XDG_CONFIG_HOME, which is not set ++ // by default when running a sandboxed process. ++ auto env = base::Environment::Create(); ++ base::FilePath xdgConfigHome = base::nix::GetXDGDirectory( ++ env.get(), base::nix::kXdgConfigHomeEnvVar, nullptr); ++ if (!xdgConfigHome.empty()) { ++ options.environment[base::nix::kXdgConfigHomeEnvVar] = ++ xdgConfigHome.value(); ++ } ++#endif ++ ++ process = sandbox::FlatpakSandbox::GetInstance()->LaunchProcess( ++ *cmd_line, options, spawn_options); + } else { + process = base::LaunchProcess(*cmd_line, options); + } +diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc +index 2a915a5b9fa11..ed8d4c0556f63 100644 +--- a/sandbox/linux/services/flatpak_sandbox.cc ++++ b/sandbox/linux/services/flatpak_sandbox.cc +@@ -4,6 +4,7 @@ + + #include "sandbox/linux/services/flatpak_sandbox.h" + ++#include + #include + #include + #include +@@ -92,6 +93,18 @@ enum FlatpakSpawnSandboxFlags { + kFlatpakSpawnSandbox_ShareA11yBus = 1 << 4, + }; + ++bool FlatpakSandbox::SpawnOptions::ExposePathRo(base::FilePath path) { ++ base::ScopedFD fd( ++ HANDLE_EINTR(open(path.value().c_str(), O_PATH | O_NOFOLLOW))); ++ if (!fd.is_valid()) { ++ PLOG(ERROR) << "Failed to expose path " << path; ++ return false; ++ } ++ ++ sandbox_expose_ro.push_back(std::move(fd)); ++ return true; ++} ++ + FlatpakSandbox::FlatpakSandbox() + : bus_thread_("FlatpakPortalBus"), process_info_cv_(&process_info_lock_) {} + +@@ -168,8 +181,9 @@ bool FlatpakSandbox::IsPidSandboxed(base::ProcessId relative_pid) { + + base::Process FlatpakSandbox::LaunchProcess( + const base::CommandLine& cmdline, +- const base::LaunchOptions& launch_options) { +- base::ProcessId external_pid = Spawn(cmdline, launch_options); ++ const base::LaunchOptions& launch_options, ++ const SpawnOptions& spawn_options /*= {}*/) { ++ base::ProcessId external_pid = Spawn(cmdline, launch_options, spawn_options); + if (external_pid == base::kNullProcessId) { + return base::Process(); + } +@@ -363,9 +377,9 @@ void FlatpakSandbox::OnSpawnExitedSignal(dbus::Signal* signal) { + process_info_cv_.Broadcast(); + } + +-base::ProcessId FlatpakSandbox::Spawn( +- const base::CommandLine& cmdline, +- const base::LaunchOptions& launch_options) { ++base::ProcessId FlatpakSandbox::Spawn(const base::CommandLine& cmdline, ++ const base::LaunchOptions& launch_options, ++ const SpawnOptions& spawn_options) { + base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, + base::BlockingType::MAY_BLOCK); + base::ScopedAllowBaseSyncPrimitives allow_wait; +@@ -391,24 +405,26 @@ base::ProcessId FlatpakSandbox::Spawn( + FROM_HERE, + base::BindOnce(&FlatpakSandbox::SpawnOnBusThread, base::Unretained(this), + base::Unretained(&external_pid), base::Unretained(&event), +- cmdline, launch_options)); ++ base::Unretained(&cmdline), ++ base::Unretained(&launch_options), ++ base::Unretained(&spawn_options))); + event.Wait(); + + return external_pid; + } + +-void FlatpakSandbox::SpawnOnBusThread( +- base::ProcessId* out_external_pid, +- base::WaitableEvent* event, +- const base::CommandLine& cmdline, +- const base::LaunchOptions& launch_options) { ++void FlatpakSandbox::SpawnOnBusThread(base::ProcessId* out_external_pid, ++ base::WaitableEvent* event, ++ const base::CommandLine* cmdline, ++ const base::LaunchOptions* launch_options, ++ const SpawnOptions* spawn_options) { + dbus::ObjectProxy* object_proxy = GetPortalObjectProxy(); + dbus::MethodCall method_call(kFlatpakPortalInterfaceName, "Spawn"); + dbus::MessageWriter writer(&method_call); + + const base::FilePath& current_directory = +- !launch_options.current_directory.empty() +- ? launch_options.current_directory ++ !launch_options->current_directory.empty() ++ ? launch_options->current_directory + // Change to /app since it's guaranteed to always be present in + // the sandbox. + : kFlatpakAppPath; +@@ -417,7 +433,7 @@ void FlatpakSandbox::SpawnOnBusThread( + dbus::MessageWriter argv_writer(nullptr); + writer.OpenArray("ay", &argv_writer); + +- for (const std::string& arg : cmdline.argv()) { ++ for (const std::string& arg : cmdline->argv()) { + WriteStringAsByteArray(&argv_writer, arg); + } + +@@ -439,7 +455,7 @@ void FlatpakSandbox::SpawnOnBusThread( + WriteFdPairMap(&fds_writer, STDOUT_FILENO, STDOUT_FILENO); + WriteFdPairMap(&fds_writer, STDERR_FILENO, STDERR_FILENO); + +- for (const auto& pair : launch_options.fds_to_remap) { ++ for (const auto& pair : launch_options->fds_to_remap) { + WriteFdPairMap(&fds_writer, pair.first, pair.second); + } + +@@ -448,7 +464,7 @@ void FlatpakSandbox::SpawnOnBusThread( + dbus::MessageWriter env_writer(nullptr); + writer.OpenArray("{ss}", &env_writer); + +- for (const auto& pair : launch_options.environment) { ++ for (const auto& pair : launch_options->environment) { + dbus::MessageWriter entry_writer(nullptr); + env_writer.OpenDictEntry(&entry_writer); + +@@ -472,11 +488,11 @@ void FlatpakSandbox::SpawnOnBusThread( + #else + #endif + +- if (launch_options.clear_environment) { ++ if (launch_options->clear_environment) { + spawn_flags |= kFlatpakSpawn_ClearEnvironment; + } + +- if (launch_options.kill_on_parent_death) { ++ if (launch_options->kill_on_parent_death) { + spawn_flags |= kFlatpakSpawn_WatchBus; + } + +@@ -485,6 +501,28 @@ void FlatpakSandbox::SpawnOnBusThread( + dbus::MessageWriter options_writer(nullptr); + writer.OpenArray("{sv}", &options_writer); + ++ if (!spawn_options->sandbox_expose_ro.empty()) { ++ dbus::MessageWriter entry_writer(nullptr); ++ options_writer.OpenDictEntry(&entry_writer); ++ ++ entry_writer.AppendString("sandbox-expose-fd-ro"); ++ ++ dbus::MessageWriter variant_writer(nullptr); ++ entry_writer.OpenVariant("ah", &variant_writer); ++ ++ dbus::MessageWriter fds_writer(nullptr); ++ variant_writer.OpenArray("h", &fds_writer); ++ ++ for (const base::ScopedFD& fd : spawn_options->sandbox_expose_ro) { ++ CHECK(fd.is_valid()) << "Invalid spawn expose fd"; ++ fds_writer.AppendFileDescriptor(fd.get()); ++ } ++ ++ variant_writer.CloseContainer(&fds_writer); ++ entry_writer.CloseContainer(&variant_writer); ++ options_writer.CloseContainer(&entry_writer); ++ } ++ + if (sandbox_flags != 0) { + dbus::MessageWriter entry_writer(nullptr); + options_writer.OpenDictEntry(&entry_writer); +diff --git a/sandbox/linux/services/flatpak_sandbox.h b/sandbox/linux/services/flatpak_sandbox.h +index 167bbc85945ad..de8e7165b4573 100644 +--- a/sandbox/linux/services/flatpak_sandbox.h ++++ b/sandbox/linux/services/flatpak_sandbox.h +@@ -9,6 +9,8 @@ + #include "base/compiler_specific.h" + #include "base/containers/flat_map.h" + #include "base/containers/flat_set.h" ++#include "base/files/file_path.h" ++#include "base/files/scoped_file.h" + #include "base/no_destructor.h" + #include "base/process/kill.h" + #include "base/process/launch.h" +@@ -34,6 +36,20 @@ namespace sandbox { + // it is known inside the sandbox's PID namespace. + class SANDBOX_EXPORT FlatpakSandbox { + public: ++ class SpawnOptions { ++ public: ++ SpawnOptions() = default; ++ SpawnOptions(const SpawnOptions& other) = delete; ++ SpawnOptions(SpawnOptions&& other) = delete; ++ ++ bool ExposePathRo(base::FilePath path); ++ ++ private: ++ friend class FlatpakSandbox; ++ ++ std::vector sandbox_expose_ro; ++ }; ++ + static FlatpakSandbox* GetInstance(); + + // Represents the level of sandboxing inside a Flatpak. kNone means this is +@@ -55,7 +71,8 @@ class SANDBOX_EXPORT FlatpakSandbox { + // GetRelativePid. This is the reason why a vanilla ProcessId is returned + // rather than a base::Process instance. + base::Process LaunchProcess(const base::CommandLine& cmdline, +- const base::LaunchOptions& launch_options); ++ const base::LaunchOptions& launch_options, ++ const SpawnOptions& spawn_options = {}); + + // Indefinitely waits for the given process and fills the exit code pointer + // if given and non-null. Returns false on wait failure. +@@ -84,11 +101,13 @@ class SANDBOX_EXPORT FlatpakSandbox { + void OnSpawnExitedSignal(dbus::Signal* signal); + + base::ProcessId Spawn(const base::CommandLine& cmdline, +- const base::LaunchOptions& launch_options); ++ const base::LaunchOptions& launch_options, ++ const SpawnOptions& spawn_options); + void SpawnOnBusThread(base::ProcessId* out_external_pid, + base::WaitableEvent* event, +- const base::CommandLine& cmdline, +- const base::LaunchOptions& launch_options); ++ const base::CommandLine* cmdline, ++ const base::LaunchOptions* launch_options, ++ const SpawnOptions* spawn_options); + void OnSpawnResponse(base::ProcessId* out_external_pid, + base::WaitableEvent* event, + dbus::Response* response, +-- +2.46.1 + From f30bbc29cac0afc0a20ccf465aaf6dc35b5d3509 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 23 Jan 2025 13:01:33 +0100 Subject: [PATCH 089/244] - Update to 132.0.6834.110 * High CVE-2025-0611: Object corruption in V8 * High CVE-2025-0612: Out of bounds memory access in V8 - Drop el8 workaround --- chromium-132-el8-ffmpeg.patch | 52 ----------------------------------- chromium.spec | 13 +++++---- clean_ffmpeg.sh | 5 ++++ sources | 2 +- 4 files changed, 13 insertions(+), 59 deletions(-) delete mode 100644 chromium-132-el8-ffmpeg.patch diff --git a/chromium-132-el8-ffmpeg.patch b/chromium-132-el8-ffmpeg.patch deleted file mode 100644 index d824d69..0000000 --- a/chromium-132-el8-ffmpeg.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- /dev/null 2025-01-15 17:59:31.105999986 +0100 -+++ chromium-132.0.6834.83/third_party/ffmpeg/libavcodec/aarch64/autorename_libavcodec_aarch64_vorbisdsp_init.c 2025-01-07 20:49:01.000000000 +0100 -@@ -0,0 +1,2 @@ -+// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. -+#include "vorbisdsp_init.c" ---- /dev/null 2025-01-15 23:08:30.985344485 +0100 -+++ chromium-132.0.6834.83/third_party/ffmpeg/libavutil/aarch64/autorename_libavutil_aarch64_cpu.c 2025-01-07 20:49:01.000000000 +0100 -@@ -0,0 +1,2 @@ -+// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. -+#include "cpu.c" ---- /dev/null 2025-01-16 08:50:44.906000351 +0100 -+++ chromium-132.0.6834.83/third_party/ffmpeg/libavutil/aarch64/autorename_libavutil_aarch64_float_dsp_init.c 2025-01-07 20:49:01.000000000 +0100 -@@ -0,0 +1,2 @@ -+// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. -+#include "float_dsp_init.c" ---- /dev/null 2025-01-16 08:50:44.906000351 +0100 -+++ chromium-132.0.6834.83/third_party/ffmpeg/libavcodec/aarch64/autorename_libavcodec_aarch64_videodsp_init.c 2025-01-07 20:49:01.000000000 +0100 -@@ -0,0 +1,2 @@ -+// Automatically generated on Tue Oct 22 17:56:01 2024. See crbug.com/495833. -+#include "videodsp_init.c" ---- /dev/null 2025-01-16 10:42:07.086999986 +0100 -+++ chromium-132.0.6834.83/third_party/ffmpeg/libavutil/aarch64/cpu_sve.S 2025-01-07 20:49:01.000000000 +0100 -@@ -0,0 +1,29 @@ -+/* -+ * Copyright (c) 2023 Martin Storsjo -+ * -+ * This file is part of FFmpeg. -+ * -+ * FFmpeg is free software; you can redistribute it and/or -+ * modify it under the terms of the GNU Lesser General Public -+ * License as published by the Free Software Foundation; either -+ * version 2.1 of the License, or (at your option) any later version. -+ * -+ * FFmpeg is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ * Lesser General Public License for more details. -+ * -+ * You should have received a copy of the GNU Lesser General Public -+ * License along with FFmpeg; if not, write to the Free Software -+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -+ */ -+ -+#include "config.h" -+#include "asm.S" -+ -+ENABLE_SVE -+ -+function ff_aarch64_sve_length, export=1 -+ cntb x0 -+ ret -+endfunc diff --git a/chromium.spec b/chromium.spec index cb186e4..d36dcb2 100644 --- a/chromium.spec +++ b/chromium.spec @@ -276,8 +276,8 @@ %endif Name: chromium%{chromium_channel} -Version: 132.0.6834.83 -Release: 2%{?dist} +Version: 132.0.6834.110 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -331,9 +331,6 @@ Patch151: chromium-131-qt-ui.patch # revert, it causes ramdom crash on aarch64 Patch300: chromium-131-revert-decommit-pooled-pages-by-default.patch -# Workaround for build error on el8 aarch64 -Patch304: chromium-132-el8-ffmpeg.patch - # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch @@ -1046,7 +1043,6 @@ Qt6 UI for chromium. %if 0%{?rhel} == 8 %ifarch aarch64 -%patch -P304 -p1 -b .el8-ffmpeg %patch -P305 -p1 -b .el8-memory_tagging %patch -P306 -p1 -b .el8-ifunc-header %endif @@ -1923,6 +1919,11 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Jan 23 2025 Than Ngo - 132.0.6834.110-1 +- Update to 132.0.6834.110 + * High CVE-2025-0611: Object corruption in V8 + * High CVE-2025-0612: Out of bounds memory access in V8 + * Thu Jan 16 2025 Fedora Release Engineering - 132.0.6834.83-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index 4b3de8a..f26b2fe 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -236,6 +236,8 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavcodec/aarch64/neon.S \ libavcodec/aarch64/vorbisdsp_neon.S \ libavcodec/aarch64/autorename_libavcodec_aarch64_vorbisdsp_neon.S \ + libavcodec/aarch64/autorename_libavcodec_aarch64_vorbisdsp_init.c \ + libavcodec/aarch64/autorename_libavcodec_aarch64_videodsp_init.c \ libavcodec/aarch64/vorbisdsp_init.c \ libavcodec/aarch64/vp8dsp_neon.S \ libavcodec/x86/hpeldsp.asm \ @@ -271,8 +273,11 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavformat/version.c \ libavutil/aarch64/asm.S \ libavutil/aarch64/cpu.c \ + libavutil/aarch64/cpu_sve.S \ libavutil/aarch64/float_dsp_init.c \ libavutil/aarch64/float_dsp_neon.S \ + libavutil/aarch64/autorename_libavutil_aarch64_cpu.c \ + libavutil/aarch64/autorename_libavutil_aarch64_float_dsp_init.c \ libavutil/aarch64/autorename_libavutil_aarch64_float_dsp_neon.S \ libavutil/aarch64/tx_float_neon.S \ libavutil/aarch64/timer.h \ diff --git a/sources b/sources index 689207a..032d275 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-132.0.6834.83-clean.tar.xz) = af32ca08dcf9e4a9d2c0553079bd3dfe9d27ecb2fc7572843192f519f37364d7d4ccaad987250b45c8ff0c19b9c1bb9c83930cbb1792e3a3ef001cff8c9765a7 +SHA512 (chromium-132.0.6834.110-clean.tar.xz) = 070ebff19ac4c7d3f00f1493d65546e09e49a4ea1df675e58af045a079a024ecabf2fa5aafe2945ec0487da23704516c7a3b155ebc497275c321eeca95664a08 From f15fef4fb522d7ce682a8596364555d9ffcf578b Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 29 Jan 2025 12:14:21 +0100 Subject: [PATCH 090/244] - Updated to 132.0.6834.159 * Medium CVE-2025-0762: Use after free in DevTools --- chromium.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 0359a29..f1cfccf 100644 --- a/chromium.spec +++ b/chromium.spec @@ -282,7 +282,7 @@ %endif Name: chromium%{chromium_channel} -Version: 132.0.6834.110 +Version: 132.0.6834.159 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1942,6 +1942,10 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Wed Jan 29 2025 Than Ngo - 132.0.6834.159-1 +- Updated to 132.0.6834.159 + * Medium CVE-2025-0762: Use after free in DevTools + * Thu Jan 23 2025 Than Ngo - 132.0.6834.110-1 - Update to 132.0.6834.110 * High CVE-2025-0611: Object corruption in V8 diff --git a/sources b/sources index 032d275..c1933a7 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-132.0.6834.110-clean.tar.xz) = 070ebff19ac4c7d3f00f1493d65546e09e49a4ea1df675e58af045a079a024ecabf2fa5aafe2945ec0487da23704516c7a3b155ebc497275c321eeca95664a08 +SHA512 (chromium-132.0.6834.159-clean.tar.xz) = 8149f5eb9d73cb3782dcc925ac85d3f63693767d8c82a7ad235e3f9416c95a9b262fa464cd4e34ddcfc002163a737e72e161cb0b407540fe9ac92b515755038e From 21faf47e5dbbc12d703273ee3efa008eb0635524 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 5 Feb 2025 18:17:03 +0100 Subject: [PATCH 091/244] - Update to 133.0.6943.53 * CVE-2025-0444: Use after free in Skia * CVE-2025-0445: Use after free in V8 * CVE-2025-0451: Inappropriate implementation in Extensions API --- 0001-Add-PPC64-support-for-boringssl.patch | 372 +- 0001-third-party-hwy-wrong-include.patch | 11 + ...-PPC64-generated-files-for-boringssl.patch | 2978 +---------------- ...party-libvpx-Remove-bad-ppc64-config.patch | 57 +- 0008-sandbox-fix-ppc64le-glibc234.patch | 34 +- chromium-125-disable-FFmpegAllowLists.patch | 12 - ...e-H.264-video-parser-during-demuxing.patch | 32 - ...e-H.264-video-parser-during-demuxing.patch | 12 + ... chromium-133-el8-atk-compiler-error.patch | 144 +- chromium.spec | 34 +- clean_ffmpeg.sh | 2 + sources | 2 +- 12 files changed, 383 insertions(+), 3307 deletions(-) create mode 100644 0001-third-party-hwy-wrong-include.patch delete mode 100644 chromium-125-disable-FFmpegAllowLists.patch delete mode 100644 chromium-129-disable-H.264-video-parser-during-demuxing.patch create mode 100644 chromium-133-disable-H.264-video-parser-during-demuxing.patch rename chromium-129-el8-atk-compiler-error.patch => chromium-133-el8-atk-compiler-error.patch (87%) diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index ee6cb89..cf36646 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le.c +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le.c ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,11 +335,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/cpu_ppc64le.c +} + +#endif // OPENSSL_PPC64LE -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/crypto.c +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/crypto.c -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/crypto.c -@@ -66,6 +66,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/crypto.cc +@@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -350,10 +350,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/crypto.c #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) #include -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,12 +4164,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -@@ -61,6 +61,12 @@ OPENSSL_INLINE int vpaes_capable(void) { - OPENSSL_INLINE int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +@@ -82,6 +82,12 @@ inline int vpaes_capable(void) { return + inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif +#elif defined(OPENSSL_PPC64LE) @@ -4181,23 +4181,23 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // !NO_ASM -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bcm.c +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.c -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bcm.c -@@ -101,6 +101,7 @@ - #include "self_check/fips.c.inc" - #include "self_check/self_check.c.inc" - #include "service_indicator/service_indicator.c.inc" -+#include "sha/sha1-altivec.c.inc" - #include "sha/sha1.c.inc" - #include "sha/sha256.c.inc" - #include "sha/sha512.c.inc" -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +@@ -105,6 +105,7 @@ + #include "self_check/fips.cc.inc" + #include "self_check/self_check.cc.inc" + #include "service_indicator/service_indicator.cc.inc" ++#include "sha/sha1-altivec.cc.inc" + #include "sha/sha1.cc.inc" + #include "sha/sha256.cc.inc" + #include "sha/sha512.cc.inc" +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bn/bn.c.inc -@@ -384,6 +384,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +@@ -325,6 +325,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } int bn_resize_words(BIGNUM *bn, size_t words) { @@ -4221,11 +4221,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.c.inc -@@ -1456,6 +1456,8 @@ int EVP_has_aes_hardware(void) { +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +@@ -1230,6 +1230,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); @@ -4234,10 +4234,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4910,10 +4910,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/ +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.cc.inc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.c.inc +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.cc.inc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.cc.inc @@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4928,11 +4928,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif gcm_init_nohw(out_table, H); -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -@@ -209,5 +209,15 @@ TEST(GCMTest, ABI) { +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +@@ -170,5 +170,15 @@ TEST(GCMTest, ABI) { } } #endif @@ -4948,11 +4948,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/ +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -@@ -325,6 +325,13 @@ void aes_gcm_dec_kernel(const uint8_t *i +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +@@ -260,6 +260,13 @@ void aes_gcm_dec_kernel(const uint8_t *i const u128 Htable[16]); #endif @@ -4966,10 +4966,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif #endif // OPENSSL_NO_ASM -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4979,11 +4979,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/rand_extra/getran #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/rand/rand.c.inc -@@ -427,6 +427,11 @@ bcm_infallible BCM_rand_bytes_with_addit +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +@@ -431,6 +431,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with // |rand_thread_state_clear_all|. @@ -4995,10 +4995,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5016,16 +5016,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c.inc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.c.inc -@@ -0,0 +1,361 @@ -+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +@@ -0,0 +1,369 @@ ++/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. + * + * This package is an SSL implementation written -+ * by Eric Young (eay@cryptsoft.com). ++ * by Eric Young (eay@cryptsoft.ccom). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as @@ -5033,7 +5033,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms -+ * except that the holder is Tim Hudson (tjh@cryptsoft.com). ++ * except that the holder is Tim Hudson (tjh@cryptsoft.ccom). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. @@ -5053,12 +5053,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by -+ * Eric Young (eay@cryptsoft.com)" ++ * Eric Young (eay@cryptsoft.ccom)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: -+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" ++ * "This product includes software written by Tim Hudson (tjh@cryptsoft.ccom)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -5080,7 +5080,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh +// Altivec-optimized SHA1 in C. This is tested on ppc64le only. +// +// References: -+// https://software.intel.com/en-us/articles/improving-the-performance-of-the-secure-hash-algorithm-1 ++// https://software.intel.ccom/en-us/articles/improving-the-performance-of-the-secure-hash-algorithm-1 +// http://arctic.org/~dean/crypto/sha1.html +// +// This code used the generic SHA-1 from OpenSSL as a basis and AltiVec @@ -5090,6 +5090,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh + +#if defined(OPENSSL_PPC64LE) + ++#if defined(__cplusplus) ++extern "C" { ++#endif ++ +#include + +void sha1_block_data_order_ppc64(uint32_t *state, const uint8_t *data, size_t num); @@ -5175,7 +5179,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh + return w; +} + -+// As pointed out by Wei Dai , F() below can be simplified ++// As pointed out by Wei Dai , F() below can be simplified +// to the code in F_00_19. Wei attributes these optimisations to Peter +// Gutmann's SHS code, and he attributes it to Rich Schroeppel. #define +// F(x,y,z) (((x) & (y)) | ((~(x)) & (z))) I've just become aware of another @@ -5368,6 +5372,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh + } +} + ++#if defined(__cplusplus) ++} ++#endif ++ +#endif // OPENSSL_PPC64LE + +#undef K_00_19 @@ -5382,11 +5390,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h -@@ -183,8 +183,9 @@ extern "C" { +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/internal.h +@@ -56,8 +56,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) @@ -5398,7 +5406,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1723,6 +1724,16 @@ OPENSSL_INLINE int CRYPTO_is_ARMv8_SHA51 +@@ -1397,6 +1398,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5415,10 +5423,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5501,7 +5509,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate + $ret; +}; +my $text = sub { -+ my $ret = ($flavour =~ /aix/) ? ".csect\t.text[PR],7" : ".text"; ++ my $ret = ($flavour =~ /aix/) ? ".ccsect\t.text[PR],7" : ".text"; + $ret = ".abiversion 2\n".$ret if ($flavour =~ /linux.*64le/); + $ret; +}; @@ -5734,16 +5742,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/perlasm/ppc-xlate +print <<___; +#endif // !OPENSSL_NO_ASM && __powerpc64__ && __ELF__ +#if defined(__ELF__) -+// See https://www.airs.com/blog/archives/518. ++// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",\%progbits +#endif +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5850,10 +5858,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6117,10 +6125,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-130.0.6723.44/third_party/boringssl/src/include/openssl/target.h +Index: chromium-133.0.6943.35/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-130.0.6723.44/third_party/boringssl/src/include/openssl/target.h +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-133.0.6943.35/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6131,11 +6139,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -@@ -37,6 +37,8 @@ int main(int argc, char **argv) { +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +@@ -38,6 +38,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) puts("aarch64 (64-bit)"); @@ -6144,10 +6152,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -54,7 +54,8 @@ type stringWriter interface { type processorType int @@ -6306,13 +6314,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +func (d *delocation) isPPC64LEAPair(statement *node32) (target, source, relative string, ok bool) { + instruction := skipWS(statement.up).up + assertNodeType(instruction, ruleInstructionName) -+ name1 := d.contents(instruction) ++ name1 := d.ccontents(instruction) + args1 := instructionArgs(instruction.next) + + statement = statement.next + instruction = skipWS(statement.up).up + assertNodeType(instruction, ruleInstructionName) -+ name2 := d.contents(instruction) ++ name2 := d.ccontents(instruction) + args2 := instructionArgs(instruction.next) + + if name1 != "addis" || @@ -6322,16 +6330,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + return "", "", "", false + } + -+ target = d.contents(args1[0]) -+ relative = d.contents(args1[1]) -+ source1 := d.contents(args1[2]) -+ source2 := d.contents(args2[2]) ++ target = d.ccontents(args1[0]) ++ relative = d.ccontents(args1[1]) ++ source1 := d.ccontents(args1[2]) ++ source2 := d.ccontents(args2[2]) + + if !strings.HasSuffix(source1, "@ha") || + !strings.HasSuffix(source2, "@l") || + source1[:len(source1)-3] != source2[:len(source2)-2] || -+ d.contents(args2[0]) != target || -+ d.contents(args2[1]) != target { ++ d.ccontents(args2[0]) != target || ++ d.ccontents(args2[1]) != target { + return "", "", "", false + } + @@ -6404,7 +6412,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +func (d *delocation) processPPCInstruction(statement, instruction *node32) (*node32, error) { + assertNodeType(instruction, ruleInstructionName) -+ instructionName := d.contents(instruction) ++ instructionName := d.ccontents(instruction) + isBranch := instructionName[0] == 'b' + + argNodes := instructionArgs(instruction.next) @@ -6425,7 +6433,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + + switch arg.pegRule { + case ruleRegisterOrConstant, ruleLocalLabelRef: -+ args = append(args, d.contents(fullArg)) ++ args = append(args, d.ccontents(fullArg)) + + case ruleTOCRefLow: + return nil, errors.New("Found low TOC reference outside preamble pattern") @@ -6583,7 +6591,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + } + + for ; memRef != nil; memRef = memRef.next { -+ argStr += d.contents(memRef) ++ argStr += d.ccontents(memRef) + } + + args = append(args, argStr) @@ -6629,7 +6637,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ forEachPath(input.ast.up, func(node *node32) { + node = node.up + assertNodeType(node, ruleLabelContainingDirectiveName) -+ directive := input.contents[node.begin:node.end] ++ directive := input.ccontents[node.begin:node.end] + if directive != ".localentry" { + return + } @@ -6638,7 +6646,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + assertNodeType(node, ruleSymbolArgs) + node = node.up + assertNodeType(node, ruleSymbolArg) -+ symbol := input.contents[node.begin:node.end] ++ symbol := input.ccontents[node.begin:node.end] + if _, ok := localEntrySymbols[symbol]; ok { + panic(fmt.Sprintf("Duplicate .localentry directive found: %q in %q", symbol, input.path)) + } @@ -6738,7 +6746,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ func isSynthesized(symbol string) bool { return strings.HasSuffix(symbol, "_bss_get") || symbol == "OPENSSL_ia32cap_get" || -@@ -1858,6 +2334,8 @@ func detectProcessor(input inputFile) pr +@@ -1894,6 +2370,8 @@ func detectProcessor(input inputFile) pr switch instructionName { case "movq", "call", "leaq": return x86_64 @@ -6747,23 +6755,27 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -@@ -12,7 +12,7 @@ +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +@@ -12,9 +12,9 @@ # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -# This is a rough parser for x86-64 and aarch64 assembly designed to work with -+# This is a rough parser for x86-64 and ppc64le assembly designed to work with - # https://github.com/pointlander/peg. delocate.go has a go:generate line for - # rebuilding delocate.peg.go from this file. +-# https://github.com/pointlander/peg. delocate.go has a go:generate line for +-# rebuilding delocate.peg.go from this file. ++# This is a rough parser for x86-64, ppc64el, and aarch64 assembly designed ++# to work with https://github.com/pointlander/peg. delocate.go has a ++# go:generate line for rebuilding delocate.peg.go from this file. -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go + # To regenerate delocate.peg.go: + # +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6776,10 +6788,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6790,13 +6802,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text -+.file 1 "inserted_by_delocate.c" ++.file 1 "inserted_by_delocate.cc" +.loc 1 1 0 +BORINGSSL_bcm_text_start: + .text @@ -6857,22 +6869,22 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text -+.file 1 "inserted_by_delocate.c" ++.file 1 "inserted_by_delocate.cc" +.loc 1 1 0 +BORINGSSL_bcm_text_start: + .text @@ -6943,12 +6955,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ -+ .file "foo.c" ++ .file "foo.cc" + .abiversion 2 + .section ".toc","aw" + .section ".text" @@ -7109,16 +7121,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text -+.file 1 "inserted_by_delocate.c" ++.file 1 "inserted_by_delocate.cc" +.loc 1 1 0 +BORINGSSL_bcm_text_start: -+ .file "foo.c" ++ .file "foo.cc" + .abiversion 2 + .section ".toc","aw" +# WAS .section ".text" @@ -7666,12 +7678,12 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ -+ .file "foo.c" ++ .file "foo.cc" + .abiversion 2 + .section ".toc","aw" + .section ".text" @@ -7897,16 +7909,16 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text -+.file 1 "inserted_by_delocate.c" ++.file 1 "inserted_by_delocate.cc" +.loc 1 1 0 +BORINGSSL_bcm_text_start: -+ .file "foo.c" ++ .file "foo.cc" + .abiversion 2 + .section ".toc","aw" +# WAS .section ".text" @@ -8579,10 +8591,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8607,13 +8619,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text -+.file 1 "inserted_by_delocate.c" ++.file 1 "inserted_by_delocate.cc" +.loc 1 1 0 +BORINGSSL_bcm_text_start: + .text @@ -8790,11 +8802,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc +Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc -+++ chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.c.inc -@@ -408,6 +408,10 @@ static void sha1_block_data_order(uint32 +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +@@ -362,6 +362,10 @@ static void sha1_block_data_order(uint32 return; } #endif @@ -8805,11 +8817,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-130.0.6723.44/third_party/boringssl/src/build.json +Index: chromium-133.0.6943.35/third_party/boringssl/src/build.json =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/build.json -+++ chromium-130.0.6723.44/third_party/boringssl/src/build.json -@@ -118,6 +118,10 @@ +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/build.json ++++ chromium-133.0.6943.35/third_party/boringssl/src/build.json +@@ -126,6 +126,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} ], @@ -8820,15 +8832,15 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, {"src": "crypto/fipsmodule/bn/asm/bn-586.pl"}, -@@ -219,6 +223,7 @@ - "crypto/cpu_arm_freebsd.c", - "crypto/cpu_arm_linux.c", - "crypto/cpu_intel.c", -+ "crypto/cpu_ppc64le.c", - "crypto/crypto.c", - "crypto/curve25519/curve25519.c", - "crypto/curve25519/curve25519_64_adx.c", -@@ -799,6 +804,9 @@ +@@ -229,6 +233,7 @@ + "crypto/cpu_arm_freebsd.cc", + "crypto/cpu_arm_linux.cc", + "crypto/cpu_intel.cc", ++ "crypto/cpu_ppc64le.cc", + "crypto/crypto.cc", + "crypto/curve25519/curve25519.cc", + "crypto/curve25519/curve25519_64_adx.cc", +@@ -786,6 +791,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8838,10 +8850,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-130.0.6723.44/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-133.0.6943.35/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-130.0.6723.44/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-133.0.6943.35/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8860,10 +8872,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-130.0.6723.44/third_party/boringssl/README.ppc64le +Index: chromium-133.0.6943.35/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/README.ppc64le ++++ chromium-133.0.6943.35/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8873,11 +8885,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni +Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni -@@ -107,6 +107,7 @@ bcm_sources_asm = [ +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.gni +@@ -119,6 +119,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", "gen/bcm/aesv8-gcm-armv8-win.S", @@ -8885,7 +8897,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni "gen/bcm/armv4-mont-linux.S", "gen/bcm/armv8-mont-apple.S", "gen/bcm/armv8-mont-linux.S", -@@ -123,6 +124,7 @@ bcm_sources_asm = [ +@@ -135,6 +136,7 @@ bcm_sources_asm = [ "gen/bcm/ghash-neon-armv8-apple.S", "gen/bcm/ghash-neon-armv8-linux.S", "gen/bcm/ghash-neon-armv8-win.S", @@ -8893,11 +8905,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.gni "gen/bcm/ghash-ssse3-x86-apple.S", "gen/bcm/ghash-ssse3-x86-linux.S", "gen/bcm/ghash-ssse3-x86_64-apple.S", -@@ -314,6 +316,7 @@ crypto_sources = [ - "crypto/cpu_arm_freebsd.c", - "crypto/cpu_arm_linux.c", - "crypto/cpu_intel.c", -+ "crypto/cpu_ppc64le.c", - "crypto/crypto.c", - "crypto/curve25519/curve25519.c", - "crypto/curve25519/curve25519_64_adx.c", +@@ -328,6 +330,7 @@ crypto_sources = [ + "crypto/cpu_arm_freebsd.cc", + "crypto/cpu_arm_linux.cc", + "crypto/cpu_intel.cc", ++ "crypto/cpu_ppc64le.cc", + "crypto/crypto.cc", + "crypto/curve25519/curve25519.cc", + "crypto/curve25519/curve25519_64_adx.cc", diff --git a/0001-third-party-hwy-wrong-include.patch b/0001-third-party-hwy-wrong-include.patch new file mode 100644 index 0000000..c9aa77b --- /dev/null +++ b/0001-third-party-hwy-wrong-include.patch @@ -0,0 +1,11 @@ +--- a/third_party/highway/src/hwy/targets.cc ++++ b/third_party/highway/src/hwy/targets.cc +@@ -35,7 +35,7 @@ + HWY_OS_LINUX + // sys/auxv.h does not always include asm/hwcap.h, or define HWCAP*, hence we + // still include this directly. See #1199. +-#ifndef TOOLCHAIN_MISS_ASM_HWCAP_H ++#if !defined(TOOLCHAIN_MISS_ASM_HWCAP_H) && !defined(HWY_ARCH_PPC) + #include + #endif + #if HWY_HAVE_AUXV diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 535a0d6..bd2d9e4 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3673,13 +3673,13 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +.byte 0,12,0x14,0,0,0,0,0 +#endif // !OPENSSL_NO_ASM && __powerpc64__ && __ELF__ +#if defined(__ELF__) -+// See https://www.airs.com/blog/archives/518. ++// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4268,14 +4268,14 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +.align 2 +#endif // !OPENSSL_NO_ASM && __powerpc64__ && __ELF__ +#if defined(__ELF__) -+// See https://www.airs.com/blog/archives/518. ++// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake +Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake -@@ -106,6 +106,7 @@ set( +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.cmake +@@ -118,6 +118,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S gen/bcm/aesni-x86_64-linux.S @@ -4283,7 +4283,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake gen/bcm/aesv8-armv7-linux.S gen/bcm/aesv8-armv8-apple.S gen/bcm/aesv8-armv8-linux.S -@@ -137,6 +138,7 @@ set( +@@ -149,6 +150,7 @@ set( gen/bcm/ghash-x86-linux.S gen/bcm/ghash-x86_64-apple.S gen/bcm/ghash-x86_64-linux.S @@ -4291,1467 +4291,15 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake gen/bcm/ghashv8-armv7-linux.S gen/bcm/ghashv8-armv8-apple.S gen/bcm/ghashv8-armv8-linux.S -@@ -328,6 +330,7 @@ set( - crypto/cpu_arm_freebsd.c - crypto/cpu_arm_linux.c - crypto/cpu_intel.c -+ crypto/cpu_ppc64le.c - crypto/crypto.c - crypto/curve25519/curve25519.c - crypto/curve25519/curve25519_64_adx.c -@@ -805,37 +808,6 @@ set( - CRYPTO_TEST_DATA - - crypto/blake2/blake2b256_tests.txt -- crypto/cipher_extra/test/aes_128_cbc_sha1_tls_implicit_iv_tests.txt -- crypto/cipher_extra/test/aes_128_cbc_sha1_tls_tests.txt -- crypto/cipher_extra/test/aes_128_ccm_bluetooth_8_tests.txt -- crypto/cipher_extra/test/aes_128_ccm_bluetooth_tests.txt -- crypto/cipher_extra/test/aes_128_ccm_matter_tests.txt -- crypto/cipher_extra/test/aes_128_ctr_hmac_sha256.txt -- crypto/cipher_extra/test/aes_128_gcm_randnonce_tests.txt -- crypto/cipher_extra/test/aes_128_gcm_siv_tests.txt -- crypto/cipher_extra/test/aes_128_gcm_tests.txt -- crypto/cipher_extra/test/aes_192_gcm_tests.txt -- crypto/cipher_extra/test/aes_256_cbc_sha1_tls_implicit_iv_tests.txt -- crypto/cipher_extra/test/aes_256_cbc_sha1_tls_tests.txt -- crypto/cipher_extra/test/aes_256_ctr_hmac_sha256.txt -- crypto/cipher_extra/test/aes_256_gcm_randnonce_tests.txt -- crypto/cipher_extra/test/aes_256_gcm_siv_tests.txt -- crypto/cipher_extra/test/aes_256_gcm_tests.txt -- crypto/cipher_extra/test/chacha20_poly1305_tests.txt -- crypto/cipher_extra/test/cipher_tests.txt -- crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_implicit_iv_tests.txt -- crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_tests.txt -- crypto/cipher_extra/test/nist_cavp/aes_128_cbc.txt -- crypto/cipher_extra/test/nist_cavp/aes_128_ctr.txt -- crypto/cipher_extra/test/nist_cavp/aes_128_gcm.txt -- crypto/cipher_extra/test/nist_cavp/aes_192_cbc.txt -- crypto/cipher_extra/test/nist_cavp/aes_192_ctr.txt -- crypto/cipher_extra/test/nist_cavp/aes_256_cbc.txt -- crypto/cipher_extra/test/nist_cavp/aes_256_ctr.txt -- crypto/cipher_extra/test/nist_cavp/aes_256_gcm.txt -- crypto/cipher_extra/test/nist_cavp/tdes_cbc.txt -- crypto/cipher_extra/test/nist_cavp/tdes_ecb.txt -- crypto/cipher_extra/test/xchacha20_poly1305_tests.txt - crypto/curve25519/ed25519_tests.txt - crypto/dilithium/dilithium_tests.txt - crypto/dilithium/edge_cases_draft_dilithium3_sign.txt -@@ -1279,1413 +1251,6 @@ set( - set( - PKI_TEST_DATA - -- pki/testdata/cert_issuer_source_static_unittest/c1.pem -- pki/testdata/cert_issuer_source_static_unittest/c2.pem -- pki/testdata/cert_issuer_source_static_unittest/d.pem -- pki/testdata/cert_issuer_source_static_unittest/e1.pem -- pki/testdata/cert_issuer_source_static_unittest/e2.pem -- pki/testdata/cert_issuer_source_static_unittest/i1_1.pem -- pki/testdata/cert_issuer_source_static_unittest/i1_2.pem -- pki/testdata/cert_issuer_source_static_unittest/i2.pem -- pki/testdata/cert_issuer_source_static_unittest/i3_1.pem -- pki/testdata/cert_issuer_source_static_unittest/i3_2.pem -- pki/testdata/cert_issuer_source_static_unittest/root.pem -- pki/testdata/certificate_policies_unittest/anypolicy.pem -- pki/testdata/certificate_policies_unittest/anypolicy_with_qualifier.pem -- pki/testdata/certificate_policies_unittest/invalid-anypolicy_with_custom_qualifier.pem -- pki/testdata/certificate_policies_unittest/invalid-empty.pem -- pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_dupe.pem -- pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_policyinformation_unconsumed_data.pem -- pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_policyqualifierinfo_unconsumed_data.pem -- pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_with_empty_qualifiers_sequence.pem -- pki/testdata/certificate_policies_unittest/invalid-policy_identifier_not_oid.pem -- pki/testdata/certificate_policies_unittest/policy_1_2_3.pem -- pki/testdata/certificate_policies_unittest/policy_1_2_3_and_1_2_4.pem -- pki/testdata/certificate_policies_unittest/policy_1_2_3_and_1_2_4_with_qualifiers.pem -- pki/testdata/certificate_policies_unittest/policy_1_2_3_with_custom_qualifier.pem -- pki/testdata/certificate_policies_unittest/policy_1_2_3_with_qualifier.pem -- pki/testdata/crl_unittest/bad_crldp_has_crlissuer.pem -- pki/testdata/crl_unittest/bad_fake_critical_crlentryextension.pem -- pki/testdata/crl_unittest/bad_fake_critical_extension.pem -- pki/testdata/crl_unittest/bad_idp_contains_wrong_uri.pem -- pki/testdata/crl_unittest/bad_idp_indirectcrl.pem -- pki/testdata/crl_unittest/bad_idp_onlycontainscacerts.pem -- pki/testdata/crl_unittest/bad_idp_onlycontainscacerts_no_basic_constraints.pem -- pki/testdata/crl_unittest/bad_idp_onlycontainsusercerts.pem -- pki/testdata/crl_unittest/bad_idp_uri_and_onlycontainscacerts.pem -- pki/testdata/crl_unittest/bad_idp_uri_and_onlycontainsusercerts.pem -- pki/testdata/crl_unittest/bad_key_rollover_signature.pem -- pki/testdata/crl_unittest/bad_nextupdate_too_old.pem -- pki/testdata/crl_unittest/bad_signature.pem -- pki/testdata/crl_unittest/bad_thisupdate_in_future.pem -- pki/testdata/crl_unittest/bad_thisupdate_too_old.pem -- pki/testdata/crl_unittest/bad_wrong_issuer.pem -- pki/testdata/crl_unittest/good.pem -- pki/testdata/crl_unittest/good_fake_extension.pem -- pki/testdata/crl_unittest/good_fake_extension_no_nextupdate.pem -- pki/testdata/crl_unittest/good_generalizedtime.pem -- pki/testdata/crl_unittest/good_idp_contains_uri.pem -- pki/testdata/crl_unittest/good_idp_onlycontainscacerts.pem -- pki/testdata/crl_unittest/good_idp_onlycontainsusercerts.pem -- pki/testdata/crl_unittest/good_idp_onlycontainsusercerts_no_basic_constraints.pem -- pki/testdata/crl_unittest/good_idp_uri_and_onlycontainscacerts.pem -- pki/testdata/crl_unittest/good_idp_uri_and_onlycontainsusercerts.pem -- pki/testdata/crl_unittest/good_issuer_name_normalization.pem -- pki/testdata/crl_unittest/good_issuer_no_keyusage.pem -- pki/testdata/crl_unittest/good_key_rollover.pem -- pki/testdata/crl_unittest/good_no_crldp.pem -- pki/testdata/crl_unittest/good_no_nextupdate.pem -- pki/testdata/crl_unittest/good_no_version.pem -- pki/testdata/crl_unittest/invalid_garbage_after_crlentryextensions.pem -- pki/testdata/crl_unittest/invalid_garbage_after_extensions.pem -- pki/testdata/crl_unittest/invalid_garbage_after_nextupdate.pem -- pki/testdata/crl_unittest/invalid_garbage_after_revocationdate.pem -- pki/testdata/crl_unittest/invalid_garbage_after_revokedcerts.pem -- pki/testdata/crl_unittest/invalid_garbage_after_signaturevalue.pem -- pki/testdata/crl_unittest/invalid_garbage_after_thisupdate.pem -- pki/testdata/crl_unittest/invalid_garbage_crlentry.pem -- pki/testdata/crl_unittest/invalid_garbage_issuer_name.pem -- pki/testdata/crl_unittest/invalid_garbage_revocationdate.pem -- pki/testdata/crl_unittest/invalid_garbage_revoked_serial_number.pem -- pki/testdata/crl_unittest/invalid_garbage_signaturealgorithm.pem -- pki/testdata/crl_unittest/invalid_garbage_signaturevalue.pem -- pki/testdata/crl_unittest/invalid_garbage_tbs_signature_algorithm.pem -- pki/testdata/crl_unittest/invalid_garbage_tbscertlist.pem -- pki/testdata/crl_unittest/invalid_garbage_thisupdate.pem -- pki/testdata/crl_unittest/invalid_garbage_version.pem -- pki/testdata/crl_unittest/invalid_idp_dpname_choice_extra_data.pem -- pki/testdata/crl_unittest/invalid_idp_empty_sequence.pem -- pki/testdata/crl_unittest/invalid_idp_onlycontains_user_and_ca_certs.pem -- pki/testdata/crl_unittest/invalid_idp_onlycontainsusercerts_v1_leaf.pem -- pki/testdata/crl_unittest/invalid_issuer_keyusage_no_crlsign.pem -- pki/testdata/crl_unittest/invalid_key_rollover_issuer_keyusage_no_crlsign.pem -- pki/testdata/crl_unittest/invalid_mismatched_signature_algorithm.pem -- pki/testdata/crl_unittest/invalid_revoked_empty_sequence.pem -- pki/testdata/crl_unittest/invalid_v1_explicit.pem -- pki/testdata/crl_unittest/invalid_v1_with_crlentryextension.pem -- pki/testdata/crl_unittest/invalid_v1_with_extension.pem -- pki/testdata/crl_unittest/invalid_v3.pem -- pki/testdata/crl_unittest/revoked.pem -- pki/testdata/crl_unittest/revoked_fake_crlentryextension.pem -- pki/testdata/crl_unittest/revoked_generalized_revocationdate.pem -- pki/testdata/crl_unittest/revoked_key_rollover.pem -- pki/testdata/crl_unittest/revoked_no_nextupdate.pem -- pki/testdata/name_constraints_unittest/directoryname-excludeall.pem -- pki/testdata/name_constraints_unittest/directoryname-excluded.pem -- pki/testdata/name_constraints_unittest/directoryname.pem -- pki/testdata/name_constraints_unittest/directoryname_and_dnsname.pem -- pki/testdata/name_constraints_unittest/directoryname_and_dnsname_and_ipaddress.pem -- pki/testdata/name_constraints_unittest/dnsname-exclude_dot.pem -- pki/testdata/name_constraints_unittest/dnsname-excludeall.pem -- pki/testdata/name_constraints_unittest/dnsname-excluded.pem -- pki/testdata/name_constraints_unittest/dnsname-excluded_with_leading_dot.pem -- pki/testdata/name_constraints_unittest/dnsname-permitted_two_dot.pem -- pki/testdata/name_constraints_unittest/dnsname-permitted_with_leading_dot.pem -- pki/testdata/name_constraints_unittest/dnsname-with_max.pem -- pki/testdata/name_constraints_unittest/dnsname-with_min_0.pem -- pki/testdata/name_constraints_unittest/dnsname-with_min_0_and_max.pem -- pki/testdata/name_constraints_unittest/dnsname-with_min_1.pem -- pki/testdata/name_constraints_unittest/dnsname-with_min_1_and_max.pem -- pki/testdata/name_constraints_unittest/dnsname.pem -- pki/testdata/name_constraints_unittest/dnsname2.pem -- pki/testdata/name_constraints_unittest/edipartyname-excluded.pem -- pki/testdata/name_constraints_unittest/edipartyname-permitted.pem -- pki/testdata/name_constraints_unittest/invalid-empty_excluded_subtree.pem -- pki/testdata/name_constraints_unittest/invalid-empty_permitted_subtree.pem -- pki/testdata/name_constraints_unittest/invalid-no_subtrees.pem -- pki/testdata/name_constraints_unittest/ipaddress-excludeall.pem -- pki/testdata/name_constraints_unittest/ipaddress-excluded.pem -- pki/testdata/name_constraints_unittest/ipaddress-invalid_addr.pem -- pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_1.pem -- pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_2.pem -- pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_3.pem -- pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_4.pem -- pki/testdata/name_constraints_unittest/ipaddress-mapped_addrs.pem -- pki/testdata/name_constraints_unittest/ipaddress-permit_all.pem -- pki/testdata/name_constraints_unittest/ipaddress-permit_prefix1.pem -- pki/testdata/name_constraints_unittest/ipaddress-permit_prefix31.pem -- pki/testdata/name_constraints_unittest/ipaddress-permit_singlehost.pem -- pki/testdata/name_constraints_unittest/ipaddress.pem -- pki/testdata/name_constraints_unittest/name-ca.pem -- pki/testdata/name_constraints_unittest/name-de.pem -- pki/testdata/name_constraints_unittest/name-empty.pem -- pki/testdata/name_constraints_unittest/name-jp-tokyo.pem -- pki/testdata/name_constraints_unittest/name-jp.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-1.1.1.1.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-192.168.1.1.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-email-invalidstring.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-email-localpartcase.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-email-multiple.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-email.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-foo.com.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-ipv6.pem -- pki/testdata/name_constraints_unittest/name-us-arizona-permitted.example.com.pem -- pki/testdata/name_constraints_unittest/name-us-arizona.pem -- pki/testdata/name_constraints_unittest/name-us-california-192.168.1.1.pem -- pki/testdata/name_constraints_unittest/name-us-california-mountain_view.pem -- pki/testdata/name_constraints_unittest/name-us-california-permitted.example.com.pem -- pki/testdata/name_constraints_unittest/name-us-california.pem -- pki/testdata/name_constraints_unittest/name-us.pem -- pki/testdata/name_constraints_unittest/othername-excluded.pem -- pki/testdata/name_constraints_unittest/othername-permitted.pem -- pki/testdata/name_constraints_unittest/registeredid-excluded.pem -- pki/testdata/name_constraints_unittest/registeredid-permitted.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded-empty.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded-hostname.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded-hostnamewithat.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded-ipv4.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded-quoted.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded-subdomains.pem -- pki/testdata/name_constraints_unittest/rfc822name-excluded.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted-empty.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted-hostname.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted-hostnamewithat.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted-ipv4.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted-quoted.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted-subdomains.pem -- pki/testdata/name_constraints_unittest/rfc822name-permitted.pem -- pki/testdata/name_constraints_unittest/san-directoryname.pem -- pki/testdata/name_constraints_unittest/san-dnsname.pem -- pki/testdata/name_constraints_unittest/san-edipartyname.pem -- pki/testdata/name_constraints_unittest/san-excluded-directoryname.pem -- pki/testdata/name_constraints_unittest/san-excluded-dnsname.pem -- pki/testdata/name_constraints_unittest/san-excluded-ipaddress.pem -- pki/testdata/name_constraints_unittest/san-invalid-empty.pem -- pki/testdata/name_constraints_unittest/san-invalid-ipaddress.pem -- pki/testdata/name_constraints_unittest/san-ipaddress4.pem -- pki/testdata/name_constraints_unittest/san-ipaddress6.pem -- pki/testdata/name_constraints_unittest/san-othername.pem -- pki/testdata/name_constraints_unittest/san-permitted.pem -- pki/testdata/name_constraints_unittest/san-registeredid.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-domaincase.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-empty-localpart.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-empty.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-ipv4.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-localpartcase.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-multiple.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-no-at.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-quoted.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-subdomain-no-at.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-subdomain-two-ats.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-subdomain.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-subdomaincase.pem -- pki/testdata/name_constraints_unittest/san-rfc822name-two-ats.pem -- pki/testdata/name_constraints_unittest/san-rfc822name.pem -- pki/testdata/name_constraints_unittest/san-uri.pem -- pki/testdata/name_constraints_unittest/san-x400address.pem -- pki/testdata/name_constraints_unittest/uri-excluded.pem -- pki/testdata/name_constraints_unittest/uri-permitted.pem -- pki/testdata/name_constraints_unittest/x400address-excluded.pem -- pki/testdata/name_constraints_unittest/x400address-permitted.pem -- pki/testdata/nist-pkits/certs/AllCertificatesNoPoliciesTest2EE.crt -- pki/testdata/nist-pkits/certs/AllCertificatesSamePoliciesTest10EE.crt -- pki/testdata/nist-pkits/certs/AllCertificatesSamePoliciesTest13EE.crt -- pki/testdata/nist-pkits/certs/AllCertificatesanyPolicyTest11EE.crt -- pki/testdata/nist-pkits/certs/AnyPolicyTest14EE.crt -- pki/testdata/nist-pkits/certs/BadCRLIssuerNameCACert.crt -- pki/testdata/nist-pkits/certs/BadCRLSignatureCACert.crt -- pki/testdata/nist-pkits/certs/BadSignedCACert.crt -- pki/testdata/nist-pkits/certs/BadnotAfterDateCACert.crt -- pki/testdata/nist-pkits/certs/BadnotBeforeDateCACert.crt -- pki/testdata/nist-pkits/certs/BasicSelfIssuedCRLSigningKeyCACert.crt -- pki/testdata/nist-pkits/certs/BasicSelfIssuedCRLSigningKeyCRLCert.crt -- pki/testdata/nist-pkits/certs/BasicSelfIssuedNewKeyCACert.crt -- pki/testdata/nist-pkits/certs/BasicSelfIssuedNewKeyOldWithNewCACert.crt -- pki/testdata/nist-pkits/certs/BasicSelfIssuedOldKeyCACert.crt -- pki/testdata/nist-pkits/certs/BasicSelfIssuedOldKeyNewWithOldCACert.crt -- pki/testdata/nist-pkits/certs/CPSPointerQualifierTest20EE.crt -- pki/testdata/nist-pkits/certs/DSACACert.crt -- pki/testdata/nist-pkits/certs/DSAParametersInheritedCACert.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest12EE.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest3EE.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest4EE.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest5EE.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest7EE.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest8EE.crt -- pki/testdata/nist-pkits/certs/DifferentPoliciesTest9EE.crt -- pki/testdata/nist-pkits/certs/GeneralizedTimeCRLnextUpdateCACert.crt -- pki/testdata/nist-pkits/certs/GoodCACert.crt -- pki/testdata/nist-pkits/certs/GoodsubCACert.crt -- pki/testdata/nist-pkits/certs/GoodsubCAPanyPolicyMapping1to2CACert.crt -- pki/testdata/nist-pkits/certs/InvalidBadCRLIssuerNameTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidBadCRLSignatureTest4EE.crt -- pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedCRLSigningKeyTest7EE.crt -- pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedCRLSigningKeyTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedNewWithOldTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedOldWithNewTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidCASignatureTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidCAnotAfterDateTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidCAnotBeforeDateTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNSnameConstraintsTest31EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNSnameConstraintsTest33EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNSnameConstraintsTest38EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNandRFC822nameConstraintsTest28EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNandRFC822nameConstraintsTest29EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest10EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest12EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest13EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest15EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest16EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest17EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest20EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest3EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest7EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest9EE.crt -- pki/testdata/nist-pkits/certs/InvalidDSASignatureTest6EE.crt -- pki/testdata/nist-pkits/certs/InvalidEESignatureTest3EE.crt -- pki/testdata/nist-pkits/certs/InvalidEEnotAfterDateTest6EE.crt -- pki/testdata/nist-pkits/certs/InvalidEEnotBeforeDateTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidIDPwithindirectCRLTest23EE.crt -- pki/testdata/nist-pkits/certs/InvalidIDPwithindirectCRLTest26EE.crt -- pki/testdata/nist-pkits/certs/InvalidLongSerialNumberTest18EE.crt -- pki/testdata/nist-pkits/certs/InvalidMappingFromanyPolicyTest7EE.crt -- pki/testdata/nist-pkits/certs/InvalidMappingToanyPolicyTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidMissingCRLTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidMissingbasicConstraintsTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidNameChainingOrderTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidNameChainingTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidNegativeSerialNumberTest15EE.crt -- pki/testdata/nist-pkits/certs/InvalidOldCRLnextUpdateTest11EE.crt -- pki/testdata/nist-pkits/certs/InvalidPolicyMappingTest10EE.crt -- pki/testdata/nist-pkits/certs/InvalidPolicyMappingTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidPolicyMappingTest4EE.crt -- pki/testdata/nist-pkits/certs/InvalidRFC822nameConstraintsTest22EE.crt -- pki/testdata/nist-pkits/certs/InvalidRFC822nameConstraintsTest24EE.crt -- pki/testdata/nist-pkits/certs/InvalidRFC822nameConstraintsTest26EE.crt -- pki/testdata/nist-pkits/certs/InvalidRevokedCATest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidRevokedEETest3EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitAnyPolicyTest10EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitAnyPolicyTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest10EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest11EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest9EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedpathLenConstraintTest16EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedrequireExplicitPolicyTest7EE.crt -- pki/testdata/nist-pkits/certs/InvalidSelfIssuedrequireExplicitPolicyTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidSeparateCertificateandCRLKeysTest20EE.crt -- pki/testdata/nist-pkits/certs/InvalidSeparateCertificateandCRLKeysTest21EE.crt -- pki/testdata/nist-pkits/certs/InvalidURInameConstraintsTest35EE.crt -- pki/testdata/nist-pkits/certs/InvalidURInameConstraintsTest37EE.crt -- pki/testdata/nist-pkits/certs/InvalidUnknownCRLEntryExtensionTest8EE.crt -- pki/testdata/nist-pkits/certs/InvalidUnknownCRLExtensionTest10EE.crt -- pki/testdata/nist-pkits/certs/InvalidUnknownCRLExtensionTest9EE.crt -- pki/testdata/nist-pkits/certs/InvalidUnknownCriticalCertificateExtensionTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidWrongCRLTest6EE.crt -- pki/testdata/nist-pkits/certs/InvalidcAFalseTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidcAFalseTest3EE.crt -- pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest27EE.crt -- pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest31EE.crt -- pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest32EE.crt -- pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest34EE.crt -- pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest35EE.crt -- pki/testdata/nist-pkits/certs/InvaliddeltaCRLIndicatorNoBaseTest1EE.crt -- pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest10EE.crt -- pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest3EE.crt -- pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest4EE.crt -- pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest6EE.crt -- pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest9EE.crt -- pki/testdata/nist-pkits/certs/InvaliddistributionPointTest2EE.crt -- pki/testdata/nist-pkits/certs/InvaliddistributionPointTest3EE.crt -- pki/testdata/nist-pkits/certs/InvaliddistributionPointTest6EE.crt -- pki/testdata/nist-pkits/certs/InvaliddistributionPointTest8EE.crt -- pki/testdata/nist-pkits/certs/InvaliddistributionPointTest9EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest4EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest6EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest3EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest6EE.crt -- pki/testdata/nist-pkits/certs/InvalidkeyUsageCriticalcRLSignFalseTest4EE.crt -- pki/testdata/nist-pkits/certs/InvalidkeyUsageCriticalkeyCertSignFalseTest1EE.crt -- pki/testdata/nist-pkits/certs/InvalidkeyUsageNotCriticalcRLSignFalseTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidkeyUsageNotCriticalkeyCertSignFalseTest2EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlyContainsAttributeCertsTest14EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlyContainsCACertsTest12EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlyContainsUserCertsTest11EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest15EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest16EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest17EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest20EE.crt -- pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest21EE.crt -- pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest10EE.crt -- pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest11EE.crt -- pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest12EE.crt -- pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest5EE.crt -- pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest6EE.crt -- pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest9EE.crt -- pki/testdata/nist-pkits/certs/Invalidpre2000CRLnextUpdateTest12EE.crt -- pki/testdata/nist-pkits/certs/Invalidpre2000UTCEEnotAfterDateTest7EE.crt -- pki/testdata/nist-pkits/certs/InvalidrequireExplicitPolicyTest3EE.crt -- pki/testdata/nist-pkits/certs/InvalidrequireExplicitPolicyTest5EE.crt -- pki/testdata/nist-pkits/certs/LongSerialNumberCACert.crt -- pki/testdata/nist-pkits/certs/Mapping1to2CACert.crt -- pki/testdata/nist-pkits/certs/MappingFromanyPolicyCACert.crt -- pki/testdata/nist-pkits/certs/MappingToanyPolicyCACert.crt -- pki/testdata/nist-pkits/certs/MissingbasicConstraintsCACert.crt -- pki/testdata/nist-pkits/certs/NameOrderingCACert.crt -- pki/testdata/nist-pkits/certs/NegativeSerialNumberCACert.crt -- pki/testdata/nist-pkits/certs/NoCRLCACert.crt -- pki/testdata/nist-pkits/certs/NoPoliciesCACert.crt -- pki/testdata/nist-pkits/certs/NoissuingDistributionPointCACert.crt -- pki/testdata/nist-pkits/certs/OldCRLnextUpdateCACert.crt -- pki/testdata/nist-pkits/certs/OverlappingPoliciesTest6EE.crt -- pki/testdata/nist-pkits/certs/P12Mapping1to3CACert.crt -- pki/testdata/nist-pkits/certs/P12Mapping1to3subCACert.crt -- pki/testdata/nist-pkits/certs/P12Mapping1to3subsubCACert.crt -- pki/testdata/nist-pkits/certs/P1Mapping1to234CACert.crt -- pki/testdata/nist-pkits/certs/P1Mapping1to234subCACert.crt -- pki/testdata/nist-pkits/certs/P1anyPolicyMapping1to2CACert.crt -- pki/testdata/nist-pkits/certs/PanyPolicyMapping1to2CACert.crt -- pki/testdata/nist-pkits/certs/PoliciesP1234CACert.crt -- pki/testdata/nist-pkits/certs/PoliciesP1234subCAP123Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP1234subsubCAP123P12Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP123CACert.crt -- pki/testdata/nist-pkits/certs/PoliciesP123subCAP12Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP123subsubCAP12P1Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP123subsubCAP12P2Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP123subsubsubCAP12P2P1Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP12CACert.crt -- pki/testdata/nist-pkits/certs/PoliciesP12subCAP1Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP12subsubCAP1P2Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP2subCA2Cert.crt -- pki/testdata/nist-pkits/certs/PoliciesP2subCACert.crt -- pki/testdata/nist-pkits/certs/PoliciesP3CACert.crt -- pki/testdata/nist-pkits/certs/RFC3280MandatoryAttributeTypesCACert.crt -- pki/testdata/nist-pkits/certs/RFC3280OptionalAttributeTypesCACert.crt -- pki/testdata/nist-pkits/certs/RevokedsubCACert.crt -- pki/testdata/nist-pkits/certs/RolloverfromPrintableStringtoUTF8StringCACert.crt -- pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCA2CRLSigningCert.crt -- pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCA2CertificateSigningCACert.crt -- pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCRLSigningCert.crt -- pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCertificateSigningCACert.crt -- pki/testdata/nist-pkits/certs/TrustAnchorRootCertificate.crt -- pki/testdata/nist-pkits/certs/TwoCRLsCACert.crt -- pki/testdata/nist-pkits/certs/UIDCACert.crt -- pki/testdata/nist-pkits/certs/UTF8StringCaseInsensitiveMatchCACert.crt -- pki/testdata/nist-pkits/certs/UTF8StringEncodedNamesCACert.crt -- pki/testdata/nist-pkits/certs/UnknownCRLEntryExtensionCACert.crt -- pki/testdata/nist-pkits/certs/UnknownCRLExtensionCACert.crt -- pki/testdata/nist-pkits/certs/UserNoticeQualifierTest15EE.crt -- pki/testdata/nist-pkits/certs/UserNoticeQualifierTest16EE.crt -- pki/testdata/nist-pkits/certs/UserNoticeQualifierTest17EE.crt -- pki/testdata/nist-pkits/certs/UserNoticeQualifierTest18EE.crt -- pki/testdata/nist-pkits/certs/UserNoticeQualifierTest19EE.crt -- pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedCRLSigningKeyTest6EE.crt -- pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedNewWithOldTest3EE.crt -- pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedNewWithOldTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedOldWithNewTest1EE.crt -- pki/testdata/nist-pkits/certs/ValidCertificatePathTest1EE.crt -- pki/testdata/nist-pkits/certs/ValidDNSnameConstraintsTest30EE.crt -- pki/testdata/nist-pkits/certs/ValidDNSnameConstraintsTest32EE.crt -- pki/testdata/nist-pkits/certs/ValidDNandRFC822nameConstraintsTest27EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest11EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest14EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest18EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest19EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest1EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest5EE.crt -- pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest6EE.crt -- pki/testdata/nist-pkits/certs/ValidDSAParameterInheritanceTest5EE.crt -- pki/testdata/nist-pkits/certs/ValidDSASignaturesTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidGeneralizedTimeCRLnextUpdateTest13EE.crt -- pki/testdata/nist-pkits/certs/ValidGeneralizedTimenotAfterDateTest8EE.crt -- pki/testdata/nist-pkits/certs/ValidGeneralizedTimenotBeforeDateTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidIDPwithindirectCRLTest22EE.crt -- pki/testdata/nist-pkits/certs/ValidIDPwithindirectCRLTest24EE.crt -- pki/testdata/nist-pkits/certs/ValidIDPwithindirectCRLTest25EE.crt -- pki/testdata/nist-pkits/certs/ValidLongSerialNumberTest16EE.crt -- pki/testdata/nist-pkits/certs/ValidLongSerialNumberTest17EE.crt -- pki/testdata/nist-pkits/certs/ValidNameChainingCapitalizationTest5EE.crt -- pki/testdata/nist-pkits/certs/ValidNameChainingWhitespaceTest3EE.crt -- pki/testdata/nist-pkits/certs/ValidNameChainingWhitespaceTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidNameUIDsTest6EE.crt -- pki/testdata/nist-pkits/certs/ValidNegativeSerialNumberTest14EE.crt -- pki/testdata/nist-pkits/certs/ValidNoissuingDistributionPointTest10EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest11EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest12EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest13EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest14EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest1EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest3EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest5EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest6EE.crt -- pki/testdata/nist-pkits/certs/ValidPolicyMappingTest9EE.crt -- pki/testdata/nist-pkits/certs/ValidRFC3280MandatoryAttributeTypesTest7EE.crt -- pki/testdata/nist-pkits/certs/ValidRFC3280OptionalAttributeTypesTest8EE.crt -- pki/testdata/nist-pkits/certs/ValidRFC822nameConstraintsTest21EE.crt -- pki/testdata/nist-pkits/certs/ValidRFC822nameConstraintsTest23EE.crt -- pki/testdata/nist-pkits/certs/ValidRFC822nameConstraintsTest25EE.crt -- pki/testdata/nist-pkits/certs/ValidRolloverfromPrintableStringtoUTF8StringTest10EE.crt -- pki/testdata/nist-pkits/certs/ValidSelfIssuedinhibitAnyPolicyTest7EE.crt -- pki/testdata/nist-pkits/certs/ValidSelfIssuedinhibitAnyPolicyTest9EE.crt -- pki/testdata/nist-pkits/certs/ValidSelfIssuedinhibitPolicyMappingTest7EE.crt -- pki/testdata/nist-pkits/certs/ValidSelfIssuedpathLenConstraintTest15EE.crt -- pki/testdata/nist-pkits/certs/ValidSelfIssuedpathLenConstraintTest17EE.crt -- pki/testdata/nist-pkits/certs/ValidSelfIssuedrequireExplicitPolicyTest6EE.crt -- pki/testdata/nist-pkits/certs/ValidSeparateCertificateandCRLKeysTest19EE.crt -- pki/testdata/nist-pkits/certs/ValidTwoCRLsTest7EE.crt -- pki/testdata/nist-pkits/certs/ValidURInameConstraintsTest34EE.crt -- pki/testdata/nist-pkits/certs/ValidURInameConstraintsTest36EE.crt -- pki/testdata/nist-pkits/certs/ValidUTF8StringCaseInsensitiveMatchTest11EE.crt -- pki/testdata/nist-pkits/certs/ValidUTF8StringEncodedNamesTest9EE.crt -- pki/testdata/nist-pkits/certs/ValidUnknownNotCriticalCertificateExtensionTest1EE.crt -- pki/testdata/nist-pkits/certs/ValidbasicConstraintsNotCriticalTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidcRLIssuerTest28EE.crt -- pki/testdata/nist-pkits/certs/ValidcRLIssuerTest29EE.crt -- pki/testdata/nist-pkits/certs/ValidcRLIssuerTest30EE.crt -- pki/testdata/nist-pkits/certs/ValidcRLIssuerTest33EE.crt -- pki/testdata/nist-pkits/certs/ValiddeltaCRLTest2EE.crt -- pki/testdata/nist-pkits/certs/ValiddeltaCRLTest5EE.crt -- pki/testdata/nist-pkits/certs/ValiddeltaCRLTest7EE.crt -- pki/testdata/nist-pkits/certs/ValiddeltaCRLTest8EE.crt -- pki/testdata/nist-pkits/certs/ValiddistributionPointTest1EE.crt -- pki/testdata/nist-pkits/certs/ValiddistributionPointTest4EE.crt -- pki/testdata/nist-pkits/certs/ValiddistributionPointTest5EE.crt -- pki/testdata/nist-pkits/certs/ValiddistributionPointTest7EE.crt -- pki/testdata/nist-pkits/certs/ValidinhibitAnyPolicyTest2EE.crt -- pki/testdata/nist-pkits/certs/ValidinhibitPolicyMappingTest2EE.crt -- pki/testdata/nist-pkits/certs/ValidinhibitPolicyMappingTest4EE.crt -- pki/testdata/nist-pkits/certs/ValidkeyUsageNotCriticalTest3EE.crt -- pki/testdata/nist-pkits/certs/ValidonlyContainsCACertsTest13EE.crt -- pki/testdata/nist-pkits/certs/ValidonlySomeReasonsTest18EE.crt -- pki/testdata/nist-pkits/certs/ValidonlySomeReasonsTest19EE.crt -- pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest13EE.crt -- pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest14EE.crt -- pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest7EE.crt -- pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest8EE.crt -- pki/testdata/nist-pkits/certs/Validpre2000UTCnotBeforeDateTest3EE.crt -- pki/testdata/nist-pkits/certs/ValidrequireExplicitPolicyTest1EE.crt -- pki/testdata/nist-pkits/certs/ValidrequireExplicitPolicyTest2EE.crt -- pki/testdata/nist-pkits/certs/ValidrequireExplicitPolicyTest4EE.crt -- pki/testdata/nist-pkits/certs/WrongCRLCACert.crt -- pki/testdata/nist-pkits/certs/anyPolicyCACert.crt -- pki/testdata/nist-pkits/certs/basicConstraintsCriticalcAFalseCACert.crt -- pki/testdata/nist-pkits/certs/basicConstraintsNotCriticalCACert.crt -- pki/testdata/nist-pkits/certs/basicConstraintsNotCriticalcAFalseCACert.crt -- pki/testdata/nist-pkits/certs/deltaCRLCA1Cert.crt -- pki/testdata/nist-pkits/certs/deltaCRLCA2Cert.crt -- pki/testdata/nist-pkits/certs/deltaCRLCA3Cert.crt -- pki/testdata/nist-pkits/certs/deltaCRLIndicatorNoBaseCACert.crt -- pki/testdata/nist-pkits/certs/distributionPoint1CACert.crt -- pki/testdata/nist-pkits/certs/distributionPoint2CACert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA1Cert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA2Cert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA3Cert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA3cRLIssuerCert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA4Cert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA4cRLIssuerCert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA5Cert.crt -- pki/testdata/nist-pkits/certs/indirectCRLCA6Cert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy0CACert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1CACert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1SelfIssuedCACert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1SelfIssuedsubCA2Cert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subCA1Cert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subCA2Cert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subCAIAP5Cert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subsubCA2Cert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy5CACert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy5subCACert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicy5subsubCACert.crt -- pki/testdata/nist-pkits/certs/inhibitAnyPolicyTest3EE.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping0CACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping0subCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12CACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subCAIPM5Cert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subsubCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subsubCAIPM5Cert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1CACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1SelfIssuedCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1SelfIssuedsubCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1subCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1subsubCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping5CACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping5subCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping5subsubCACert.crt -- pki/testdata/nist-pkits/certs/inhibitPolicyMapping5subsubsubCACert.crt -- pki/testdata/nist-pkits/certs/keyUsageCriticalcRLSignFalseCACert.crt -- pki/testdata/nist-pkits/certs/keyUsageCriticalkeyCertSignFalseCACert.crt -- pki/testdata/nist-pkits/certs/keyUsageNotCriticalCACert.crt -- pki/testdata/nist-pkits/certs/keyUsageNotCriticalcRLSignFalseCACert.crt -- pki/testdata/nist-pkits/certs/keyUsageNotCriticalkeyCertSignFalseCACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN1CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN1SelfIssuedCACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN1subCA1Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN1subCA2Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN1subCA3Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN2CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN3CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN3subCA1Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN3subCA2Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN4CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDN5CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDNS1CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsDNS2CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsRFC822CA1Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsRFC822CA2Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsRFC822CA3Cert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsURI1CACert.crt -- pki/testdata/nist-pkits/certs/nameConstraintsURI2CACert.crt -- pki/testdata/nist-pkits/certs/onlyContainsAttributeCertsCACert.crt -- pki/testdata/nist-pkits/certs/onlyContainsCACertsCACert.crt -- pki/testdata/nist-pkits/certs/onlyContainsUserCertsCACert.crt -- pki/testdata/nist-pkits/certs/onlySomeReasonsCA1Cert.crt -- pki/testdata/nist-pkits/certs/onlySomeReasonsCA2Cert.crt -- pki/testdata/nist-pkits/certs/onlySomeReasonsCA3Cert.crt -- pki/testdata/nist-pkits/certs/onlySomeReasonsCA4Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint0CACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint0SelfIssuedCACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint0subCA2Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint0subCACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint1CACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint1SelfIssuedCACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint1SelfIssuedsubCACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint1subCACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6CACert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subCA0Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subCA1Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subCA4Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subsubCA00Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subsubCA11Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subsubCA41Cert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subsubsubCA11XCert.crt -- pki/testdata/nist-pkits/certs/pathLenConstraint6subsubsubCA41XCert.crt -- pki/testdata/nist-pkits/certs/pre2000CRLnextUpdateCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy0CACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy0subCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy0subsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy0subsubsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy10CACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy10subCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy10subsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy10subsubsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy2CACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy2SelfIssuedCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy2SelfIssuedsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy2subCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy4CACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy4subCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy4subsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy4subsubsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy5CACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy5subCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy5subsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy5subsubsubCACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy7CACert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy7subCARE2Cert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy7subsubCARE2RE4Cert.crt -- pki/testdata/nist-pkits/certs/requireExplicitPolicy7subsubsubCARE2RE4Cert.crt -- pki/testdata/nist-pkits/crls/BadCRLIssuerNameCACRL.crl -- pki/testdata/nist-pkits/crls/BadCRLSignatureCACRL.crl -- pki/testdata/nist-pkits/crls/BadSignedCACRL.crl -- pki/testdata/nist-pkits/crls/BadnotAfterDateCACRL.crl -- pki/testdata/nist-pkits/crls/BadnotBeforeDateCACRL.crl -- pki/testdata/nist-pkits/crls/BasicSelfIssuedCRLSigningKeyCACRL.crl -- pki/testdata/nist-pkits/crls/BasicSelfIssuedCRLSigningKeyCRLCertCRL.crl -- pki/testdata/nist-pkits/crls/BasicSelfIssuedNewKeyCACRL.crl -- pki/testdata/nist-pkits/crls/BasicSelfIssuedOldKeyCACRL.crl -- pki/testdata/nist-pkits/crls/BasicSelfIssuedOldKeySelfIssuedCertCRL.crl -- pki/testdata/nist-pkits/crls/DSACACRL.crl -- pki/testdata/nist-pkits/crls/DSAParametersInheritedCACRL.crl -- pki/testdata/nist-pkits/crls/GeneralizedTimeCRLnextUpdateCACRL.crl -- pki/testdata/nist-pkits/crls/GoodCACRL.crl -- pki/testdata/nist-pkits/crls/GoodsubCACRL.crl -- pki/testdata/nist-pkits/crls/GoodsubCAPanyPolicyMapping1to2CACRL.crl -- pki/testdata/nist-pkits/crls/LongSerialNumberCACRL.crl -- pki/testdata/nist-pkits/crls/Mapping1to2CACRL.crl -- pki/testdata/nist-pkits/crls/MappingFromanyPolicyCACRL.crl -- pki/testdata/nist-pkits/crls/MappingToanyPolicyCACRL.crl -- pki/testdata/nist-pkits/crls/MissingbasicConstraintsCACRL.crl -- pki/testdata/nist-pkits/crls/NameOrderCACRL.crl -- pki/testdata/nist-pkits/crls/NegativeSerialNumberCACRL.crl -- pki/testdata/nist-pkits/crls/NoPoliciesCACRL.crl -- pki/testdata/nist-pkits/crls/NoissuingDistributionPointCACRL.crl -- pki/testdata/nist-pkits/crls/OldCRLnextUpdateCACRL.crl -- pki/testdata/nist-pkits/crls/P12Mapping1to3CACRL.crl -- pki/testdata/nist-pkits/crls/P12Mapping1to3subCACRL.crl -- pki/testdata/nist-pkits/crls/P12Mapping1to3subsubCACRL.crl -- pki/testdata/nist-pkits/crls/P1Mapping1to234CACRL.crl -- pki/testdata/nist-pkits/crls/P1Mapping1to234subCACRL.crl -- pki/testdata/nist-pkits/crls/P1anyPolicyMapping1to2CACRL.crl -- pki/testdata/nist-pkits/crls/PanyPolicyMapping1to2CACRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP1234CACRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP1234subCAP123CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP1234subsubCAP123P12CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP123CACRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP123subCAP12CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP123subsubCAP12P1CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP123subsubCAP2P2CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP123subsubsubCAP12P2P1CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP12CACRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP12subCAP1CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP12subsubCAP1P2CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP2subCA2CRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP2subCACRL.crl -- pki/testdata/nist-pkits/crls/PoliciesP3CACRL.crl -- pki/testdata/nist-pkits/crls/RFC3280MandatoryAttributeTypesCACRL.crl -- pki/testdata/nist-pkits/crls/RFC3280OptionalAttributeTypesCACRL.crl -- pki/testdata/nist-pkits/crls/RevokedsubCACRL.crl -- pki/testdata/nist-pkits/crls/RolloverfromPrintableStringtoUTF8StringCACRL.crl -- pki/testdata/nist-pkits/crls/SeparateCertificateandCRLKeysCA2CRL.crl -- pki/testdata/nist-pkits/crls/SeparateCertificateandCRLKeysCRL.crl -- pki/testdata/nist-pkits/crls/TrustAnchorRootCRL.crl -- pki/testdata/nist-pkits/crls/TwoCRLsCABadCRL.crl -- pki/testdata/nist-pkits/crls/TwoCRLsCAGoodCRL.crl -- pki/testdata/nist-pkits/crls/UIDCACRL.crl -- pki/testdata/nist-pkits/crls/UTF8StringCaseInsensitiveMatchCACRL.crl -- pki/testdata/nist-pkits/crls/UTF8StringEncodedNamesCACRL.crl -- pki/testdata/nist-pkits/crls/UnknownCRLEntryExtensionCACRL.crl -- pki/testdata/nist-pkits/crls/UnknownCRLExtensionCACRL.crl -- pki/testdata/nist-pkits/crls/WrongCRLCACRL.crl -- pki/testdata/nist-pkits/crls/anyPolicyCACRL.crl -- pki/testdata/nist-pkits/crls/basicConstraintsCriticalcAFalseCACRL.crl -- pki/testdata/nist-pkits/crls/basicConstraintsNotCriticalCACRL.crl -- pki/testdata/nist-pkits/crls/basicConstraintsNotCriticalcAFalseCACRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLCA1CRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLCA1deltaCRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLCA2CRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLCA2deltaCRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLCA3CRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLCA3deltaCRL.crl -- pki/testdata/nist-pkits/crls/deltaCRLIndicatorNoBaseCACRL.crl -- pki/testdata/nist-pkits/crls/distributionPoint1CACRL.crl -- pki/testdata/nist-pkits/crls/distributionPoint2CACRL.crl -- pki/testdata/nist-pkits/crls/indirectCRLCA1CRL.crl -- pki/testdata/nist-pkits/crls/indirectCRLCA3CRL.crl -- pki/testdata/nist-pkits/crls/indirectCRLCA3cRLIssuerCRL.crl -- pki/testdata/nist-pkits/crls/indirectCRLCA4cRLIssuerCRL.crl -- pki/testdata/nist-pkits/crls/indirectCRLCA5CRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy0CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy1CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subCA1CRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subCA2CRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subCAIAP5CRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subsubCA2CRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy5CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy5subCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitAnyPolicy5subsubCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping0CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping0subCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subCAIPM5CRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subsubCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subsubCAIPM5CRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P1CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P1subCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P1subsubCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping5CACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping5subCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping5subsubCACRL.crl -- pki/testdata/nist-pkits/crls/inhibitPolicyMapping5subsubsubCACRL.crl -- pki/testdata/nist-pkits/crls/keyUsageCriticalcRLSignFalseCACRL.crl -- pki/testdata/nist-pkits/crls/keyUsageCriticalkeyCertSignFalseCACRL.crl -- pki/testdata/nist-pkits/crls/keyUsageNotCriticalCACRL.crl -- pki/testdata/nist-pkits/crls/keyUsageNotCriticalcRLSignFalseCACRL.crl -- pki/testdata/nist-pkits/crls/keyUsageNotCriticalkeyCertSignFalseCACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN1CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN1subCA1CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN1subCA2CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN1subCA3CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN2CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN3CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN3subCA1CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN3subCA2CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN4CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDN5CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDNS1CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsDNS2CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsRFC822CA1CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsRFC822CA2CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsRFC822CA3CRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsURI1CACRL.crl -- pki/testdata/nist-pkits/crls/nameConstraintsURI2CACRL.crl -- pki/testdata/nist-pkits/crls/onlyContainsAttributeCertsCACRL.crl -- pki/testdata/nist-pkits/crls/onlyContainsCACertsCACRL.crl -- pki/testdata/nist-pkits/crls/onlyContainsUserCertsCACRL.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA1compromiseCRL.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA1otherreasonsCRL.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA2CRL1.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA2CRL2.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA3compromiseCRL.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA3otherreasonsCRL.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA4compromiseCRL.crl -- pki/testdata/nist-pkits/crls/onlySomeReasonsCA4otherreasonsCRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint0CACRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint0subCA2CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint0subCACRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint1CACRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint1subCACRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6CACRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subCA0CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subCA1CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subCA4CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subsubCA00CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subsubCA11CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subsubCA41CRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subsubsubCA11XCRL.crl -- pki/testdata/nist-pkits/crls/pathLenConstraint6subsubsubCA41XCRL.crl -- pki/testdata/nist-pkits/crls/pre2000CRLnextUpdateCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy0CACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy0subCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy0subsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy0subsubsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy10CACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy10subCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy10subsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy10subsubsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy2CACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy2subCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy4CACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy4subCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy4subsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy4subsubsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy5CACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy5subCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy5subsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy5subsubsubCACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy7CACRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy7subCARE2CRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy7subsubCARE2RE4CRL.crl -- pki/testdata/nist-pkits/crls/requireExplicitPolicy7subsubsubCARE2RE4CRL.crl -- pki/testdata/ocsp_unittest/bad_ocsp_type.pem -- pki/testdata/ocsp_unittest/bad_signature.pem -- pki/testdata/ocsp_unittest/bad_status.pem -- pki/testdata/ocsp_unittest/good_response.pem -- pki/testdata/ocsp_unittest/good_response_next_update.pem -- pki/testdata/ocsp_unittest/good_response_sha256.pem -- pki/testdata/ocsp_unittest/has_critical_ct_extension.pem -- pki/testdata/ocsp_unittest/has_critical_response_extension.pem -- pki/testdata/ocsp_unittest/has_critical_single_extension.pem -- pki/testdata/ocsp_unittest/has_extension.pem -- pki/testdata/ocsp_unittest/has_single_extension.pem -- pki/testdata/ocsp_unittest/has_version.pem -- pki/testdata/ocsp_unittest/malformed_request.pem -- pki/testdata/ocsp_unittest/missing_response.pem -- pki/testdata/ocsp_unittest/multiple_response.pem -- pki/testdata/ocsp_unittest/no_response.pem -- pki/testdata/ocsp_unittest/ocsp_extra_certs.pem -- pki/testdata/ocsp_unittest/ocsp_sign_bad_indirect.pem -- pki/testdata/ocsp_unittest/ocsp_sign_direct.pem -- pki/testdata/ocsp_unittest/ocsp_sign_indirect.pem -- pki/testdata/ocsp_unittest/ocsp_sign_indirect_missing.pem -- pki/testdata/ocsp_unittest/other_response.pem -- pki/testdata/ocsp_unittest/responder_id.pem -- pki/testdata/ocsp_unittest/responder_name.pem -- pki/testdata/ocsp_unittest/revoke_response.pem -- pki/testdata/ocsp_unittest/revoke_response_reason.pem -- pki/testdata/ocsp_unittest/unknown_response.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/empty_sequence.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/extra_contents_after_extension_sequence.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/extra_contents_after_issuer_and_serial.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_contents.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_issuer.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_key_identifier.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_serial.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/issuer_and_serial.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/issuer_only.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/key_identifier.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/key_identifier_and_issuer_and_serial.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/serial_only.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier/url_issuer_and_serial.pem -- pki/testdata/parse_certificate_unittest/authority_key_identifier_not_sequence.pem -- pki/testdata/parse_certificate_unittest/bad_key_usage.pem -- pki/testdata/parse_certificate_unittest/bad_policy_qualifiers.pem -- pki/testdata/parse_certificate_unittest/bad_signature_algorithm_oid.pem -- pki/testdata/parse_certificate_unittest/bad_validity.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_ca_false.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_ca_no_path.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_ca_path_9.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_negative_path.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_not_ca.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_path_too_large.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_pathlen_255.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_pathlen_256.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_pathlen_not_ca.pem -- pki/testdata/parse_certificate_unittest/basic_constraints_unconsumed_data.pem -- pki/testdata/parse_certificate_unittest/cert_algorithm_not_sequence.pem -- pki/testdata/parse_certificate_unittest/cert_data_after_signature.pem -- pki/testdata/parse_certificate_unittest/cert_empty_sequence.pem -- pki/testdata/parse_certificate_unittest/cert_missing_signature.pem -- pki/testdata/parse_certificate_unittest/cert_not_sequence.pem -- pki/testdata/parse_certificate_unittest/cert_signature_not_bit_string.pem -- pki/testdata/parse_certificate_unittest/cert_skeleton.pem -- pki/testdata/parse_certificate_unittest/cert_version3.pem -- pki/testdata/parse_certificate_unittest/crldp_1uri_noissuer.pem -- pki/testdata/parse_certificate_unittest/crldp_3uri_noissuer.pem -- pki/testdata/parse_certificate_unittest/crldp_full_name_as_dirname.pem -- pki/testdata/parse_certificate_unittest/crldp_issuer_as_dirname.pem -- pki/testdata/parse_certificate_unittest/extended_key_usage.pem -- pki/testdata/parse_certificate_unittest/extension_critical.pem -- pki/testdata/parse_certificate_unittest/extension_critical_0.pem -- pki/testdata/parse_certificate_unittest/extension_critical_3.pem -- pki/testdata/parse_certificate_unittest/extension_not_critical.pem -- pki/testdata/parse_certificate_unittest/extensions_data_after_sequence.pem -- pki/testdata/parse_certificate_unittest/extensions_duplicate_key_usage.pem -- pki/testdata/parse_certificate_unittest/extensions_empty_sequence.pem -- pki/testdata/parse_certificate_unittest/extensions_not_sequence.pem -- pki/testdata/parse_certificate_unittest/extensions_real.pem -- pki/testdata/parse_certificate_unittest/failed_signature_algorithm.pem -- pki/testdata/parse_certificate_unittest/inhibit_any_policy.pem -- pki/testdata/parse_certificate_unittest/issuer_bad_printable_string.pem -- pki/testdata/parse_certificate_unittest/key_usage.pem -- pki/testdata/parse_certificate_unittest/name_constraints_bad_ip.pem -- pki/testdata/parse_certificate_unittest/policies.pem -- pki/testdata/parse_certificate_unittest/policy_constraints_empty.pem -- pki/testdata/parse_certificate_unittest/policy_constraints_inhibit.pem -- pki/testdata/parse_certificate_unittest/policy_constraints_inhibit_require.pem -- pki/testdata/parse_certificate_unittest/policy_constraints_require.pem -- pki/testdata/parse_certificate_unittest/policy_qualifiers_empty_sequence.pem -- pki/testdata/parse_certificate_unittest/serial_37_bytes.pem -- pki/testdata/parse_certificate_unittest/serial_negative.pem -- pki/testdata/parse_certificate_unittest/serial_not_minimal.pem -- pki/testdata/parse_certificate_unittest/serial_not_number.pem -- pki/testdata/parse_certificate_unittest/serial_zero.pem -- pki/testdata/parse_certificate_unittest/serial_zero_padded.pem -- pki/testdata/parse_certificate_unittest/serial_zero_padded_21_bytes.pem -- pki/testdata/parse_certificate_unittest/signature_algorithm_null.pem -- pki/testdata/parse_certificate_unittest/subject_alt_name.pem -- pki/testdata/parse_certificate_unittest/subject_blank_subjectaltname_not_critical.pem -- pki/testdata/parse_certificate_unittest/subject_key_identifier_not_octet_string.pem -- pki/testdata/parse_certificate_unittest/subject_not_ascii.pem -- pki/testdata/parse_certificate_unittest/subject_not_printable_string.pem -- pki/testdata/parse_certificate_unittest/subject_printable_string_containing_utf8_client_cert.pem -- pki/testdata/parse_certificate_unittest/subject_t61string.pem -- pki/testdata/parse_certificate_unittest/subject_t61string_1-32.pem -- pki/testdata/parse_certificate_unittest/subject_t61string_126-160.pem -- pki/testdata/parse_certificate_unittest/subject_t61string_actual.pem -- pki/testdata/parse_certificate_unittest/subjectaltname_bad_ip.pem -- pki/testdata/parse_certificate_unittest/subjectaltname_dns_not_ascii.pem -- pki/testdata/parse_certificate_unittest/subjectaltname_general_names_empty_sequence.pem -- pki/testdata/parse_certificate_unittest/subjectaltname_trailing_data.pem -- pki/testdata/parse_certificate_unittest/tbs_explicit_v1.pem -- pki/testdata/parse_certificate_unittest/tbs_v1.pem -- pki/testdata/parse_certificate_unittest/tbs_v1_extensions.pem -- pki/testdata/parse_certificate_unittest/tbs_v2_extensions.pem -- pki/testdata/parse_certificate_unittest/tbs_v2_issuer_and_subject_unique_id.pem -- pki/testdata/parse_certificate_unittest/tbs_v2_issuer_unique_id.pem -- pki/testdata/parse_certificate_unittest/tbs_v2_no_optionals.pem -- pki/testdata/parse_certificate_unittest/tbs_v3_all_optionals.pem -- pki/testdata/parse_certificate_unittest/tbs_v3_data_after_extensions.pem -- pki/testdata/parse_certificate_unittest/tbs_v3_extensions.pem -- pki/testdata/parse_certificate_unittest/tbs_v3_extensions_not_sequence.pem -- pki/testdata/parse_certificate_unittest/tbs_v3_no_optionals.pem -- pki/testdata/parse_certificate_unittest/tbs_v3_real.pem -- pki/testdata/parse_certificate_unittest/tbs_v4.pem -- pki/testdata/parse_certificate_unittest/tbs_validity_both_generalized_time.pem -- pki/testdata/parse_certificate_unittest/tbs_validity_both_utc_time.pem -- pki/testdata/parse_certificate_unittest/tbs_validity_generalized_time_and_utc_time.pem -- pki/testdata/parse_certificate_unittest/tbs_validity_relaxed.pem -- pki/testdata/parse_certificate_unittest/tbs_validity_utc_time_and_generalized_time.pem -- pki/testdata/parse_certificate_unittest/v1_explicit_version.pem -- pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/int_match_name_only.pem -- pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/int_matching.pem -- pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/int_mismatch.pem -- pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/root.pem -- pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/root2.pem -- pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/target.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_different_ski_a.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_different_ski_b.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_different_ski_c.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_matching_ski_a.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_matching_ski_b.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_matching_ski_c.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_no_ski_a.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_no_ski_b.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/int_no_ski_c.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/root.pem -- pki/testdata/path_builder_unittest/key_id_prioritization/target.pem -- pki/testdata/path_builder_unittest/multi-root-A-by-B.pem -- pki/testdata/path_builder_unittest/multi-root-B-by-C.pem -- pki/testdata/path_builder_unittest/multi-root-B-by-F.pem -- pki/testdata/path_builder_unittest/multi-root-C-by-D.pem -- pki/testdata/path_builder_unittest/multi-root-C-by-E.pem -- pki/testdata/path_builder_unittest/multi-root-D-by-D.pem -- pki/testdata/path_builder_unittest/multi-root-E-by-E.pem -- pki/testdata/path_builder_unittest/multi-root-F-by-E.pem -- pki/testdata/path_builder_unittest/precertificate/precertificate.pem -- pki/testdata/path_builder_unittest/precertificate/root.pem -- pki/testdata/path_builder_unittest/self_issued_prioritization/root1.pem -- pki/testdata/path_builder_unittest/self_issued_prioritization/root1_cross.pem -- pki/testdata/path_builder_unittest/self_issued_prioritization/root2.pem -- pki/testdata/path_builder_unittest/self_issued_prioritization/target.pem -- pki/testdata/path_builder_unittest/validity_date_prioritization/int_ac.pem -- pki/testdata/path_builder_unittest/validity_date_prioritization/int_ad.pem -- pki/testdata/path_builder_unittest/validity_date_prioritization/int_bc.pem -- pki/testdata/path_builder_unittest/validity_date_prioritization/int_bd.pem -- pki/testdata/path_builder_unittest/validity_date_prioritization/root.pem -- pki/testdata/path_builder_unittest/validity_date_prioritization/target.pem -- pki/testdata/verify_certificate_chain_unittest/basic-constraints-pathlen-0-self-issued/chain.pem -- pki/testdata/verify_certificate_chain_unittest/basic-constraints-pathlen-0-self-issued/main.test -- pki/testdata/verify_certificate_chain_unittest/expired-intermediate/chain.pem -- pki/testdata/verify_certificate_chain_unittest/expired-intermediate/not-after.test -- pki/testdata/verify_certificate_chain_unittest/expired-intermediate/not-before.test -- pki/testdata/verify_certificate_chain_unittest/expired-root/chain.pem -- pki/testdata/verify_certificate_chain_unittest/expired-root/not-after-ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/expired-root/not-after-ta-with-expiration-and-constraints.test -- pki/testdata/verify_certificate_chain_unittest/expired-root/not-after-ta-with-expiration.test -- pki/testdata/verify_certificate_chain_unittest/expired-root/not-after.test -- pki/testdata/verify_certificate_chain_unittest/expired-root/not-before-ta-with-expiration.test -- pki/testdata/verify_certificate_chain_unittest/expired-root/not-before.test -- pki/testdata/verify_certificate_chain_unittest/expired-target/chain.pem -- pki/testdata/verify_certificate_chain_unittest/expired-target/not-after.test -- pki/testdata/verify_certificate_chain_unittest/expired-target/not-before.test -- pki/testdata/verify_certificate_chain_unittest/incorrect-trust-anchor/chain.pem -- pki/testdata/verify_certificate_chain_unittest/incorrect-trust-anchor/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-and-target-wrong-signature/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-and-target-wrong-signature/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-ca-false/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-ca-false/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-not-critical/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-not-critical/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/any.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/clientauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/clientauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/clientauth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/serverauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/any.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/clientauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/clientauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/clientauth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/serverauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-any.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-clientAuth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-clientAuth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-serverAuth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-serverAuth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-any.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-clientAuth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-clientAuth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-serverAuth-strict.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-serverAuth.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-invalid-spki/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-invalid-spki/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-basic-constraints/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-basic-constraints/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-signing-key-usage/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-signing-key-usage/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-signed-with-sha1/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-signed-with-sha1/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-critical-extension/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-critical-extension/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-non-critical-extension/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-non-critical-extension/main.test -- pki/testdata/verify_certificate_chain_unittest/intermediate-wrong-signature-no-authority-key-identifier/chain.pem -- pki/testdata/verify_certificate_chain_unittest/intermediate-wrong-signature-no-authority-key-identifier/main.test -- pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/anchor.pem -- pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/anchor.test -- pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/target.pem -- pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/target.test -- pki/testdata/verify_certificate_chain_unittest/key-rollover/longrolloverchain.pem -- pki/testdata/verify_certificate_chain_unittest/key-rollover/longrolloverchain.test -- pki/testdata/verify_certificate_chain_unittest/key-rollover/newchain.pem -- pki/testdata/verify_certificate_chain_unittest/key-rollover/newchain.test -- pki/testdata/verify_certificate_chain_unittest/key-rollover/oldchain.pem -- pki/testdata/verify_certificate_chain_unittest/key-rollover/oldchain.test -- pki/testdata/verify_certificate_chain_unittest/key-rollover/rolloverchain.pem -- pki/testdata/verify_certificate_chain_unittest/key-rollover/rolloverchain.test -- pki/testdata/verify_certificate_chain_unittest/many-names/ok-all-types.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/ok-all-types.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-all-types.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-all-types.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-excluded.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-excluded.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-permitted.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-permitted.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-excluded.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-excluded.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-permitted.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-permitted.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-excluded.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-excluded.test -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-permitted.pem -- pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-permitted.test -- pki/testdata/verify_certificate_chain_unittest/non-self-signed-root/chain.pem -- pki/testdata/verify_certificate_chain_unittest/non-self-signed-root/main.test -- pki/testdata/verify_certificate_chain_unittest/non-self-signed-root/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.4.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.1.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.1.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.10.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.13.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.4.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.7.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.8.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.10.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.11.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.8.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.9.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.10.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.4.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.8.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.10.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.12.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.13.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.15.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.16.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.17.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.20.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.21.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.22.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.23.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.24.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.25.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.26.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.27.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.28.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.29.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.31.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.33.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.34.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.35.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.36.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.37.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.38.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.7.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.8.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.9.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.16.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.7.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.3.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.3.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.10.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.11.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.12.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.16.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.9.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.7.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.7.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.1.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.12.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.14.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.2.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.4.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.6.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.7.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.8.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.9.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.3.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.5.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.7.txt -- pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.8.txt -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-fail/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-fail/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-fail/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-ok/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-ok/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-ok/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-fail/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-fail/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-fail/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-ok/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-ok/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-ok/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-ok/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-ok/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-ok/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-on-root-ok/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-on-root-ok/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-on-root-ok/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-on-root-wrong/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-on-root-wrong/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-on-root-wrong/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-fail/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-fail/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-fail/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-ok/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-ok/main.test -- pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-ok/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-fail/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-fail/main.test -- pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-fail/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-ok/chain.pem -- pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-ok/main.test -- pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-ok/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-basic-constraints-ca-false/chain.pem -- pki/testdata/verify_certificate_chain_unittest/root-basic-constraints-ca-false/main.test -- pki/testdata/verify_certificate_chain_unittest/root-basic-constraints-ca-false/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/chain.pem -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-constraints-strict.test -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-expiration-and-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-expiration.test -- pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/chain.pem -- pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/main.test -- pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/ta-with-constraints-require-basic-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/ta-with-require-basic-constraints.test -- pki/testdata/verify_certificate_chain_unittest/root-lacks-keycertsign-key-usage/chain.pem -- pki/testdata/verify_certificate_chain_unittest/root-lacks-keycertsign-key-usage/main.test -- pki/testdata/verify_certificate_chain_unittest/root-lacks-keycertsign-key-usage/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/distrusted-root-expired.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/distrusted-root.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/main.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/ta-with-constraints.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/ta-with-expiration.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/trusted_leaf-and-trust_anchor.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/trusted_leaf-root.test -- pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/unspecified-trust-root.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/any.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/clientauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/clientauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/clientauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/serverauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-any/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/any.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/clientauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/clientauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/any.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/clientauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/clientauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/clientauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/serverauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-many/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/any.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/clientauth-strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/clientauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/clientauth.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/serverauth-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-eku-none/serverauth.test -- pki/testdata/verify_certificate_chain_unittest/target-has-512bit-rsa-key/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-has-512bit-rsa-key/main.test -- pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/main.test -- pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/strict.test -- pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/target_only-trusted_leaf-strict.test -- pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/target_only-trusted_leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/target_only.pem -- pki/testdata/verify_certificate_chain_unittest/target-has-keycertsign-but-not-ca/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-has-keycertsign-but-not-ca/main.test -- pki/testdata/verify_certificate_chain_unittest/target-has-pathlen-but-not-ca/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-has-pathlen-but-not-ca/main.test -- pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-and-eku/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-and-eku/main.test -- pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-no-eku/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-no-eku/main.test -- pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/main.test -- pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/strict-leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/strict.test -- pki/testdata/verify_certificate_chain_unittest/target-only/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-only/trusted_anchor.test -- pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf-and-trust_anchor.test -- pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf-not_after.test -- pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf-wrong_eku.test -- pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf_require_self_signed.test -- pki/testdata/verify_certificate_chain_unittest/target-selfissued/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_anchor.test -- pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_leaf-and-trust_anchor.test -- pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_leaf_require_self_signed.test -- pki/testdata/verify_certificate_chain_unittest/target-selfsigned/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf-and-trust_anchor.test -- pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf-not_after.test -- pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf-wrong_eku.test -- pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf_require_self_signed.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-decipherOnly.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-decipherOnly.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-digitalSignature.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-digitalSignature.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyAgreement.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyAgreement.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyEncipherment.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyEncipherment.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-decipherOnly.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-decipherOnly.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-digitalSignature.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-digitalSignature.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyAgreement.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyAgreement.test -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyEncipherment.pem -- pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyEncipherment.test -- pki/testdata/verify_certificate_chain_unittest/target-signed-by-512bit-rsa/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-signed-by-512bit-rsa/main.test -- pki/testdata/verify_certificate_chain_unittest/target-signed-using-ecdsa/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-signed-using-ecdsa/main.test -- pki/testdata/verify_certificate_chain_unittest/target-signed-with-sha1/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-signed-with-sha1/main.test -- pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/main.test -- pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/target_only-trusted_leaf.test -- pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/target_only.pem -- pki/testdata/verify_certificate_chain_unittest/target-wrong-signature-no-authority-key-identifier/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-wrong-signature-no-authority-key-identifier/main.test -- pki/testdata/verify_certificate_chain_unittest/target-wrong-signature/chain.pem -- pki/testdata/verify_certificate_chain_unittest/target-wrong-signature/main.test -- pki/testdata/verify_certificate_chain_unittest/unknown-critical-policy-qualifier/chain.pem -- pki/testdata/verify_certificate_chain_unittest/unknown-critical-policy-qualifier/main.test -- pki/testdata/verify_certificate_chain_unittest/unknown-non-critical-policy-qualifier/chain.pem -- pki/testdata/verify_certificate_chain_unittest/unknown-non-critical-policy-qualifier/main.test -- pki/testdata/verify_certificate_chain_unittest/violates-basic-constraints-pathlen-0/chain.pem -- pki/testdata/verify_certificate_chain_unittest/violates-basic-constraints-pathlen-0/main.test -- pki/testdata/verify_certificate_chain_unittest/violates-pathlen-1-from-root/chain.pem -- pki/testdata/verify_certificate_chain_unittest/violates-pathlen-1-from-root/main.test -- pki/testdata/verify_certificate_chain_unittest/violates-pathlen-1-from-root/ta-with-constraints.test -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-rdn_sorting_1.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-rdn_sorting_2.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled-dupe_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled-extra_attr.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled-extra_rdn.pem -- pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/ascii-mixed-rdn_dupetype_sorting_1.pem -- pki/testdata/verify_name_match_unittest/names/ascii-mixed-rdn_dupetype_sorting_2.pem -- pki/testdata/verify_name_match_unittest/names/custom-custom-normalized.pem -- pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-badAttributeType.pem -- pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-empty.pem -- pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-extradata.pem -- pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-onlyOneElement.pem -- pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-setNotSequence.pem -- pki/testdata/verify_name_match_unittest/names/invalid-Name-setInsteadOfSequence.pem -- pki/testdata/verify_name_match_unittest/names/invalid-RDN-empty.pem -- pki/testdata/verify_name_match_unittest/names/invalid-RDN-sequenceInsteadOfSet.pem -- pki/testdata/verify_name_match_unittest/names/unicode-mixed-normalized.pem -- pki/testdata/verify_name_match_unittest/names/unicode-mixed-unnormalized.pem -- pki/testdata/verify_name_match_unittest/names/unicode_bmp-BMPSTRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/unicode_bmp-UNIVERSALSTRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/unicode_bmp-UTF8-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/unicode_supplementary-UNIVERSALSTRING-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/unicode_supplementary-UTF8-unmangled.pem -- pki/testdata/verify_name_match_unittest/names/valid-Name-empty.pem -- pki/testdata/verify_name_match_unittest/names/valid-minimal.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-spki-params-null.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-unused-bits-signature.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecdh-key.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecmqv-key.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-rsa-algorithm.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-wrong-signature-format.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-secp384r1-sha256-corrupted-data.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-secp384r1-sha256.pem -- pki/testdata/verify_signed_data_unittest/ecdsa-using-rsa-key.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-null.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-key-params-absent.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-using-pss-key-no-params.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-wrong-algorithm.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-key-encoded-ber.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-spki-non-null-params.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-using-ecdsa-algorithm.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-using-id-ea-rsa.pem -- pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256.pem -- pki/testdata/verify_signed_data_unittest/rsa-pss-sha256-using-pss-key-with-params.pem -- pki/testdata/verify_signed_data_unittest/rsa-pss-sha256-wrong-salt.pem -- pki/testdata/verify_signed_data_unittest/rsa-pss-sha256.pem -- pki/testdata/verify_signed_data_unittest/rsa-using-ec-key.pem -- pki/testdata/verify_signed_data_unittest/rsa2048-pkcs1-sha512.pem - pki/testdata/verify_unittest/google-intermediate1.der - pki/testdata/verify_unittest/google-intermediate2.der - pki/testdata/verify_unittest/google-leaf.der -@@ -2838,6 +1403,7 @@ set( +@@ -342,6 +344,7 @@ set( + crypto/cpu_arm_freebsd.cc + crypto/cpu_arm_linux.cc + crypto/cpu_intel.cc ++ crypto/cpu_ppc64le.cc + crypto/crypto.cc + crypto/curve25519/curve25519.cc + crypto/curve25519/curve25519_64_adx.cc +@@ -2830,6 +2833,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -5759,11 +4307,11 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json +Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-130.0.6723.44.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json -@@ -84,6 +84,7 @@ +--- chromium-133.0.6943.35.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.json +@@ -96,6 +96,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", "gen/bcm/aesni-x86_64-linux.S", @@ -5771,7 +4319,7 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json "gen/bcm/aesv8-armv7-linux.S", "gen/bcm/aesv8-armv8-apple.S", "gen/bcm/aesv8-armv8-linux.S", -@@ -115,6 +116,7 @@ +@@ -127,6 +128,7 @@ "gen/bcm/ghash-x86-linux.S", "gen/bcm/ghash-x86_64-apple.S", "gen/bcm/ghash-x86_64-linux.S", @@ -5779,1467 +4327,15 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json "gen/bcm/ghashv8-armv7-linux.S", "gen/bcm/ghashv8-armv8-apple.S", "gen/bcm/ghashv8-armv8-linux.S", -@@ -298,6 +300,7 @@ - "crypto/cpu_arm_freebsd.c", - "crypto/cpu_arm_linux.c", - "crypto/cpu_intel.c", -+ "crypto/cpu_ppc64le.c", - "crypto/crypto.c", - "crypto/curve25519/curve25519.c", - "crypto/curve25519/curve25519_64_adx.c", -@@ -759,37 +762,6 @@ - ], - "data": [ - "crypto/blake2/blake2b256_tests.txt", -- "crypto/cipher_extra/test/aes_128_cbc_sha1_tls_implicit_iv_tests.txt", -- "crypto/cipher_extra/test/aes_128_cbc_sha1_tls_tests.txt", -- "crypto/cipher_extra/test/aes_128_ccm_bluetooth_8_tests.txt", -- "crypto/cipher_extra/test/aes_128_ccm_bluetooth_tests.txt", -- "crypto/cipher_extra/test/aes_128_ccm_matter_tests.txt", -- "crypto/cipher_extra/test/aes_128_ctr_hmac_sha256.txt", -- "crypto/cipher_extra/test/aes_128_gcm_randnonce_tests.txt", -- "crypto/cipher_extra/test/aes_128_gcm_siv_tests.txt", -- "crypto/cipher_extra/test/aes_128_gcm_tests.txt", -- "crypto/cipher_extra/test/aes_192_gcm_tests.txt", -- "crypto/cipher_extra/test/aes_256_cbc_sha1_tls_implicit_iv_tests.txt", -- "crypto/cipher_extra/test/aes_256_cbc_sha1_tls_tests.txt", -- "crypto/cipher_extra/test/aes_256_ctr_hmac_sha256.txt", -- "crypto/cipher_extra/test/aes_256_gcm_randnonce_tests.txt", -- "crypto/cipher_extra/test/aes_256_gcm_siv_tests.txt", -- "crypto/cipher_extra/test/aes_256_gcm_tests.txt", -- "crypto/cipher_extra/test/chacha20_poly1305_tests.txt", -- "crypto/cipher_extra/test/cipher_tests.txt", -- "crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_implicit_iv_tests.txt", -- "crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_tests.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_128_cbc.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_128_ctr.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_128_gcm.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_192_cbc.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_192_ctr.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_256_cbc.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_256_ctr.txt", -- "crypto/cipher_extra/test/nist_cavp/aes_256_gcm.txt", -- "crypto/cipher_extra/test/nist_cavp/tdes_cbc.txt", -- "crypto/cipher_extra/test/nist_cavp/tdes_ecb.txt", -- "crypto/cipher_extra/test/xchacha20_poly1305_tests.txt", - "crypto/curve25519/ed25519_tests.txt", - "crypto/dilithium/dilithium_tests.txt", - "crypto/dilithium/edge_cases_draft_dilithium3_sign.txt", -@@ -1216,1413 +1188,6 @@ - "pki/verify_unittest.cc" - ], - "data": [ -- "pki/testdata/cert_issuer_source_static_unittest/c1.pem", -- "pki/testdata/cert_issuer_source_static_unittest/c2.pem", -- "pki/testdata/cert_issuer_source_static_unittest/d.pem", -- "pki/testdata/cert_issuer_source_static_unittest/e1.pem", -- "pki/testdata/cert_issuer_source_static_unittest/e2.pem", -- "pki/testdata/cert_issuer_source_static_unittest/i1_1.pem", -- "pki/testdata/cert_issuer_source_static_unittest/i1_2.pem", -- "pki/testdata/cert_issuer_source_static_unittest/i2.pem", -- "pki/testdata/cert_issuer_source_static_unittest/i3_1.pem", -- "pki/testdata/cert_issuer_source_static_unittest/i3_2.pem", -- "pki/testdata/cert_issuer_source_static_unittest/root.pem", -- "pki/testdata/certificate_policies_unittest/anypolicy.pem", -- "pki/testdata/certificate_policies_unittest/anypolicy_with_qualifier.pem", -- "pki/testdata/certificate_policies_unittest/invalid-anypolicy_with_custom_qualifier.pem", -- "pki/testdata/certificate_policies_unittest/invalid-empty.pem", -- "pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_dupe.pem", -- "pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_policyinformation_unconsumed_data.pem", -- "pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_policyqualifierinfo_unconsumed_data.pem", -- "pki/testdata/certificate_policies_unittest/invalid-policy_1_2_3_with_empty_qualifiers_sequence.pem", -- "pki/testdata/certificate_policies_unittest/invalid-policy_identifier_not_oid.pem", -- "pki/testdata/certificate_policies_unittest/policy_1_2_3.pem", -- "pki/testdata/certificate_policies_unittest/policy_1_2_3_and_1_2_4.pem", -- "pki/testdata/certificate_policies_unittest/policy_1_2_3_and_1_2_4_with_qualifiers.pem", -- "pki/testdata/certificate_policies_unittest/policy_1_2_3_with_custom_qualifier.pem", -- "pki/testdata/certificate_policies_unittest/policy_1_2_3_with_qualifier.pem", -- "pki/testdata/crl_unittest/bad_crldp_has_crlissuer.pem", -- "pki/testdata/crl_unittest/bad_fake_critical_crlentryextension.pem", -- "pki/testdata/crl_unittest/bad_fake_critical_extension.pem", -- "pki/testdata/crl_unittest/bad_idp_contains_wrong_uri.pem", -- "pki/testdata/crl_unittest/bad_idp_indirectcrl.pem", -- "pki/testdata/crl_unittest/bad_idp_onlycontainscacerts.pem", -- "pki/testdata/crl_unittest/bad_idp_onlycontainscacerts_no_basic_constraints.pem", -- "pki/testdata/crl_unittest/bad_idp_onlycontainsusercerts.pem", -- "pki/testdata/crl_unittest/bad_idp_uri_and_onlycontainscacerts.pem", -- "pki/testdata/crl_unittest/bad_idp_uri_and_onlycontainsusercerts.pem", -- "pki/testdata/crl_unittest/bad_key_rollover_signature.pem", -- "pki/testdata/crl_unittest/bad_nextupdate_too_old.pem", -- "pki/testdata/crl_unittest/bad_signature.pem", -- "pki/testdata/crl_unittest/bad_thisupdate_in_future.pem", -- "pki/testdata/crl_unittest/bad_thisupdate_too_old.pem", -- "pki/testdata/crl_unittest/bad_wrong_issuer.pem", -- "pki/testdata/crl_unittest/good.pem", -- "pki/testdata/crl_unittest/good_fake_extension.pem", -- "pki/testdata/crl_unittest/good_fake_extension_no_nextupdate.pem", -- "pki/testdata/crl_unittest/good_generalizedtime.pem", -- "pki/testdata/crl_unittest/good_idp_contains_uri.pem", -- "pki/testdata/crl_unittest/good_idp_onlycontainscacerts.pem", -- "pki/testdata/crl_unittest/good_idp_onlycontainsusercerts.pem", -- "pki/testdata/crl_unittest/good_idp_onlycontainsusercerts_no_basic_constraints.pem", -- "pki/testdata/crl_unittest/good_idp_uri_and_onlycontainscacerts.pem", -- "pki/testdata/crl_unittest/good_idp_uri_and_onlycontainsusercerts.pem", -- "pki/testdata/crl_unittest/good_issuer_name_normalization.pem", -- "pki/testdata/crl_unittest/good_issuer_no_keyusage.pem", -- "pki/testdata/crl_unittest/good_key_rollover.pem", -- "pki/testdata/crl_unittest/good_no_crldp.pem", -- "pki/testdata/crl_unittest/good_no_nextupdate.pem", -- "pki/testdata/crl_unittest/good_no_version.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_crlentryextensions.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_extensions.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_nextupdate.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_revocationdate.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_revokedcerts.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_signaturevalue.pem", -- "pki/testdata/crl_unittest/invalid_garbage_after_thisupdate.pem", -- "pki/testdata/crl_unittest/invalid_garbage_crlentry.pem", -- "pki/testdata/crl_unittest/invalid_garbage_issuer_name.pem", -- "pki/testdata/crl_unittest/invalid_garbage_revocationdate.pem", -- "pki/testdata/crl_unittest/invalid_garbage_revoked_serial_number.pem", -- "pki/testdata/crl_unittest/invalid_garbage_signaturealgorithm.pem", -- "pki/testdata/crl_unittest/invalid_garbage_signaturevalue.pem", -- "pki/testdata/crl_unittest/invalid_garbage_tbs_signature_algorithm.pem", -- "pki/testdata/crl_unittest/invalid_garbage_tbscertlist.pem", -- "pki/testdata/crl_unittest/invalid_garbage_thisupdate.pem", -- "pki/testdata/crl_unittest/invalid_garbage_version.pem", -- "pki/testdata/crl_unittest/invalid_idp_dpname_choice_extra_data.pem", -- "pki/testdata/crl_unittest/invalid_idp_empty_sequence.pem", -- "pki/testdata/crl_unittest/invalid_idp_onlycontains_user_and_ca_certs.pem", -- "pki/testdata/crl_unittest/invalid_idp_onlycontainsusercerts_v1_leaf.pem", -- "pki/testdata/crl_unittest/invalid_issuer_keyusage_no_crlsign.pem", -- "pki/testdata/crl_unittest/invalid_key_rollover_issuer_keyusage_no_crlsign.pem", -- "pki/testdata/crl_unittest/invalid_mismatched_signature_algorithm.pem", -- "pki/testdata/crl_unittest/invalid_revoked_empty_sequence.pem", -- "pki/testdata/crl_unittest/invalid_v1_explicit.pem", -- "pki/testdata/crl_unittest/invalid_v1_with_crlentryextension.pem", -- "pki/testdata/crl_unittest/invalid_v1_with_extension.pem", -- "pki/testdata/crl_unittest/invalid_v3.pem", -- "pki/testdata/crl_unittest/revoked.pem", -- "pki/testdata/crl_unittest/revoked_fake_crlentryextension.pem", -- "pki/testdata/crl_unittest/revoked_generalized_revocationdate.pem", -- "pki/testdata/crl_unittest/revoked_key_rollover.pem", -- "pki/testdata/crl_unittest/revoked_no_nextupdate.pem", -- "pki/testdata/name_constraints_unittest/directoryname-excludeall.pem", -- "pki/testdata/name_constraints_unittest/directoryname-excluded.pem", -- "pki/testdata/name_constraints_unittest/directoryname.pem", -- "pki/testdata/name_constraints_unittest/directoryname_and_dnsname.pem", -- "pki/testdata/name_constraints_unittest/directoryname_and_dnsname_and_ipaddress.pem", -- "pki/testdata/name_constraints_unittest/dnsname-exclude_dot.pem", -- "pki/testdata/name_constraints_unittest/dnsname-excludeall.pem", -- "pki/testdata/name_constraints_unittest/dnsname-excluded.pem", -- "pki/testdata/name_constraints_unittest/dnsname-excluded_with_leading_dot.pem", -- "pki/testdata/name_constraints_unittest/dnsname-permitted_two_dot.pem", -- "pki/testdata/name_constraints_unittest/dnsname-permitted_with_leading_dot.pem", -- "pki/testdata/name_constraints_unittest/dnsname-with_max.pem", -- "pki/testdata/name_constraints_unittest/dnsname-with_min_0.pem", -- "pki/testdata/name_constraints_unittest/dnsname-with_min_0_and_max.pem", -- "pki/testdata/name_constraints_unittest/dnsname-with_min_1.pem", -- "pki/testdata/name_constraints_unittest/dnsname-with_min_1_and_max.pem", -- "pki/testdata/name_constraints_unittest/dnsname.pem", -- "pki/testdata/name_constraints_unittest/dnsname2.pem", -- "pki/testdata/name_constraints_unittest/edipartyname-excluded.pem", -- "pki/testdata/name_constraints_unittest/edipartyname-permitted.pem", -- "pki/testdata/name_constraints_unittest/invalid-empty_excluded_subtree.pem", -- "pki/testdata/name_constraints_unittest/invalid-empty_permitted_subtree.pem", -- "pki/testdata/name_constraints_unittest/invalid-no_subtrees.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-excludeall.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-excluded.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-invalid_addr.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_1.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_2.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_3.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-invalid_mask_not_contiguous_4.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-mapped_addrs.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-permit_all.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-permit_prefix1.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-permit_prefix31.pem", -- "pki/testdata/name_constraints_unittest/ipaddress-permit_singlehost.pem", -- "pki/testdata/name_constraints_unittest/ipaddress.pem", -- "pki/testdata/name_constraints_unittest/name-ca.pem", -- "pki/testdata/name_constraints_unittest/name-de.pem", -- "pki/testdata/name_constraints_unittest/name-empty.pem", -- "pki/testdata/name_constraints_unittest/name-jp-tokyo.pem", -- "pki/testdata/name_constraints_unittest/name-jp.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-1.1.1.1.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-192.168.1.1.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-email-invalidstring.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-email-localpartcase.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-email-multiple.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-email.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-foo.com.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-ipv6.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona-permitted.example.com.pem", -- "pki/testdata/name_constraints_unittest/name-us-arizona.pem", -- "pki/testdata/name_constraints_unittest/name-us-california-192.168.1.1.pem", -- "pki/testdata/name_constraints_unittest/name-us-california-mountain_view.pem", -- "pki/testdata/name_constraints_unittest/name-us-california-permitted.example.com.pem", -- "pki/testdata/name_constraints_unittest/name-us-california.pem", -- "pki/testdata/name_constraints_unittest/name-us.pem", -- "pki/testdata/name_constraints_unittest/othername-excluded.pem", -- "pki/testdata/name_constraints_unittest/othername-permitted.pem", -- "pki/testdata/name_constraints_unittest/registeredid-excluded.pem", -- "pki/testdata/name_constraints_unittest/registeredid-permitted.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded-empty.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded-hostname.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded-hostnamewithat.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded-ipv4.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded-quoted.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded-subdomains.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-excluded.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted-empty.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted-hostname.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted-hostnamewithat.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted-ipv4.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted-quoted.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted-subdomains.pem", -- "pki/testdata/name_constraints_unittest/rfc822name-permitted.pem", -- "pki/testdata/name_constraints_unittest/san-directoryname.pem", -- "pki/testdata/name_constraints_unittest/san-dnsname.pem", -- "pki/testdata/name_constraints_unittest/san-edipartyname.pem", -- "pki/testdata/name_constraints_unittest/san-excluded-directoryname.pem", -- "pki/testdata/name_constraints_unittest/san-excluded-dnsname.pem", -- "pki/testdata/name_constraints_unittest/san-excluded-ipaddress.pem", -- "pki/testdata/name_constraints_unittest/san-invalid-empty.pem", -- "pki/testdata/name_constraints_unittest/san-invalid-ipaddress.pem", -- "pki/testdata/name_constraints_unittest/san-ipaddress4.pem", -- "pki/testdata/name_constraints_unittest/san-ipaddress6.pem", -- "pki/testdata/name_constraints_unittest/san-othername.pem", -- "pki/testdata/name_constraints_unittest/san-permitted.pem", -- "pki/testdata/name_constraints_unittest/san-registeredid.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-domaincase.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-empty-localpart.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-empty.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-ipv4.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-localpartcase.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-multiple.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-no-at.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-quoted.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-subdomain-no-at.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-subdomain-two-ats.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-subdomain.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-subdomaincase.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name-two-ats.pem", -- "pki/testdata/name_constraints_unittest/san-rfc822name.pem", -- "pki/testdata/name_constraints_unittest/san-uri.pem", -- "pki/testdata/name_constraints_unittest/san-x400address.pem", -- "pki/testdata/name_constraints_unittest/uri-excluded.pem", -- "pki/testdata/name_constraints_unittest/uri-permitted.pem", -- "pki/testdata/name_constraints_unittest/x400address-excluded.pem", -- "pki/testdata/name_constraints_unittest/x400address-permitted.pem", -- "pki/testdata/nist-pkits/certs/AllCertificatesNoPoliciesTest2EE.crt", -- "pki/testdata/nist-pkits/certs/AllCertificatesSamePoliciesTest10EE.crt", -- "pki/testdata/nist-pkits/certs/AllCertificatesSamePoliciesTest13EE.crt", -- "pki/testdata/nist-pkits/certs/AllCertificatesanyPolicyTest11EE.crt", -- "pki/testdata/nist-pkits/certs/AnyPolicyTest14EE.crt", -- "pki/testdata/nist-pkits/certs/BadCRLIssuerNameCACert.crt", -- "pki/testdata/nist-pkits/certs/BadCRLSignatureCACert.crt", -- "pki/testdata/nist-pkits/certs/BadSignedCACert.crt", -- "pki/testdata/nist-pkits/certs/BadnotAfterDateCACert.crt", -- "pki/testdata/nist-pkits/certs/BadnotBeforeDateCACert.crt", -- "pki/testdata/nist-pkits/certs/BasicSelfIssuedCRLSigningKeyCACert.crt", -- "pki/testdata/nist-pkits/certs/BasicSelfIssuedCRLSigningKeyCRLCert.crt", -- "pki/testdata/nist-pkits/certs/BasicSelfIssuedNewKeyCACert.crt", -- "pki/testdata/nist-pkits/certs/BasicSelfIssuedNewKeyOldWithNewCACert.crt", -- "pki/testdata/nist-pkits/certs/BasicSelfIssuedOldKeyCACert.crt", -- "pki/testdata/nist-pkits/certs/BasicSelfIssuedOldKeyNewWithOldCACert.crt", -- "pki/testdata/nist-pkits/certs/CPSPointerQualifierTest20EE.crt", -- "pki/testdata/nist-pkits/certs/DSACACert.crt", -- "pki/testdata/nist-pkits/certs/DSAParametersInheritedCACert.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest12EE.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest3EE.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest4EE.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest5EE.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest7EE.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest8EE.crt", -- "pki/testdata/nist-pkits/certs/DifferentPoliciesTest9EE.crt", -- "pki/testdata/nist-pkits/certs/GeneralizedTimeCRLnextUpdateCACert.crt", -- "pki/testdata/nist-pkits/certs/GoodCACert.crt", -- "pki/testdata/nist-pkits/certs/GoodsubCACert.crt", -- "pki/testdata/nist-pkits/certs/GoodsubCAPanyPolicyMapping1to2CACert.crt", -- "pki/testdata/nist-pkits/certs/InvalidBadCRLIssuerNameTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidBadCRLSignatureTest4EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedCRLSigningKeyTest7EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedCRLSigningKeyTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedNewWithOldTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidBasicSelfIssuedOldWithNewTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidCASignatureTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidCAnotAfterDateTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidCAnotBeforeDateTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNSnameConstraintsTest31EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNSnameConstraintsTest33EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNSnameConstraintsTest38EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNandRFC822nameConstraintsTest28EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNandRFC822nameConstraintsTest29EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest12EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest13EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest15EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest16EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest17EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest20EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest7EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDNnameConstraintsTest9EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidDSASignatureTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidEESignatureTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidEEnotAfterDateTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidEEnotBeforeDateTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidIDPwithindirectCRLTest23EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidIDPwithindirectCRLTest26EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidLongSerialNumberTest18EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidMappingFromanyPolicyTest7EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidMappingToanyPolicyTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidMissingCRLTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidMissingbasicConstraintsTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidNameChainingOrderTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidNameChainingTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidNegativeSerialNumberTest15EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidOldCRLnextUpdateTest11EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidPolicyMappingTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidPolicyMappingTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidPolicyMappingTest4EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidRFC822nameConstraintsTest22EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidRFC822nameConstraintsTest24EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidRFC822nameConstraintsTest26EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidRevokedCATest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidRevokedEETest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitAnyPolicyTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitAnyPolicyTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest11EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedinhibitPolicyMappingTest9EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedpathLenConstraintTest16EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedrequireExplicitPolicyTest7EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSelfIssuedrequireExplicitPolicyTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSeparateCertificateandCRLKeysTest20EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidSeparateCertificateandCRLKeysTest21EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidURInameConstraintsTest35EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidURInameConstraintsTest37EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidUnknownCRLEntryExtensionTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidUnknownCRLExtensionTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidUnknownCRLExtensionTest9EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidUnknownCriticalCertificateExtensionTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidWrongCRLTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcAFalseTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcAFalseTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest27EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest31EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest32EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest34EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidcRLIssuerTest35EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddeltaCRLIndicatorNoBaseTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest4EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddeltaCRLTest9EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddistributionPointTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddistributionPointTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddistributionPointTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddistributionPointTest8EE.crt", -- "pki/testdata/nist-pkits/certs/InvaliddistributionPointTest9EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest4EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitAnyPolicyTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidinhibitPolicyMappingTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidkeyUsageCriticalcRLSignFalseTest4EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidkeyUsageCriticalkeyCertSignFalseTest1EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidkeyUsageNotCriticalcRLSignFalseTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidkeyUsageNotCriticalkeyCertSignFalseTest2EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlyContainsAttributeCertsTest14EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlyContainsCACertsTest12EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlyContainsUserCertsTest11EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest15EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest16EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest17EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest20EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidonlySomeReasonsTest21EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest10EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest11EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest12EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest5EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest6EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidpathLenConstraintTest9EE.crt", -- "pki/testdata/nist-pkits/certs/Invalidpre2000CRLnextUpdateTest12EE.crt", -- "pki/testdata/nist-pkits/certs/Invalidpre2000UTCEEnotAfterDateTest7EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidrequireExplicitPolicyTest3EE.crt", -- "pki/testdata/nist-pkits/certs/InvalidrequireExplicitPolicyTest5EE.crt", -- "pki/testdata/nist-pkits/certs/LongSerialNumberCACert.crt", -- "pki/testdata/nist-pkits/certs/Mapping1to2CACert.crt", -- "pki/testdata/nist-pkits/certs/MappingFromanyPolicyCACert.crt", -- "pki/testdata/nist-pkits/certs/MappingToanyPolicyCACert.crt", -- "pki/testdata/nist-pkits/certs/MissingbasicConstraintsCACert.crt", -- "pki/testdata/nist-pkits/certs/NameOrderingCACert.crt", -- "pki/testdata/nist-pkits/certs/NegativeSerialNumberCACert.crt", -- "pki/testdata/nist-pkits/certs/NoCRLCACert.crt", -- "pki/testdata/nist-pkits/certs/NoPoliciesCACert.crt", -- "pki/testdata/nist-pkits/certs/NoissuingDistributionPointCACert.crt", -- "pki/testdata/nist-pkits/certs/OldCRLnextUpdateCACert.crt", -- "pki/testdata/nist-pkits/certs/OverlappingPoliciesTest6EE.crt", -- "pki/testdata/nist-pkits/certs/P12Mapping1to3CACert.crt", -- "pki/testdata/nist-pkits/certs/P12Mapping1to3subCACert.crt", -- "pki/testdata/nist-pkits/certs/P12Mapping1to3subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/P1Mapping1to234CACert.crt", -- "pki/testdata/nist-pkits/certs/P1Mapping1to234subCACert.crt", -- "pki/testdata/nist-pkits/certs/P1anyPolicyMapping1to2CACert.crt", -- "pki/testdata/nist-pkits/certs/PanyPolicyMapping1to2CACert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP1234CACert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP1234subCAP123Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP1234subsubCAP123P12Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP123CACert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP123subCAP12Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP123subsubCAP12P1Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP123subsubCAP12P2Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP123subsubsubCAP12P2P1Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP12CACert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP12subCAP1Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP12subsubCAP1P2Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP2subCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP2subCACert.crt", -- "pki/testdata/nist-pkits/certs/PoliciesP3CACert.crt", -- "pki/testdata/nist-pkits/certs/RFC3280MandatoryAttributeTypesCACert.crt", -- "pki/testdata/nist-pkits/certs/RFC3280OptionalAttributeTypesCACert.crt", -- "pki/testdata/nist-pkits/certs/RevokedsubCACert.crt", -- "pki/testdata/nist-pkits/certs/RolloverfromPrintableStringtoUTF8StringCACert.crt", -- "pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCA2CRLSigningCert.crt", -- "pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCA2CertificateSigningCACert.crt", -- "pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCRLSigningCert.crt", -- "pki/testdata/nist-pkits/certs/SeparateCertificateandCRLKeysCertificateSigningCACert.crt", -- "pki/testdata/nist-pkits/certs/TrustAnchorRootCertificate.crt", -- "pki/testdata/nist-pkits/certs/TwoCRLsCACert.crt", -- "pki/testdata/nist-pkits/certs/UIDCACert.crt", -- "pki/testdata/nist-pkits/certs/UTF8StringCaseInsensitiveMatchCACert.crt", -- "pki/testdata/nist-pkits/certs/UTF8StringEncodedNamesCACert.crt", -- "pki/testdata/nist-pkits/certs/UnknownCRLEntryExtensionCACert.crt", -- "pki/testdata/nist-pkits/certs/UnknownCRLExtensionCACert.crt", -- "pki/testdata/nist-pkits/certs/UserNoticeQualifierTest15EE.crt", -- "pki/testdata/nist-pkits/certs/UserNoticeQualifierTest16EE.crt", -- "pki/testdata/nist-pkits/certs/UserNoticeQualifierTest17EE.crt", -- "pki/testdata/nist-pkits/certs/UserNoticeQualifierTest18EE.crt", -- "pki/testdata/nist-pkits/certs/UserNoticeQualifierTest19EE.crt", -- "pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedCRLSigningKeyTest6EE.crt", -- "pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedNewWithOldTest3EE.crt", -- "pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedNewWithOldTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidBasicSelfIssuedOldWithNewTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValidCertificatePathTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNSnameConstraintsTest30EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNSnameConstraintsTest32EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNandRFC822nameConstraintsTest27EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest11EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest14EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest18EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest19EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest5EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDNnameConstraintsTest6EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDSAParameterInheritanceTest5EE.crt", -- "pki/testdata/nist-pkits/certs/ValidDSASignaturesTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidGeneralizedTimeCRLnextUpdateTest13EE.crt", -- "pki/testdata/nist-pkits/certs/ValidGeneralizedTimenotAfterDateTest8EE.crt", -- "pki/testdata/nist-pkits/certs/ValidGeneralizedTimenotBeforeDateTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidIDPwithindirectCRLTest22EE.crt", -- "pki/testdata/nist-pkits/certs/ValidIDPwithindirectCRLTest24EE.crt", -- "pki/testdata/nist-pkits/certs/ValidIDPwithindirectCRLTest25EE.crt", -- "pki/testdata/nist-pkits/certs/ValidLongSerialNumberTest16EE.crt", -- "pki/testdata/nist-pkits/certs/ValidLongSerialNumberTest17EE.crt", -- "pki/testdata/nist-pkits/certs/ValidNameChainingCapitalizationTest5EE.crt", -- "pki/testdata/nist-pkits/certs/ValidNameChainingWhitespaceTest3EE.crt", -- "pki/testdata/nist-pkits/certs/ValidNameChainingWhitespaceTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidNameUIDsTest6EE.crt", -- "pki/testdata/nist-pkits/certs/ValidNegativeSerialNumberTest14EE.crt", -- "pki/testdata/nist-pkits/certs/ValidNoissuingDistributionPointTest10EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest11EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest12EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest13EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest14EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest3EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest5EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest6EE.crt", -- "pki/testdata/nist-pkits/certs/ValidPolicyMappingTest9EE.crt", -- "pki/testdata/nist-pkits/certs/ValidRFC3280MandatoryAttributeTypesTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValidRFC3280OptionalAttributeTypesTest8EE.crt", -- "pki/testdata/nist-pkits/certs/ValidRFC822nameConstraintsTest21EE.crt", -- "pki/testdata/nist-pkits/certs/ValidRFC822nameConstraintsTest23EE.crt", -- "pki/testdata/nist-pkits/certs/ValidRFC822nameConstraintsTest25EE.crt", -- "pki/testdata/nist-pkits/certs/ValidRolloverfromPrintableStringtoUTF8StringTest10EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSelfIssuedinhibitAnyPolicyTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSelfIssuedinhibitAnyPolicyTest9EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSelfIssuedinhibitPolicyMappingTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSelfIssuedpathLenConstraintTest15EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSelfIssuedpathLenConstraintTest17EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSelfIssuedrequireExplicitPolicyTest6EE.crt", -- "pki/testdata/nist-pkits/certs/ValidSeparateCertificateandCRLKeysTest19EE.crt", -- "pki/testdata/nist-pkits/certs/ValidTwoCRLsTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValidURInameConstraintsTest34EE.crt", -- "pki/testdata/nist-pkits/certs/ValidURInameConstraintsTest36EE.crt", -- "pki/testdata/nist-pkits/certs/ValidUTF8StringCaseInsensitiveMatchTest11EE.crt", -- "pki/testdata/nist-pkits/certs/ValidUTF8StringEncodedNamesTest9EE.crt", -- "pki/testdata/nist-pkits/certs/ValidUnknownNotCriticalCertificateExtensionTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValidbasicConstraintsNotCriticalTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidcRLIssuerTest28EE.crt", -- "pki/testdata/nist-pkits/certs/ValidcRLIssuerTest29EE.crt", -- "pki/testdata/nist-pkits/certs/ValidcRLIssuerTest30EE.crt", -- "pki/testdata/nist-pkits/certs/ValidcRLIssuerTest33EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddeltaCRLTest2EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddeltaCRLTest5EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddeltaCRLTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddeltaCRLTest8EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddistributionPointTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddistributionPointTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddistributionPointTest5EE.crt", -- "pki/testdata/nist-pkits/certs/ValiddistributionPointTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValidinhibitAnyPolicyTest2EE.crt", -- "pki/testdata/nist-pkits/certs/ValidinhibitPolicyMappingTest2EE.crt", -- "pki/testdata/nist-pkits/certs/ValidinhibitPolicyMappingTest4EE.crt", -- "pki/testdata/nist-pkits/certs/ValidkeyUsageNotCriticalTest3EE.crt", -- "pki/testdata/nist-pkits/certs/ValidonlyContainsCACertsTest13EE.crt", -- "pki/testdata/nist-pkits/certs/ValidonlySomeReasonsTest18EE.crt", -- "pki/testdata/nist-pkits/certs/ValidonlySomeReasonsTest19EE.crt", -- "pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest13EE.crt", -- "pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest14EE.crt", -- "pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest7EE.crt", -- "pki/testdata/nist-pkits/certs/ValidpathLenConstraintTest8EE.crt", -- "pki/testdata/nist-pkits/certs/Validpre2000UTCnotBeforeDateTest3EE.crt", -- "pki/testdata/nist-pkits/certs/ValidrequireExplicitPolicyTest1EE.crt", -- "pki/testdata/nist-pkits/certs/ValidrequireExplicitPolicyTest2EE.crt", -- "pki/testdata/nist-pkits/certs/ValidrequireExplicitPolicyTest4EE.crt", -- "pki/testdata/nist-pkits/certs/WrongCRLCACert.crt", -- "pki/testdata/nist-pkits/certs/anyPolicyCACert.crt", -- "pki/testdata/nist-pkits/certs/basicConstraintsCriticalcAFalseCACert.crt", -- "pki/testdata/nist-pkits/certs/basicConstraintsNotCriticalCACert.crt", -- "pki/testdata/nist-pkits/certs/basicConstraintsNotCriticalcAFalseCACert.crt", -- "pki/testdata/nist-pkits/certs/deltaCRLCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/deltaCRLCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/deltaCRLCA3Cert.crt", -- "pki/testdata/nist-pkits/certs/deltaCRLIndicatorNoBaseCACert.crt", -- "pki/testdata/nist-pkits/certs/distributionPoint1CACert.crt", -- "pki/testdata/nist-pkits/certs/distributionPoint2CACert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA3Cert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA3cRLIssuerCert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA4Cert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA4cRLIssuerCert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA5Cert.crt", -- "pki/testdata/nist-pkits/certs/indirectCRLCA6Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy0CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1SelfIssuedCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1SelfIssuedsubCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subCAIAP5Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy1subsubCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy5CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy5subCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicy5subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitAnyPolicyTest3EE.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping0CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping0subCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subCAIPM5Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P12subsubCAIPM5Cert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1SelfIssuedCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1SelfIssuedsubCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1subCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping1P1subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping5CACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping5subCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping5subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/inhibitPolicyMapping5subsubsubCACert.crt", -- "pki/testdata/nist-pkits/certs/keyUsageCriticalcRLSignFalseCACert.crt", -- "pki/testdata/nist-pkits/certs/keyUsageCriticalkeyCertSignFalseCACert.crt", -- "pki/testdata/nist-pkits/certs/keyUsageNotCriticalCACert.crt", -- "pki/testdata/nist-pkits/certs/keyUsageNotCriticalcRLSignFalseCACert.crt", -- "pki/testdata/nist-pkits/certs/keyUsageNotCriticalkeyCertSignFalseCACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN1CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN1SelfIssuedCACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN1subCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN1subCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN1subCA3Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN2CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN3CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN3subCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN3subCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN4CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDN5CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDNS1CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsDNS2CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsRFC822CA1Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsRFC822CA2Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsRFC822CA3Cert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsURI1CACert.crt", -- "pki/testdata/nist-pkits/certs/nameConstraintsURI2CACert.crt", -- "pki/testdata/nist-pkits/certs/onlyContainsAttributeCertsCACert.crt", -- "pki/testdata/nist-pkits/certs/onlyContainsCACertsCACert.crt", -- "pki/testdata/nist-pkits/certs/onlyContainsUserCertsCACert.crt", -- "pki/testdata/nist-pkits/certs/onlySomeReasonsCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/onlySomeReasonsCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/onlySomeReasonsCA3Cert.crt", -- "pki/testdata/nist-pkits/certs/onlySomeReasonsCA4Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint0CACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint0SelfIssuedCACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint0subCA2Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint0subCACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint1CACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint1SelfIssuedCACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint1SelfIssuedsubCACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint1subCACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6CACert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subCA0Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subCA1Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subCA4Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subsubCA00Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subsubCA11Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subsubCA41Cert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subsubsubCA11XCert.crt", -- "pki/testdata/nist-pkits/certs/pathLenConstraint6subsubsubCA41XCert.crt", -- "pki/testdata/nist-pkits/certs/pre2000CRLnextUpdateCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy0CACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy0subCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy0subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy0subsubsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy10CACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy10subCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy10subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy10subsubsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy2CACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy2SelfIssuedCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy2SelfIssuedsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy2subCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy4CACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy4subCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy4subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy4subsubsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy5CACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy5subCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy5subsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy5subsubsubCACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy7CACert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy7subCARE2Cert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy7subsubCARE2RE4Cert.crt", -- "pki/testdata/nist-pkits/certs/requireExplicitPolicy7subsubsubCARE2RE4Cert.crt", -- "pki/testdata/nist-pkits/crls/BadCRLIssuerNameCACRL.crl", -- "pki/testdata/nist-pkits/crls/BadCRLSignatureCACRL.crl", -- "pki/testdata/nist-pkits/crls/BadSignedCACRL.crl", -- "pki/testdata/nist-pkits/crls/BadnotAfterDateCACRL.crl", -- "pki/testdata/nist-pkits/crls/BadnotBeforeDateCACRL.crl", -- "pki/testdata/nist-pkits/crls/BasicSelfIssuedCRLSigningKeyCACRL.crl", -- "pki/testdata/nist-pkits/crls/BasicSelfIssuedCRLSigningKeyCRLCertCRL.crl", -- "pki/testdata/nist-pkits/crls/BasicSelfIssuedNewKeyCACRL.crl", -- "pki/testdata/nist-pkits/crls/BasicSelfIssuedOldKeyCACRL.crl", -- "pki/testdata/nist-pkits/crls/BasicSelfIssuedOldKeySelfIssuedCertCRL.crl", -- "pki/testdata/nist-pkits/crls/DSACACRL.crl", -- "pki/testdata/nist-pkits/crls/DSAParametersInheritedCACRL.crl", -- "pki/testdata/nist-pkits/crls/GeneralizedTimeCRLnextUpdateCACRL.crl", -- "pki/testdata/nist-pkits/crls/GoodCACRL.crl", -- "pki/testdata/nist-pkits/crls/GoodsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/GoodsubCAPanyPolicyMapping1to2CACRL.crl", -- "pki/testdata/nist-pkits/crls/LongSerialNumberCACRL.crl", -- "pki/testdata/nist-pkits/crls/Mapping1to2CACRL.crl", -- "pki/testdata/nist-pkits/crls/MappingFromanyPolicyCACRL.crl", -- "pki/testdata/nist-pkits/crls/MappingToanyPolicyCACRL.crl", -- "pki/testdata/nist-pkits/crls/MissingbasicConstraintsCACRL.crl", -- "pki/testdata/nist-pkits/crls/NameOrderCACRL.crl", -- "pki/testdata/nist-pkits/crls/NegativeSerialNumberCACRL.crl", -- "pki/testdata/nist-pkits/crls/NoPoliciesCACRL.crl", -- "pki/testdata/nist-pkits/crls/NoissuingDistributionPointCACRL.crl", -- "pki/testdata/nist-pkits/crls/OldCRLnextUpdateCACRL.crl", -- "pki/testdata/nist-pkits/crls/P12Mapping1to3CACRL.crl", -- "pki/testdata/nist-pkits/crls/P12Mapping1to3subCACRL.crl", -- "pki/testdata/nist-pkits/crls/P12Mapping1to3subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/P1Mapping1to234CACRL.crl", -- "pki/testdata/nist-pkits/crls/P1Mapping1to234subCACRL.crl", -- "pki/testdata/nist-pkits/crls/P1anyPolicyMapping1to2CACRL.crl", -- "pki/testdata/nist-pkits/crls/PanyPolicyMapping1to2CACRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP1234CACRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP1234subCAP123CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP1234subsubCAP123P12CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP123CACRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP123subCAP12CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP123subsubCAP12P1CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP123subsubCAP2P2CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP123subsubsubCAP12P2P1CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP12CACRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP12subCAP1CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP12subsubCAP1P2CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP2subCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP2subCACRL.crl", -- "pki/testdata/nist-pkits/crls/PoliciesP3CACRL.crl", -- "pki/testdata/nist-pkits/crls/RFC3280MandatoryAttributeTypesCACRL.crl", -- "pki/testdata/nist-pkits/crls/RFC3280OptionalAttributeTypesCACRL.crl", -- "pki/testdata/nist-pkits/crls/RevokedsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/RolloverfromPrintableStringtoUTF8StringCACRL.crl", -- "pki/testdata/nist-pkits/crls/SeparateCertificateandCRLKeysCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/SeparateCertificateandCRLKeysCRL.crl", -- "pki/testdata/nist-pkits/crls/TrustAnchorRootCRL.crl", -- "pki/testdata/nist-pkits/crls/TwoCRLsCABadCRL.crl", -- "pki/testdata/nist-pkits/crls/TwoCRLsCAGoodCRL.crl", -- "pki/testdata/nist-pkits/crls/UIDCACRL.crl", -- "pki/testdata/nist-pkits/crls/UTF8StringCaseInsensitiveMatchCACRL.crl", -- "pki/testdata/nist-pkits/crls/UTF8StringEncodedNamesCACRL.crl", -- "pki/testdata/nist-pkits/crls/UnknownCRLEntryExtensionCACRL.crl", -- "pki/testdata/nist-pkits/crls/UnknownCRLExtensionCACRL.crl", -- "pki/testdata/nist-pkits/crls/WrongCRLCACRL.crl", -- "pki/testdata/nist-pkits/crls/anyPolicyCACRL.crl", -- "pki/testdata/nist-pkits/crls/basicConstraintsCriticalcAFalseCACRL.crl", -- "pki/testdata/nist-pkits/crls/basicConstraintsNotCriticalCACRL.crl", -- "pki/testdata/nist-pkits/crls/basicConstraintsNotCriticalcAFalseCACRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLCA1CRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLCA1deltaCRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLCA2deltaCRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLCA3CRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLCA3deltaCRL.crl", -- "pki/testdata/nist-pkits/crls/deltaCRLIndicatorNoBaseCACRL.crl", -- "pki/testdata/nist-pkits/crls/distributionPoint1CACRL.crl", -- "pki/testdata/nist-pkits/crls/distributionPoint2CACRL.crl", -- "pki/testdata/nist-pkits/crls/indirectCRLCA1CRL.crl", -- "pki/testdata/nist-pkits/crls/indirectCRLCA3CRL.crl", -- "pki/testdata/nist-pkits/crls/indirectCRLCA3cRLIssuerCRL.crl", -- "pki/testdata/nist-pkits/crls/indirectCRLCA4cRLIssuerCRL.crl", -- "pki/testdata/nist-pkits/crls/indirectCRLCA5CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy0CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy1CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subCA1CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subCAIAP5CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy1subsubCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy5CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy5subCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitAnyPolicy5subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping0CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping0subCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subCAIPM5CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P12subsubCAIPM5CRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P1CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P1subCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping1P1subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping5CACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping5subCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping5subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/inhibitPolicyMapping5subsubsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/keyUsageCriticalcRLSignFalseCACRL.crl", -- "pki/testdata/nist-pkits/crls/keyUsageCriticalkeyCertSignFalseCACRL.crl", -- "pki/testdata/nist-pkits/crls/keyUsageNotCriticalCACRL.crl", -- "pki/testdata/nist-pkits/crls/keyUsageNotCriticalcRLSignFalseCACRL.crl", -- "pki/testdata/nist-pkits/crls/keyUsageNotCriticalkeyCertSignFalseCACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN1CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN1subCA1CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN1subCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN1subCA3CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN2CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN3CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN3subCA1CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN3subCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN4CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDN5CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDNS1CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsDNS2CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsRFC822CA1CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsRFC822CA2CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsRFC822CA3CRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsURI1CACRL.crl", -- "pki/testdata/nist-pkits/crls/nameConstraintsURI2CACRL.crl", -- "pki/testdata/nist-pkits/crls/onlyContainsAttributeCertsCACRL.crl", -- "pki/testdata/nist-pkits/crls/onlyContainsCACertsCACRL.crl", -- "pki/testdata/nist-pkits/crls/onlyContainsUserCertsCACRL.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA1compromiseCRL.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA1otherreasonsCRL.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA2CRL1.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA2CRL2.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA3compromiseCRL.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA3otherreasonsCRL.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA4compromiseCRL.crl", -- "pki/testdata/nist-pkits/crls/onlySomeReasonsCA4otherreasonsCRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint0CACRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint0subCA2CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint0subCACRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint1CACRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint1subCACRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6CACRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subCA0CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subCA1CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subCA4CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subsubCA00CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subsubCA11CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subsubCA41CRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subsubsubCA11XCRL.crl", -- "pki/testdata/nist-pkits/crls/pathLenConstraint6subsubsubCA41XCRL.crl", -- "pki/testdata/nist-pkits/crls/pre2000CRLnextUpdateCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy0CACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy0subCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy0subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy0subsubsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy10CACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy10subCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy10subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy10subsubsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy2CACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy2subCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy4CACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy4subCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy4subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy4subsubsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy5CACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy5subCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy5subsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy5subsubsubCACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy7CACRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy7subCARE2CRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy7subsubCARE2RE4CRL.crl", -- "pki/testdata/nist-pkits/crls/requireExplicitPolicy7subsubsubCARE2RE4CRL.crl", -- "pki/testdata/ocsp_unittest/bad_ocsp_type.pem", -- "pki/testdata/ocsp_unittest/bad_signature.pem", -- "pki/testdata/ocsp_unittest/bad_status.pem", -- "pki/testdata/ocsp_unittest/good_response.pem", -- "pki/testdata/ocsp_unittest/good_response_next_update.pem", -- "pki/testdata/ocsp_unittest/good_response_sha256.pem", -- "pki/testdata/ocsp_unittest/has_critical_ct_extension.pem", -- "pki/testdata/ocsp_unittest/has_critical_response_extension.pem", -- "pki/testdata/ocsp_unittest/has_critical_single_extension.pem", -- "pki/testdata/ocsp_unittest/has_extension.pem", -- "pki/testdata/ocsp_unittest/has_single_extension.pem", -- "pki/testdata/ocsp_unittest/has_version.pem", -- "pki/testdata/ocsp_unittest/malformed_request.pem", -- "pki/testdata/ocsp_unittest/missing_response.pem", -- "pki/testdata/ocsp_unittest/multiple_response.pem", -- "pki/testdata/ocsp_unittest/no_response.pem", -- "pki/testdata/ocsp_unittest/ocsp_extra_certs.pem", -- "pki/testdata/ocsp_unittest/ocsp_sign_bad_indirect.pem", -- "pki/testdata/ocsp_unittest/ocsp_sign_direct.pem", -- "pki/testdata/ocsp_unittest/ocsp_sign_indirect.pem", -- "pki/testdata/ocsp_unittest/ocsp_sign_indirect_missing.pem", -- "pki/testdata/ocsp_unittest/other_response.pem", -- "pki/testdata/ocsp_unittest/responder_id.pem", -- "pki/testdata/ocsp_unittest/responder_name.pem", -- "pki/testdata/ocsp_unittest/revoke_response.pem", -- "pki/testdata/ocsp_unittest/revoke_response_reason.pem", -- "pki/testdata/ocsp_unittest/unknown_response.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/empty_sequence.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/extra_contents_after_extension_sequence.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/extra_contents_after_issuer_and_serial.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_contents.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_issuer.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_key_identifier.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/invalid_serial.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/issuer_and_serial.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/issuer_only.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/key_identifier.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/key_identifier_and_issuer_and_serial.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/serial_only.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier/url_issuer_and_serial.pem", -- "pki/testdata/parse_certificate_unittest/authority_key_identifier_not_sequence.pem", -- "pki/testdata/parse_certificate_unittest/bad_key_usage.pem", -- "pki/testdata/parse_certificate_unittest/bad_policy_qualifiers.pem", -- "pki/testdata/parse_certificate_unittest/bad_signature_algorithm_oid.pem", -- "pki/testdata/parse_certificate_unittest/bad_validity.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_ca_false.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_ca_no_path.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_ca_path_9.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_negative_path.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_not_ca.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_path_too_large.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_pathlen_255.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_pathlen_256.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_pathlen_not_ca.pem", -- "pki/testdata/parse_certificate_unittest/basic_constraints_unconsumed_data.pem", -- "pki/testdata/parse_certificate_unittest/cert_algorithm_not_sequence.pem", -- "pki/testdata/parse_certificate_unittest/cert_data_after_signature.pem", -- "pki/testdata/parse_certificate_unittest/cert_empty_sequence.pem", -- "pki/testdata/parse_certificate_unittest/cert_missing_signature.pem", -- "pki/testdata/parse_certificate_unittest/cert_not_sequence.pem", -- "pki/testdata/parse_certificate_unittest/cert_signature_not_bit_string.pem", -- "pki/testdata/parse_certificate_unittest/cert_skeleton.pem", -- "pki/testdata/parse_certificate_unittest/cert_version3.pem", -- "pki/testdata/parse_certificate_unittest/crldp_1uri_noissuer.pem", -- "pki/testdata/parse_certificate_unittest/crldp_3uri_noissuer.pem", -- "pki/testdata/parse_certificate_unittest/crldp_full_name_as_dirname.pem", -- "pki/testdata/parse_certificate_unittest/crldp_issuer_as_dirname.pem", -- "pki/testdata/parse_certificate_unittest/extended_key_usage.pem", -- "pki/testdata/parse_certificate_unittest/extension_critical.pem", -- "pki/testdata/parse_certificate_unittest/extension_critical_0.pem", -- "pki/testdata/parse_certificate_unittest/extension_critical_3.pem", -- "pki/testdata/parse_certificate_unittest/extension_not_critical.pem", -- "pki/testdata/parse_certificate_unittest/extensions_data_after_sequence.pem", -- "pki/testdata/parse_certificate_unittest/extensions_duplicate_key_usage.pem", -- "pki/testdata/parse_certificate_unittest/extensions_empty_sequence.pem", -- "pki/testdata/parse_certificate_unittest/extensions_not_sequence.pem", -- "pki/testdata/parse_certificate_unittest/extensions_real.pem", -- "pki/testdata/parse_certificate_unittest/failed_signature_algorithm.pem", -- "pki/testdata/parse_certificate_unittest/inhibit_any_policy.pem", -- "pki/testdata/parse_certificate_unittest/issuer_bad_printable_string.pem", -- "pki/testdata/parse_certificate_unittest/key_usage.pem", -- "pki/testdata/parse_certificate_unittest/name_constraints_bad_ip.pem", -- "pki/testdata/parse_certificate_unittest/policies.pem", -- "pki/testdata/parse_certificate_unittest/policy_constraints_empty.pem", -- "pki/testdata/parse_certificate_unittest/policy_constraints_inhibit.pem", -- "pki/testdata/parse_certificate_unittest/policy_constraints_inhibit_require.pem", -- "pki/testdata/parse_certificate_unittest/policy_constraints_require.pem", -- "pki/testdata/parse_certificate_unittest/policy_qualifiers_empty_sequence.pem", -- "pki/testdata/parse_certificate_unittest/serial_37_bytes.pem", -- "pki/testdata/parse_certificate_unittest/serial_negative.pem", -- "pki/testdata/parse_certificate_unittest/serial_not_minimal.pem", -- "pki/testdata/parse_certificate_unittest/serial_not_number.pem", -- "pki/testdata/parse_certificate_unittest/serial_zero.pem", -- "pki/testdata/parse_certificate_unittest/serial_zero_padded.pem", -- "pki/testdata/parse_certificate_unittest/serial_zero_padded_21_bytes.pem", -- "pki/testdata/parse_certificate_unittest/signature_algorithm_null.pem", -- "pki/testdata/parse_certificate_unittest/subject_alt_name.pem", -- "pki/testdata/parse_certificate_unittest/subject_blank_subjectaltname_not_critical.pem", -- "pki/testdata/parse_certificate_unittest/subject_key_identifier_not_octet_string.pem", -- "pki/testdata/parse_certificate_unittest/subject_not_ascii.pem", -- "pki/testdata/parse_certificate_unittest/subject_not_printable_string.pem", -- "pki/testdata/parse_certificate_unittest/subject_printable_string_containing_utf8_client_cert.pem", -- "pki/testdata/parse_certificate_unittest/subject_t61string.pem", -- "pki/testdata/parse_certificate_unittest/subject_t61string_1-32.pem", -- "pki/testdata/parse_certificate_unittest/subject_t61string_126-160.pem", -- "pki/testdata/parse_certificate_unittest/subject_t61string_actual.pem", -- "pki/testdata/parse_certificate_unittest/subjectaltname_bad_ip.pem", -- "pki/testdata/parse_certificate_unittest/subjectaltname_dns_not_ascii.pem", -- "pki/testdata/parse_certificate_unittest/subjectaltname_general_names_empty_sequence.pem", -- "pki/testdata/parse_certificate_unittest/subjectaltname_trailing_data.pem", -- "pki/testdata/parse_certificate_unittest/tbs_explicit_v1.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v1.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v1_extensions.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v2_extensions.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v2_issuer_and_subject_unique_id.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v2_issuer_unique_id.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v2_no_optionals.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v3_all_optionals.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v3_data_after_extensions.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v3_extensions.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v3_extensions_not_sequence.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v3_no_optionals.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v3_real.pem", -- "pki/testdata/parse_certificate_unittest/tbs_v4.pem", -- "pki/testdata/parse_certificate_unittest/tbs_validity_both_generalized_time.pem", -- "pki/testdata/parse_certificate_unittest/tbs_validity_both_utc_time.pem", -- "pki/testdata/parse_certificate_unittest/tbs_validity_generalized_time_and_utc_time.pem", -- "pki/testdata/parse_certificate_unittest/tbs_validity_relaxed.pem", -- "pki/testdata/parse_certificate_unittest/tbs_validity_utc_time_and_generalized_time.pem", -- "pki/testdata/parse_certificate_unittest/v1_explicit_version.pem", -- "pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/int_match_name_only.pem", -- "pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/int_matching.pem", -- "pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/int_mismatch.pem", -- "pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/root.pem", -- "pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/root2.pem", -- "pki/testdata/path_builder_unittest/key_id_name_and_serial_prioritization/target.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_different_ski_a.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_different_ski_b.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_different_ski_c.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_matching_ski_a.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_matching_ski_b.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_matching_ski_c.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_no_ski_a.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_no_ski_b.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/int_no_ski_c.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/root.pem", -- "pki/testdata/path_builder_unittest/key_id_prioritization/target.pem", -- "pki/testdata/path_builder_unittest/multi-root-A-by-B.pem", -- "pki/testdata/path_builder_unittest/multi-root-B-by-C.pem", -- "pki/testdata/path_builder_unittest/multi-root-B-by-F.pem", -- "pki/testdata/path_builder_unittest/multi-root-C-by-D.pem", -- "pki/testdata/path_builder_unittest/multi-root-C-by-E.pem", -- "pki/testdata/path_builder_unittest/multi-root-D-by-D.pem", -- "pki/testdata/path_builder_unittest/multi-root-E-by-E.pem", -- "pki/testdata/path_builder_unittest/multi-root-F-by-E.pem", -- "pki/testdata/path_builder_unittest/precertificate/precertificate.pem", -- "pki/testdata/path_builder_unittest/precertificate/root.pem", -- "pki/testdata/path_builder_unittest/self_issued_prioritization/root1.pem", -- "pki/testdata/path_builder_unittest/self_issued_prioritization/root1_cross.pem", -- "pki/testdata/path_builder_unittest/self_issued_prioritization/root2.pem", -- "pki/testdata/path_builder_unittest/self_issued_prioritization/target.pem", -- "pki/testdata/path_builder_unittest/validity_date_prioritization/int_ac.pem", -- "pki/testdata/path_builder_unittest/validity_date_prioritization/int_ad.pem", -- "pki/testdata/path_builder_unittest/validity_date_prioritization/int_bc.pem", -- "pki/testdata/path_builder_unittest/validity_date_prioritization/int_bd.pem", -- "pki/testdata/path_builder_unittest/validity_date_prioritization/root.pem", -- "pki/testdata/path_builder_unittest/validity_date_prioritization/target.pem", -- "pki/testdata/verify_certificate_chain_unittest/basic-constraints-pathlen-0-self-issued/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/basic-constraints-pathlen-0-self-issued/main.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-intermediate/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/expired-intermediate/not-after.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-intermediate/not-before.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/not-after-ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/not-after-ta-with-expiration-and-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/not-after-ta-with-expiration.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/not-after.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/not-before-ta-with-expiration.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-root/not-before.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-target/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/expired-target/not-after.test", -- "pki/testdata/verify_certificate_chain_unittest/expired-target/not-before.test", -- "pki/testdata/verify_certificate_chain_unittest/incorrect-trust-anchor/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/incorrect-trust-anchor/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-and-target-wrong-signature/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-and-target-wrong-signature/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-ca-false/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-ca-false/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-not-critical/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-basic-constraints-not-critical/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/any.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/clientauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/clientauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/clientauth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/serverauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-any-and-clientauth/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/any.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/clientauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/clientauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/clientauth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/serverauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-clientauth/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-any.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-clientAuth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-clientAuth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-serverAuth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha1-eku-serverAuth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-any.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-clientAuth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-clientAuth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-serverAuth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-eku-server-gated-crypto/sha256-eku-serverAuth.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-invalid-spki/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-invalid-spki/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-basic-constraints/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-basic-constraints/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-signing-key-usage/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-lacks-signing-key-usage/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-signed-with-sha1/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-signed-with-sha1/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-critical-extension/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-critical-extension/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-non-critical-extension/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-unknown-non-critical-extension/main.test", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-wrong-signature-no-authority-key-identifier/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/intermediate-wrong-signature-no-authority-key-identifier/main.test", -- "pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/anchor.pem", -- "pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/target.pem", -- "pki/testdata/verify_certificate_chain_unittest/issuer-and-subject-not-byte-for-byte-equal/target.test", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/longrolloverchain.pem", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/longrolloverchain.test", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/newchain.pem", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/newchain.test", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/oldchain.pem", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/oldchain.test", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/rolloverchain.pem", -- "pki/testdata/verify_certificate_chain_unittest/key-rollover/rolloverchain.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/ok-all-types.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/ok-all-types.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-all-types.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-all-types.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-excluded.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-excluded.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-permitted.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dirnames-permitted.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-excluded.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-excluded.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-permitted.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-dns-permitted.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-excluded.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-excluded.test", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-permitted.pem", -- "pki/testdata/verify_certificate_chain_unittest/many-names/toomany-ips-permitted.test", -- "pki/testdata/verify_certificate_chain_unittest/non-self-signed-root/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/non-self-signed-root/main.test", -- "pki/testdata/verify_certificate_chain_unittest/non-self-signed-root/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.4.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.1.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.1.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.1.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.10.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.13.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.4.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.7.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.10.8.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.10.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.11.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.8.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.11.9.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.10.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.4.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.12.8.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.10.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.12.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.13.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.15.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.16.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.17.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.20.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.21.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.22.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.23.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.24.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.25.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.26.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.27.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.28.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.29.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.31.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.33.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.34.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.35.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.36.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.37.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.38.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.7.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.8.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.13.9.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.16.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.2.7.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.3.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.3.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.10.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.11.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.12.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.16.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.6.9.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.7.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.7.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.1.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.12.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.14.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.2.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.4.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.6.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.7.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.8.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.8.9.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.3.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.5.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.7.txt", -- "pki/testdata/verify_certificate_chain_unittest/pkits_errors/4.9.8.txt", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-fail/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-fail/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-fail/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-ok/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-ok/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-anypolicy-by-root-ok/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-fail/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-fail/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-fail/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-ok/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-ok/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-inhibit-mapping-by-root-ok/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-ok/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-ok/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-ok/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-on-root-ok/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-on-root-ok/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-on-root-ok/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-on-root-wrong/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-on-root-wrong/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-on-root-wrong/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-fail/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-fail/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-fail/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-ok/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-ok/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policies-required-by-root-ok/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-fail/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-fail/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-fail/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-ok/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-ok/main.test", -- "pki/testdata/verify_certificate_chain_unittest/policy-mappings-on-root-ok/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-basic-constraints-ca-false/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/root-basic-constraints-ca-false/main.test", -- "pki/testdata/verify_certificate_chain_unittest/root-basic-constraints-ca-false/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-constraints-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-expiration-and-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth-ta-with-expiration.test", -- "pki/testdata/verify_certificate_chain_unittest/root-eku-clientauth/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/main.test", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/ta-with-constraints-require-basic-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-basic-constraints/ta-with-require-basic-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-keycertsign-key-usage/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-keycertsign-key-usage/main.test", -- "pki/testdata/verify_certificate_chain_unittest/root-lacks-keycertsign-key-usage/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/distrusted-root-expired.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/distrusted-root.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/ta-with-constraints.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/ta-with-expiration.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/trusted_leaf-and-trust_anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/trusted_leaf-root.test", -- "pki/testdata/verify_certificate_chain_unittest/target-and-intermediate/unspecified-trust-root.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/any.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/clientauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/clientauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/clientauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/serverauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-any/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/any.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/clientauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/clientauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-clientauth/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/any.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/clientauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/clientauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/clientauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/serverauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-many/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/any.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/clientauth-strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/clientauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/clientauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/serverauth-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-eku-none/serverauth.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-512bit-rsa-key/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-has-512bit-rsa-key/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/target_only-trusted_leaf-strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/target_only-trusted_leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-ca-basic-constraints/target_only.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-has-keycertsign-but-not-ca/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-has-keycertsign-but-not-ca/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-has-pathlen-but-not-ca/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-has-pathlen-but-not-ca/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-and-eku/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-and-eku/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-no-eku/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-msapplicationpolicies-no-eku/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/strict-leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-not-end-entity/strict.test", -- "pki/testdata/verify_certificate_chain_unittest/target-only/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-only/trusted_anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf-and-trust_anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf-not_after.test", -- "pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf-wrong_eku.test", -- "pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-only/trusted_leaf_require_self_signed.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfissued/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_leaf-and-trust_anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfissued/trusted_leaf_require_self_signed.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfsigned/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf-and-trust_anchor.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf-not_after.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf-wrong_eku.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-selfsigned/trusted_leaf_require_self_signed.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-decipherOnly.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-decipherOnly.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-digitalSignature.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-digitalSignature.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyAgreement.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyAgreement.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyEncipherment.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/ec-keyEncipherment.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-decipherOnly.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-decipherOnly.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-digitalSignature.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-digitalSignature.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyAgreement.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyAgreement.test", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyEncipherment.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-serverauth-various-keyusages/rsa-keyEncipherment.test", -- "pki/testdata/verify_certificate_chain_unittest/target-signed-by-512bit-rsa/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-signed-by-512bit-rsa/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-signed-using-ecdsa/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-signed-using-ecdsa/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-signed-with-sha1/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-signed-with-sha1/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/target_only-trusted_leaf.test", -- "pki/testdata/verify_certificate_chain_unittest/target-unknown-critical-extension/target_only.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-wrong-signature-no-authority-key-identifier/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-wrong-signature-no-authority-key-identifier/main.test", -- "pki/testdata/verify_certificate_chain_unittest/target-wrong-signature/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/target-wrong-signature/main.test", -- "pki/testdata/verify_certificate_chain_unittest/unknown-critical-policy-qualifier/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/unknown-critical-policy-qualifier/main.test", -- "pki/testdata/verify_certificate_chain_unittest/unknown-non-critical-policy-qualifier/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/unknown-non-critical-policy-qualifier/main.test", -- "pki/testdata/verify_certificate_chain_unittest/violates-basic-constraints-pathlen-0/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/violates-basic-constraints-pathlen-0/main.test", -- "pki/testdata/verify_certificate_chain_unittest/violates-pathlen-1-from-root/chain.pem", -- "pki/testdata/verify_certificate_chain_unittest/violates-pathlen-1-from-root/main.test", -- "pki/testdata/verify_certificate_chain_unittest/violates-pathlen-1-from-root/ta-with-constraints.test", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-case_swap.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-extra_whitespace.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-BMPSTRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-case_swap.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-extra_whitespace.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-rdn_sorting_1.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-rdn_sorting_2.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-PRINTABLESTRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-case_swap.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-extra_whitespace.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-T61STRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-case_swap.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-extra_whitespace.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UNIVERSALSTRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-case_swap.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-extra_whitespace.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled-dupe_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled-extra_attr.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled-extra_rdn.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-UTF8-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-mixed-rdn_dupetype_sorting_1.pem", -- "pki/testdata/verify_name_match_unittest/names/ascii-mixed-rdn_dupetype_sorting_2.pem", -- "pki/testdata/verify_name_match_unittest/names/custom-custom-normalized.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-badAttributeType.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-empty.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-extradata.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-onlyOneElement.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-AttributeTypeAndValue-setNotSequence.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-Name-setInsteadOfSequence.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-RDN-empty.pem", -- "pki/testdata/verify_name_match_unittest/names/invalid-RDN-sequenceInsteadOfSet.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode-mixed-normalized.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode-mixed-unnormalized.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode_bmp-BMPSTRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode_bmp-UNIVERSALSTRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode_bmp-UTF8-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode_supplementary-UNIVERSALSTRING-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/unicode_supplementary-UTF8-unmangled.pem", -- "pki/testdata/verify_name_match_unittest/names/valid-Name-empty.pem", -- "pki/testdata/verify_name_match_unittest/names/valid-minimal.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-spki-params-null.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-unused-bits-signature.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecdh-key.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecmqv-key.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-rsa-algorithm.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512-wrong-signature-format.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-prime256v1-sha512.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-secp384r1-sha256-corrupted-data.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-secp384r1-sha256.pem", -- "pki/testdata/verify_signed_data_unittest/ecdsa-using-rsa-key.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-null.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-key-params-absent.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-using-pss-key-no-params.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1-wrong-algorithm.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha1.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-key-encoded-ber.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-spki-non-null-params.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-using-ecdsa-algorithm.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256-using-id-ea-rsa.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pkcs1-sha256.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pss-sha256-using-pss-key-with-params.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pss-sha256-wrong-salt.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-pss-sha256.pem", -- "pki/testdata/verify_signed_data_unittest/rsa-using-ec-key.pem", -- "pki/testdata/verify_signed_data_unittest/rsa2048-pkcs1-sha512.pem", - "pki/testdata/verify_unittest/google-intermediate1.der", - "pki/testdata/verify_unittest/google-intermediate2.der", - "pki/testdata/verify_unittest/google-leaf.der", -@@ -2758,6 +1323,7 @@ +@@ -312,6 +314,7 @@ + "crypto/cpu_arm_freebsd.cc", + "crypto/cpu_arm_linux.cc", + "crypto/cpu_intel.cc", ++ "crypto/cpu_ppc64le.cc", + "crypto/crypto.cc", + "crypto/curve25519/curve25519.cc", + "crypto/curve25519/curve25519_64_adx.cc", +@@ -2750,6 +2753,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -7247,10 +4343,10 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-133.0.6943.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -8662,6 +5758,6 @@ Index: chromium-130.0.6723.44/third_party/boringssl/src/gen/test_support/trampol + +#endif // !OPENSSL_NO_ASM && __powerpc64__ && __ELF__ +#if defined(__ELF__) -+// See https://www.airs.com/blog/archives/518. ++// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index 585d4b8..e2eb5e5 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,9 +1,10 @@ -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ /dev/null @@ -1,330 +0,0 @@ -/* -- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source @@ -332,12 +333,13 @@ diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc -#endif - -#endif // VP8_RTCD_H_ -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ /dev/null @@ -1,206 +0,0 @@ -/* -- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source @@ -542,9 +544,10 @@ diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc -#endif - -#endif // VP9_RTCD_H_ -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ /dev/null @@ -1,108 +0,0 @@ -@ This file was created from a .asm file -@ using the ads2gas.pl script. @@ -654,9 +657,10 @@ diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.c 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -668,9 +672,10 @@ diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_config.h 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -789,12 +794,13 @@ diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ /dev/null @@ -1,2138 +0,0 @@ -/* -- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source @@ -2931,12 +2937,13 @@ diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc -#endif - -#endif // VPX_DSP_RTCD_H_ -diff -Nur chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ---- chromium-131.0.6778.69.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h 2024-11-12 22:49:02.000000000 +0100 -+++ chromium-131.0.6778.69/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h 1970-01-01 01:00:00.000000000 +0100 +Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +=================================================================== +--- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ /dev/null @@ -1,110 +0,0 @@ -/* -- * Copyright (c) 2024 The WebM project authors. All Rights Reserved. +- * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch index 2e70fef..8c52acb 100644 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ b/0008-sandbox-fix-ppc64le-glibc234.patch @@ -1,7 +1,5 @@ -Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc -=================================================================== ---- chromium-130.0.6723.44.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- a/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ b/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -11,11 +9,9 @@ Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc -=================================================================== ---- chromium-130.0.6723.44.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc -@@ -87,7 +87,7 @@ ResultExpr RendererProcessPolicy::Evalua +--- a/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ b/sandbox/policy/linux/bpf_renderer_policy_linux.cc +@@ -90,7 +90,7 @@ ResultExpr RendererProcessPolicy::Evalua case __NR_ftruncate64: #endif #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -24,10 +20,8 @@ Index: chromium-130.0.6723.44/sandbox/policy/linux/bpf_renderer_policy_linux.cc case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -=================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- a/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ b/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -58,9 +58,9 @@ #elif defined(__powerpc64__) @@ -40,10 +34,8 @@ Index: chromium-130.0.6723.44/sandbox/linux/bpf_dsl/linux_syscall_ranges.h #define MAX_SYSCALL MAX_PUBLIC_SYSCALL #else -Index: chromium-130.0.6723.44/sandbox/linux/services/credentials.cc -=================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/services/credentials.cc -+++ chromium-130.0.6723.44/sandbox/linux/services/credentials.cc +--- a/sandbox/linux/services/credentials.cc ++++ b/sandbox/linux/services/credentials.cc @@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() { int clone_flags = CLONE_FS | LINUX_SIGCHLD; @@ -65,11 +57,9 @@ Index: chromium-130.0.6723.44/sandbox/linux/services/credentials.cc + // configuration loading failures and no fonts will be displayed! clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; - char tls_buf[PTHREAD_STACK_MIN_CONST] = {0}; -Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -=================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc + char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; +--- a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc @@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && diff --git a/chromium-125-disable-FFmpegAllowLists.patch b/chromium-125-disable-FFmpegAllowLists.patch deleted file mode 100644 index e03688c..0000000 --- a/chromium-125-disable-FFmpegAllowLists.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-125.0.6422.41/media/base/media_switches.cc.disable-FFmpegAllowLists chromium-125.0.6422.41/media/base/media_switches.cc ---- chromium-125.0.6422.41/media/base/media_switches.cc.disable-FFmpegAllowLists 2024-05-12 21:28:43.694027396 +0200 -+++ chromium-125.0.6422.41/media/base/media_switches.cc 2024-05-12 21:32:48.155063623 +0200 -@@ -1753,7 +1753,7 @@ BASE_FEATURE(kUseWindowBoundsForPip, - // Enables FFmpeg allow lists for supported codecs / containers. - BASE_FEATURE(kFFmpegAllowLists, - "FFmpegAllowLists", -- base::FEATURE_ENABLED_BY_DEFAULT); -+ base::FEATURE_DISABLED_BY_DEFAULT); - - #if BUILDFLAG(IS_WIN) - // Enables audio offload when supported by endpoints. diff --git a/chromium-129-disable-H.264-video-parser-during-demuxing.patch b/chromium-129-disable-H.264-video-parser-during-demuxing.patch deleted file mode 100644 index 78f49fa..0000000 --- a/chromium-129-disable-H.264-video-parser-during-demuxing.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -up chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc.me chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc ---- chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc.me 2024-09-15 22:12:33.945186323 +0200 -+++ chromium-129.0.6668.42.old/media/filters/ffmpeg_glue.cc 2024-09-16 10:53:13.334970539 +0200 -@@ -17,14 +17,11 @@ - - namespace media { - --// Kill switches in case things explode. Remove after M132. -+// Kill switch in case things explode. Remove after M132. - // TODO(crbug.com/355485812): Re-enable this flag. - BASE_FEATURE(kAllowOnlyAudioCodecsDuringDemuxing, - "AllowOnlyAudioCodecsDuringDemuxing", - base::FEATURE_ENABLED_BY_DEFAULT); --BASE_FEATURE(kForbidH264ParsingDuringDemuxing, -- "ForbidH264ParsingDuringDemuxing", -- base::FEATURE_ENABLED_BY_DEFAULT); - - // Internal buffer size used by AVIO for reading. - // TODO(dalecurtis): Experiment with this buffer size and measure impact on -@@ -118,12 +115,6 @@ FFmpegGlue::FFmpegGlue(FFmpegURLProtocol - // Enable fast, but inaccurate seeks for MP3. - format_context_->flags |= AVFMT_FLAG_FAST_SEEK; - -- // We don't allow H.264 parsing during demuxing since we have our own parser -- // and the ffmpeg one increases memory usage unnecessarily. -- if (base::FeatureList::IsEnabled(kForbidH264ParsingDuringDemuxing)) { -- format_context_->flags |= AVFMT_FLAG_NOH264PARSE; -- } -- - // Ensures format parsing errors will bail out. From an audit on 11/2017, all - // instances were real failures. Solves bugs like http://crbug.com/710791. - format_context_->error_recognition |= AV_EF_EXPLODE; diff --git a/chromium-133-disable-H.264-video-parser-during-demuxing.patch b/chromium-133-disable-H.264-video-parser-during-demuxing.patch new file mode 100644 index 0000000..2456708 --- /dev/null +++ b/chromium-133-disable-H.264-video-parser-during-demuxing.patch @@ -0,0 +1,12 @@ +diff -up chromium-133.0.6943.53/media/filters/ffmpeg_glue.cc.me chromium-133.0.6943.53/media/filters/ffmpeg_glue.cc +--- chromium-133.0.6943.53/media/filters/ffmpeg_glue.cc.me 2025-02-05 13:28:17.782881439 +0100 ++++ chromium-133.0.6943.53/media/filters/ffmpeg_glue.cc 2025-02-05 13:33:15.256928027 +0100 +@@ -111,7 +111,7 @@ FFmpegGlue::FFmpegGlue(FFmpegURLProtocol + + // We don't allow H.264 parsing during demuxing since we have our own parser + // and the ffmpeg one increases memory usage unnecessarily. +- format_context_->flags |= AVFMT_FLAG_NOH264PARSE; ++ // format_context_->flags |= AVFMT_FLAG_NOH264PARSE; + + // Ensures format parsing errors will bail out. From an audit on 11/2017, all + // instances were real failures. Solves bugs like http://crbug.com/710791. diff --git a/chromium-129-el8-atk-compiler-error.patch b/chromium-133-el8-atk-compiler-error.patch similarity index 87% rename from chromium-129-el8-atk-compiler-error.patch rename to chromium-133-el8-atk-compiler-error.patch index 58e4cfb..627c0a6 100644 --- a/chromium-129-el8-atk-compiler-error.patch +++ b/chromium-133-el8-atk-compiler-error.patch @@ -1,6 +1,6 @@ -diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc.me chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc ---- chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc.me 2024-09-18 19:26:40.951100740 +0200 -+++ chromium-129.0.6668.58/content/browser/accessibility/accessibility_auralinux_browsertest.cc 2024-09-18 19:28:06.219700474 +0200 +diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc.el8-atk-compiler-error chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc +--- chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 ++++ chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc 2025-02-04 10:56:08.414126354 +0100 @@ -3,6 +3,7 @@ // found in the LICENSE file. @@ -9,7 +9,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura #include #include -@@ -547,6 +548,10 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -549,6 +550,10 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(div_element); } @@ -20,7 +20,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, TestCharacterExtentsWithInvalidArguments) { AtkText* atk_text = SetUpSampleParagraph(); -@@ -569,12 +574,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -571,12 +576,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(expect, width); EXPECT_EQ(expect, height); @@ -35,7 +35,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, &height, ATK_XY_WINDOW); -@@ -593,12 +600,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -595,12 +602,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(expect, width); EXPECT_EQ(expect, height); @@ -50,7 +50,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, &height, ATK_XY_WINDOW); -@@ -613,7 +622,9 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -615,7 +624,9 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AtkCoordType kCoordinateTypes[] = { ATK_XY_SCREEN, ATK_XY_WINDOW, @@ -60,7 +60,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura }; IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, -@@ -872,6 +883,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -874,6 +885,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura TestCharacterExtentsInScrollableInput(); } @@ -68,7 +68,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura typedef bool (*ScrollToPointFunc)(AtkComponent* component, AtkCoordType coords, gint x, -@@ -881,6 +893,18 @@ typedef bool (*ScrollToFunc)(AtkComponen +@@ -883,6 +895,18 @@ typedef bool (*ScrollToFunc)(AtkComponen // TODO(crbug.com/40866728): Enable this test. IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, DISABLED_TestScrollToPoint) { @@ -87,7 +87,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura LoadSampleParagraphInScrollableDocument(); AtkText* atk_text = GetSampleParagraph(); ASSERT_TRUE(ATK_IS_COMPONENT(atk_text)); -@@ -893,7 +917,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -895,7 +919,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter location_changed_waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kLocationChanged); @@ -96,7 +96,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_component_get_extents(atk_component, &x, &y, nullptr, nullptr, -@@ -902,20 +926,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -904,20 +928,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_GT(prev_y, y); constexpr int kScrollToY = 0; @@ -120,7 +120,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_component_get_extents(atk_component, nullptr, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -932,6 +956,17 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -934,6 +958,17 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura // TODO(crbug.com/40866728): Enable this test. IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, DISABLED_TestScrollTo) { @@ -138,7 +138,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura LoadInitialAccessibilityTreeFromHtml( R"HTML( -@@ -973,8 +1008,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -975,8 +1010,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kScrollPositionChanged); @@ -148,7 +148,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); int x, y; atk_component_get_extents(ATK_COMPONENT(target), &x, &y, nullptr, nullptr, -@@ -982,40 +1016,35 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -984,40 +1018,35 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(y, doc_y); EXPECT_NE(x, doc_x); @@ -194,7 +194,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); atk_component_get_extents(ATK_COMPONENT(target2), &x, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -1047,10 +1076,39 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1049,10 +1078,39 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(target2); g_object_unref(target3); } @@ -234,7 +234,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura LoadInitialAccessibilityTreeFromHtml( R"HTML( -@@ -1084,8 +1142,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1086,8 +1144,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kScrollPositionChanged); @@ -244,7 +244,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); int x, y; atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, -@@ -1093,40 +1150,37 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1095,40 +1152,37 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(y, doc_y); EXPECT_NE(x, doc_x); @@ -292,7 +292,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -1136,9 +1190,42 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1138,9 +1192,42 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(target1); } @@ -335,7 +335,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura LoadSampleParagraphInScrollableDocument(); AtkText* atk_text = GetSampleParagraph(); ASSERT_TRUE(ATK_IS_COMPONENT(atk_text)); -@@ -1151,7 +1238,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1153,7 +1240,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter location_changed_waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kLocationChanged); @@ -344,7 +344,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, -@@ -1160,22 +1247,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1162,22 +1249,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_GT(prev_y, y); constexpr int kScrollToY = 0; @@ -370,7 +370,7 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -1191,6 +1276,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1193,6 +1278,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(atk_text); } @@ -378,10 +378,10 @@ diff -up chromium-129.0.6668.58/content/browser/accessibility/accessibility_aura #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) // Flaky on crbug.com/1026149 -diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc.me chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc ---- chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc.me 2024-09-18 19:26:26.040821017 +0200 -+++ chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.cc 2024-09-18 19:28:06.220700493 +0200 -@@ -2,7 +2,6 @@ +diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc +--- chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 ++++ chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc 2025-02-04 10:56:08.424126602 +0100 +@@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -389,9 +389,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers -@@ -10,6 +9,7 @@ - - #include "ui/accessibility/platform/ax_platform_node_auralinux.h" + #endif +#include #include @@ -565,7 +563,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural } const GInterfaceInfo Info = {reinterpret_cast(Init), -@@ -1232,6 +1262,7 @@ gboolean AddSelection(AtkText* atk_text, +@@ -1310,6 +1340,7 @@ gboolean AddSelection(AtkText* atk_text, return SetSelection(atk_text, 0, start_offset, end_offset); } @@ -573,7 +571,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural char* GetStringAtOffset(AtkText* atk_text, int offset, AtkTextGranularity atk_granularity, -@@ -1246,7 +1277,9 @@ char* GetStringAtOffset(AtkText* atk_tex +@@ -1324,7 +1355,9 @@ char* GetStringAtOffset(AtkText* atk_tex return GetTextWithBoundaryType(atk_text, offset, boundary, start_offset, end_offset); } @@ -583,7 +581,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural gfx::Rect GetUnclippedParentHypertextRangeBoundsRect( AXPlatformNodeDelegate* ax_platform_node_delegate, const int start_offset, -@@ -1270,6 +1303,7 @@ gfx::Rect GetUnclippedParentHypertextRan +@@ -1348,6 +1381,7 @@ gfx::Rect GetUnclippedParentHypertextRan AXClippingBehavior::kClipped) .OffsetFromOrigin(); } @@ -591,7 +589,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural void GetCharacterExtents(AtkText* atk_text, int offset, -@@ -1285,10 +1319,12 @@ void GetCharacterExtents(AtkText* atk_te +@@ -1363,10 +1397,12 @@ void GetCharacterExtents(AtkText* atk_te AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(atk_text)); if (obj) { switch (coordinate_type) { @@ -604,7 +602,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural default: rect = obj->GetDelegate()->GetHypertextRangeBoundsRect( obj->UnicodeToUTF16OffsetInText(offset), -@@ -1324,10 +1360,12 @@ void GetRangeExtents(AtkText* atk_text, +@@ -1402,10 +1438,12 @@ void GetRangeExtents(AtkText* atk_text, AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(atk_text)); if (obj) { switch (coordinate_type) { @@ -617,7 +615,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural default: rect = obj->GetDelegate()->GetHypertextRangeBoundsRect( obj->UnicodeToUTF16OffsetInText(start_offset), -@@ -1377,6 +1415,7 @@ AtkAttributeSet* GetDefaultAttributes(At +@@ -1455,6 +1493,7 @@ AtkAttributeSet* GetDefaultAttributes(At return ToAtkAttributeSet(obj->GetDefaultTextAttributes()); } @@ -625,7 +623,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural gboolean ScrollSubstringTo(AtkText* atk_text, gint start_offset, gint end_offset, -@@ -1407,6 +1446,7 @@ gboolean ScrollSubstringToPoint(AtkText* +@@ -1485,6 +1524,7 @@ gboolean ScrollSubstringToPoint(AtkText* return obj->ScrollSubstringToPoint(start_offset, end_offset, atk_coord_type, x, y); } @@ -633,7 +631,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural void Init(AtkTextIface* iface) { iface->get_text = GetText; -@@ -1429,12 +1469,16 @@ void Init(AtkTextIface* iface) { +@@ -1507,12 +1547,16 @@ void Init(AtkTextIface* iface) { iface->get_run_attributes = GetRunAttributes; iface->get_default_attributes = GetDefaultAttributes; @@ -650,7 +648,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural } const GInterfaceInfo Info = {reinterpret_cast(Init), -@@ -1837,11 +1881,15 @@ const GInterfaceInfo Info = {reinterpret +@@ -1915,11 +1959,15 @@ const GInterfaceInfo Info = {reinterpret } // namespace atk_table @@ -667,7 +665,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural if (const AXPlatformNodeBase* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { -@@ -1853,8 +1901,10 @@ gint GetColumnSpan(AtkTableCell* cell) { +@@ -1931,8 +1979,10 @@ gint GetColumnSpan(AtkTableCell* cell) { } GPtrArray* GetColumnHeaderCells(AtkTableCell* cell) { @@ -679,7 +677,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural GPtrArray* array = g_ptr_array_new_with_free_func(g_object_unref); -@@ -1888,8 +1938,10 @@ GPtrArray* GetColumnHeaderCells(AtkTable +@@ -1966,8 +2016,10 @@ GPtrArray* GetColumnHeaderCells(AtkTable } gboolean GetCellPosition(AtkTableCell* cell, gint* row, gint* column) { @@ -691,7 +689,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { std::optional row_index = obj->GetTableRow(); -@@ -1906,8 +1958,9 @@ gboolean GetCellPosition(AtkTableCell* c +@@ -1984,8 +2036,9 @@ gboolean GetCellPosition(AtkTableCell* c } gint GetRowSpan(AtkTableCell* cell) { @@ -702,7 +700,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { // If the object is not a cell, we return 0. -@@ -1918,8 +1971,10 @@ gint GetRowSpan(AtkTableCell* cell) { +@@ -1996,8 +2049,10 @@ gint GetRowSpan(AtkTableCell* cell) { } GPtrArray* GetRowHeaderCells(AtkTableCell* cell) { @@ -714,7 +712,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural GPtrArray* array = g_ptr_array_new_with_free_func(g_object_unref); -@@ -1953,8 +2008,10 @@ GPtrArray* GetRowHeaderCells(AtkTableCel +@@ -2031,8 +2086,10 @@ GPtrArray* GetRowHeaderCells(AtkTableCel } AtkObject* GetTable(AtkTableCell* cell) { @@ -726,7 +724,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { if (auto* table = obj->GetTable()) -@@ -1980,6 +2037,8 @@ const GInterfaceInfo Info = {reinterpret +@@ -2058,6 +2115,8 @@ const GInterfaceInfo Info = {reinterpret } // namespace atk_table_cell @@ -735,7 +733,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural namespace atk_object { gpointer kAXPlatformNodeAuraLinuxParentClass = nullptr; -@@ -2246,6 +2305,50 @@ void Detach(AXPlatformNodeAuraLinuxObjec +@@ -2324,6 +2383,50 @@ void Detach(AXPlatformNodeAuraLinuxObjec } // namespace @@ -786,7 +784,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural void AXPlatformNodeAuraLinux::EnsureGTypeInit() { #if !GLIB_CHECK_VERSION(2, 36, 0) static bool first_time = true; -@@ -2353,8 +2456,11 @@ GType AXPlatformNodeAuraLinux::GetAccess +@@ -2431,8 +2534,11 @@ GType AXPlatformNodeAuraLinux::GetAccess g_type_add_interface_static(type, ATK_TYPE_TABLE, &atk_table::Info); if (interface_mask_.Implements(ImplementedAtkInterfaces::Value::kTableCell)) { @@ -800,7 +798,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural } return type; -@@ -2584,9 +2690,9 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkR +@@ -2667,9 +2773,9 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkR case ax::mojom::Role::kComplementary: return ATK_ROLE_LANDMARK; case ax::mojom::Role::kContentDeletion: @@ -812,7 +810,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural case ax::mojom::Role::kContentInfo: case ax::mojom::Role::kFooter: return ATK_ROLE_LANDMARK; -@@ -3020,12 +3126,14 @@ void AXPlatformNodeAuraLinux::GetAtkStat +@@ -3105,12 +3211,14 @@ void AXPlatformNodeAuraLinux::GetAtkStat static_cast(ax::mojom::AriaCurrentState::kFalse)) { atk_state_set_add_state(atk_state_set, ATK_STATE_ACTIVE); } @@ -827,7 +825,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural if (GetBoolAttribute(ax::mojom::BoolAttribute::kBusy)) atk_state_set_add_state(atk_state_set, ATK_STATE_BUSY); if (GetBoolAttribute(ax::mojom::BoolAttribute::kModal)) -@@ -3064,9 +3172,11 @@ void AXPlatformNodeAuraLinux::GetAtkStat +@@ -3149,9 +3257,11 @@ void AXPlatformNodeAuraLinux::GetAtkStat if (GetData().GetRestriction() != ax::mojom::Restriction::kDisabled) { if (GetDelegate()->IsReadOnlySupported() && GetDelegate()->IsReadOnlyOrDisabled()) { @@ -839,7 +837,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural } else { atk_state_set_add_state(atk_state_set, ATK_STATE_ENABLED); atk_state_set_add_state(atk_state_set, ATK_STATE_SENSITIVE); -@@ -3100,12 +3210,16 @@ struct AtkIntListRelation { +@@ -3185,12 +3295,16 @@ struct AtkIntListRelation { static AtkIntListRelation kIntListRelations[] = { {ax::mojom::IntListAttribute::kControlsIds, ATK_RELATION_CONTROLLER_FOR, ATK_RELATION_CONTROLLED_BY}, @@ -856,7 +854,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural {ax::mojom::IntListAttribute::kFlowtoIds, ATK_RELATION_FLOWS_TO, ATK_RELATION_FLOWS_FROM}, {ax::mojom::IntListAttribute::kLabelledbyIds, ATK_RELATION_LABELLED_BY, -@@ -3884,6 +3998,7 @@ void AXPlatformNodeAuraLinux::OnReadonly +@@ -3981,6 +4095,7 @@ void AXPlatformNodeAuraLinux::OnReadonly if (!obj) return; @@ -864,7 +862,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural // Runtime check in case we were compiled with a newer version of ATK. if (!PlatformSupportsState(ATK_STATE_READ_ONLY)) return; -@@ -3891,6 +4006,7 @@ void AXPlatformNodeAuraLinux::OnReadonly +@@ -3988,6 +4103,7 @@ void AXPlatformNodeAuraLinux::OnReadonly atk_object_notify_state_change( obj, ATK_STATE_READ_ONLY, GetData().GetRestriction() == ax::mojom::Restriction::kReadOnly); @@ -872,7 +870,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural } void AXPlatformNodeAuraLinux::OnInvalidStatusChanged() { -@@ -4217,11 +4333,13 @@ gfx::Rect AXPlatformNodeAuraLinux::GetEx +@@ -4314,11 +4430,13 @@ gfx::Rect AXPlatformNodeAuraLinux::GetEx extents.Offset(window_origin); break; } @@ -886,7 +884,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural } return extents; -@@ -4651,6 +4769,7 @@ bool AXPlatformNodeAuraLinux::IsInLiveRe +@@ -4755,6 +4873,7 @@ bool AXPlatformNodeAuraLinux::IsInLiveRe return HasStringAttribute(ax::mojom::StringAttribute::kContainerLiveStatus); } @@ -894,7 +892,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural void AXPlatformNodeAuraLinux::ScrollToPoint(AtkCoordType atk_coord_type, int x, int y) { -@@ -4723,7 +4842,9 @@ void AXPlatformNodeAuraLinux::ScrollNode +@@ -4827,7 +4946,9 @@ void AXPlatformNodeAuraLinux::ScrollNode rect -= rect.OffsetFromOrigin(); ScrollNodeRectIntoView(rect, atk_scroll_type); } @@ -904,7 +902,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural std::optional AXPlatformNodeAuraLinux::GetUnclippedHypertextRangeBoundsRect(int start_offset, int end_offset) { -@@ -4782,6 +4903,7 @@ bool AXPlatformNodeAuraLinux::ScrollSubs +@@ -4886,6 +5007,7 @@ bool AXPlatformNodeAuraLinux::ScrollSubs return true; } @@ -912,7 +910,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural void AXPlatformNodeAuraLinux::ComputeStylesIfNeeded() { if (!offset_to_text_attributes_.empty()) -@@ -4964,8 +5086,10 @@ gfx::Point AXPlatformNodeAuraLinux::Conv +@@ -5066,8 +5188,10 @@ gfx::Point AXPlatformNodeAuraLinux::Conv switch (atk_coord_type) { case ATK_XY_WINDOW: return point + GetParentFrameOriginInScreenCoordinates(); @@ -923,9 +921,9 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural case ATK_XY_SCREEN: default: return point; -diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h.me chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h ---- chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h.me 2024-09-18 19:26:54.167348688 +0200 -+++ chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux.h 2024-09-18 19:28:06.220700493 +0200 +diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h +--- chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 ++++ chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h 2025-02-04 10:56:08.439126973 +0100 @@ -52,6 +52,31 @@ struct FindInPageResultInfo { } }; @@ -958,18 +956,18 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural // This class with an enum is used to generate a bitmask which tracks the ATK // interfaces that an AXPlatformNodeAuraLinux's ATKObject implements. class ImplementedAtkInterfaces { -diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.me chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc ---- chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.me 2024-09-18 19:27:10.728659400 +0200 -+++ chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc 2024-09-18 19:28:06.221700512 +0200 -@@ -8,6 +8,7 @@ - #endif +diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc +--- chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 ++++ chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc 2025-02-04 12:06:15.819918562 +0100 +@@ -11,6 +11,7 @@ #include + +#include + #include #include #include - -@@ -884,6 +885,17 @@ typedef bool (*ScrollToPointFunc)(AtkCom +@@ -887,6 +888,17 @@ typedef bool (*ScrollToPointFunc)(AtkCom typedef bool (*ScrollToFunc)(AtkComponent* component, AtkScrollType type); TEST_F(AXPlatformNodeAuraLinuxTest, AtkComponentScrollToPoint) { @@ -987,7 +985,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural AXNodeData root; root.id = 1; root.role = ax::mojom::Role::kRootWebArea; -@@ -911,8 +923,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC +@@ -914,8 +926,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC EXPECT_EQ(10, width); EXPECT_EQ(10, height); @@ -997,7 +995,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, &height, ATK_XY_SCREEN); EXPECT_EQ(610, x_left); -@@ -920,8 +931,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC +@@ -923,8 +934,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC EXPECT_EQ(10, width); EXPECT_EQ(10, height); @@ -1007,7 +1005,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, &height, ATK_XY_SCREEN); // The test wrapper scrolls every element when scrolling, so this should be -@@ -938,6 +948,17 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC +@@ -941,6 +951,17 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC } TEST_F(AXPlatformNodeAuraLinuxTest, AtkComponentScrollTo) { @@ -1025,7 +1023,7 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural AXNodeData root; root.id = 1; root.role = ax::mojom::Role::kRootWebArea; -@@ -965,7 +986,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC +@@ -968,7 +989,7 @@ TEST_F(AXPlatformNodeAuraLinuxTest, AtkC EXPECT_EQ(10, width); EXPECT_EQ(10, height); @@ -1034,9 +1032,9 @@ diff -up chromium-129.0.6668.58/ui/accessibility/platform/ax_platform_node_aural atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, &height, ATK_XY_SCREEN); EXPECT_EQ(0, x_left); -diff -up chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.me chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc ---- chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.me 2024-09-18 19:27:20.965851455 +0200 -+++ chromium-129.0.6668.58/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc 2024-09-18 19:28:06.221700512 +0200 +diff -up chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc +--- chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 ++++ chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc 2025-02-04 10:56:08.464127592 +0100 @@ -474,18 +474,34 @@ void AXTreeFormatterAuraLinux::AddTableC int row = 0, col = 0, row_span = 0, col_span = 0; int n_row_headers = 0, n_column_headers = 0; diff --git a/chromium.spec b/chromium.spec index f1cfccf..7bf0d8d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -152,7 +152,7 @@ # enable|disable use_custom_libcxx %global use_custom_libcxx 0 -%if 0%{?rhel} || 0%{?fedora} == 39 +%if 0%{?rhel} || 0%{?fedora} == 40 %global use_custom_libcxx 1 %endif @@ -197,6 +197,7 @@ %global bundlelibdrm 1 %global bundlefontconfig 1 %global bundleffmpegfree 1 +%global bundlehighway 1 # openjpeg2, need to update to 2.5.x %global bundlelibopenjpeg2 1 %global bundlelibtiff 1 @@ -206,18 +207,11 @@ %global bundleflac 0 %global bundledoubleconversion 0 %global bundlelibXNVCtrl 0 -%global bundlehighway 0 %global bundlelibusbx 0 -%global bundlelibevent 0 %global bundlelibsecret 0 %global bundleopus 0 %global bundlelcms2 0 -# workaround for build error on aarch64 -%ifarch aarch64 -%global bundlehighway 1 -%endif - # workaround for build error # disable bundleminizip for Fedora > 39 due to switch to minizip-ng # disable bundleminizip for epel and Fedora39 due to old minizip version @@ -282,7 +276,7 @@ %endif Name: chromium%{chromium_channel} -Version: 132.0.6834.159 +Version: 133.0.6943.53 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -322,10 +316,8 @@ Patch131: chromium-107-proprietary-codecs.patch Patch132: chromium-118-sigtrap_system_ffmpeg.patch # need for old ffmpeg 6.0/5.x on epel9 and fedora < 40 Patch133: chromium-121-system-old-ffmpeg.patch -# disable FFmpegAllowLists by default to allow external ffmpeg -patch134: chromium-125-disable-FFmpegAllowLists.patch # revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' -Patch135: chromium-129-disable-H.264-video-parser-during-demuxing.patch +Patch135: chromium-133-disable-H.264-video-parser-during-demuxing.patch # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch @@ -343,7 +335,7 @@ Patch305: chromium-124-el8-arm64-memory_tagging.patch Patch306: chromium-127-el8-ifunc-header.patch # workaround for build error due to old atk version on el8 -Patch307: chromium-129-el8-atk-compiler-error.patch +Patch307: chromium-133-el8-atk-compiler-error.patch Patch308: chromium-132-el8-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch Patch310: chromium-132-el8-clang18-build-error.patch @@ -408,6 +400,7 @@ Patch385: 0002-Include-cstddef-to-fix-build.patch Patch386: 0004-third_party-crashpad-port-curl-transport-ppc64.patch Patch387: HACK-third_party-libvpx-use-generic-gnu.patch +Patch388: 0001-third-party-hwy-wrong-include.patch Patch389: HACK-debian-clang-disable-base-musttail.patch Patch390: 0001-Add-ppc64-target-to-libaom.patch @@ -678,9 +671,6 @@ BuildRequires: libXNVCtrl-devel BuildRequires: git-core BuildRequires: hwdata BuildRequires: kernel-headers -%if ! %{bundlelibevent} -BuildRequires: libevent-devel -%endif BuildRequires: libffi-devel %if ! %{bundleicu} @@ -864,7 +854,6 @@ Provides: bundled(libaddressinput) = 0 Provides: bundled(libdrm) = 2.4.85 %endif -Provides: bundled(libevent) = 1.4.15 Provides: bundled(libjingle) = 9564 %if %{bundlelibjpeg} @@ -1038,7 +1027,6 @@ Qt6 UI for chromium. %patch -P131 -p1 -b .prop-codecs %patch -P132 -p1 -b .sigtrap_system_ffmpeg %patch -P133 -p1 -b .system-old-ffmpeg -%patch -P134 -p1 -b .disable-FFmpegAllowLists %patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing %endif @@ -1117,6 +1105,7 @@ Qt6 UI for chromium. %patch -P385 -p1 -b .0002-Include-cstddef-to-fix-build %patch -P386 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 %patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu +%patch -P388 -p1 -b .0001-third-party-hwy-wrong-include.patch %patch -P389 -p1 -b .HACK-debian-clang-disable-base-musttail %patch -P390 -p1 -b .0001-Add-ppc64-target-to-libaom %patch -P391 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 @@ -1466,9 +1455,6 @@ system_libs=() %if ! %{bundlelibdrm} system_libs+=(libdrm) %endif -%if ! %{bundlelibevent} - system_libs+=(libevent) -%endif %if ! %{bundlelibjpeg} system_libs+=(libjpeg) %endif @@ -1942,6 +1928,12 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Tue Feb 04 2025 Than Ngo - 133.0.6943.53-1 +- Update to 133.0.6943.53 + * CVE-2025-0444: Use after free in Skia + * CVE-2025-0445: Use after free in V8 + * CVE-2025-0451: Inappropriate implementation in Extensions API + * Wed Jan 29 2025 Than Ngo - 132.0.6834.159-1 - Updated to 132.0.6834.159 * Medium CVE-2025-0762: Use after free in DevTools diff --git a/clean_ffmpeg.sh b/clean_ffmpeg.sh index f26b2fe..8b323d5 100755 --- a/clean_ffmpeg.sh +++ b/clean_ffmpeg.sh @@ -183,6 +183,7 @@ header_files=" libavcodec/x86/inline_asm.h \ libavformat/iamf_parse.h \ libavformat/iamf_reader.h \ libavformat/iamf.h \ + libavformat/dvdclut.h \ libavutil/aarch64/cpu.h \ libavutil/aarch64/intreadwrite.h \ libavutil/x86/asm.h \ @@ -271,6 +272,7 @@ manual_files=" libavcodec/aarch64/h264pred_neon.S \ libavformat/pcm.c \ libavformat/utils.c \ libavformat/version.c \ + libavformat/dvdclut.c \ libavutil/aarch64/asm.S \ libavutil/aarch64/cpu.c \ libavutil/aarch64/cpu_sve.S \ diff --git a/sources b/sources index c1933a7..dd44a7a 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-132.0.6834.159-clean.tar.xz) = 8149f5eb9d73cb3782dcc925ac85d3f63693767d8c82a7ad235e3f9416c95a9b262fa464cd4e34ddcfc002163a737e72e161cb0b407540fe9ac92b515755038e +SHA512 (chromium-133.0.6943.53-clean.tar.xz) = 0ae9f0e38993eb87b3fdfe5170e4db8e962e257c5b36eb88f1c4ced32424da9ffec08d69b746cb29b92b8de137e9bca96d621faad511f220c59171680eed3044 From 36e349916c9948fc7afb9bff8e1ed6c3d6848006 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 9 Feb 2025 23:48:31 +0100 Subject: [PATCH 092/244] - Fix youtube stop working - Fix build errors - Remove build_remoting, build_clear_key_cdm, policy_templates --- chrome-remote-desktop@.service | 14 -- ...3-workaround-system-ffmpeg-whitelist.patch | 21 +++ chromium-browser.appdata.xml | 36 ++++ chromium-browser.xml | 8 +- chromium.spec | 170 +----------------- 5 files changed, 68 insertions(+), 181 deletions(-) delete mode 100644 chrome-remote-desktop@.service create mode 100644 chromium-133-workaround-system-ffmpeg-whitelist.patch create mode 100644 chromium-browser.appdata.xml diff --git a/chrome-remote-desktop@.service b/chrome-remote-desktop@.service deleted file mode 100644 index 4b5b1fc..0000000 --- a/chrome-remote-desktop@.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description="Chrome Remote Desktop host daemon" - -[Service] -User=%i -Environment=HOME=%h -ExecStart=@@CRD_PATH@@/chrome-remote-desktop --start --foreground -ExecStop=@@CRD_PATH@@/chrome-remote-desktop --stop -ExecReload=@@CRD_PATH@@/chrome-remote-desktop --reload -Restart=always -TimeoutStopSec=10 - -[Install] -WantedBy=multi-user.target diff --git a/chromium-133-workaround-system-ffmpeg-whitelist.patch b/chromium-133-workaround-system-ffmpeg-whitelist.patch new file mode 100644 index 0000000..e873023 --- /dev/null +++ b/chromium-133-workaround-system-ffmpeg-whitelist.patch @@ -0,0 +1,21 @@ +diff -up chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc.me chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc +--- chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc.me 2025-02-09 19:57:35.117198035 +0100 ++++ chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc 2025-02-09 22:57:26.429570196 +0100 +@@ -76,6 +76,8 @@ const char* GetAllowedVideoDecoders() { + void ApplyCodecContextSecuritySettings(AVCodecContext* codec_context) { + // Future versions of ffmpeg may copy the allow list from the format + // context. ++// Workaround for codec whitelist with system ffmpeg ++#if 0 + if (!codec_context->codec_whitelist) { + // Note: FFmpeg will try to free this string, so we must duplicate it. + codec_context->codec_whitelist = +@@ -83,7 +85,7 @@ void ApplyCodecContextSecuritySettings(A + ? GetAllowedAudioDecoders() + : GetAllowedVideoDecoders()); + } +- ++#endif + // Note: This is security sensitive. FFmpeg may not always continue safely + // in the presence of errors. See https://crbug.com/379418979 + if (base::FeatureList::IsEnabled(kStrictFFmpegCodecs)) { diff --git a/chromium-browser.appdata.xml b/chromium-browser.appdata.xml new file mode 100644 index 0000000..e46c262 --- /dev/null +++ b/chromium-browser.appdata.xml @@ -0,0 +1,36 @@ + + + + chromium-browser.desktop + chromium-dev@chromium.org + CC0-1.0 + BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0) + Chromium Web Browser + The web browser from Chromium project + +

+ Chromium is an open-source browser project that aims to build a safer, faster, + and more stable way to experience the web. +

+

+ We invite you to join our effort to build a powerful platform for developing a + new generation of web applications. +

+

+ Chromium supports Vorbis, Theora, WebM and HTML5 audio and video standards, but + does not include the non-free AAC, H.264, MP3 or Adobe Flash code that is found + in Chrome. +

+
+ https://www.chromium.org/Home + + + https://www.gstatic.com/chrome/appstream/chrome-2.png + + + + + The Chromium Authors + https://www.chromium.org/for-testers/bug-reporting-guidelines + https://chromium.googlesource.com/chromium/src/+/main/docs/linux/debugging.md +
diff --git a/chromium-browser.xml b/chromium-browser.xml index 159e05c..3ee1e43 100644 --- a/chromium-browser.xml +++ b/chromium-browser.xml @@ -8,11 +8,9 @@ /usr/bin/chromium-browser %s chromium-browser false - false - + true + /usr/bin/chromium-browser %s + /usr/bin/chromium-browser --new-window %s diff --git a/chromium.spec b/chromium.spec index 7bf0d8d..fc2691a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -50,9 +50,6 @@ %global build_headless 0 %endif -# enable|disable chrome-remote-desktop build -%global build_remoting 0 - # set nodejs_version %global nodejs_version v20.6.1 @@ -104,8 +101,6 @@ %endif %endif -%global build_clear_key_cdm 0 - # Disabled because of Google, starting with Chromium 88. %global userestrictedapikeys 0 @@ -318,6 +313,8 @@ Patch132: chromium-118-sigtrap_system_ffmpeg.patch Patch133: chromium-121-system-old-ffmpeg.patch # revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' Patch135: chromium-133-disable-H.264-video-parser-during-demuxing.patch +# Workaround for youtube stop working +Patch136: chromium-133-workaround-system-ffmpeg-whitelist.patch # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch @@ -465,7 +462,7 @@ Source7: get_free_ffmpeg_source_files.py Source8: get_linux_tests_names.py # GNOME stuff Source9: chromium-browser.xml -Source10: chrome-remote-desktop@.service +Source10: chromium-browser.appdata.xml Source11: master_preferences %if ! %{system_nodejs} @@ -933,32 +930,9 @@ Chromium is an open-source web browser, powered by WebKit (Blink). %package common Summary: Files needed for both the headless_shell and full Chromium -# -common doesn't have chrome-remote-desktop bits -# but we need to clean it up if it gets disabled again -# NOTE: Check obsoletes version to be sure it matches -%if ! %{build_remoting} -Provides: chrome-remote-desktop = %{version}-%{release} -Obsoletes: chrome-remote-desktop <= 81.0.4044.138 -%endif - %description common %{summary}. -%if %{build_remoting} -%package -n chrome-remote-desktop -Requires(pre): shadow-utils -Requires(post): systemd -Requires(preun): systemd -Requires(postun): systemd -Requires: xorg-x11-server-Xvfb -Requires: python3-psutil -Requires: chromium-common%{_isa} = %{version}-%{release} -Summary: Remote desktop support for google-chrome & chromium - -%description -n chrome-remote-desktop -Remote desktop support for google-chrome & chromium. -%endif - %package -n chromedriver Summary: WebDriver for Google Chrome/Chromium Requires: chromium-common%{_isa} = %{version}-%{release} @@ -1028,6 +1002,7 @@ Qt6 UI for chromium. %patch -P132 -p1 -b .sigtrap_system_ffmpeg %patch -P133 -p1 -b .system-old-ffmpeg %patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing +%patch -P136 -p1 -b .workaround-system-ffmpeg-whitelist %endif %if 0%{?rhel} == 8 || 0%{?rhel} == 9 @@ -1073,6 +1048,7 @@ Qt6 UI for chromium. %endif %patch -P355 -p1 -b .hardware_destructive_interference_size + %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le @@ -1530,10 +1506,6 @@ mkdir -p %{chromebuilddir} && cp -a $(which gn) %{chromebuilddir}/ %{chromebuilddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_HEADLESS_GN_DEFINES" %{headlessbuilddir} %endif -%if %{build_remoting} -%{chromebuilddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{remotingbuilddir} -%endif - %if %{build_headless} # Do headless first. %build_target %{headlessbuilddir} headless_shell @@ -1546,16 +1518,6 @@ mkdir -p %{chromebuilddir} && cp -a $(which gn) %{chromebuilddir}/ %build_target %{chromebuilddir} chromedriver %endif -%if %{build_clear_key_cdm} -%build_target %{chromebuilddir} clear_key_cdm -%endif - -%build_target %{chromebuilddir} policy_templates - -%if %{build_remoting} -%build_target %{remotingbuilddir} remoting_all -%endif - %install rm -rf %{buildroot} @@ -1624,78 +1586,14 @@ pushd %{chromebuilddir} cp -a libqt6_shim.so %{buildroot}%{chromium_path} %endif - %if %{build_clear_key_cdm} - %ifarch x86_64 - cp -a ClearKeyCdm/_platform_specific/linux_x64/libclearkeycdm.so %{buildroot}%{chromium_path} - %endif - %ifarch aarch64 - cp -a ClearKeyCdm/_platform_specific/linux_arm64/libclearkeycdm.so %{buildroot}%{chromium_path} - %endif - %ifarch ppc64le - cp -a ClearKeyCdm/_platform_specific/linux_ppc64/libclearkeycdm.so %{buildroot}%{chromium_path} - %endif - %endif - %if %{build_chromedriver} # chromedriver cp -a chromedriver %{buildroot}%{chromium_path}/chromedriver ln -s ../..%{chromium_path}/chromedriver %{buildroot}%{_bindir}/chromedriver %endif - %if %{build_remoting} - # Remote desktop bits - mkdir -p %{buildroot}%{crd_path} - %endif popd -%if %{build_remoting} - pushd %{remotingbuilddir} - # Hey, there is a library now. - cp -a libremoting_core.so %{buildroot}%{crd_path}/ - - # See remoting/host/installer/linux/Makefile for logic - mkdir -p %{buildroot}%{crd_path}/remoting_locales - cp -a remoting_native_messaging_host %{buildroot}%{crd_path}/native-messaging-host - cp -a remote_assistance_host %{buildroot}%{crd_path}/remote-assistance-host - cp -a remoting_locales/*.pak %{buildroot}%{crd_path}/remoting_locales/ - cp -a remoting_me2me_host %{buildroot}%{crd_path}/chrome-remote-desktop-host - cp -a remoting_start_host %{buildroot}%{crd_path}/start-host - cp -a remoting_user_session %{buildroot}%{crd_path}/user-session - chmod +s %{buildroot}%{crd_path}/user-session - - # chromium - mkdir -p %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts - # google-chrome - mkdir -p %{buildroot}%{_sysconfdir}/opt/chrome/ - cp -a remoting/* %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts/ - for i in %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts/*.json; do - sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' $i - done - mkdir -p %{buildroot}%{_sysconfdir}/opt/chrome/native-messaging-hosts - pushd %{buildroot}%{_sysconfdir}/opt/chrome/native-messaging-hosts - for i in ../../../chromium/native-messaging-hosts/*; do - # rpm gets unhappy when we symlink here - cp -a $i . - done - popd - popd - - mkdir -p %{buildroot}/var/lib/chrome-remote-desktop - touch %{buildroot}/var/lib/chrome-remote-desktop/hashes - - mkdir -p %{buildroot}%{_sysconfdir}/pam.d/ - pushd %{buildroot}%{_sysconfdir}/pam.d/ - ln -s system-auth chrome-remote-desktop - popd - - cp -a remoting/host/linux/linux_me2me_host.py %{buildroot}%{crd_path}/chrome-remote-desktop - cp -a remoting/host/installer/linux/is-remoting-session %{buildroot}%{crd_path}/ - - mkdir -p %{buildroot}%{_unitdir} - cp -a %{SOURCE10} %{buildroot}%{_unitdir}/ - sed -i 's|@@CRD_PATH@@|%{crd_path}|g' %{buildroot}%{_unitdir}/chrome-remote-desktop@.service -%endif - %if %{build_headless} pushd %{headlessbuilddir} cp -a *.pak headless_shell %{buildroot}%{chromium_path} @@ -1715,9 +1613,6 @@ popd mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/managed mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/recommended -cp -a out/Release/gen/chrome/app/policy/common/html/en-US/*.html . -cp -a out/Release/gen/chrome/app/policy/linux/examples/chrome.json . - mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps cp -a chrome/app/theme/chromium/product_logo_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{chromium_browser_channel}.png mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps @@ -1735,9 +1630,8 @@ install -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/%{name}/ mkdir -p %{buildroot}%{_datadir}/applications/ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4} -install -D -m0644 chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml \ - ${RPM_BUILD_ROOT}%{_datadir}/metainfo/%{chromium_browser_channel}.appdata.xml -appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/metainfo/%{chromium_browser_channel}.appdata.xml +install -D -m0644 %{SOURCE10} ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{chromium_browser_channel}.appdata.xml +appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{chromium_browser_channel}.appdata.xml mkdir -p %{buildroot}%{_datadir}/gnome-control-center/default-apps/ cp -a %{SOURCE9} %{buildroot}%{_datadir}/gnome-control-center/default-apps/ @@ -1757,39 +1651,12 @@ if selinuxenabled; then fi %endif -%if %{build_remoting} -%pretrans -n chrome-remote-desktop -p -path = "/etc/opt/chrome/native-messaging-hosts" -st = posix.stat(path) -if st and st.type == "link" then - os.remove(path) -end -%endif - -%if %{build_remoting} -%pre -n chrome-remote-desktop -getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-desktop - -%post -n chrome-remote-desktop -%systemd_post chrome-remote-desktop@.service - -%preun -n chrome-remote-desktop -%systemd_preun chrome-remote-desktop@.service - -%postun -n chrome-remote-desktop -%systemd_postun_with_restart chrome-remote-desktop@.service -%endif - %files %doc AUTHORS README.fedora -%doc chrome_policy_list.html *.json %license LICENSE %config(noreplace) %{_sysconfdir}/%{name}/chromium.conf %config %{_sysconfdir}/%{name}/master_preferences %config %{_sysconfdir}/%{name}/policies/ -%if %{build_remoting} -%exclude %{_sysconfdir}/%{name}/native-messaging-hosts/* -%endif %{_bindir}/%{chromium_browser_channel} %{chromium_path}/*.bin %{chromium_path}/chrome_*.pak @@ -1801,7 +1668,7 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %{_mandir}/man1/%{chromium_browser_channel}.* %{_datadir}/icons/hicolor/*/apps/%{chromium_browser_channel}.png %{_datadir}/applications/*.desktop -%{_datadir}/metainfo/*.appdata.xml +%{_datadir}/appdata/*.appdata.xml %{_datadir}/gnome-control-center/default-apps/chromium-browser.xml %if %{use_qt} @@ -1815,9 +1682,6 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %files common -%if %{build_clear_key_cdm} -%{chromium_path}/libclearkeycdm.so -%endif %ifarch x86_64 aarch64 ppc64le %{chromium_path}/libvk_swiftshader.so* %{chromium_path}/libvulkan.so* @@ -1901,24 +1765,6 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %{chromium_path}/headless_*.pak %endif -%if %{build_remoting} -%files -n chrome-remote-desktop -%{crd_path}/chrome-remote-desktop -%{crd_path}/chrome-remote-desktop-host -%{crd_path}/is-remoting-session -%{crd_path}/libremoting_core.so* -%{crd_path}/native-messaging-host -%{crd_path}/remote-assistance-host -%{_sysconfdir}/pam.d/chrome-remote-desktop -%{_sysconfdir}/chromium/native-messaging-hosts/* -%{_sysconfdir}/opt/chrome/ -%{crd_path}/remoting_locales/ -%{crd_path}/start-host -%{crd_path}/user-session -%{_unitdir}/chrome-remote-desktop@.service -/var/lib/chrome-remote-desktop/ -%endif - %if %{build_chromedriver} %files -n chromedriver %doc AUTHORS From 07ebb27a114dd539247ae4bf6a1514d4ddd5c53a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 10 Feb 2025 14:30:40 +0100 Subject: [PATCH 093/244] Fix build error due to old clang18 in el 8/9 and f40 --- chromium-133-clang18-template.patch | 12 ++++++++++++ chromium.spec | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 chromium-133-clang18-template.patch diff --git a/chromium-133-clang18-template.patch b/chromium-133-clang18-template.patch new file mode 100644 index 0000000..f95aa57 --- /dev/null +++ b/chromium-133-clang18-template.patch @@ -0,0 +1,12 @@ +diff -up chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc.me chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc +--- chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc.me 2025-02-10 14:16:34.810693753 +0100 ++++ chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc 2025-02-10 14:16:39.747791800 +0100 +@@ -543,7 +543,7 @@ void ComposeSession::RequestWithSession( + // execution in case request fails. + compose::LogComposeRequestReason(request_reason); + +- optimization_guide::ModelExecutionSessionCallbackWithLogging callback = ++ optimization_guide::ModelExecutionSessionCallbackWithLogging callback = + base::BindRepeating(&ComposeSession::ModelExecutionCallback, + weak_ptr_factory_.GetWeakPtr(), + std::move(request_timer), request_id_, request_reason, diff --git a/chromium.spec b/chromium.spec index fc2691a..893d6eb 100644 --- a/chromium.spec +++ b/chromium.spec @@ -333,9 +333,11 @@ Patch306: chromium-127-el8-ifunc-header.patch # workaround for build error due to old atk version on el8 Patch307: chromium-133-el8-atk-compiler-error.patch +# Fix build errors due to old clang18 in el 8/9 and f40 Patch308: chromium-132-el8-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch Patch310: chromium-132-el8-clang18-build-error.patch +Patch311: chromium-133-clang18-template.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -1029,6 +1031,7 @@ Qt6 UI for chromium. %patch -P308 -p1 -b .el8-unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error +%patch -P311 -p1 -b .clang18-template %endif %patch -P312 -p1 -b .fstack-protector-strong From 94d242b6a5f2565c9911af7487e738548d27942a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 11 Feb 2025 00:30:29 +0100 Subject: [PATCH 094/244] Fix build error on el 8/9 - use of unstable library feature stdarch_arm_crc32 --- chromium-133-rust-crc32fast.patch | 11 +++++++++++ chromium.spec | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 chromium-133-rust-crc32fast.patch diff --git a/chromium-133-rust-crc32fast.patch b/chromium-133-rust-crc32fast.patch new file mode 100644 index 0000000..838a53b --- /dev/null +++ b/chromium-133-rust-crc32fast.patch @@ -0,0 +1,11 @@ +diff -up chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn.me chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn +--- chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn.me 2025-02-11 00:13:06.132152874 +0100 ++++ chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn 2025-02-11 00:28:22.785233997 +0100 +@@ -41,7 +41,6 @@ cargo_crate("lib") { + proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ] + deps = [ "//third_party/rust/cfg_if/v1:lib" ] + features = [ +- "nightly", + "std", + ] + rustflags = [ diff --git a/chromium.spec b/chromium.spec index 893d6eb..30f6ee1 100644 --- a/chromium.spec +++ b/chromium.spec @@ -341,6 +341,8 @@ Patch311: chromium-133-clang18-template.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch +# build error stdarch_arm_crc32 +Patch313: chromium-133-rust-crc32fast.patch # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch @@ -1036,6 +1038,12 @@ Qt6 UI for chromium. %patch -P312 -p1 -b .fstack-protector-strong +%ifarch aarch64 +%if 0%{?rhel} == 8 || 0%{?rhel} == 9 +%patch -P313 -p1 -b .rust-crc32fast.patch +%endif +%endif + %patch -P316 -p1 -b .clang-build-flags %if %{disable_bti} From dd44f0abc6bba0df70af53b5a7a7f898d38e396c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 11 Feb 2025 20:50:45 +0100 Subject: [PATCH 095/244] Set clang_base_path correctly for f43 and later --- chromium.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chromium.spec b/chromium.spec index 30f6ee1..9bcf736 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1244,7 +1244,11 @@ rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" +%if 0%{?fedora} > 42 +clang_base_path="/usr" +%else clang_base_path="$(clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')" +%endif # Core defines are flags that are true for both the browser and headless. CHROMIUM_CORE_GN_DEFINES="" From ed617fb21218a3fa4be7a5b70f426426edf53912 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 12 Feb 2025 20:35:07 +0100 Subject: [PATCH 096/244] Fix build error with new pipewire in f43 --- chromium-133-pipewire-cast.patch | 21 +++++++++++++++++++++ chromium.spec | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 chromium-133-pipewire-cast.patch diff --git a/chromium-133-pipewire-cast.patch b/chromium-133-pipewire-cast.patch new file mode 100644 index 0000000..670cb70 --- /dev/null +++ b/chromium-133-pipewire-cast.patch @@ -0,0 +1,21 @@ +diff -up chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.me chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc +--- chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.me 2025-02-12 19:09:54.742875003 +0100 ++++ chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc 2025-02-12 19:12:17.492620559 +0100 +@@ -87,7 +87,7 @@ PipeWireNode::PipeWireNode(PipeWireSessi + .param = OnNodeParam, + }; + +- pw_node_add_listener(proxy_, &node_listener_, &node_events, this); ++ pw_node_add_listener((struct pw_node*) proxy_, &node_listener_, &node_events, this); + } + + // static +@@ -119,7 +119,7 @@ void PipeWireNode::OnNodeInfo(void* data + uint32_t id = info->params[i].id; + if (id == SPA_PARAM_EnumFormat && + info->params[i].flags & SPA_PARAM_INFO_READ) { +- pw_node_enum_params(that->proxy_, 0, id, 0, UINT32_MAX, nullptr); ++ pw_node_enum_params((struct pw_node*)that->proxy_, 0, id, 0, UINT32_MAX, nullptr); + break; + } + } diff --git a/chromium.spec b/chromium.spec index 9bcf736..4058c99 100644 --- a/chromium.spec +++ b/chromium.spec @@ -357,6 +357,9 @@ Patch353: chromium-127-aarch64-duplicate-case-value.patch # remove flag split-threshold-for-reg-with-hint, it's not supported in clang <= 17 Patch354: chromium-126-split-threshold-for-reg-with-hint.patch +# fix build error with new pipewire in f43 +Patch356: chromium-133-pipewire-cast.patch + # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch @@ -1060,6 +1063,10 @@ Qt6 UI for chromium. %patch -P355 -p1 -b .hardware_destructive_interference_size +%if 0%{?fedora} > 42 +%patch -P356 -p1 -b .pipewire-cast +%endif + %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le From a05771b757db0efbbfbefd5d17701750f91c759a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 13 Feb 2025 12:23:57 +0100 Subject: [PATCH 097/244] - Update to 133.0.6943.98 * CVE-2025-0995: Use after free in V8 * CVE-2025-0996: Inappropriate implementation in Browser UI * CVE-2025-0997: Use after free in Navigation * CVE-2025-0998: Out of bounds memory access in V --- chromium.spec | 9 ++++++++- sources | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 4058c99..d3c105a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -271,7 +271,7 @@ %endif Name: chromium%{chromium_channel} -Version: 133.0.6943.53 +Version: 133.0.6943.98 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1796,6 +1796,13 @@ fi %endif %changelog +* Thu Feb 13 2025 Than Ngo - 133.0.6943.98-1 +- Update to 133.0.6943.98 + * CVE-2025-0995: Use after free in V8 + * CVE-2025-0996: Inappropriate implementation in Browser UI + * CVE-2025-0997: Use after free in Navigation + * CVE-2025-0998: Out of bounds memory access in V8 + * Tue Feb 04 2025 Than Ngo - 133.0.6943.53-1 - Update to 133.0.6943.53 * CVE-2025-0444: Use after free in Skia diff --git a/sources b/sources index dd44a7a..e37960e 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-133.0.6943.53-clean.tar.xz) = 0ae9f0e38993eb87b3fdfe5170e4db8e962e257c5b36eb88f1c4ced32424da9ffec08d69b746cb29b92b8de137e9bca96d621faad511f220c59171680eed3044 +SHA512 (chromium-133.0.6943.98-clean.tar.xz) = 2a1382b00d8e48a9404c735cd9f80d78f3d1904ae501ea507ae6b528e5c664ade64799963f7fdb5f04592ae77d7a7a8e65e877278577cd4e92b3247228f8803b From e124f2b634eb16c516fc234798d44c55578ee8f5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 13 Feb 2025 17:36:14 +0100 Subject: [PATCH 098/244] Refreshed patches for chromium flatpak build --- ...pak-Expose-Widevine-into-the-sandbox.patch | 42 +++++++------------ 1 file changed, 15 insertions(+), 27 deletions(-) diff --git a/flatpak-Expose-Widevine-into-the-sandbox.patch b/flatpak-Expose-Widevine-into-the-sandbox.patch index b6f953d..e74420d 100644 --- a/flatpak-Expose-Widevine-into-the-sandbox.patch +++ b/flatpak-Expose-Widevine-into-the-sandbox.patch @@ -3,16 +3,9 @@ From: Ryan Gonzalez Date: Tue, 17 Nov 2020 13:00:39 -0600 Subject: [PATCH] flatpak: Expose Widevine into the sandbox ---- - .../zygote_host/zygote_host_impl_linux.cc | 54 +++++++++++++- - sandbox/linux/services/flatpak_sandbox.cc | 74 ++++++++++++++----- - sandbox/linux/services/flatpak_sandbox.h | 27 ++++++- - 3 files changed, 131 insertions(+), 24 deletions(-) - -diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index 1703fb6ade044..3e8eb87981230 100644 ---- a/content/browser/zygote_host/zygote_host_impl_linux.cc -+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc +diff -up chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc.me chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc +--- chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc.me 2025-02-13 15:25:34.040044876 +0100 ++++ chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc 2025-02-13 17:19:22.030423834 +0100 @@ -9,7 +9,10 @@ #include @@ -24,10 +17,10 @@ index 1703fb6ade044..3e8eb87981230 100644 #include "base/posix/unix_domain_socket.h" #include "base/process/kill.h" #include "base/process/launch.h" -@@ -18,9 +21,12 @@ +@@ -17,9 +20,12 @@ + #include "base/strings/string_number_conversions.h" #include "base/types/fixed_array.h" #include "build/build_config.h" - #include "build/chromeos_buildflags.h" +#include "chrome/common/chrome_paths.h" // nogncheck #include "content/common/zygote/zygote_commands_linux.h" #include "content/common/zygote/zygote_communication_linux.h" @@ -37,7 +30,7 @@ index 1703fb6ade044..3e8eb87981230 100644 #include "content/public/common/zygote/zygote_handle.h" #include "sandbox/linux/services/credentials.h" #include "sandbox/linux/services/flatpak_sandbox.h" -@@ -29,6 +35,7 @@ +@@ -28,6 +34,7 @@ #include "sandbox/linux/suid/common/sandbox.h" #include "sandbox/policy/linux/sandbox_linux.h" #include "sandbox/policy/switches.h" @@ -45,7 +38,7 @@ index 1703fb6ade044..3e8eb87981230 100644 #if BUILDFLAG(IS_CHROMEOS) #include "content/common/zygote/zygote_communication_linux.h" -@@ -193,8 +200,51 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -192,8 +199,51 @@ pid_t ZygoteHostImpl::LaunchZygote( if (is_sandboxed_zygote && use_namespace_sandbox_) { process = sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options); } else if (is_sandboxed_zygote && use_flatpak_sandbox_) { @@ -99,10 +92,9 @@ index 1703fb6ade044..3e8eb87981230 100644 } else { process = base::LaunchProcess(*cmd_line, options); } -diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc -index 2a915a5b9fa11..ed8d4c0556f63 100644 ---- a/sandbox/linux/services/flatpak_sandbox.cc -+++ b/sandbox/linux/services/flatpak_sandbox.cc +diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc +--- chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me 2025-02-13 15:25:34.048045104 +0100 ++++ chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc 2025-02-13 17:14:05.784569012 +0100 @@ -4,6 +4,7 @@ #include "sandbox/linux/services/flatpak_sandbox.h" @@ -130,7 +122,7 @@ index 2a915a5b9fa11..ed8d4c0556f63 100644 FlatpakSandbox::FlatpakSandbox() : bus_thread_("FlatpakPortalBus"), process_info_cv_(&process_info_lock_) {} -@@ -168,8 +181,9 @@ bool FlatpakSandbox::IsPidSandboxed(base::ProcessId relative_pid) { +@@ -168,8 +181,9 @@ bool FlatpakSandbox::IsPidSandboxed(base base::Process FlatpakSandbox::LaunchProcess( const base::CommandLine& cmdline, @@ -142,7 +134,7 @@ index 2a915a5b9fa11..ed8d4c0556f63 100644 if (external_pid == base::kNullProcessId) { return base::Process(); } -@@ -363,9 +377,9 @@ void FlatpakSandbox::OnSpawnExitedSignal(dbus::Signal* signal) { +@@ -363,9 +377,9 @@ void FlatpakSandbox::OnSpawnExitedSignal process_info_cv_.Broadcast(); } @@ -260,10 +252,9 @@ index 2a915a5b9fa11..ed8d4c0556f63 100644 if (sandbox_flags != 0) { dbus::MessageWriter entry_writer(nullptr); options_writer.OpenDictEntry(&entry_writer); -diff --git a/sandbox/linux/services/flatpak_sandbox.h b/sandbox/linux/services/flatpak_sandbox.h -index 167bbc85945ad..de8e7165b4573 100644 ---- a/sandbox/linux/services/flatpak_sandbox.h -+++ b/sandbox/linux/services/flatpak_sandbox.h +diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h.me chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h +--- chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h.me 2025-02-13 15:25:34.048045104 +0100 ++++ chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h 2025-02-13 17:14:05.784569012 +0100 @@ -9,6 +9,8 @@ #include "base/compiler_specific.h" #include "base/containers/flat_map.h" @@ -321,6 +312,3 @@ index 167bbc85945ad..de8e7165b4573 100644 void OnSpawnResponse(base::ProcessId* out_external_pid, base::WaitableEvent* event, dbus::Response* response, --- -2.46.1 - From 5364688acd473c9445bb9626c39cc7a69205650f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 13 Feb 2025 21:48:14 +0100 Subject: [PATCH 099/244] Set clang_base_path correctly for f42 and later --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index d3c105a..92fdbfd 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1251,7 +1251,7 @@ rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" -%if 0%{?fedora} > 42 +%if 0%{?fedora} > 41 clang_base_path="/usr" %else clang_base_path="$(clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')" From 25f20e5f9b81f9e01efa207d00f83414cfb74197 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 14 Feb 2025 14:38:56 +0100 Subject: [PATCH 100/244] Fix, opus and some another audio formats stop playing --- ...3-workaround-system-ffmpeg-whitelist.patch | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/chromium-133-workaround-system-ffmpeg-whitelist.patch b/chromium-133-workaround-system-ffmpeg-whitelist.patch index e873023..d0e56f4 100644 --- a/chromium-133-workaround-system-ffmpeg-whitelist.patch +++ b/chromium-133-workaround-system-ffmpeg-whitelist.patch @@ -1,21 +1,34 @@ -diff -up chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc.me chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc ---- chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc.me 2025-02-09 19:57:35.117198035 +0100 -+++ chromium-133.0.6943.53/media/ffmpeg/ffmpeg_common.cc 2025-02-09 22:57:26.429570196 +0100 +diff -up chromium-133.0.6943.98/media/ffmpeg/ffmpeg_common.cc.than chromium-133.0.6943.98/media/ffmpeg/ffmpeg_common.cc +--- chromium-133.0.6943.98/media/ffmpeg/ffmpeg_common.cc.than 2025-02-13 11:59:31.035724118 +0100 ++++ chromium-133.0.6943.98/media/ffmpeg/ffmpeg_common.cc 2025-02-14 10:39:07.825746076 +0100 @@ -76,6 +76,8 @@ const char* GetAllowedVideoDecoders() { void ApplyCodecContextSecuritySettings(AVCodecContext* codec_context) { // Future versions of ffmpeg may copy the allow list from the format // context. -+// Workaround for codec whitelist with system ffmpeg ++ // Workaround for codec whitelist with system ffmpeg +#if 0 if (!codec_context->codec_whitelist) { // Note: FFmpeg will try to free this string, so we must duplicate it. codec_context->codec_whitelist = -@@ -83,7 +85,7 @@ void ApplyCodecContextSecuritySettings(A +@@ -83,6 +85,7 @@ void ApplyCodecContextSecuritySettings(A ? GetAllowedAudioDecoders() : GetAllowedVideoDecoders()); } -- +#endif + // Note: This is security sensitive. FFmpeg may not always continue safely // in the presence of errors. See https://crbug.com/379418979 - if (base::FeatureList::IsEnabled(kStrictFFmpegCodecs)) { +diff -up chromium-133.0.6943.98/media/filters/ffmpeg_glue.cc.than chromium-133.0.6943.98/media/filters/ffmpeg_glue.cc +--- chromium-133.0.6943.98/media/filters/ffmpeg_glue.cc.than 2025-02-14 10:14:13.360398193 +0100 ++++ chromium-133.0.6943.98/media/filters/ffmpeg_glue.cc 2025-02-14 10:36:46.762332912 +0100 +@@ -131,8 +131,10 @@ FFmpegGlue::FFmpegGlue(FFmpegURLProtocol + // memory usage. + // + // Note: FFmpeg will try to free these strings, so we must duplicate them. ++#if 0 + format_context_->codec_whitelist = av_strdup(GetAllowedAudioDecoders()); + format_context_->format_whitelist = av_strdup(GetAllowedDemuxers()); ++#endif + } + + bool FFmpegGlue::OpenContext(bool is_local_file) { From 9c1fece1b49e5eeb3b8b9531f7a380a21e18f131 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 14 Feb 2025 14:41:02 +0100 Subject: [PATCH 101/244] Update URL for PowerPC64 LE support --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 92fdbfd..dfc0ace 100644 --- a/chromium.spec +++ b/chromium.spec @@ -368,7 +368,7 @@ Patch358: chromium-127-rust-clanglib.patch # PowerPC64 LE support # Timothy Pearson's patchset -# https://gitlab.solidsilicon.io/public-development/open-source/chromium/openpower-patches/-/tree/chromium-128/patches/ppc64le +# https://gitlab.raptorengineering.com/raptor-engineering-public/chromium/openpower-patches Patch359: add-ppc64-architecture-string.patch Patch360: 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch Patch361: 0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch From 2485f12f14c2bfe961337d3dd9fd7bc2b32bc918 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 16 Feb 2025 12:13:12 -0500 Subject: [PATCH 102/244] Update flatpak patches --- flatpak-Add-initial-sandbox-support.patch | 74 +++++++++---------- flatpak-Adjust-paths-for-the-sandbox.patch | 18 ++--- ...pak-Expose-Widevine-into-the-sandbox.patch | 36 ++++++--- 3 files changed, 70 insertions(+), 58 deletions(-) diff --git a/flatpak-Add-initial-sandbox-support.patch b/flatpak-Add-initial-sandbox-support.patch index dae2d94..73f39b1 100644 --- a/flatpak-Add-initial-sandbox-support.patch +++ b/flatpak-Add-initial-sandbox-support.patch @@ -1,4 +1,4 @@ -From ab11528f26a212417b0b6084b52c02e992fe43f7 Mon Sep 17 00:00:00 2001 +From e29f4b52c8770033504794b934bc14b1d7261ef1 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 17 Mar 2020 13:18:27 -0500 Subject: [PATCH] flatpak: Add initial sandbox support @@ -42,10 +42,10 @@ index 9056030523807..2c13d0ad5f1c7 100644 /.externalToolBuilders/ /.settings/ diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h -index 149838be725f2..81034acc71e97 100644 +index e029700325e79..14ef172d37087 100644 --- a/base/threading/thread_restrictions.h +++ b/base/threading/thread_restrictions.h -@@ -407,6 +407,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; +@@ -409,6 +409,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; namespace rlz_lib { class FinancialPing; } @@ -55,7 +55,7 @@ index 149838be725f2..81034acc71e97 100644 namespace service_manager { class ServiceProcessLauncher; } -@@ -649,6 +652,7 @@ class BASE_EXPORT ScopedAllowBlocking { +@@ -646,6 +649,7 @@ class BASE_EXPORT ScopedAllowBlocking { friend class remoting:: ScopedBypassIOThreadRestrictions; // http://crbug.com/1144161 friend class remoting::ScopedAllowBlockingForCrashReporting; @@ -63,7 +63,7 @@ index 149838be725f2..81034acc71e97 100644 friend class ui::DrmDisplayHostManager; friend class ui::ScopedAllowBlockingForGbmSurface; friend class ui::SelectFileDialogLinux; -@@ -792,6 +796,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { +@@ -788,6 +792,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { friend class rlz_lib::FinancialPing; friend class shell_integration_linux:: LaunchXdgUtilityScopedAllowBaseSyncPrimitives; @@ -72,7 +72,7 @@ index 149838be725f2..81034acc71e97 100644 friend class syncer::HttpBridge; friend class syncer::GetLocalChangesRequest; diff --git a/chrome/browser/resources/sandbox_internals/sandbox_internals.ts b/chrome/browser/resources/sandbox_internals/sandbox_internals.ts -index f6d2f3f0bc41c..fcc58c6735eaa 100644 +index 1d2c06f540674..9946482709bbf 100644 --- a/chrome/browser/resources/sandbox_internals/sandbox_internals.ts +++ b/chrome/browser/resources/sandbox_internals/sandbox_internals.ts @@ -140,6 +140,7 @@ function addGoodBadRow(name: string, result: boolean): HTMLElement { @@ -94,10 +94,10 @@ index f6d2f3f0bc41c..fcc58c6735eaa 100644 addStatusRow('Layer 1 Sandbox', layer1SandboxType, layer1SandboxCssClass); diff --git a/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc b/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc -index 82aa27787a5e0..32bf674f33da6 100644 +index 1174a704b8126..e7fd738b705fb 100644 --- a/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc +++ b/chrome/browser/ui/webui/sandbox/sandbox_internals_ui.cc -@@ -20,6 +20,7 @@ +@@ -15,6 +15,7 @@ #include "content/public/browser/web_contents.h" #include "content/public/browser/web_ui.h" #include "content/public/browser/web_ui_data_source.h" @@ -105,7 +105,7 @@ index 82aa27787a5e0..32bf674f33da6 100644 #include "services/network/public/mojom/content_security_policy.mojom.h" #if BUILDFLAG(IS_WIN) -@@ -46,6 +47,8 @@ static void SetSandboxStatusData(content::WebUIDataSource* source) { +@@ -41,6 +42,8 @@ static void SetSandboxStatusData(content::WebUIDataSource* source) { source->AddBoolean("suid", status & sandbox::policy::SandboxLinux::kSUID); source->AddBoolean("userNs", status & sandbox::policy::SandboxLinux::kUserNS); @@ -114,7 +114,7 @@ index 82aa27787a5e0..32bf674f33da6 100644 source->AddBoolean("pidNs", status & sandbox::policy::SandboxLinux::kPIDNS); source->AddBoolean("netNs", status & sandbox::policy::SandboxLinux::kNetNS); source->AddBoolean("seccompBpf", -@@ -63,7 +66,8 @@ static void SetSandboxStatusData(content::WebUIDataSource* source) { +@@ -58,7 +61,8 @@ static void SetSandboxStatusData(content::WebUIDataSource* source) { // Require either the setuid or namespace sandbox for our first-layer sandbox. bool good_layer1 = (status & sandbox::policy::SandboxLinux::kSUID || @@ -125,10 +125,10 @@ index 82aa27787a5e0..32bf674f33da6 100644 status & sandbox::policy::SandboxLinux::kNetNS; // A second-layer sandbox is also required to be adequately sandboxed. diff --git a/content/browser/child_process_host_impl.cc b/content/browser/child_process_host_impl.cc -index 95df576580a9e..8d5e0694660b6 100644 +index 583a386414590..c1cf93992da5b 100644 --- a/content/browser/child_process_host_impl.cc +++ b/content/browser/child_process_host_impl.cc -@@ -45,6 +45,7 @@ +@@ -46,6 +46,7 @@ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) #include "base/linux_util.h" @@ -136,7 +136,7 @@ index 95df576580a9e..8d5e0694660b6 100644 #elif BUILDFLAG(IS_MAC) #include "base/apple/foundation_util.h" #include "content/browser/mac_helpers.h" -@@ -78,7 +79,12 @@ base::FilePath ChildProcessHost::GetChildPath(int flags) { +@@ -72,7 +73,12 @@ base::FilePath ChildProcessHost::GetChildPath(int flags) { #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) // Use /proc/self/exe rather than our known binary path so updates // can't swap out the binary from underneath us. @@ -151,7 +151,7 @@ index 95df576580a9e..8d5e0694660b6 100644 } #endif diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index 8eca918b65cbe..1703fb6ade044 100644 +index bd1013ccdd503..00f6ff8e13af5 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc @@ -12,6 +12,7 @@ @@ -162,7 +162,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 #include "base/process/memory.h" #include "base/strings/string_number_conversions.h" #include "base/types/fixed_array.h" -@@ -22,6 +23,7 @@ +@@ -21,6 +22,7 @@ #include "content/common/zygote/zygote_handle_impl_linux.h" #include "content/public/common/zygote/zygote_handle.h" #include "sandbox/linux/services/credentials.h" @@ -170,7 +170,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 #include "sandbox/linux/services/namespace_sandbox.h" #include "sandbox/linux/suid/client/setuid_sandbox_host.h" #include "sandbox/linux/suid/common/sandbox.h" -@@ -72,6 +74,7 @@ ZygoteHostImpl::ZygoteHostImpl() +@@ -71,6 +73,7 @@ ZygoteHostImpl::ZygoteHostImpl() : use_namespace_sandbox_(false), use_suid_sandbox_(false), use_suid_sandbox_for_adj_oom_score_(false), @@ -178,7 +178,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 sandbox_binary_(), zygote_pids_lock_(), zygote_pids_() {} -@@ -110,9 +113,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { +@@ -109,9 +112,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { sandbox_binary_ = setuid_sandbox_host->GetSandboxBinaryPath().value(); } @@ -194,7 +194,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 use_namespace_sandbox_ = true; } else if (!command_line.HasSwitch( sandbox::policy::switches::kDisableSetuidSandbox) && -@@ -183,10 +189,16 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -182,10 +188,16 @@ pid_t ZygoteHostImpl::LaunchZygote( sandbox_host->SetupLaunchEnvironment(); } @@ -215,7 +215,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 CHECK(process.IsValid()) << "Failed to launch zygote process"; dummy_fd.reset(); -@@ -195,7 +207,8 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -194,7 +206,8 @@ pid_t ZygoteHostImpl::LaunchZygote( pid_t pid = process.Pid(); @@ -225,7 +225,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 // The namespace and SUID sandbox will execute the zygote in a new // PID namespace, and the main zygote process will then fork from // there. Watch now our elaborate dance to find and validate the -@@ -223,7 +236,11 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -222,7 +235,11 @@ pid_t ZygoteHostImpl::LaunchZygote( if (real_pid != pid) { // Reap the sandbox. @@ -238,7 +238,7 @@ index 8eca918b65cbe..1703fb6ade044 100644 } pid = real_pid; } -@@ -274,6 +291,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, +@@ -273,6 +290,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, selinux_valid = true; } @@ -250,10 +250,10 @@ index 8eca918b65cbe..1703fb6ade044 100644 if (!base::AdjustOOMScore(pid, score)) PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid; diff --git a/content/browser/zygote_host/zygote_host_impl_linux.h b/content/browser/zygote_host/zygote_host_impl_linux.h -index 720d823d4a695..ad470963693c4 100644 +index 8ef884a7db6f4..f441900dd6343 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.h +++ b/content/browser/zygote_host/zygote_host_impl_linux.h -@@ -70,6 +70,7 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHost { +@@ -69,6 +69,7 @@ class CONTENT_EXPORT ZygoteHostImpl : public ZygoteHost { bool use_namespace_sandbox_; bool use_suid_sandbox_; bool use_suid_sandbox_for_adj_oom_score_; @@ -262,10 +262,10 @@ index 720d823d4a695..ad470963693c4 100644 // This lock protects the |zygote_pids_| set. diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc -index bdcb36f7eb2fe..239a6462e4b41 100644 +index f2c3b43281d53..9f3f3f6b1bc12 100644 --- a/content/zygote/zygote_linux.cc +++ b/content/zygote/zygote_linux.cc -@@ -127,7 +127,7 @@ bool Zygote::ProcessRequests() { +@@ -126,7 +126,7 @@ bool Zygote::ProcessRequests() { PCHECK(sigaddset(&sigset, SIGCHLD) == 0); PCHECK(sigprocmask(SIG_BLOCK, &sigset, &orig_sigmask) == 0); @@ -274,7 +274,7 @@ index bdcb36f7eb2fe..239a6462e4b41 100644 // Let the ZygoteHost know we are ready to go. // The receiving code is in // content/browser/zygote_host/zygote_host_impl_linux.cc. -@@ -233,6 +233,10 @@ bool Zygote::UsingNSSandbox() const { +@@ -231,6 +231,10 @@ bool Zygote::UsingNSSandbox() const { return sandbox_flags_ & sandbox::policy::SandboxLinux::kUserNS; } @@ -506,7 +506,7 @@ index 0000000000000..22799eb42f782 +#endif diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc new file mode 100644 -index 0000000000000..2a915a5b9fa11 +index 0000000000000..31229fdf59127 --- /dev/null +++ b/sandbox/linux/services/flatpak_sandbox.cc @@ -0,0 +1,576 @@ @@ -570,7 +570,7 @@ index 0000000000000..2a915a5b9fa11 + +void WriteStringAsByteArray(dbus::MessageWriter* writer, + const std::string& str) { -+ writer->AppendArrayOfBytes(base::make_span( ++ writer->AppendArrayOfBytes(base::span( + reinterpret_cast(str.c_str()), str.size() + 1)); +} + @@ -1211,10 +1211,10 @@ index 0000000000000..167bbc85945ad + +#endif // SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_ diff --git a/sandbox/policy/BUILD.gn b/sandbox/policy/BUILD.gn -index 4fe53b047b9aa..794e1ad1805d8 100644 +index 6767e25821a9a..521c089a5f3df 100644 --- a/sandbox/policy/BUILD.gn +++ b/sandbox/policy/BUILD.gn -@@ -129,6 +129,9 @@ component("policy") { +@@ -116,6 +116,9 @@ component("policy") { "//sandbox/linux:suid_sandbox_client", ] } @@ -1225,7 +1225,7 @@ index 4fe53b047b9aa..794e1ad1805d8 100644 sources += [ "linux/bpf_ime_policy_linux.cc", diff --git a/sandbox/policy/linux/sandbox_linux.cc b/sandbox/policy/linux/sandbox_linux.cc -index c7313416e6183..0cb8043f0ac72 100644 +index 6249a61685332..a3ae93f9f4191 100644 --- a/sandbox/policy/linux/sandbox_linux.cc +++ b/sandbox/policy/linux/sandbox_linux.cc @@ -37,6 +37,7 @@ @@ -1236,7 +1236,7 @@ index c7313416e6183..0cb8043f0ac72 100644 #include "sandbox/linux/services/libc_interceptor.h" #include "sandbox/linux/services/namespace_sandbox.h" #include "sandbox/linux/services/proc_util.h" -@@ -236,6 +237,9 @@ void SandboxLinux::PreinitializeSandbox() { +@@ -232,6 +233,9 @@ void SandboxLinux::PreinitializeSandbox() { const int yama_status = Yama::GetStatus(); yama_is_enforcing_ = (yama_status & Yama::STATUS_PRESENT) && (yama_status & Yama::STATUS_ENFORCING); @@ -1246,7 +1246,7 @@ index c7313416e6183..0cb8043f0ac72 100644 pre_initialized_ = true; } -@@ -274,6 +278,10 @@ int SandboxLinux::GetStatus() { +@@ -270,6 +274,10 @@ int SandboxLinux::GetStatus() { sandbox_status_flags_ |= kPIDNS; if (NamespaceSandbox::InNewNetNamespace()) sandbox_status_flags_ |= kNetNS; @@ -1291,10 +1291,10 @@ index 0e4f78b9e6cb7..91b638d8a96e0 100644 #if BUILDFLAG(USING_SANITIZER) std::unique_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; diff --git a/services/service_manager/service_process_launcher.cc b/services/service_manager/service_process_launcher.cc -index e24a262fe90d5..c20fdbd88a1a6 100644 +index bb99780fb878d..4dcdee34d2338 100644 --- a/services/service_manager/service_process_launcher.cc +++ b/services/service_manager/service_process_launcher.cc -@@ -41,6 +41,7 @@ +@@ -40,6 +40,7 @@ #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) @@ -1302,7 +1302,7 @@ index e24a262fe90d5..c20fdbd88a1a6 100644 #include "sandbox/linux/services/namespace_sandbox.h" #endif -@@ -286,8 +287,15 @@ void ServiceProcessLauncher::ProcessState::StopInBackground() { +@@ -285,8 +286,15 @@ void ServiceProcessLauncher::ProcessState::StopInBackground() { return; int rv = -1; @@ -1321,5 +1321,5 @@ index e24a262fe90d5..c20fdbd88a1a6 100644 } -- -2.46.1 +2.47.1 diff --git a/flatpak-Adjust-paths-for-the-sandbox.patch b/flatpak-Adjust-paths-for-the-sandbox.patch index 3b1863d..17c6bcd 100644 --- a/flatpak-Adjust-paths-for-the-sandbox.patch +++ b/flatpak-Adjust-paths-for-the-sandbox.patch @@ -1,4 +1,4 @@ -From 997c9dc4160c468f26acb851eb65408f41e2a091 Mon Sep 17 00:00:00 2001 +From bf5f40f06d453e0128a9289d2df48d82822f8646 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 25 Aug 2020 19:26:07 -0500 Subject: [PATCH] flatpak: Adjust paths for the sandbox @@ -9,10 +9,10 @@ Subject: [PATCH] flatpak: Adjust paths for the sandbox 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn -index 76cf6a5985990..4044c87b656c4 100644 +index b7338a65d9a68..b13c79e33c3f6 100644 --- a/chrome/common/BUILD.gn +++ b/chrome/common/BUILD.gn -@@ -642,6 +642,10 @@ static_library("constants") { +@@ -633,6 +633,10 @@ static_library("constants") { "//third_party/widevine/cdm:headers", ] } @@ -24,7 +24,7 @@ index 76cf6a5985990..4044c87b656c4 100644 # Use a static library here because many test binaries depend on this but don't diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc -index ec09803ffabcf..ecbc300b99e1d 100644 +index afc13e1b56f78..d707b71ba03ac 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -38,6 +38,10 @@ @@ -38,8 +38,8 @@ index ec09803ffabcf..ecbc300b99e1d 100644 #if BUILDFLAG(ENABLE_WIDEVINE) #include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck #endif -@@ -537,6 +541,14 @@ bool PathProvider(int key, base::FilePath* result) { - break; +@@ -529,6 +533,14 @@ bool PathProvider(int key, base::FilePath* result) { + #endif #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_OPENBSD) case chrome::DIR_POLICY_FILES: { +#if defined(OS_LINUX) @@ -53,7 +53,7 @@ index ec09803ffabcf..ecbc300b99e1d 100644 cur = base::FilePath(policy::kPolicyPath); break; } -@@ -557,7 +569,13 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -549,7 +561,13 @@ bool PathProvider(int key, base::FilePath* result) { #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { @@ -68,7 +68,7 @@ index ec09803ffabcf..ecbc300b99e1d 100644 break; } #endif -@@ -604,6 +622,12 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -596,6 +614,12 @@ bool PathProvider(int key, base::FilePath* result) { "/Library/Application Support/Chromium/NativeMessagingHosts")); #endif #else // BUILDFLAG(IS_MAC) @@ -82,5 +82,5 @@ index ec09803ffabcf..ecbc300b99e1d 100644 cur = base::FilePath( FILE_PATH_LITERAL("/etc/opt/chrome/native-messaging-hosts")); -- -2.46.1 +2.47.1 diff --git a/flatpak-Expose-Widevine-into-the-sandbox.patch b/flatpak-Expose-Widevine-into-the-sandbox.patch index e74420d..fc2eaf3 100644 --- a/flatpak-Expose-Widevine-into-the-sandbox.patch +++ b/flatpak-Expose-Widevine-into-the-sandbox.patch @@ -1,11 +1,18 @@ -From 0446b3432c90bbab893c7bde22a5e664e14753af Mon Sep 17 00:00:00 2001 +From 266e6fc37326e45402f826b282b0e0c461614905 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 17 Nov 2020 13:00:39 -0600 Subject: [PATCH] flatpak: Expose Widevine into the sandbox -diff -up chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc.me chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc ---- chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc.me 2025-02-13 15:25:34.040044876 +0100 -+++ chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_linux.cc 2025-02-13 17:19:22.030423834 +0100 +--- + .../zygote_host/zygote_host_impl_linux.cc | 54 +++++++++++++- + sandbox/linux/services/flatpak_sandbox.cc | 74 ++++++++++++++----- + sandbox/linux/services/flatpak_sandbox.h | 27 ++++++- + 3 files changed, 131 insertions(+), 24 deletions(-) + +diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc +index 00f6ff8e13af5..cf3019e26bbf2 100644 +--- a/content/browser/zygote_host/zygote_host_impl_linux.cc ++++ b/content/browser/zygote_host/zygote_host_impl_linux.cc @@ -9,7 +9,10 @@ #include @@ -92,9 +99,10 @@ diff -up chromium-133.0.6943.98/content/browser/zygote_host/zygote_host_impl_lin } else { process = base::LaunchProcess(*cmd_line, options); } -diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc ---- chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me 2025-02-13 15:25:34.048045104 +0100 -+++ chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc 2025-02-13 17:14:05.784569012 +0100 +diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc +index 31229fdf59127..cabda783879e6 100644 +--- a/sandbox/linux/services/flatpak_sandbox.cc ++++ b/sandbox/linux/services/flatpak_sandbox.cc @@ -4,6 +4,7 @@ #include "sandbox/linux/services/flatpak_sandbox.h" @@ -122,7 +130,7 @@ diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me chr FlatpakSandbox::FlatpakSandbox() : bus_thread_("FlatpakPortalBus"), process_info_cv_(&process_info_lock_) {} -@@ -168,8 +181,9 @@ bool FlatpakSandbox::IsPidSandboxed(base +@@ -168,8 +181,9 @@ bool FlatpakSandbox::IsPidSandboxed(base::ProcessId relative_pid) { base::Process FlatpakSandbox::LaunchProcess( const base::CommandLine& cmdline, @@ -134,7 +142,7 @@ diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me chr if (external_pid == base::kNullProcessId) { return base::Process(); } -@@ -363,9 +377,9 @@ void FlatpakSandbox::OnSpawnExitedSignal +@@ -363,9 +377,9 @@ void FlatpakSandbox::OnSpawnExitedSignal(dbus::Signal* signal) { process_info_cv_.Broadcast(); } @@ -252,9 +260,10 @@ diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.cc.me chr if (sandbox_flags != 0) { dbus::MessageWriter entry_writer(nullptr); options_writer.OpenDictEntry(&entry_writer); -diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h.me chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h ---- chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h.me 2025-02-13 15:25:34.048045104 +0100 -+++ chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h 2025-02-13 17:14:05.784569012 +0100 +diff --git a/sandbox/linux/services/flatpak_sandbox.h b/sandbox/linux/services/flatpak_sandbox.h +index 167bbc85945ad..de8e7165b4573 100644 +--- a/sandbox/linux/services/flatpak_sandbox.h ++++ b/sandbox/linux/services/flatpak_sandbox.h @@ -9,6 +9,8 @@ #include "base/compiler_specific.h" #include "base/containers/flat_map.h" @@ -312,3 +321,6 @@ diff -up chromium-133.0.6943.98/sandbox/linux/services/flatpak_sandbox.h.me chro void OnSpawnResponse(base::ProcessId* out_external_pid, base::WaitableEvent* event, dbus::Response* response, +-- +2.47.1 + From 022a981330417711f78159f2570fb569112f71b7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 17 Feb 2025 16:00:37 +0100 Subject: [PATCH 103/244] - Cleanup - Added ffmpegremove option to remove the bundle ffmpeg source when building with system ffmpeg --- chromium-browser.sh | 2 +- chromium-latest.py | 14 ++++++++-- chromium.spec | 67 ++++++++++++++++++--------------------------- 3 files changed, 39 insertions(+), 44 deletions(-) diff --git a/chromium-browser.sh b/chromium-browser.sh index 4ed62f5..639e868 100755 --- a/chromium-browser.sh +++ b/chromium-browser.sh @@ -48,4 +48,4 @@ exec < /dev/null exec > >(exec cat) exec 2> >(exec cat >&2) -exec -a "$0" "$HERE/@@CHROMIUM_BROWSER_CHANNEL@@" $CHROMIUM_FLAGS $CHROMIUM_DISTRO_FLAGS "$@" +exec -a "$0" "$HERE/chromium-browser" $CHROMIUM_FLAGS $CHROMIUM_DISTRO_FLAGS "$@" diff --git a/chromium-latest.py b/chromium-latest.py index e3f5888..dc94fd7 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -# Copyright 2021-2024, Than Ngo +# Copyright 2021-2025, Than Ngo # Copyright 2010,2015-2019 Tom Callaway # Copyright 2013-2016 Tomas Popela # Permission is hereby granted, free of charge, to any person obtaining @@ -243,6 +243,9 @@ if __name__ == '__main__': parser_add_argument( '--ffmpegclean', action='store_true', help='Get the latest Chromium release from given channel and cleans ffmpeg sources from proprietary stuff') + parser_add_argument( + '--ffmpegremove', action='store_true', + help='Get the latest Chromium release from given channel and remove ffmpeg sources') parser_add_argument( '--chrome', action='store_true', help='Get the latest Chrome rpms for the given channel') @@ -342,7 +345,14 @@ if __name__ == '__main__': print("Cleaning ffmpeg from proprietary things...") os.system("./clean_ffmpeg.sh %s %d" % (latest_dir, 0 if args.ffmpegarm else 1)) print("Cleaning openh264 from proprietary things...") - os.system("find %s/third_party/openh264/src -type f -not -name '*.h' -delete " % latest_dir) + os.system("find %s/third_party/openh264/* -type d | xargs rm -rf" % latest_dir) + print("Done!") + + if (args.ffmpegremove): + print("Removing ffmpeg source...") + os.system("find %s/third_party/ffmpeg/* -type d | xargs rm -rf" % latest_dir) + print("Cleaning openh264 from proprietary things...") + os.system("find %s/third_party/openh264/* -type d | xargs rm -rf" % latest_dir) print("Done!") if (not args.prep): diff --git a/chromium.spec b/chromium.spec index dfc0ace..86e2c1e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -126,12 +126,8 @@ %undefine _debugsource_packages %endif -# %%{nil} for Stable; -beta for Beta; -dev for Devel -# dash in -beta and -dev is intentional ! -%global chromium_channel %{nil} %global chromium_menu_name Chromium -%global chromium_browser_channel chromium-browser%{chromium_channel} -%global chromium_path %{_libdir}/chromium-browser%{chromium_channel} +%global chromium_path %{_libdir}/chromium-browser %global crd_path %{_libdir}/chrome-remote-desktop # We don't want any libs in these directories to generate Provides @@ -270,7 +266,7 @@ %global chromoting_client_id %nil %endif -Name: chromium%{chromium_channel} +Name: chromium Version: 133.0.6943.98 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use @@ -459,7 +455,7 @@ Source0: chromium-%{version}-clean.tar.xz Source1: README.fedora Source2: chromium.conf Source3: chromium-browser.sh -Source4: %{chromium_browser_channel}.desktop +Source4: chromium-browser.desktop # Also, only used if you want to reproduce the clean tarball. Source5: clean_ffmpeg.sh Source6: chromium-latest.py @@ -1549,7 +1545,7 @@ mkdir -p %{buildroot}%{_bindir} \ # install system wide chromium config cp -a %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf -cp -a %{SOURCE3} %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh +cp -a %{SOURCE3} %{buildroot}%{chromium_path}/chromium-browser.sh %if ! %{use_vaapi} # remove vaapi flags @@ -1557,22 +1553,11 @@ echo "# system wide chromium flags" > %{buildroot}%{_sysconfdir}/%{name}/%{name} %endif export BUILD_TARGET=`cat /etc/redhat-release` -export CHROMIUM_PATH=%{chromium_path} -export CHROMIUM_BROWSER_CHANNEL=%{chromium_browser_channel} -sed -i "s|@@BUILD_TARGET@@|$BUILD_TARGET|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh -sed -i "s|@@CHROMIUM_PATH@@|$CHROMIUM_PATH|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh -sed -i "s|@@CHROMIUM_BROWSER_CHANNEL@@|$CHROMIUM_BROWSER_CHANNEL|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh +sed -i "s|@@BUILD_TARGET@@|$BUILD_TARGET|g" %{buildroot}%{chromium_path}/chromium-browser.sh +sed -i "s|@@EXTRA_FLAGS@@||g" %{buildroot}%{chromium_path}/chromium-browser.sh -%if "%{chromium_channel}" == "%{nil}" - sed -i "s|@@EXTRA_FLAGS@@||g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh -%else - # Enable debug outputs for beta and dev channels - export EXTRA_FLAGS="--enable-logging=stderr --v=2" - sed -i "s|@@EXTRA_FLAGS@@|$EXTRA_FLAGS|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh -%endif - -ln -s ../..%{chromium_path}/%{chromium_browser_channel}.sh %{buildroot}%{_bindir}/%{chromium_browser_channel} +ln -s ../..%{chromium_path}/chromium-browser.sh %{buildroot}%{_bindir}/chromium-browser mkdir -p %{buildroot}%{_mandir}/man1/ pushd %{chromebuilddir} @@ -1586,12 +1571,12 @@ pushd %{chromebuilddir} cp -a libvulkan.so.1 %{buildroot}%{chromium_path} cp -a vk_swiftshader_icd.json %{buildroot}%{chromium_path} %endif - cp -a chrome %{buildroot}%{chromium_path}/%{chromium_browser_channel} + cp -a chrome %{buildroot}%{chromium_path}/chromium-browser cp -a chrome_sandbox %{buildroot}%{chromium_path}/chrome-sandbox cp -a chrome_crashpad_handler %{buildroot}%{chromium_path}/chrome_crashpad_handler - cp -a ../../chrome/app/resources/manpage.1.in %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1 - sed -i "s|@@PACKAGE@@|%{chromium_browser_channel}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1 - sed -i "s|@@MENUNAME@@|%{chromium_menu_name}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1 + cp -a ../../chrome/app/resources/manpage.1.in %{buildroot}%{_mandir}/man1/chromium-browser.1 + sed -i "s|@@PACKAGE@@|chromium-browser|g" %{buildroot}%{_mandir}/man1/chromium-browser.1 + sed -i "s|@@MENUNAME@@|%{chromium_menu_name}|g" %{buildroot}%{_mandir}/man1/chromium-browser.1 # V8 initial snapshots # https://code.google.com/p/chromium/issues/detail?id=421063 @@ -1636,15 +1621,15 @@ mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/managed mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/recommended mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps -cp -a chrome/app/theme/chromium/product_logo_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{chromium_browser_channel}.png +cp -a chrome/app/theme/chromium/product_logo_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/chromium-browser.png mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps -cp -a chrome/app/theme/chromium/product_logo_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{chromium_browser_channel}.png +cp -a chrome/app/theme/chromium/product_logo_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/chromium-browser.png mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps -cp -a chrome/app/theme/chromium/product_logo_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{chromium_browser_channel}.png +cp -a chrome/app/theme/chromium/product_logo_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/chromium-browser.png mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps -cp -a chrome/app/theme/chromium/product_logo_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{chromium_browser_channel}.png +cp -a chrome/app/theme/chromium/product_logo_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/chromium-browser.png mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps -cp -a chrome/app/theme/chromium/product_logo_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{chromium_browser_channel}.png +cp -a chrome/app/theme/chromium/product_logo_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/chromium-browser.png # Install the master_preferences file install -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/%{name}/ @@ -1652,8 +1637,8 @@ install -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/%{name}/ mkdir -p %{buildroot}%{_datadir}/applications/ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4} -install -D -m0644 %{SOURCE10} ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{chromium_browser_channel}.appdata.xml -appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{chromium_browser_channel}.appdata.xml +install -D -m0644 %{SOURCE10} ${RPM_BUILD_ROOT}%{_datadir}/appdata/chromium-browser.appdata.xml +appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/chromium-browser.appdata.xml mkdir -p %{buildroot}%{_datadir}/gnome-control-center/default-apps/ cp -a %{SOURCE9} %{buildroot}%{_datadir}/gnome-control-center/default-apps/ @@ -1666,10 +1651,10 @@ cp %{SOURCE1} . # Set SELinux labels - semanage itself will adjust the lib directory naming # But only do it when selinux is enabled, otherwise, it gets noisy. if selinuxenabled; then - semanage fcontext -a -t bin_t /usr/lib/%{chromium_browser_channel} &>/dev/null || : - semanage fcontext -a -t bin_t /usr/lib/%{chromium_browser_channel}/%{chromium_browser_channel}.sh &>/dev/null || : + semanage fcontext -a -t bin_t /usr/lib/chromium-browser &>/dev/null || : + semanage fcontext -a -t bin_t /usr/lib/chromium-browser/chromium-browser.sh &>/dev/null || : semanage fcontext -a -t chrome_sandbox_exec_t /usr/lib/chrome-sandbox &>/dev/null || : - restorecon -R -v %{chromium_path}/%{chromium_browser_channel} &>/dev/null || : + restorecon -R -v %{chromium_path}/chromium-browser &>/dev/null || : fi %endif @@ -1679,16 +1664,16 @@ fi %config(noreplace) %{_sysconfdir}/%{name}/chromium.conf %config %{_sysconfdir}/%{name}/master_preferences %config %{_sysconfdir}/%{name}/policies/ -%{_bindir}/%{chromium_browser_channel} +%{_bindir}/chromium-browser %{chromium_path}/*.bin %{chromium_path}/chrome_*.pak %{chromium_path}/chrome_crashpad_handler %{chromium_path}/resources.pak -%{chromium_path}/%{chromium_browser_channel} -%{chromium_path}/%{chromium_browser_channel}.sh +%{chromium_path}/chromium-browser +%{chromium_path}/chromium-browser.sh %attr(4755, root, root) %{chromium_path}/chrome-sandbox -%{_mandir}/man1/%{chromium_browser_channel}.* -%{_datadir}/icons/hicolor/*/apps/%{chromium_browser_channel}.png +%{_mandir}/man1/chromium-browser.* +%{_datadir}/icons/hicolor/*/apps/chromium-browser.png %{_datadir}/applications/*.desktop %{_datadir}/appdata/*.appdata.xml %{_datadir}/gnome-control-center/default-apps/chromium-browser.xml From 6d40ea788b81275c76994be2b10ce665c43798b4 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 19 Feb 2025 10:37:01 +0100 Subject: [PATCH 104/244] - Update to 133.0.6943.126 * CVE-2025-0999: Heap buffer overflow in V8 * CVE-2025-1426: Heap buffer overflow in GPU * CVE-2025-1006: Use after free in Network --- chromium.spec | 8 +++++++- sources | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 86e2c1e..14307b7 100644 --- a/chromium.spec +++ b/chromium.spec @@ -267,7 +267,7 @@ %endif Name: chromium -Version: 133.0.6943.98 +Version: 133.0.6943.126 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1781,6 +1781,12 @@ fi %endif %changelog +* Wed Feb 19 2025 Than Ngo - 133.0.6943.126-1 +- Update to 133.0.6943.126 + * CVE-2025-0999: Heap buffer overflow in V8 + * CVE-2025-1426: Heap buffer overflow in GPU + * CVE-2025-1006: Use after free in Network + * Thu Feb 13 2025 Than Ngo - 133.0.6943.98-1 - Update to 133.0.6943.98 * CVE-2025-0995: Use after free in V8 diff --git a/sources b/sources index e37960e..8901a96 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-133.0.6943.98-clean.tar.xz) = 2a1382b00d8e48a9404c735cd9f80d78f3d1904ae501ea507ae6b528e5c664ade64799963f7fdb5f04592ae77d7a7a8e65e877278577cd4e92b3247228f8803b +SHA512 (chromium-133.0.6943.126-clean.tar.xz) = 7c818a6fa2ffed20ca1c11eee8d7fc8e09e53efbf6f21c40f67b781f0737a8b7dd1ee09a79f823b28fe0dd234c2faf920680db387fd3caa5c8db0699c170b100 From efbbbe1413cb1e3be803460c1f823a79e22ce5bd Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 21 Feb 2025 09:03:46 -0500 Subject: [PATCH 105/244] Fix clang_base_path for flatpak builds llvm is no longer in the runtimes now that mesa is an extension, so it is rebuilt in /app for flatpaks. Therefore, its location must be detected dynamically. bindgen must also respect it rather than assuming llvm is in its own prefix. --- chromium-127-rust-clanglib.patch | 14 ++++++++++++-- chromium.spec | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch index feb4130..3adf978 100644 --- a/chromium-127-rust-clanglib.patch +++ b/chromium-127-rust-clanglib.patch @@ -1,7 +1,12 @@ diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.6533.72/build/rust/rust_bindgen.gni --- chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me 2024-07-25 16:11:18.754551595 +0200 +++ chromium-127.0.6533.72/build/rust/rust_bindgen.gni 2024-07-25 16:11:33.997837660 +0200 -@@ -22,7 +22,7 @@ _libclang_path = rust_bindgen_root +@@ -19,11 +19,11 @@ + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path if (host_os == "win") { _libclang_path += "/bin" } else { @@ -68,7 +73,12 @@ diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chrom diff -up chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni.me chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni --- chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni.me 2024-12-31 15:08:27.013151672 +0100 +++ chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni 2024-12-31 15:08:49.538663024 +0100 -@@ -22,7 +22,7 @@ _libclang_path = rust_bindgen_root +@@ -18,11 +18,11 @@ + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path if (host_os == "win") { _libclang_path += "/bin" } else { diff --git a/chromium.spec b/chromium.spec index 14307b7..7310c8d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1248,7 +1248,7 @@ rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" %if 0%{?fedora} > 41 -clang_base_path="/usr" +clang_base_path="$(which clang | sed 's#/bin/.*##')" %else clang_base_path="$(clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')" %endif From fc20aaa3d9e1f2f5a0c8652787ad3c5e5d99d44f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 26 Feb 2025 09:58:26 +0100 Subject: [PATCH 106/244] Update to 133.0.6943.141 --- chromium-131-qt-ui.patch | 12 ------ chromium-134-clang-unknown-option.patch | 14 +++++++ chromium.spec | 50 ++++++------------------- sources | 2 +- 4 files changed, 27 insertions(+), 51 deletions(-) delete mode 100644 chromium-131-qt-ui.patch create mode 100644 chromium-134-clang-unknown-option.patch diff --git a/chromium-131-qt-ui.patch b/chromium-131-qt-ui.patch deleted file mode 100644 index a834347..0000000 --- a/chromium-131-qt-ui.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-131.0.6778.85/ui/qt/qt_shim.cc.me chromium-131.0.6778.85/ui/qt/qt_shim.cc ---- chromium-131.0.6778.85/ui/qt/qt_shim.cc.me 2024-11-23 10:04:16.789121846 +0100 -+++ chromium-131.0.6778.85/ui/qt/qt_shim.cc 2024-11-23 11:40:02.905064702 +0100 -@@ -265,7 +265,7 @@ FontRenderParams QtShim::GetFontRenderPa - FontDescription QtShim::GetFontDescription() const { - QFont font = app_.font(); - return { -- .family = String(font.family().toStdString().c_str()), -+ .family = String(font.family().toUtf8().constData()), - .size_pixels = font.pixelSize(), - .size_points = font.pointSize(), - .is_italic = IsStyleItalic(font.style()), diff --git a/chromium-134-clang-unknown-option.patch b/chromium-134-clang-unknown-option.patch new file mode 100644 index 0000000..fcf82b4 --- /dev/null +++ b/chromium-134-clang-unknown-option.patch @@ -0,0 +1,14 @@ +Fix warning: unknown warning option '-Wno-nontrivial-memcall' + +diff -up chromium-134.0.6998.23/build/config/compiler/BUILD.gn.than chromium-134.0.6998.23/build/config/compiler/BUILD.gn +--- chromium-134.0.6998.23/build/config/compiler/BUILD.gn.than 2025-02-24 09:59:50.096821901 +0100 ++++ chromium-134.0.6998.23/build/config/compiler/BUILD.gn 2025-02-24 10:01:12.160253620 +0100 +@@ -1982,7 +1982,7 @@ config("default_warnings") { + cflags_cc += [ "-Wno-missing-template-arg-list-after-template-kw" ] + + # TODO(crbug.com/376641662): Fix and re-enable. +- cflags += [ "-Wno-nontrivial-memcall" ] ++ # cflags += [ "-Wno-nontrivial-memcall" ] + } + } + diff --git a/chromium.spec b/chromium.spec index 7310c8d..8e2a531 100644 --- a/chromium.spec +++ b/chromium.spec @@ -141,12 +141,6 @@ %global __provides_exclude_from ^(%{chromium_path}/.*\\.so|%{chromium_path}/.*\\.so.*)$ %global __requires_exclude ^(%{chromium_path}/.*\\.so|%{chromium_path}/.*\\.so.*)$ -# enable|disable use_custom_libcxx -%global use_custom_libcxx 0 -%if 0%{?rhel} || 0%{?fedora} == 40 -%global use_custom_libcxx 1 -%endif - # enable|disable control flow integrity support %global cfi 0 %ifarch x86_64 aarch64 @@ -267,7 +261,7 @@ %endif Name: chromium -Version: 133.0.6943.126 +Version: 133.0.6943.141 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -317,7 +311,6 @@ Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch # add correct path for Qt6Gui header and libs Patch150: chromium-124-qt6.patch -Patch151: chromium-131-qt-ui.patch # revert, it causes ramdom crash on aarch64 Patch300: chromium-131-revert-decommit-pooled-pages-by-default.patch @@ -340,6 +333,9 @@ Patch312: chromium-123-fstack-protector-strong.patch # build error stdarch_arm_crc32 Patch313: chromium-133-rust-crc32fast.patch +# warning: unknown warning option '-Wno-nontrivial-memcall' +Patch314: chromium-134-clang-unknown-option.patch + # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch @@ -353,12 +349,12 @@ Patch353: chromium-127-aarch64-duplicate-case-value.patch # remove flag split-threshold-for-reg-with-hint, it's not supported in clang <= 17 Patch354: chromium-126-split-threshold-for-reg-with-hint.patch -# fix build error with new pipewire in f43 -Patch356: chromium-133-pipewire-cast.patch - # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch +# fix build error with new pipewire in f43 +Patch356: chromium-133-pipewire-cast.patch + # set clang_lib path Patch358: chromium-127-rust-clanglib.patch @@ -608,10 +604,6 @@ BuildRequires: libappstream-glib BuildRequires: libstdc++-static %endif -%if ! %{use_custom_libcxx} -BuildRequires: libcxx-devel -%endif - # Fedora tries to use system libs whenever it can. BuildRequires: bzip2-devel BuildRequires: dbus-glib-devel @@ -1012,10 +1004,7 @@ Qt6 UI for chromium. %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict %endif -%if 0%{?rhel} > 9 || 0%{?fedora} > 39 %patch -P150 -p1 -b .qt6 -%patch -P151 -p1 -b .qt-ui -%endif %ifarch aarch64 ppc64le %patch -P300 -p1 -R -b .revert-decommit-pooled-pages-by-default @@ -1039,10 +1028,11 @@ Qt6 UI for chromium. %ifarch aarch64 %if 0%{?rhel} == 8 || 0%{?rhel} == 9 -%patch -P313 -p1 -b .rust-crc32fast.patch +%patch -P313 -p1 -b .rust-crc32fast %endif %endif +%patch -P314 -p1 -b .clang-unknown-option %patch -P316 -p1 -b .clang-build-flags %if %{disable_bti} @@ -1208,24 +1198,10 @@ CFLAGS="$FLAGS" CXXFLAGS="$FLAGS" %endif -%if ! %{use_custom_libcxx} -CXXFLAGS="$FLAGS -stdlib=libc++" -LDFLAGS="$LDFLAGS -stdlib=libc++" -%endif - %ifarch ppc64le CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' %endif -# reduce the size of relocations -%if 0%{?fedora} || 0%{?rhel} > 9 -LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs" -RUSTFLAGS=${RUSTFLAGS/--cap-lints/-Clink-arg=-Wl,-z,pack-relative-relocs --cap-lints} -%if ! %{enable_debug} -RUSTFLAGS=${RUSTFLAGS/debuginfo=?/debuginfo=0} -%endif -%endif - export CC=clang export CXX=clang++ export AR=llvm-ar @@ -1233,8 +1209,6 @@ export NM=llvm-nm export READELF=llvm-readelf export CFLAGS export CXXFLAGS -export LDFLAGS -export RUSTFLAGS # need for error: the option `Z` is only accepted on the nightly compiler export RUSTC_BOOTSTRAP=1 @@ -1309,9 +1283,6 @@ CHROMIUM_CORE_GN_DEFINES+=' icu_use_data_file=true' CHROMIUM_CORE_GN_DEFINES+=' target_os="linux"' CHROMIUM_CORE_GN_DEFINES+=' current_os="linux"' CHROMIUM_CORE_GN_DEFINES+=' treat_warnings_as_errors=false' -%if ! %{use_custom_libcxx} -CHROMIUM_CORE_GN_DEFINES+=' use_custom_libcxx=false' -%endif CHROMIUM_CORE_GN_DEFINES+=' enable_iterator_debugging=false' CHROMIUM_CORE_GN_DEFINES+=' enable_vr=false' CHROMIUM_CORE_GN_DEFINES+=' build_dawn_tests=false enable_perfetto_unittests=false' @@ -1781,6 +1752,9 @@ fi %endif %changelog +* Wed Feb 26 2025 Than Ngo - 133.0.6943.141-1 +- Update to 133.0.6943.141 + * Wed Feb 19 2025 Than Ngo - 133.0.6943.126-1 - Update to 133.0.6943.126 * CVE-2025-0999: Heap buffer overflow in V8 diff --git a/sources b/sources index 8901a96..ca2a4a0 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-133.0.6943.126-clean.tar.xz) = 7c818a6fa2ffed20ca1c11eee8d7fc8e09e53efbf6f21c40f67b781f0737a8b7dd1ee09a79f823b28fe0dd234c2faf920680db387fd3caa5c8db0699c170b100 +SHA512 (chromium-133.0.6943.141-clean.tar.xz) = 3e9a04b9168db93a523d538bdff0b9f35dc697b0006dd0e74e897f5f2df5a9e461e9c6067fadbb6ec907ee31edcf80f3f95ef19750bf12961b3f20436f91fe46 From b287e3cae6c853f419e7de502ad0cb87169060be Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 5 Mar 2025 15:37:32 +0100 Subject: [PATCH 107/244] - Update to 134.0.6998.35 * CVE-2025-1914: Out of bounds read in V8 * CVE-2025-1915: Improper Limitation of a Pathname to a Restricted Directory in DevTools * CVE-2025-1916: Use after free in Profiles * CVE-2025-1917: Inappropriate Implementation in Browser UI * CVE-2025-1918: Out of bounds read in PDFium * CVE-2025-1919: Out of bounds read in Media * CVE-2025-1921: Inappropriate Implementation in Media Stream * CVE-2025-1922: Inappropriate Implementation in Selection * CVE-2025-1923: Inappropriate Implementation in Permission Prompts --- 0001-Add-PPC64-support-for-boringssl.patch | 254 +++++++++--------- ...generated-config-for-libaom-on-ppc64.patch | 24 +- ...Implement-support-for-PPC64-on-Linux.patch | 204 +++++++------- ...Implement-support-for-ppc64-on-Linux.patch | 138 +++++----- ...plement-partial-support-for-ppc64-sy.patch | 22 +- ...date-syscall-helpers-lists-for-ppc64.patch | 40 +-- ...-PPC64-generated-files-for-boringssl.patch | 28 +- ...party-libvpx-Remove-bad-ppc64-config.patch | 28 +- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- 0008-sandbox-fix-ppc64le-glibc234.patch | 30 ++- HACK-third_party-libvpx-use-generic-gnu.patch | 18 +- ... chromium-134-el8-atk-compiler-error.patch | 152 +++++------ chromium-134-rust-libadler2.patch | 14 + chromium-134-type-mismatch-error.patch | 13 + chromium.spec | 48 +++- skia-vsx-instructions.patch | 134 ++++----- sources | 2 +- 18 files changed, 618 insertions(+), 577 deletions(-) rename chromium-133-el8-atk-compiler-error.patch => chromium-134-el8-atk-compiler-error.patch (86%) create mode 100644 chromium-134-rust-libadler2.patch create mode 100644 chromium-134-type-mismatch-error.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index cf36646..af1288b 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc +} + +#endif // OPENSSL_PPC64LE -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/crypto.cc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/crypto.cc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/crypto.cc +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/crypto.cc @@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -350,10 +350,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/crypto.cc #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) #include -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,10 +4164,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -82,6 +82,12 @@ inline int vpaes_capable(void) { return inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4181,10 +4181,24 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // !NO_ASM -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +@@ -504,6 +510,13 @@ void aes_gcm_dec_kernel(const uint8_t *i + const u128 Htable[16]); + #endif + ++#elif defined(OPENSSL_PPC64LE) ++#define GHASH_ASM_PPC64LE ++#define GCM_FUNCREF ++void gcm_init_p8(u128 Htable[16], const uint64_t Xi[2]); ++void gcm_gmult_p8(uint8_t Xi[16], const u128 Htable[16]); ++void gcm_ghash_p8(uint8_t Xi[16], const u128 Htable[16], const uint8_t *inp, ++ size_t len); + #endif + #endif // OPENSSL_NO_ASM + +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc @@ -105,6 +105,7 @@ #include "self_check/fips.cc.inc" #include "self_check/self_check.cc.inc" @@ -4193,11 +4207,11 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc #include "sha/sha1.cc.inc" #include "sha/sha256.cc.inc" #include "sha/sha512.cc.inc" -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -@@ -325,6 +325,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +@@ -330,6 +330,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } int bn_resize_words(BIGNUM *bn, size_t words) { @@ -4221,11 +4235,11 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -@@ -1230,6 +1230,8 @@ int EVP_has_aes_hardware(void) { +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +@@ -1234,6 +1234,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); @@ -4234,10 +4248,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghashp8-ppc.pl ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4910,11 +4924,11 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/ +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.cc.inc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.cc.inc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm.cc.inc -@@ -228,6 +228,13 @@ void CRYPTO_ghash_init(gmult_func *out_m +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +@@ -233,6 +233,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; } @@ -4928,10 +4942,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/ #endif gcm_init_nohw(out_table, H); -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/gcm_test.cc +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc @@ -170,5 +170,15 @@ TEST(GCMTest, ABI) { } } @@ -4948,28 +4962,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/ +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/modes/internal.h -@@ -260,6 +260,13 @@ void aes_gcm_dec_kernel(const uint8_t *i - const u128 Htable[16]); - #endif - -+#elif defined(OPENSSL_PPC64LE) -+#define GHASH_ASM_PPC64LE -+#define GCM_FUNCREF -+void gcm_init_p8(u128 Htable[16], const uint64_t Xi[2]); -+void gcm_gmult_p8(uint8_t Xi[16], const u128 Htable[16]); -+void gcm_ghash_p8(uint8_t Xi[16], const u128 Htable[16], const uint8_t *inp, -+ size_t len); - #endif - #endif // OPENSSL_NO_ASM - -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h -=================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/rand_extra/getrandom_fillin.h +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4979,10 +4975,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/rand_extra/getran #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc @@ -431,6 +431,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -4995,10 +4991,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5016,10 +5012,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc @@ -0,0 +1,369 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. @@ -5390,11 +5386,11 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/internal.h +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/internal.h -@@ -56,8 +56,9 @@ extern "C" { +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/internal.h +@@ -61,8 +61,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) @@ -5406,7 +5402,7 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1397,6 +1398,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl +@@ -1402,6 +1403,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5423,10 +5419,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5748,10 +5744,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5858,10 +5854,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6125,10 +6121,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-133.0.6943.35/third_party/boringssl/src/include/openssl/target.h +Index: chromium-134.0.6998.35/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-133.0.6943.35/third_party/boringssl/src/include/openssl/target.h +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-134.0.6998.35/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6139,11 +6135,11 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -@@ -38,6 +38,8 @@ int main(int argc, char **argv) { +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +@@ -35,6 +35,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) puts("aarch64 (64-bit)"); @@ -6152,10 +6148,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -54,7 +54,8 @@ type stringWriter interface { type processorType int @@ -6755,13 +6751,13 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,9 +12,9 @@ - # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN - # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ + # See the License for the specific language governing permissions and + # limitations under the License. -# This is a rough parser for x86-64 and aarch64 assembly designed to work with -# https://github.com/pointlander/peg. delocate.go has a go:generate line for @@ -6772,10 +6768,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ # To regenerate delocate.peg.go: # -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6788,10 +6784,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6802,10 +6798,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6869,19 +6865,19 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6955,10 +6951,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.cc" + .abiversion 2 @@ -7121,10 +7117,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -7678,10 +7674,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.cc" + .abiversion 2 @@ -7909,10 +7905,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8591,10 +8587,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8619,10 +8615,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8802,11 +8798,11 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -+++ chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -@@ -362,6 +362,10 @@ static void sha1_block_data_order(uint32 +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +@@ -367,6 +367,10 @@ static void sha1_block_data_order(uint32 return; } #endif @@ -8817,17 +8813,17 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-133.0.6943.35/third_party/boringssl/src/build.json +Index: chromium-134.0.6998.35/third_party/boringssl/src/build.json =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/build.json -+++ chromium-133.0.6943.35/third_party/boringssl/src/build.json +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/build.json ++++ chromium-134.0.6998.35/third_party/boringssl/src/build.json @@ -126,6 +126,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} ], + "perlasm_ppc64le": [ + {"src": "crypto/fipsmodule/aes/asm/aesp8-ppc.pl"}, -+ {"src": "crypto/fipsmodule/modes/asm/ghashp8-ppc.pl"} ++ {"src": "crypto/fipsmodule/aes/asm/ghashp8-ppc.pl"} + ], "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, @@ -8840,7 +8836,7 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/build.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -786,6 +791,9 @@ +@@ -787,6 +792,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8850,10 +8846,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-133.0.6943.35/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-134.0.6998.35/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-133.0.6943.35/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-134.0.6998.35/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8872,10 +8868,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-133.0.6943.35/third_party/boringssl/README.ppc64le +Index: chromium-134.0.6998.35/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/README.ppc64le ++++ chromium-134.0.6998.35/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8885,10 +8881,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.gni +Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.gni +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.gni @@ -119,6 +119,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 5fd44ff..2a77351 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm ++++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm @@ -0,0 +1,95 @@ +; +; Copyright (c) 2024, Alliance for Open Media. All rights reserved. @@ -98,10 +98,10 @@ Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/confi +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved. @@ -116,10 +116,10 @@ Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/confi +#include "aom/aom_codec.h" +static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_config.h ++++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.h @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved. @@ -219,10 +219,10 @@ Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/confi +#define HAVE_WXWIDGETS 0 +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h ++++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h @@ -0,0 +1,1501 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved. @@ -1725,10 +1725,10 @@ Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif -Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved. @@ -1821,10 +1821,10 @@ Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif -Index: chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-129.0.6668.42/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h ++++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h @@ -0,0 +1,438 @@ +/* + * Copyright (c) 2024, Alliance for Open Media. All rights reserved. diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index c3c71b2..c526728 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,21 +40,21 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context.h -@@ -687,6 +687,70 @@ struct MinidumpContextRISCV64 { +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context.h +@@ -686,6 +686,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +192,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +383,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +399,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -443,10 +443,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +571,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +592,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,11 +666,11 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -@@ -91,6 +91,8 @@ class ExceptionSnapshotLinux final : pub +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +@@ -94,6 +94,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) CPUContextRISCV64 riscv64; @@ -679,10 +679,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-130.0.6723.44/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index 8253398..90eedf6 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dum #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dum +#endif + } // namespace google_breakpad -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dum }; } // namespace google_breakpad -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dum #endif } // namespace google_breakpad -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,10 +247,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/dum #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc @@ -464,6 +464,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); @@ -295,10 +295,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/han #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -200,7 +200,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -312,10 +312,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/han fpstate_t float_state; #endif }; -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc @@ -321,7 +321,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; @@ -347,10 +347,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/han const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -141,7 +141,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -393,10 +393,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/mic const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/mic #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,10 +446,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -461,10 +461,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,10 +475,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -56,6 +56,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -488,10 +488,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -533,10 +533,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -556,10 +556,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -144,7 +144,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -613,10 +613,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,10 +654,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/mem struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -672,10 +672,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/linux/mem for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); @@ -687,10 +687,10 @@ Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/common/memory_al for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == NULL); -Index: chromium-130.0.6723.44/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-130.0.6723.44.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-130.0.6723.44/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +--- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc @@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) diff --git a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch index d572850..6fe84fa 100644 --- a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch +++ b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch @@ -17,11 +17,11 @@ GNU/Linux environments, but may require expansion elsewhere. create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h -Index: chromium-128.0.6613.113/sandbox/linux/BUILD.gn +Index: chromium-134.0.6998.35/sandbox/linux/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/BUILD.gn -+++ chromium-128.0.6613.113/sandbox/linux/BUILD.gn -@@ -383,6 +383,8 @@ component("sandbox_services") { +--- chromium-134.0.6998.35.orig/sandbox/linux/BUILD.gn ++++ chromium-134.0.6998.35/sandbox/linux/BUILD.gn +@@ -384,6 +384,8 @@ component("sandbox_services") { source_set("sandbox_services_headers") { sources = [ @@ -30,10 +30,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/BUILD.gn "system_headers/arm64_linux_syscalls.h", "system_headers/arm_linux_syscalls.h", "system_headers/arm_linux_ucontext.h", -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h +Index: chromium-134.0.6998.35/sandbox/linux/system_headers/linux_syscalls.h =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_syscalls.h -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h +--- chromium-134.0.6998.35.orig/sandbox/linux/system_headers/linux_syscalls.h ++++ chromium-134.0.6998.35/sandbox/linux/system_headers/linux_syscalls.h @@ -35,5 +35,9 @@ #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" #endif @@ -44,10 +44,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_syscalls.h + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h +Index: chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_syscalls.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h ++++ chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_syscalls.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -61,10 +61,10 @@ Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls +//TODO: is it necessary to redefine syscall numbers for PPC64? + +#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_ucontext.h +Index: chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_ucontext.h =================================================================== --- /dev/null -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_ucontext.h ++++ chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_ucontext.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index a1eee2e..6c29a57 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -12,10 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 sandbox/linux/services/syscall_wrappers.cc | 2 +- 6 files changed, 73 insertions(+), 55 deletions(-) -Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc =================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -54,10 +54,10 @@ Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc =================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +--- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc @@ -36,7 +36,7 @@ #include "sandbox/linux/system_headers/linux_time.h" @@ -137,7 +137,7 @@ Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_paramete ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -463,7 +488,7 @@ ResultExpr RestrictPtrace() { +@@ -461,7 +486,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -146,10 +146,10 @@ Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_paramete PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h =================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -159,10 +159,10 @@ Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -582,10 +582,10 @@ Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h =================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -623,11 +623,11 @@ Index: chromium-130.0.6723.44/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-130.0.6723.44/sandbox/linux/services/syscall_wrappers.cc +Index: chromium-134.0.6998.35/sandbox/linux/services/syscall_wrappers.cc =================================================================== ---- chromium-130.0.6723.44.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-130.0.6723.44/sandbox/linux/services/syscall_wrappers.cc -@@ -61,7 +61,7 @@ long sys_clone(unsigned long flags, +--- chromium-134.0.6998.35.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-134.0.6998.35/sandbox/linux/services/syscall_wrappers.cc +@@ -66,7 +66,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index bd2d9e4..7a1f11a 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,10 +4271,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.cmake +Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.cmake +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake @@ -118,6 +118,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S @@ -4299,7 +4299,7 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.cmake crypto/crypto.cc crypto/curve25519/curve25519.cc crypto/curve25519/curve25519_64_adx.cc -@@ -2830,6 +2833,7 @@ set( +@@ -2832,6 +2835,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -4307,10 +4307,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.json +Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-133.0.6943.35.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.json +--- chromium-134.0.6998.35.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json @@ -96,6 +96,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", @@ -4335,7 +4335,7 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -2750,6 +2753,7 @@ +@@ -2752,6 +2755,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -4343,10 +4343,10 @@ Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-133.0.6943.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-133.0.6943.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-134.0.6998.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index e2eb5e5..ac86882 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,6 +1,6 @@ -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null @@ -1,330 +0,0 @@ -/* @@ -333,9 +333,9 @@ Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif // VP8_RTCD_H_ -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null @@ -1,206 +0,0 @@ -/* @@ -544,9 +544,9 @@ Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif // VP9_RTCD_H_ -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,108 +0,0 @@ -@ This file was created from a .asm file @@ -657,9 +657,9 @@ Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -672,9 +672,9 @@ Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_c -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -794,9 +794,9 @@ Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null @@ -1,2138 +0,0 @@ -/* @@ -2937,9 +2937,9 @@ Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif // VPX_DSP_RTCD_H_ -Index: chromium-133.0.6943.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== ---- chromium-133.0.6943.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null @@ -1,110 +0,0 @@ -/* diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index 4aab2ee..a97e719 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-130.0.6723.44/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index 49855ac..9a37b40 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vp9/encoder/ppc/ eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct } // Returns 1 if negative 0 if positive -Index: chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-128.0.6613.113/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch index 8c52acb..4c9943d 100644 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ b/0008-sandbox-fix-ppc64le-glibc234.patch @@ -1,5 +1,7 @@ ---- a/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ b/sandbox/policy/linux/bpf_utility_policy_linux.cc +Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc +=================================================================== +--- chromium-134.0.6998.35.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -9,8 +11,10 @@ case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) ---- a/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ b/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc +=================================================================== +--- chromium-134.0.6998.35.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -90,7 +90,7 @@ ResultExpr RendererProcessPolicy::Evalua case __NR_ftruncate64: #endif @@ -20,8 +24,10 @@ case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as ---- a/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ b/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-134.0.6998.35/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +=================================================================== +--- chromium-134.0.6998.35.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-134.0.6998.35/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -58,9 +58,9 @@ #elif defined(__powerpc64__) @@ -34,8 +40,10 @@ #define MAX_SYSCALL MAX_PUBLIC_SYSCALL #else ---- a/sandbox/linux/services/credentials.cc -+++ b/sandbox/linux/services/credentials.cc +Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc +=================================================================== +--- chromium-134.0.6998.35.orig/sandbox/linux/services/credentials.cc ++++ chromium-134.0.6998.35/sandbox/linux/services/credentials.cc @@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() { int clone_flags = CLONE_FS | LINUX_SIGCHLD; @@ -58,8 +66,10 @@ clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; ---- a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +=================================================================== +--- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc @@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index c4a9298..3b1423d 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,7 +1,7 @@ -Index: chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh +Index: chromium-134.0.6998.35/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/generate_gni.sh -+++ chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh +--- chromium-134.0.6998.35.orig/third_party/libvpx/generate_gni.sh ++++ chromium-134.0.6998.35/third_party/libvpx/generate_gni.sh @@ -433,7 +433,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ @@ -11,10 +11,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.pl +--- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/build/make/rtcd.pl @@ -509,8 +509,9 @@ if ($opts{arch} eq 'x86') { &require(@REQUIRES); arm; @@ -27,10 +27,10 @@ Index: chromium-130.0.6723.44/third_party/libvpx/source/libvpx/build/make/rtcd.p } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-130.0.6723.44/third_party/libvpx/BUILD.gn +Index: chromium-134.0.6998.35/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-130.0.6723.44.orig/third_party/libvpx/BUILD.gn -+++ chromium-130.0.6723.44/third_party/libvpx/BUILD.gn +--- chromium-134.0.6998.35.orig/third_party/libvpx/BUILD.gn ++++ chromium-134.0.6998.35/third_party/libvpx/BUILD.gn @@ -102,6 +102,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] diff --git a/chromium-133-el8-atk-compiler-error.patch b/chromium-134-el8-atk-compiler-error.patch similarity index 86% rename from chromium-133-el8-atk-compiler-error.patch rename to chromium-134-el8-atk-compiler-error.patch index 627c0a6..c44d174 100644 --- a/chromium-133-el8-atk-compiler-error.patch +++ b/chromium-134-el8-atk-compiler-error.patch @@ -1,6 +1,6 @@ -diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc.el8-atk-compiler-error chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc ---- chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 -+++ chromium-133.0.6943.35/content/browser/accessibility/accessibility_auralinux_browsertest.cc 2025-02-04 10:56:08.414126354 +0100 +diff -up chromium-134.0.6998.15/content/browser/accessibility/accessibility_auralinux_browsertest.cc.than chromium-134.0.6998.15/content/browser/accessibility/accessibility_auralinux_browsertest.cc +--- chromium-134.0.6998.15/content/browser/accessibility/accessibility_auralinux_browsertest.cc.than 2025-02-12 02:31:02.000000000 +0100 ++++ chromium-134.0.6998.15/content/browser/accessibility/accessibility_auralinux_browsertest.cc 2025-02-17 17:13:30.971343965 +0100 @@ -3,6 +3,7 @@ // found in the LICENSE file. @@ -9,7 +9,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura #include #include -@@ -549,6 +550,10 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -550,6 +551,10 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(div_element); } @@ -20,7 +20,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, TestCharacterExtentsWithInvalidArguments) { AtkText* atk_text = SetUpSampleParagraph(); -@@ -571,12 +576,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -572,12 +577,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(expect, width); EXPECT_EQ(expect, height); @@ -35,7 +35,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, &height, ATK_XY_WINDOW); -@@ -595,12 +602,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -596,12 +603,14 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(expect, width); EXPECT_EQ(expect, height); @@ -50,7 +50,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura atk_text_get_character_extents(atk_text, invalid_offset, &x, &y, &width, &height, ATK_XY_WINDOW); -@@ -615,7 +624,9 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -616,7 +625,9 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AtkCoordType kCoordinateTypes[] = { ATK_XY_SCREEN, ATK_XY_WINDOW, @@ -60,7 +60,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura }; IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, -@@ -874,6 +885,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -875,6 +886,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura TestCharacterExtentsInScrollableInput(); } @@ -68,7 +68,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura typedef bool (*ScrollToPointFunc)(AtkComponent* component, AtkCoordType coords, gint x, -@@ -883,6 +895,18 @@ typedef bool (*ScrollToFunc)(AtkComponen +@@ -884,6 +896,18 @@ typedef bool (*ScrollToFunc)(AtkComponen // TODO(crbug.com/40866728): Enable this test. IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, DISABLED_TestScrollToPoint) { @@ -87,7 +87,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura LoadSampleParagraphInScrollableDocument(); AtkText* atk_text = GetSampleParagraph(); ASSERT_TRUE(ATK_IS_COMPONENT(atk_text)); -@@ -895,7 +919,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -896,7 +920,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter location_changed_waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kLocationChanged); @@ -96,7 +96,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_component_get_extents(atk_component, &x, &y, nullptr, nullptr, -@@ -904,20 +928,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -905,20 +929,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_GT(prev_y, y); constexpr int kScrollToY = 0; @@ -120,7 +120,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_component_get_extents(atk_component, nullptr, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -934,6 +958,17 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -935,6 +959,17 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura // TODO(crbug.com/40866728): Enable this test. IN_PROC_BROWSER_TEST_F(AccessibilityAuraLinuxBrowserTest, DISABLED_TestScrollTo) { @@ -138,7 +138,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura LoadInitialAccessibilityTreeFromHtml( R"HTML( -@@ -975,8 +1010,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -976,8 +1011,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kScrollPositionChanged); @@ -148,7 +148,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); int x, y; atk_component_get_extents(ATK_COMPONENT(target), &x, &y, nullptr, nullptr, -@@ -984,40 +1018,35 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -985,40 +1019,35 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(y, doc_y); EXPECT_NE(x, doc_x); @@ -194,7 +194,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); atk_component_get_extents(ATK_COMPONENT(target2), &x, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -1049,10 +1078,39 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1050,10 +1079,39 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(target2); g_object_unref(target3); } @@ -234,7 +234,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura LoadInitialAccessibilityTreeFromHtml( R"HTML( -@@ -1086,8 +1144,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1087,8 +1145,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kScrollPositionChanged); @@ -244,7 +244,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); int x, y; atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, -@@ -1095,40 +1152,37 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1096,40 +1153,37 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_EQ(y, doc_y); EXPECT_NE(x, doc_x); @@ -292,7 +292,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(waiter.WaitForNotification()); atk_text_get_character_extents(ATK_TEXT(target1), 1, &x, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -1138,9 +1192,42 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1139,9 +1193,42 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(target1); } @@ -335,7 +335,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura LoadSampleParagraphInScrollableDocument(); AtkText* atk_text = GetSampleParagraph(); ASSERT_TRUE(ATK_IS_COMPONENT(atk_text)); -@@ -1153,7 +1240,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1154,7 +1241,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura AccessibilityNotificationWaiter location_changed_waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kLocationChanged); @@ -344,7 +344,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, -@@ -1162,22 +1249,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1163,22 +1250,20 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura EXPECT_GT(prev_y, y); constexpr int kScrollToY = 0; @@ -370,7 +370,7 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura ASSERT_TRUE(location_changed_waiter.WaitForNotification()); atk_text_get_character_extents(atk_text, 1, &x, &y, nullptr, nullptr, ATK_XY_SCREEN); -@@ -1193,6 +1278,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura +@@ -1194,6 +1279,7 @@ IN_PROC_BROWSER_TEST_F(AccessibilityAura g_object_unref(atk_text); } @@ -378,24 +378,10 @@ diff -up chromium-133.0.6943.35/content/browser/accessibility/accessibility_aura #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) // Flaky on crbug.com/1026149 -diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc ---- chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 -+++ chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.cc 2025-02-04 10:56:08.424126602 +0100 -@@ -2,12 +2,12 @@ - // Use of this source code is governed by a BSD-style license that can be - // found in the LICENSE file. - --#include "base/version.h" - #ifdef UNSAFE_BUFFERS_BUILD - // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. - #pragma allow_unsafe_buffers - #endif - -+#include - #include - - #include -@@ -47,14 +47,33 @@ +diff -up chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.cc.than chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.cc +--- chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.cc.than 2025-02-12 02:31:02.000000000 +0100 ++++ chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.cc 2025-02-17 17:13:30.972343990 +0100 +@@ -48,14 +48,33 @@ #include "ui/accessibility/platform/child_iterator.h" #include "ui/gfx/geometry/rect_conversions.h" @@ -437,7 +423,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural namespace ui { -@@ -146,11 +165,29 @@ AtkObject* g_active_top_level_frame = nu +@@ -147,11 +166,29 @@ AtkObject* g_active_top_level_frame = nu AtkObject* g_active_views_dialog = nullptr; @@ -467,7 +453,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural using GetTypeFunc = GType (*)(); using GetColumnHeaderCellsFunc = GPtrArray* (*)(AtkTableCell* cell); -@@ -161,6 +198,11 @@ using GetRowColumnSpanFunc = bool (*)(At +@@ -162,6 +199,11 @@ using GetRowColumnSpanFunc = bool (*)(At gint* row_span, gint* col_span); @@ -479,7 +465,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural // The ATK API often requires pointers to be used as out arguments, while // allowing for those pointers to be null if the caller is not interested in // the value. This function is a simpler helper to avoid continually checking -@@ -170,35 +212,17 @@ void SetIntPointerValueIfNotNull(int* po +@@ -171,35 +213,17 @@ void SetIntPointerValueIfNotNull(int* po *pointer = value; } @@ -521,7 +507,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural AtkObject* FindAtkObjectParentFrame(AtkObject* atk_object) { AXPlatformNodeAuraLinux* node = -@@ -297,10 +321,12 @@ AXCoordinateSystem AtkCoordTypeToAXCoord +@@ -298,10 +322,12 @@ AXCoordinateSystem AtkCoordTypeToAXCoord return AXCoordinateSystem::kScreenDIPs; case ATK_XY_WINDOW: return AXCoordinateSystem::kRootFrame; @@ -534,7 +520,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural default: return AXCoordinateSystem::kScreenDIPs; } -@@ -513,6 +539,7 @@ gboolean GrabFocus(AtkComponent* atk_com +@@ -514,6 +540,7 @@ gboolean GrabFocus(AtkComponent* atk_com return obj->GrabFocus(); } @@ -542,7 +528,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural gboolean ScrollTo(AtkComponent* atk_component, AtkScrollType scroll_type) { g_return_val_if_fail(ATK_IS_COMPONENT(atk_component), FALSE); -@@ -539,6 +566,7 @@ gboolean ScrollToPoint(AtkComponent* atk +@@ -540,6 +567,7 @@ gboolean ScrollToPoint(AtkComponent* atk obj->ScrollToPoint(atk_coord_type, x, y); return TRUE; } @@ -550,7 +536,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural void Init(AtkComponentIface* iface) { iface->get_extents = GetExtents; -@@ -546,10 +574,12 @@ void Init(AtkComponentIface* iface) { +@@ -547,10 +575,12 @@ void Init(AtkComponentIface* iface) { iface->get_size = GetSize; iface->ref_accessible_at_point = RefAccesibleAtPoint; iface->grab_focus = GrabFocus; @@ -563,7 +549,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural } const GInterfaceInfo Info = {reinterpret_cast(Init), -@@ -1310,6 +1340,7 @@ gboolean AddSelection(AtkText* atk_text, +@@ -1311,6 +1341,7 @@ gboolean AddSelection(AtkText* atk_text, return SetSelection(atk_text, 0, start_offset, end_offset); } @@ -571,7 +557,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural char* GetStringAtOffset(AtkText* atk_text, int offset, AtkTextGranularity atk_granularity, -@@ -1324,7 +1355,9 @@ char* GetStringAtOffset(AtkText* atk_tex +@@ -1325,7 +1356,9 @@ char* GetStringAtOffset(AtkText* atk_tex return GetTextWithBoundaryType(atk_text, offset, boundary, start_offset, end_offset); } @@ -581,7 +567,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural gfx::Rect GetUnclippedParentHypertextRangeBoundsRect( AXPlatformNodeDelegate* ax_platform_node_delegate, const int start_offset, -@@ -1348,6 +1381,7 @@ gfx::Rect GetUnclippedParentHypertextRan +@@ -1349,6 +1382,7 @@ gfx::Rect GetUnclippedParentHypertextRan AXClippingBehavior::kClipped) .OffsetFromOrigin(); } @@ -589,7 +575,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural void GetCharacterExtents(AtkText* atk_text, int offset, -@@ -1363,10 +1397,12 @@ void GetCharacterExtents(AtkText* atk_te +@@ -1364,10 +1398,12 @@ void GetCharacterExtents(AtkText* atk_te AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(atk_text)); if (obj) { switch (coordinate_type) { @@ -602,7 +588,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural default: rect = obj->GetDelegate()->GetHypertextRangeBoundsRect( obj->UnicodeToUTF16OffsetInText(offset), -@@ -1402,10 +1438,12 @@ void GetRangeExtents(AtkText* atk_text, +@@ -1403,10 +1439,12 @@ void GetRangeExtents(AtkText* atk_text, AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(atk_text)); if (obj) { switch (coordinate_type) { @@ -615,7 +601,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural default: rect = obj->GetDelegate()->GetHypertextRangeBoundsRect( obj->UnicodeToUTF16OffsetInText(start_offset), -@@ -1455,6 +1493,7 @@ AtkAttributeSet* GetDefaultAttributes(At +@@ -1456,6 +1494,7 @@ AtkAttributeSet* GetDefaultAttributes(At return ToAtkAttributeSet(obj->GetDefaultTextAttributes()); } @@ -623,7 +609,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural gboolean ScrollSubstringTo(AtkText* atk_text, gint start_offset, gint end_offset, -@@ -1485,6 +1524,7 @@ gboolean ScrollSubstringToPoint(AtkText* +@@ -1486,6 +1525,7 @@ gboolean ScrollSubstringToPoint(AtkText* return obj->ScrollSubstringToPoint(start_offset, end_offset, atk_coord_type, x, y); } @@ -631,7 +617,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural void Init(AtkTextIface* iface) { iface->get_text = GetText; -@@ -1507,12 +1547,16 @@ void Init(AtkTextIface* iface) { +@@ -1508,12 +1548,16 @@ void Init(AtkTextIface* iface) { iface->get_run_attributes = GetRunAttributes; iface->get_default_attributes = GetDefaultAttributes; @@ -648,7 +634,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural } const GInterfaceInfo Info = {reinterpret_cast(Init), -@@ -1915,11 +1959,15 @@ const GInterfaceInfo Info = {reinterpret +@@ -1916,11 +1960,15 @@ const GInterfaceInfo Info = {reinterpret } // namespace atk_table @@ -665,7 +651,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural if (const AXPlatformNodeBase* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { -@@ -1931,8 +1979,10 @@ gint GetColumnSpan(AtkTableCell* cell) { +@@ -1932,8 +1980,10 @@ gint GetColumnSpan(AtkTableCell* cell) { } GPtrArray* GetColumnHeaderCells(AtkTableCell* cell) { @@ -677,7 +663,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural GPtrArray* array = g_ptr_array_new_with_free_func(g_object_unref); -@@ -1966,8 +2016,10 @@ GPtrArray* GetColumnHeaderCells(AtkTable +@@ -1967,8 +2017,10 @@ GPtrArray* GetColumnHeaderCells(AtkTable } gboolean GetCellPosition(AtkTableCell* cell, gint* row, gint* column) { @@ -689,7 +675,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { std::optional row_index = obj->GetTableRow(); -@@ -1984,8 +2036,9 @@ gboolean GetCellPosition(AtkTableCell* c +@@ -1985,8 +2037,9 @@ gboolean GetCellPosition(AtkTableCell* c } gint GetRowSpan(AtkTableCell* cell) { @@ -700,7 +686,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { // If the object is not a cell, we return 0. -@@ -1996,8 +2049,10 @@ gint GetRowSpan(AtkTableCell* cell) { +@@ -1997,8 +2050,10 @@ gint GetRowSpan(AtkTableCell* cell) { } GPtrArray* GetRowHeaderCells(AtkTableCell* cell) { @@ -712,7 +698,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural GPtrArray* array = g_ptr_array_new_with_free_func(g_object_unref); -@@ -2031,8 +2086,10 @@ GPtrArray* GetRowHeaderCells(AtkTableCel +@@ -2032,8 +2087,10 @@ GPtrArray* GetRowHeaderCells(AtkTableCel } AtkObject* GetTable(AtkTableCell* cell) { @@ -724,7 +710,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural if (auto* obj = AXPlatformNodeAuraLinux::FromAtkObject(ATK_OBJECT(cell))) { if (auto* table = obj->GetTable()) -@@ -2058,6 +2115,8 @@ const GInterfaceInfo Info = {reinterpret +@@ -2059,6 +2116,8 @@ const GInterfaceInfo Info = {reinterpret } // namespace atk_table_cell @@ -733,7 +719,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural namespace atk_object { gpointer kAXPlatformNodeAuraLinuxParentClass = nullptr; -@@ -2324,6 +2383,50 @@ void Detach(AXPlatformNodeAuraLinuxObjec +@@ -2325,6 +2384,50 @@ void Detach(AXPlatformNodeAuraLinuxObjec } // namespace @@ -784,7 +770,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural void AXPlatformNodeAuraLinux::EnsureGTypeInit() { #if !GLIB_CHECK_VERSION(2, 36, 0) static bool first_time = true; -@@ -2431,8 +2534,11 @@ GType AXPlatformNodeAuraLinux::GetAccess +@@ -2432,8 +2535,11 @@ GType AXPlatformNodeAuraLinux::GetAccess g_type_add_interface_static(type, ATK_TYPE_TABLE, &atk_table::Info); if (interface_mask_.Implements(ImplementedAtkInterfaces::Value::kTableCell)) { @@ -798,7 +784,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural } return type; -@@ -2667,9 +2773,9 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkR +@@ -2668,9 +2774,9 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkR case ax::mojom::Role::kComplementary: return ATK_ROLE_LANDMARK; case ax::mojom::Role::kContentDeletion: @@ -810,7 +796,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural case ax::mojom::Role::kContentInfo: case ax::mojom::Role::kFooter: return ATK_ROLE_LANDMARK; -@@ -3105,12 +3211,14 @@ void AXPlatformNodeAuraLinux::GetAtkStat +@@ -3106,12 +3212,14 @@ void AXPlatformNodeAuraLinux::GetAtkStat static_cast(ax::mojom::AriaCurrentState::kFalse)) { atk_state_set_add_state(atk_state_set, ATK_STATE_ACTIVE); } @@ -825,7 +811,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural if (GetBoolAttribute(ax::mojom::BoolAttribute::kBusy)) atk_state_set_add_state(atk_state_set, ATK_STATE_BUSY); if (GetBoolAttribute(ax::mojom::BoolAttribute::kModal)) -@@ -3149,9 +3257,11 @@ void AXPlatformNodeAuraLinux::GetAtkStat +@@ -3150,9 +3258,11 @@ void AXPlatformNodeAuraLinux::GetAtkStat if (GetData().GetRestriction() != ax::mojom::Restriction::kDisabled) { if (GetDelegate()->IsReadOnlySupported() && GetDelegate()->IsReadOnlyOrDisabled()) { @@ -837,7 +823,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural } else { atk_state_set_add_state(atk_state_set, ATK_STATE_ENABLED); atk_state_set_add_state(atk_state_set, ATK_STATE_SENSITIVE); -@@ -3185,12 +3295,16 @@ struct AtkIntListRelation { +@@ -3186,12 +3296,16 @@ struct AtkIntListRelation { static AtkIntListRelation kIntListRelations[] = { {ax::mojom::IntListAttribute::kControlsIds, ATK_RELATION_CONTROLLER_FOR, ATK_RELATION_CONTROLLED_BY}, @@ -854,7 +840,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural {ax::mojom::IntListAttribute::kFlowtoIds, ATK_RELATION_FLOWS_TO, ATK_RELATION_FLOWS_FROM}, {ax::mojom::IntListAttribute::kLabelledbyIds, ATK_RELATION_LABELLED_BY, -@@ -3981,6 +4095,7 @@ void AXPlatformNodeAuraLinux::OnReadonly +@@ -3982,6 +4096,7 @@ void AXPlatformNodeAuraLinux::OnReadonly if (!obj) return; @@ -862,7 +848,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural // Runtime check in case we were compiled with a newer version of ATK. if (!PlatformSupportsState(ATK_STATE_READ_ONLY)) return; -@@ -3988,6 +4103,7 @@ void AXPlatformNodeAuraLinux::OnReadonly +@@ -3989,6 +4104,7 @@ void AXPlatformNodeAuraLinux::OnReadonly atk_object_notify_state_change( obj, ATK_STATE_READ_ONLY, GetData().GetRestriction() == ax::mojom::Restriction::kReadOnly); @@ -870,7 +856,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural } void AXPlatformNodeAuraLinux::OnInvalidStatusChanged() { -@@ -4314,11 +4430,13 @@ gfx::Rect AXPlatformNodeAuraLinux::GetEx +@@ -4315,11 +4431,13 @@ gfx::Rect AXPlatformNodeAuraLinux::GetEx extents.Offset(window_origin); break; } @@ -884,7 +870,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural } return extents; -@@ -4755,6 +4873,7 @@ bool AXPlatformNodeAuraLinux::IsInLiveRe +@@ -4761,6 +4879,7 @@ bool AXPlatformNodeAuraLinux::IsInLiveRe return HasStringAttribute(ax::mojom::StringAttribute::kContainerLiveStatus); } @@ -892,7 +878,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural void AXPlatformNodeAuraLinux::ScrollToPoint(AtkCoordType atk_coord_type, int x, int y) { -@@ -4827,7 +4946,9 @@ void AXPlatformNodeAuraLinux::ScrollNode +@@ -4833,7 +4952,9 @@ void AXPlatformNodeAuraLinux::ScrollNode rect -= rect.OffsetFromOrigin(); ScrollNodeRectIntoView(rect, atk_scroll_type); } @@ -902,7 +888,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural std::optional AXPlatformNodeAuraLinux::GetUnclippedHypertextRangeBoundsRect(int start_offset, int end_offset) { -@@ -4886,6 +5007,7 @@ bool AXPlatformNodeAuraLinux::ScrollSubs +@@ -4892,6 +5013,7 @@ bool AXPlatformNodeAuraLinux::ScrollSubs return true; } @@ -910,7 +896,7 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural void AXPlatformNodeAuraLinux::ComputeStylesIfNeeded() { if (!offset_to_text_attributes_.empty()) -@@ -5066,8 +5188,10 @@ gfx::Point AXPlatformNodeAuraLinux::Conv +@@ -5074,8 +5196,10 @@ gfx::Point AXPlatformNodeAuraLinux::Conv switch (atk_coord_type) { case ATK_XY_WINDOW: return point + GetParentFrameOriginInScreenCoordinates(); @@ -921,9 +907,9 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural case ATK_XY_SCREEN: default: return point; -diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h ---- chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 -+++ chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux.h 2025-02-04 10:56:08.439126973 +0100 +diff -up chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.h.than chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.h +--- chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.h.than 2025-02-12 02:31:02.000000000 +0100 ++++ chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux.h 2025-02-17 17:13:30.973344015 +0100 @@ -52,6 +52,31 @@ struct FindInPageResultInfo { } }; @@ -956,9 +942,9 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural // This class with an enum is used to generate a bitmask which tracks the ATK // interfaces that an AXPlatformNodeAuraLinux's ATKObject implements. class ImplementedAtkInterfaces { -diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc ---- chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 -+++ chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc 2025-02-04 12:06:15.819918562 +0100 +diff -up chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.than chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc +--- chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc.than 2025-02-12 02:31:02.000000000 +0100 ++++ chromium-134.0.6998.15/ui/accessibility/platform/ax_platform_node_auralinux_unittest.cc 2025-02-17 17:13:30.973344015 +0100 @@ -11,6 +11,7 @@ #include @@ -1032,9 +1018,9 @@ diff -up chromium-133.0.6943.35/ui/accessibility/platform/ax_platform_node_aural atk_component_get_extents(ATK_COMPONENT(child_obj), &x_left, &y_top, &width, &height, ATK_XY_SCREEN); EXPECT_EQ(0, x_left); -diff -up chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.el8-atk-compiler-error chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc ---- chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.el8-atk-compiler-error 2025-01-28 23:03:27.000000000 +0100 -+++ chromium-133.0.6943.35/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc 2025-02-04 10:56:08.464127592 +0100 +diff -up chromium-134.0.6998.15/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.than chromium-134.0.6998.15/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc +--- chromium-134.0.6998.15/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc.than 2025-02-12 02:31:02.000000000 +0100 ++++ chromium-134.0.6998.15/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc 2025-02-17 17:13:30.974344040 +0100 @@ -474,18 +474,34 @@ void AXTreeFormatterAuraLinux::AddTableC int row = 0, col = 0, row_span = 0, col_span = 0; int n_row_headers = 0, n_column_headers = 0; diff --git a/chromium-134-rust-libadler2.patch b/chromium-134-rust-libadler2.patch new file mode 100644 index 0000000..cada806 --- /dev/null +++ b/chromium-134-rust-libadler2.patch @@ -0,0 +1,14 @@ +Fix warning: libadler2 not found + +diff -up chromium-134.0.6998.23/build/rust/std/BUILD.gn.than chromium-134.0.6998.23/build/rust/std/BUILD.gn +--- chromium-134.0.6998.23/build/rust/std/BUILD.gn.than 2025-02-24 09:47:57.560506410 +0100 ++++ chromium-134.0.6998.23/build/rust/std/BUILD.gn 2025-02-24 09:48:02.335676712 +0100 +@@ -89,7 +89,7 @@ if (toolchain_has_rust) { + # These are no longer present in the Windows toolchain. + stdlib_files += [ + "addr2line", +- "adler2", ++ "adler", + "gimli", + "libc", + "memchr", diff --git a/chromium-134-type-mismatch-error.patch b/chromium-134-type-mismatch-error.patch new file mode 100644 index 0000000..19d263c --- /dev/null +++ b/chromium-134-type-mismatch-error.patch @@ -0,0 +1,13 @@ +diff -up chromium-134.0.6998.23/base/containers/to_value_list.h.me chromium-134.0.6998.23/base/containers/to_value_list.h +--- chromium-134.0.6998.23/base/containers/to_value_list.h.me 2025-02-23 22:39:33.369668072 +0100 ++++ chromium-134.0.6998.23/base/containers/to_value_list.h 2025-02-23 22:42:42.653990901 +0100 +@@ -36,8 +36,7 @@ Value::List ToValueList(Range&& range, P + auto container = Value::List::with_capacity(std::ranges::size(range)); + std::ranges::for_each( + std::forward(range), +- [&](T&& value) { container.Append(std::forward(value)); }, +- std::move(proj)); ++ [&](auto&& value) { container.Append(std::invoke(proj, std::forward(value))); }); + return container; + } + diff --git a/chromium.spec b/chromium.spec index 8e2a531..35d216a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -152,14 +152,14 @@ %if %{enable_qt} %if 0%{?rhel} > 9 || 0%{?fedora} > 39 %global use_qt6 1 -%global use_qt 1 +%global use_qt5 1 %else %global use_qt6 0 -%global use_qt 1 +%global use_qt5 1 %endif %else %global use_qt6 0 -%global use_qt 0 +%global use_qt5 0 %endif # bundle re2, jsoncpp, woff2 - build errors with use_custom_libcxx=true @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 133.0.6943.141 +Version: 134.0.6998.35 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -321,7 +321,7 @@ Patch305: chromium-124-el8-arm64-memory_tagging.patch Patch306: chromium-127-el8-ifunc-header.patch # workaround for build error due to old atk version on el8 -Patch307: chromium-133-el8-atk-compiler-error.patch +Patch307: chromium-134-el8-atk-compiler-error.patch # Fix build errors due to old clang18 in el 8/9 and f40 Patch308: chromium-132-el8-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch @@ -330,12 +330,16 @@ Patch311: chromium-133-clang18-template.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch + # build error stdarch_arm_crc32 Patch313: chromium-133-rust-crc32fast.patch # warning: unknown warning option '-Wno-nontrivial-memcall' Patch314: chromium-134-clang-unknown-option.patch +# build error: libadler2 not found +Patch315: chromium-134-rust-libadler2.patch + # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch @@ -343,6 +347,7 @@ Patch316: chromium-122-clang-build-flags.patch # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 # Disable BTI until this is fixed upstream. Patch352: chromium-117-workaround_for_crash_on_BTI_capable_system.patch + # workaround for build error on aarch64 Patch353: chromium-127-aarch64-duplicate-case-value.patch @@ -355,6 +360,9 @@ Patch355: chromium-130-hardware_destructive_interference_size.patch # fix build error with new pipewire in f43 Patch356: chromium-133-pipewire-cast.patch +# error: no matching member function for call to 'Append' +Patch357: chromium-134-type-mismatch-error.patch + # set clang_lib path Patch358: chromium-127-rust-clanglib.patch @@ -526,7 +534,7 @@ BuildRequires: glib2-devel BuildRequires: glibc-devel BuildRequires: gperf -%if %{use_qt} +%if %{use_qt5} BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) %endif @@ -1031,8 +1039,8 @@ Qt6 UI for chromium. %patch -P313 -p1 -b .rust-crc32fast %endif %endif - %patch -P314 -p1 -b .clang-unknown-option +%patch -P315 -p1 -b .rust-libadler2 %patch -P316 -p1 -b .clang-build-flags %if %{disable_bti} @@ -1053,6 +1061,8 @@ Qt6 UI for chromium. %patch -P356 -p1 -b .pipewire-cast %endif +%patch -P357 -p1 -b .type-mismatch-error + %patch -P358 -p1 -b .rust-clang_lib %ifarch ppc64le @@ -1313,10 +1323,10 @@ CHROMIUM_BROWSER_GN_DEFINES+=' rtc_use_h264=false' %endif CHROMIUM_BROWSER_GN_DEFINES+=' use_kerberos=true' -%if %{use_qt} -CHROMIUM_BROWSER_GN_DEFINES+=" use_qt=true moc_qt5_path=\"$(%{_qt5_qmake} -query QT_HOST_BINS)\"" +%if %{use_qt5} +CHROMIUM_BROWSER_GN_DEFINES+=" use_qt5=true moc_qt5_path=\"$(%{_qt5_qmake} -query QT_HOST_BINS)\"" %else -CHROMIUM_BROWSER_GN_DEFINES+=' use_qt=false' +CHROMIUM_BROWSER_GN_DEFINES+=' use_qt5=false' %endif %if %{use_qt6} @@ -1378,7 +1388,7 @@ CHROMIUM_HEADLESS_GN_DEFINES+=' v8_use_external_startup_data=false enable_print_ CHROMIUM_HEADLESS_GN_DEFINES+=' use_alsa=false use_bluez=false use_cups=false use_dbus=false use_gio=false use_kerberos=false' CHROMIUM_HEADLESS_GN_DEFINES+=' use_libpci=false use_pulseaudio=false use_udev=false rtc_use_pipewire=false' CHROMIUM_HEADLESS_GN_DEFINES+=' v8_enable_lazy_source_positions=false use_glib=false use_gtk=false use_pangocairo=false' -CHROMIUM_HEADLESS_GN_DEFINES+=' use_qt=false use_qt6=false is_component_build=false enable_ffmpeg_video_decoders=false media_use_ffmpeg=false' +CHROMIUM_HEADLESS_GN_DEFINES+=' use_qt5=false use_qt6=false is_component_build=false enable_ffmpeg_video_decoders=false media_use_ffmpeg=false' CHROMIUM_HEADLESS_GN_DEFINES+=' media_use_libvpx=false proprietary_codecs=false' export CHROMIUM_HEADLESS_GN_DEFINES @@ -1556,7 +1566,7 @@ pushd %{chromebuilddir} # This is ANGLE, not to be confused with the similarly named files under swiftshader/ cp -a libEGL.so libGLESv2.so %{buildroot}%{chromium_path} - %if %{use_qt} + %if %{use_qt5} cp -a libqt5_shim.so %{buildroot}%{chromium_path} %endif @@ -1649,7 +1659,7 @@ fi %{_datadir}/appdata/*.appdata.xml %{_datadir}/gnome-control-center/default-apps/chromium-browser.xml -%if %{use_qt} +%if %{use_qt5} %files qt5-ui %{chromium_path}/libqt5_shim.so %endif @@ -1752,6 +1762,18 @@ fi %endif %changelog +* Wed Mar 05 2025 Than Ngo - 134.0.6998.35 -1 +- Update to 134.0.6998.35 + * CVE-2025-1914: Out of bounds read in V8 + * CVE-2025-1915: Improper Limitation of a Pathname to a Restricted Directory in DevTools + * CVE-2025-1916: Use after free in Profiles + * CVE-2025-1917: Inappropriate Implementation in Browser UI + * CVE-2025-1918: Out of bounds read in PDFium + * CVE-2025-1919: Out of bounds read in Media + * CVE-2025-1921: Inappropriate Implementation in Media Stream + * CVE-2025-1922: Inappropriate Implementation in Selection + * CVE-2025-1923: Inappropriate Implementation in Permission Prompts + * Wed Feb 26 2025 Than Ngo - 133.0.6943.141-1 - Update to 133.0.6943.141 diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index d78d6cd..faac39f 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-132.0.6834.83/third_party/skia/BUILD.gn +Index: chromium-134.0.6998.35/third_party/skia/BUILD.gn =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/BUILD.gn -+++ chromium-132.0.6834.83/third_party/skia/BUILD.gn +--- chromium-134.0.6998.35.orig/third_party/skia/BUILD.gn ++++ chromium-134.0.6998.35/third_party/skia/BUILD.gn @@ -193,6 +193,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-132.0.6834.83/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1601,6 +1607,7 @@ skia_component("skia") { +@@ -1642,6 +1648,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-132.0.6834.83/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1772,7 +1779,10 @@ skia_static_library("pathkit") { +@@ -1813,7 +1820,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,11 +35,11 @@ Index: chromium-132.0.6834.83/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-132.0.6834.83/third_party/skia/gn/skia/BUILD.gn +Index: chromium-134.0.6998.35/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-132.0.6834.83/third_party/skia/gn/skia/BUILD.gn -@@ -167,6 +167,8 @@ config("default") { +--- chromium-134.0.6998.35.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-134.0.6998.35/third_party/skia/gn/skia/BUILD.gn +@@ -166,6 +166,8 @@ config("default") { "-mfpmath=sse", ] ldflags += [ "-m32" ] @@ -48,10 +48,10 @@ Index: chromium-132.0.6834.83/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-132.0.6834.83/third_party/skia/include/core/SkTypes.h +Index: chromium-134.0.6998.35/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-132.0.6834.83/third_party/skia/include/core/SkTypes.h +--- chromium-134.0.6998.35.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-134.0.6998.35/third_party/skia/include/core/SkTypes.h @@ -183,4 +183,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -96,10 +96,10 @@ Index: chromium-132.0.6834.83/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-132.0.6834.83/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-134.0.6998.35.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -110,10 +110,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-132.0.6834.83/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-134.0.6998.35/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -129,10 +129,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-132.0.6834.83/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-134.0.6998.35/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -142,10 +142,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -171,7 +171,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) #include #include -@@ -195,6 +200,184 @@ namespace SK_OPTS_NS { +@@ -194,6 +199,184 @@ namespace SK_OPTS_NS { ptr[3] = a; } @@ -356,7 +356,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_NEON) template using V = Vec<4, T>; using F = V; -@@ -1401,6 +1584,15 @@ SI F from_half(U16 h) { +@@ -1383,6 +1566,15 @@ SI F from_half(U16 h) { #elif defined(SKRP_CPU_HSW) return _mm256_cvtph_ps((__m128i)h); @@ -372,7 +372,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a half is 1-5-10 (sign-exponent-mantissa) with 15 exponent bias. U32 sem = expand(h), -@@ -1424,6 +1616,16 @@ SI U16 to_half(F f) { +@@ -1406,6 +1598,16 @@ SI U16 to_half(F f) { #elif defined(SKRP_CPU_HSW) return (U16)_mm256_cvtps_ph(f, _MM_FROUND_CUR_DIRECTION); @@ -389,7 +389,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a float is 1-8-23 (sign-exponent-mantissa) with 127 exponent bias. U32 sem = sk_bit_cast(f), -@@ -1499,7 +1701,7 @@ static constexpr size_t N = sizeof(F) / +@@ -1481,7 +1683,7 @@ static constexpr size_t N = sizeof(F) / // instead of {b,a} on the stack. Narrow stages work best for __vectorcall. #define ABI __vectorcall #define SKRP_NARROW_STAGES 1 @@ -398,7 +398,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define SKRP_NARROW_STAGES 0 -@@ -5481,6 +5683,10 @@ SI F sqrt_(F x) { +@@ -5470,6 +5672,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -409,7 +409,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5512,6 +5718,10 @@ SI F floor_(F x) { +@@ -5501,6 +5707,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -420,7 +420,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5531,6 +5741,7 @@ SI F floor_(F x) { +@@ -5520,6 +5730,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -428,7 +428,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5542,6 +5753,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5531,6 +5742,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); @@ -451,7 +451,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5569,7 +5796,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5558,7 +5785,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -478,7 +478,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6582,8 +6828,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6571,8 +6817,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -493,7 +493,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6595,7 +6847,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6584,7 +6836,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -506,7 +506,7 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6629,9 +6886,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6618,9 +6875,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -523,10 +523,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-132.0.6834.83/third_party/skia/src/base/SkVx.h +Index: chromium-134.0.6998.35/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/base/SkVx.h -+++ chromium-132.0.6834.83/third_party/skia/src/base/SkVx.h +--- chromium-134.0.6998.35.orig/third_party/skia/src/base/SkVx.h ++++ chromium-134.0.6998.35/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -541,10 +541,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -554,10 +554,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -567,10 +567,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -580,10 +580,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -593,10 +593,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkCpu.h +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkCpu.h +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -606,10 +606,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -619,10 +619,10 @@ Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-132.0.6834.83/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-134.0.6998.35/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-132.0.6834.83/third_party/skia/include/private/base/SkFeatures.h +--- chromium-134.0.6998.35.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-134.0.6998.35/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -632,10 +632,10 @@ Index: chromium-132.0.6834.83/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-132.0.6834.83/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-134.0.6998.35/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -682,11 +682,11 @@ Index: chromium-132.0.6834.83/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-132.0.6834.83/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-132.0.6834.83.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-132.0.6834.83/third_party/skia/src/core/SkBlitter_ARGB32.cpp -@@ -126,6 +126,16 @@ static inline SkPMColor blend_lcd16_opaq +--- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-134.0.6998.35/third_party/skia/src/core/SkBlitter_ARGB32.cpp +@@ -127,6 +127,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index ca2a4a0..797f403 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-133.0.6943.141-clean.tar.xz) = 3e9a04b9168db93a523d538bdff0b9f35dc697b0006dd0e74e897f5f2df5a9e461e9c6067fadbb6ec907ee31edcf80f3f95ef19750bf12961b3f20436f91fe46 +SHA512 (chromium-134.0.6998.35-clean.tar.xz) = 8491cc3362faad817f2175d0d5f1d4c78a27186c6dbfde681682ca9a0da45487837fa7bc259c37edbfa7863ee95ca55351e1d36d3fe4cfefef5e246f55688976 From 5f903864c5e9e4fecbd1d70a47e6f1de142b52e3 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 11 Mar 2025 09:51:45 +0100 Subject: [PATCH 108/244] - Update to 134.0.6998.88 * High CVE-2025-1920: Type Confusion in V8 * High CVE-2025-2135: Type Confusion in V8 * High CVE-TBD: Out of bounds write in GPU * Medium CVE-2025-2136: Use after free in Inspector * Medium CVE-2025-2137: Out of bounds read in V8 --- chromium.spec | 10 +++++++++- sources | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 35d216a..5adf400 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 134.0.6998.35 +Version: 134.0.6998.88 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1762,6 +1762,14 @@ fi %endif %changelog +* Tue Mar 11 2025 Than Ngo - 134.0.6998.88 -1 +- Update to 134.0.6998.88 + * High CVE-2025-1920: Type Confusion in V8 + * High CVE-2025-2135: Type Confusion in V8 + * High CVE-TBD: Out of bounds write in GPU + * Medium CVE-2025-2136: Use after free in Inspector + * Medium CVE-2025-2137: Out of bounds read in V8 + * Wed Mar 05 2025 Than Ngo - 134.0.6998.35 -1 - Update to 134.0.6998.35 * CVE-2025-1914: Out of bounds read in V8 diff --git a/sources b/sources index 797f403..0ffd1e5 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-134.0.6998.35-clean.tar.xz) = 8491cc3362faad817f2175d0d5f1d4c78a27186c6dbfde681682ca9a0da45487837fa7bc259c37edbfa7863ee95ca55351e1d36d3fe4cfefef5e246f55688976 +SHA512 (chromium-134.0.6998.88-clean.tar.xz) = 5e3c63aa4c468ca7f11466faf8aab115d7ddc6e6438c50ca2c9a8a1fcf709d5511ea7857690c67ecde81fcf1cddeeeacc84112a0b52fe1dbd83b0e13f65cc963 From 34fff1ea7ffd70daacce0b18350359c78e194fd8 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 12 Mar 2025 10:01:48 +0100 Subject: [PATCH 109/244] - Fixed build error with clang20 in f42 and rawhide - Fixed build error when using ccache --- chromium-127-rust-clanglib.patch | 2 +- chromium.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch index 3adf978..d419701 100644 --- a/chromium-127-rust-clanglib.patch +++ b/chromium-127-rust-clanglib.patch @@ -51,7 +51,7 @@ diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chrom + assert(false) # Unhandled cpu type + } + # different clang lib dir in fedora/epel -+ if (clang_version == "17" || clang_version == "18" || clang_version == "19") { ++ if (clang_version == "17" || clang_version == "18" || clang_version == "19" || clang_version == "20") { + _suffix = "" + } else if (clang_version == "14" || clang_version == "15" || clang_version == "16") { + _libprefix = "64" diff --git a/chromium.spec b/chromium.spec index 5adf400..6fb326e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1232,7 +1232,7 @@ rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" %if 0%{?fedora} > 41 -clang_base_path="$(which clang | sed 's#/bin/.*##')" +clang_base_path="$(PATH=/usr/bin:/usr/sbin which clang | sed 's#/bin/.*##')" %else clang_base_path="$(clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')" %endif From 1ba25f1731a0f33e3a43ddc5b6b4a734db462fa7 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 13 Mar 2025 18:46:14 +0100 Subject: [PATCH 110/244] Rebuild for noopenh264 2.6.0 --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 6fb326e..579cbab 100644 --- a/chromium.spec +++ b/chromium.spec @@ -262,7 +262,7 @@ Name: chromium Version: 134.0.6998.88 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1762,6 +1762,9 @@ fi %endif %changelog +* Thu Mar 13 2025 Fabio Valentini - 134.0.6998.88-2 +- Rebuild for noopenh264 2.6.0 + * Tue Mar 11 2025 Than Ngo - 134.0.6998.88 -1 - Update to 134.0.6998.88 * High CVE-2025-1920: Type Confusion in V8 From 135bb928dcbb1d056109143a25dcecc5e5bf9e4f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 14 Mar 2025 17:35:11 +0100 Subject: [PATCH 111/244] Fixed build errors on ppc64le --- chromium.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 579cbab..b6a8681 100644 --- a/chromium.spec +++ b/chromium.spec @@ -262,7 +262,7 @@ Name: chromium Version: 134.0.6998.88 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1210,6 +1210,8 @@ CXXFLAGS="$FLAGS" %ifarch ppc64le CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' +# Workaround for build error: Undefined temporary symbol .L_MergedGlobals.15 +CXXFLAGS+=' -O0' %endif export CC=clang @@ -1226,7 +1228,7 @@ export RUSTC_BOOTSTRAP=1 # set rustc version rustc_version="$(rustc --version)" # set rust bindgen root -rust_bindgen_root="$(which bindgen | sed 's#/bin/.*##')" +rust_bindgen_root="$(which bindgen | sed 's#/s\?bin/.*##')" rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version @@ -1762,6 +1764,9 @@ fi %endif %changelog +* Fri Mar 14 2025 Than Ngo - 134.0.6998.88-3 +- Fixed build errors on ppc64le + * Thu Mar 13 2025 Fabio Valentini - 134.0.6998.88-2 - Rebuild for noopenh264 2.6.0 From 1df6a6e0feadeb0a8321182c1cc5c42ee31517a0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 17 Mar 2025 09:54:08 +0100 Subject: [PATCH 112/244] Fixed build error with new pipewire in f41 --- chromium.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index b6a8681..87a9002 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1057,7 +1057,7 @@ Qt6 UI for chromium. %patch -P355 -p1 -b .hardware_destructive_interference_size -%if 0%{?fedora} > 42 +%if 0%{?fedora} > 41 %patch -P356 -p1 -b .pipewire-cast %endif @@ -1210,9 +1210,11 @@ CXXFLAGS="$FLAGS" %ifarch ppc64le CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' +%if 0%{?fedora} > 41 # Workaround for build error: Undefined temporary symbol .L_MergedGlobals.15 CXXFLAGS+=' -O0' %endif +%endif export CC=clang export CXX=clang++ From 6c629ab5e9a1dbde287ace57f9889c9bef99e64f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 17 Mar 2025 14:38:32 +0100 Subject: [PATCH 113/244] Fixed rhbz#2352698, rebuild for noopenh264 2.6.0 --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 87a9002..07f953d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -262,7 +262,7 @@ Name: chromium Version: 134.0.6998.88 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1766,6 +1766,9 @@ fi %endif %changelog +* Mon Mar 17 2025 Than Ngo - 134.0.6998.88 -4 +- Fixed rhbz#2352698, rebuild for noopenh264 2.6.0 + * Fri Mar 14 2025 Than Ngo - 134.0.6998.88-3 - Fixed build errors on ppc64le From f66692205e95c112cdedff62d9585b6a5ea41101 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 19 Mar 2025 13:38:58 +0100 Subject: [PATCH 114/244] built with -mllvm -ppc-global-merge=0 on ppc64le as workaround for regression in llvm20 --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 07f953d..b46c7bb 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1212,7 +1212,7 @@ CXXFLAGS="$FLAGS" CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' %if 0%{?fedora} > 41 # Workaround for build error: Undefined temporary symbol .L_MergedGlobals.15 -CXXFLAGS+=' -O0' +CXXFLAGS+=' -mllvm -ppc-global-merge=0' %endif %endif From 107e3b9b1ce127558a50b1c4337fa97cc8dcce31 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 20 Mar 2025 09:24:31 +0100 Subject: [PATCH 115/244] - Update to 134.0.6998.117 * Critical CVE-2025-2476: Use after free in Lens --- chromium-125-system-brotli.patch | 2 +- chromium-134-clang-unknown-option.patch | 14 -------------- chromium.spec | 18 +++++++++--------- sources | 2 +- 4 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 chromium-134-clang-unknown-option.patch diff --git a/chromium-125-system-brotli.patch b/chromium-125-system-brotli.patch index 3d533bf..faba930 100644 --- a/chromium-125-system-brotli.patch +++ b/chromium-125-system-brotli.patch @@ -32,7 +32,7 @@ diff -up chromium-125.0.6422.41/ui/base/resource/resource_bundle.cc.system-brotl #include "skia/ext/image_operations.h" #include "third_party/abseil-cpp/absl/types/variant.h" -#include "third_party/brotli/include/brotli/decode.h" -+#include "brotli/decode.h" ++#include #include "third_party/skia/include/codec/SkPngDecoder.h" #include "third_party/skia/include/core/SkBitmap.h" #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium-134-clang-unknown-option.patch b/chromium-134-clang-unknown-option.patch deleted file mode 100644 index fcf82b4..0000000 --- a/chromium-134-clang-unknown-option.patch +++ /dev/null @@ -1,14 +0,0 @@ -Fix warning: unknown warning option '-Wno-nontrivial-memcall' - -diff -up chromium-134.0.6998.23/build/config/compiler/BUILD.gn.than chromium-134.0.6998.23/build/config/compiler/BUILD.gn ---- chromium-134.0.6998.23/build/config/compiler/BUILD.gn.than 2025-02-24 09:59:50.096821901 +0100 -+++ chromium-134.0.6998.23/build/config/compiler/BUILD.gn 2025-02-24 10:01:12.160253620 +0100 -@@ -1982,7 +1982,7 @@ config("default_warnings") { - cflags_cc += [ "-Wno-missing-template-arg-list-after-template-kw" ] - - # TODO(crbug.com/376641662): Fix and re-enable. -- cflags += [ "-Wno-nontrivial-memcall" ] -+ # cflags += [ "-Wno-nontrivial-memcall" ] - } - } - diff --git a/chromium.spec b/chromium.spec index b46c7bb..9621bdf 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,8 +261,8 @@ %endif Name: chromium -Version: 134.0.6998.88 -Release: 4%{?dist} +Version: 134.0.6998.117 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -334,9 +334,6 @@ Patch312: chromium-123-fstack-protector-strong.patch # build error stdarch_arm_crc32 Patch313: chromium-133-rust-crc32fast.patch -# warning: unknown warning option '-Wno-nontrivial-memcall' -Patch314: chromium-134-clang-unknown-option.patch - # build error: libadler2 not found Patch315: chromium-134-rust-libadler2.patch @@ -1039,7 +1036,6 @@ Qt6 UI for chromium. %patch -P313 -p1 -b .rust-crc32fast %endif %endif -%patch -P314 -p1 -b .clang-unknown-option %patch -P315 -p1 -b .rust-libadler2 %patch -P316 -p1 -b .clang-build-flags @@ -1766,7 +1762,11 @@ fi %endif %changelog -* Mon Mar 17 2025 Than Ngo - 134.0.6998.88 -4 +* Thu Mar 20 2025 Than Ngo - 134.0.6998.117-1 +- Update to 134.0.6998.117 + * Critical CVE-2025-2476: Use after free in Lens + +* Mon Mar 17 2025 Than Ngo - 134.0.6998.88-4 - Fixed rhbz#2352698, rebuild for noopenh264 2.6.0 * Fri Mar 14 2025 Than Ngo - 134.0.6998.88-3 @@ -1775,7 +1775,7 @@ fi * Thu Mar 13 2025 Fabio Valentini - 134.0.6998.88-2 - Rebuild for noopenh264 2.6.0 -* Tue Mar 11 2025 Than Ngo - 134.0.6998.88 -1 +* Tue Mar 11 2025 Than Ngo - 134.0.6998.88-1 - Update to 134.0.6998.88 * High CVE-2025-1920: Type Confusion in V8 * High CVE-2025-2135: Type Confusion in V8 @@ -1783,7 +1783,7 @@ fi * Medium CVE-2025-2136: Use after free in Inspector * Medium CVE-2025-2137: Out of bounds read in V8 -* Wed Mar 05 2025 Than Ngo - 134.0.6998.35 -1 +* Wed Mar 05 2025 Than Ngo - 134.0.6998.35-1 - Update to 134.0.6998.35 * CVE-2025-1914: Out of bounds read in V8 * CVE-2025-1915: Improper Limitation of a Pathname to a Restricted Directory in DevTools diff --git a/sources b/sources index 0ffd1e5..7c19163 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-134.0.6998.88-clean.tar.xz) = 5e3c63aa4c468ca7f11466faf8aab115d7ddc6e6438c50ca2c9a8a1fcf709d5511ea7857690c67ecde81fcf1cddeeeacc84112a0b52fe1dbd83b0e13f65cc963 +SHA512 (chromium-134.0.6998.117-clean.tar.xz) = 4eea79a67f22f2f23b9ed25bd4d97c86941dd5ad7f461caaf4fba26185a63dc8e3caa8bfd1322c0e8646fab096b2b67fdb8e70dcca3c67edf0f6310e1f2cf264 From 44be6f8d7dc5d13b3b72605f06318f13aaa0942e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 24 Mar 2025 11:02:43 +0100 Subject: [PATCH 116/244] - Update to 134.0.6998.165 - Fixed rhbz#2354377 - Enable ppc64le support for el10 --- chromium.spec | 12 ++++++++---- sources | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/chromium.spec b/chromium.spec index 9621bdf..6e7f3d8 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 134.0.6998.117 +Version: 134.0.6998.165 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -785,9 +785,9 @@ Requires: u2f-hidraw-policy Requires: chromium-common%{_isa} = %{version}-%{release} -# rhel 8 or newer and fedora < 40: x86_64, aarch64 -# fedora 40 or newer: x86_64, aarch64, ppc64le -%if 0%{?fedora} >= 40 +# el9: x86_64, aarch64 +# el10, fedora: x86_64, aarch64, ppc64le +%if 0%{?fedora} || 0%{?rhel} >= 10 ExclusiveArch: x86_64 aarch64 ppc64le %else ExclusiveArch: x86_64 aarch64 @@ -1762,6 +1762,10 @@ fi %endif %changelog +* Mon Mar 24 2025 Than Ngo - 134.0.6998.165-1 +- Update to 134.0.6998.165 +- Fixed rhbz#2354377 - Enable ppc64le support for el10 + * Thu Mar 20 2025 Than Ngo - 134.0.6998.117-1 - Update to 134.0.6998.117 * Critical CVE-2025-2476: Use after free in Lens diff --git a/sources b/sources index 7c19163..bccab94 100644 --- a/sources +++ b/sources @@ -2,4 +2,4 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-134.0.6998.117-clean.tar.xz) = 4eea79a67f22f2f23b9ed25bd4d97c86941dd5ad7f461caaf4fba26185a63dc8e3caa8bfd1322c0e8646fab096b2b67fdb8e70dcca3c67edf0f6310e1f2cf264 +SHA512 (chromium-134.0.6998.165-clean.tar.xz) = dec36e9f097f9b560b067cd4cc79b3cf5c91b775ca709e6ae975280e705a1707cd3c08fd07dd2297ae0bccfccd980f19f7f12737539113b098ec2b922823f790 From 9366c8cc108421844a034578560c0556ced5d794 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 24 Mar 2025 14:55:45 +0100 Subject: [PATCH 117/244] Add BR on esbuild for el10 on ppc64le --- .gitignore | 1 + chromium.spec | 14 +++++++++----- sources | 1 + 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 4f2e25c..b9e65eb 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ /v0.69.4.tar.gz /bindgen-cli-aarch64.tar.xz /bindgen-cli-x86_64.tar.xz +/linux-ppc64-0.19.2.tgz diff --git a/chromium.spec b/chromium.spec index 6e7f3d8..8ef1c68 100644 --- a/chromium.spec +++ b/chromium.spec @@ -474,14 +474,15 @@ Source12: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux Source13: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-arm64.tar.xz %endif -# esbuild binary -%if 0%{?rhel} +# esbuild binary from https://github.com/evanw/esbuild +%if 0%{?rhel} && 0%{?rhel} < 10 Source14: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_version}.tgz Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz +Source16: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-%{esbuild_version}.tgz %endif -# esbuild binary from fedora -%if 0%{?fedora} +# esbuild binary from fedora/el10 +%if 0%{?fedora} || 0%{?rhel} > 9 BuildRequires: golang-github-evanw-esbuild %endif @@ -1150,7 +1151,7 @@ popd %endif # Get rid of the bundled esbuild -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 9 ln -sf $(which esbuild) third_party/devtools-frontend/src/third_party/esbuild/esbuild %else %ifarch x86_64 @@ -1159,6 +1160,9 @@ popd %ifarch aarch64 tar -zxf %{SOURCE15} --directory %{_tmppath} %endif + %ifarch ppc64le + tar -zxf %{SOURCE16} --directory %{_tmppath} + %endif mv %{_tmppath}/package/bin/esbuild third_party/devtools-frontend/src/third_party/esbuild/esbuild %endif diff --git a/sources b/sources index bccab94..95e4fe1 100644 --- a/sources +++ b/sources @@ -3,3 +3,4 @@ SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbe SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (chromium-134.0.6998.165-clean.tar.xz) = dec36e9f097f9b560b067cd4cc79b3cf5c91b775ca709e6ae975280e705a1707cd3c08fd07dd2297ae0bccfccd980f19f7f12737539113b098ec2b922823f790 +SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af825c4f426a3a76e3e0b2f3627a7eee1f108b8ca37eae366651df84e08ce36ac18741301d82cbe8b13373 From 042548a7a4713ad7821a7ffd54a6df0959b685ea Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 29 Mar 2025 12:02:32 +0100 Subject: [PATCH 118/244] Update to 135.0.7049.41 --- 0001-Enable-ppc64-pointer-compression.patch | 13 ++++ ...date-syscall-helpers-lists-for-ppc64.patch | 78 +++++++------------ chromium-125-system-brotli.patch | 38 --------- chromium-135-system-brotli.patch | 38 +++++++++ chromium.spec | 9 ++- sources | 2 +- 6 files changed, 88 insertions(+), 90 deletions(-) create mode 100644 0001-Enable-ppc64-pointer-compression.patch delete mode 100644 chromium-125-system-brotli.patch create mode 100644 chromium-135-system-brotli.patch diff --git a/0001-Enable-ppc64-pointer-compression.patch b/0001-Enable-ppc64-pointer-compression.patch new file mode 100644 index 0000000..f13831f --- /dev/null +++ b/0001-Enable-ppc64-pointer-compression.patch @@ -0,0 +1,13 @@ +Index: chromium-134.0.6998.117/v8/gni/v8.gni +=================================================================== +--- chromium-134.0.6998.117.orig/v8/gni/v8.gni ++++ chromium-134.0.6998.117/v8/gni/v8.gni +@@ -224,7 +224,7 @@ assert(!(v8_enable_webassembly && v8_ena + if (v8_enable_pointer_compression == "") { + v8_enable_pointer_compression = + v8_current_cpu == "arm64" || v8_current_cpu == "x64" || +- v8_current_cpu == "loong64" ++ v8_current_cpu == "loong64" || v8_current_cpu == "ppc64" + } + + # The Wasm interpreter is currently supported only on arm64 and x64, on diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index 6c29a57..ffe2476 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -1,21 +1,6 @@ -From da52663deec77f705d7d58b18484c3e28e563f10 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Tue, 18 Sep 2018 18:39:28 -0500 -Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 - ---- - .../seccomp-bpf-helpers/baseline_policy.cc | 8 +- - .../syscall_parameters_restrictions.cc | 2 +- - .../syscall_parameters_restrictions.h | 2 +- - .../linux/seccomp-bpf-helpers/syscall_sets.cc | 108 ++++++++++-------- - .../linux/seccomp-bpf-helpers/syscall_sets.h | 6 +- - sandbox/linux/services/syscall_wrappers.cc | 2 +- - 6 files changed, 73 insertions(+), 55 deletions(-) - -Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 ++++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc 2025-03-19 16:20:41.392330750 +0100 @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -54,20 +39,19 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -36,7 +36,7 @@ +diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +--- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 ++++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2025-03-19 16:24:53.188175179 +0100 +@@ -35,7 +35,7 @@ #include "sandbox/linux/system_headers/linux_time.h" - #if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \ -- !defined(__arm__) && !defined(__aarch64__) && \ -+ !defined(__arm__) && !defined(__aarch64__) && !defined(__powerpc64__) && \ - !defined(PTRACE_GET_THREAD_AREA) + #if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && \ +- !defined(PTRACE_GET_THREAD_AREA) ++ !defined(__powerpc64__) && !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -45,6 +45,11 @@ + // asm/ptrace-abi.h doesn't exist on arm32 and PTRACE_GET_THREAD_AREA isn't +@@ -43,6 +43,11 @@ #include #endif @@ -79,7 +63,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete #if BUILDFLAG(IS_ANDROID) #if !defined(F_DUPFD_CLOEXEC) -@@ -102,6 +107,15 @@ inline bool IsArchitectureMips() { +@@ -100,6 +105,15 @@ inline bool IsArchitectureMips() { #endif } @@ -95,7 +79,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Ubuntu's version of glibc has a race condition in sem_post that can cause // it to call futex(2) with bogus op arguments. To workaround this, we need // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -269,9 +283,11 @@ ResultExpr RestrictFcntlCommands() { +@@ -267,9 +281,11 @@ ResultExpr RestrictFcntlCommands() { // operator. // Glibc overrides the kernel's O_LARGEFILE value. Account for this. uint64_t kOLargeFileFlag = O_LARGEFILE; @@ -108,7 +92,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete const Arg cmd(1); const Arg long_arg(2); -@@ -294,8 +310,17 @@ ResultExpr RestrictFcntlCommands() { +@@ -292,8 +308,17 @@ ResultExpr RestrictFcntlCommands() { F_SETLKW, F_GETLK, F_DUPFD, @@ -128,7 +112,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete .Case(F_SETFL, If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) .Case(F_ADD_SEALS, -@@ -304,7 +329,7 @@ ResultExpr RestrictFcntlCommands() { +@@ -302,7 +327,7 @@ ResultExpr RestrictFcntlCommands() { // clang-format on } @@ -137,7 +121,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -461,7 +486,7 @@ ResultExpr RestrictPtrace() { +@@ -459,7 +484,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -146,10 +130,9 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 ++++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h 2025-03-19 16:20:41.397390842 +0100 @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -159,10 +142,9 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 ++++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc 2025-03-19 16:20:41.400744223 +0100 @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -582,10 +564,9 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 ++++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h 2025-03-19 16:20:41.401408385 +0100 @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -623,10 +604,9 @@ Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-134.0.6998.35/sandbox/linux/services/syscall_wrappers.cc -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-134.0.6998.35/sandbox/linux/services/syscall_wrappers.cc +diff -up chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc +--- chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 ++++ chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc 2025-03-19 16:20:41.401536979 +0100 @@ -66,7 +66,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/chromium-125-system-brotli.patch b/chromium-125-system-brotli.patch deleted file mode 100644 index faba930..0000000 --- a/chromium-125-system-brotli.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -up chromium-125.0.6422.41/net/filter/brotli_source_stream.cc.system-brotli chromium-125.0.6422.41/net/filter/brotli_source_stream.cc ---- chromium-125.0.6422.41/net/filter/brotli_source_stream.cc.system-brotli 2024-05-08 22:30:00.000000000 +0200 -+++ chromium-125.0.6422.41/net/filter/brotli_source_stream.cc 2024-05-12 20:23:30.859178769 +0200 -@@ -11,8 +11,8 @@ - #include "base/memory/raw_ptr.h" - #include "base/metrics/histogram_macros.h" - #include "net/base/io_buffer.h" --#include "third_party/brotli/include/brotli/decode.h" --#include "third_party/brotli/include/brotli/shared_dictionary.h" -+#include -+#include - - namespace net { - -diff -up chromium-125.0.6422.41/net/ssl/cert_compression.cc.system-brotli chromium-125.0.6422.41/net/ssl/cert_compression.cc ---- chromium-125.0.6422.41/net/ssl/cert_compression.cc.system-brotli 2024-05-08 22:30:00.000000000 +0200 -+++ chromium-125.0.6422.41/net/ssl/cert_compression.cc 2024-05-12 20:23:30.860178793 +0200 -@@ -9,7 +9,7 @@ - #include "third_party/boringssl/src/include/openssl/ssl.h" - - #if !defined(NET_DISABLE_BROTLI) --#include "third_party/brotli/include/brotli/decode.h" -+#include - #endif - - namespace net { -diff -up chromium-125.0.6422.41/ui/base/resource/resource_bundle.cc.system-brotli chromium-125.0.6422.41/ui/base/resource/resource_bundle.cc ---- chromium-125.0.6422.41/ui/base/resource/resource_bundle.cc.system-brotli 2024-05-12 20:23:30.861178816 +0200 -+++ chromium-125.0.6422.41/ui/base/resource/resource_bundle.cc 2024-05-12 21:19:03.775332093 +0200 -@@ -33,7 +33,7 @@ - #include "net/filter/gzip_header.h" - #include "skia/ext/image_operations.h" - #include "third_party/abseil-cpp/absl/types/variant.h" --#include "third_party/brotli/include/brotli/decode.h" -+#include - #include "third_party/skia/include/codec/SkPngDecoder.h" - #include "third_party/skia/include/core/SkBitmap.h" - #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium-135-system-brotli.patch b/chromium-135-system-brotli.patch new file mode 100644 index 0000000..acbc489 --- /dev/null +++ b/chromium-135-system-brotli.patch @@ -0,0 +1,38 @@ +diff -up chromium-135.0.7049.17/net/filter/brotli_source_stream.cc.me chromium-135.0.7049.17/net/filter/brotli_source_stream.cc +--- chromium-135.0.7049.17/net/filter/brotli_source_stream.cc.me 2025-03-19 16:10:42.050358426 +0100 ++++ chromium-135.0.7049.17/net/filter/brotli_source_stream.cc 2025-03-19 16:11:17.682904155 +0100 +@@ -17,8 +17,8 @@ + #include "base/metrics/histogram_macros.h" + #include "net/base/io_buffer.h" + #include "net/filter/source_stream_type.h" +-#include "third_party/brotli/include/brotli/decode.h" +-#include "third_party/brotli/include/brotli/shared_dictionary.h" ++#include ++#include + + namespace net { + +diff -up chromium-135.0.7049.17/net/ssl/cert_compression.cc.me chromium-135.0.7049.17/net/ssl/cert_compression.cc +--- chromium-135.0.7049.17/net/ssl/cert_compression.cc.me 2025-03-19 16:11:29.752064649 +0100 ++++ chromium-135.0.7049.17/net/ssl/cert_compression.cc 2025-03-19 16:11:46.372351558 +0100 +@@ -9,7 +9,7 @@ + #include "third_party/boringssl/src/include/openssl/ssl.h" + + #if !defined(NET_DISABLE_BROTLI) +-#include "third_party/brotli/include/brotli/decode.h" ++#include + #endif + + namespace net { +diff -up chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc.me chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc +--- chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc.me 2025-03-19 16:11:57.586834877 +0100 ++++ chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc 2025-03-19 16:13:09.096533134 +0100 +@@ -39,7 +39,7 @@ + #include "net/filter/gzip_header.h" + #include "skia/ext/image_operations.h" + #include "third_party/abseil-cpp/absl/types/variant.h" +-#include "third_party/brotli/include/brotli/decode.h" ++#include + #include "third_party/skia/include/codec/SkPngDecoder.h" + #include "third_party/skia/include/core/SkBitmap.h" + #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium.spec b/chromium.spec index 8ef1c68..e7c3422 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 134.0.6998.165 +Version: 135.0.7049.41 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -283,7 +283,7 @@ Patch21: chromium-123-screen-ai-service.patch Patch82: chromium-98.0.4758.102-remoting-no-tests.patch # patch for using system brotli -Patch89: chromium-125-system-brotli.patch +Patch89: chromium-135-system-brotli.patch # patch for using system libxml Patch90: chromium-121-system-libxml.patch @@ -430,6 +430,7 @@ Patch407: 0002-Add-ppc64-trap-instructions.patch Patch408: fix-ppc64-linux-syscalls-headers.patch Patch409: use-sysconf-page-size-on-ppc64.patch +Patch410: 0001-Enable-ppc64-pointer-compression.patch Patch411: dawn-fix-ppc64le-detection.patch Patch412: add-ppc64-architecture-to-extensions.diff @@ -1114,6 +1115,7 @@ Qt6 UI for chromium. %patch -P407 -p1 -b .0002-Add-ppc64-trap-instructions %patch -P408 -p1 -b .fix-ppc64-linux-syscalls-headers %patch -P409 -p1 -b .use-sysconf-page-size-on-ppc64 +%patch -P410 -p1 -b .0001-Enable-ppc64-pointer-compression %patch -P411 -p1 -b .dawn-fix-ppc64le-detection %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions %patch -P413 -p1 -b .fix-unknown-warning-option-messages @@ -1766,6 +1768,9 @@ fi %endif %changelog +* Fri Mar 28 2025 Than Ngo - 135.0.7049.41-1 +- Update to 135.0.7049.41 + * Mon Mar 24 2025 Than Ngo - 134.0.6998.165-1 - Update to 134.0.6998.165 - Fixed rhbz#2354377 - Enable ppc64le support for el10 diff --git a/sources b/sources index 95e4fe1..600de90 100644 --- a/sources +++ b/sources @@ -2,5 +2,5 @@ SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (chromium-134.0.6998.165-clean.tar.xz) = dec36e9f097f9b560b067cd4cc79b3cf5c91b775ca709e6ae975280e705a1707cd3c08fd07dd2297ae0bccfccd980f19f7f12737539113b098ec2b922823f790 SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af825c4f426a3a76e3e0b2f3627a7eee1f108b8ca37eae366651df84e08ce36ac18741301d82cbe8b13373 +SHA512 (chromium-135.0.7049.41-clean.tar.xz) = 9c837f6aecac922715e1a3640d253f1d48d15c1cbd79f6a88d9645d705512537aeb04077bee4c43befb19f7aa85d6de9f0633486872ce459b218856724edc684 From 722e74358285936c1c6d422f6d50d6235b7b9240 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 31 Mar 2025 16:27:54 +0200 Subject: [PATCH 119/244] Removed llvm Workaround as it's fixed in llvm-20.1.1-1 in f-42/rawhide --- chromium.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chromium.spec b/chromium.spec index e7c3422..08587ec 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1212,10 +1212,6 @@ CXXFLAGS="$FLAGS" %ifarch ppc64le CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' -%if 0%{?fedora} > 41 -# Workaround for build error: Undefined temporary symbol .L_MergedGlobals.15 -CXXFLAGS+=' -mllvm -ppc-global-merge=0' -%endif %endif export CC=clang From cd9fd6fe3e7fb170097fbf9dbc2a8982f9d48b3d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 2 Apr 2025 00:10:38 +0200 Subject: [PATCH 120/244] Update to 135.0.7049.52 --- chromium.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 08587ec..403a9b7 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 135.0.7049.41 +Version: 135.0.7049.52 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1764,6 +1764,9 @@ fi %endif %changelog +* Tue Apr 01 2025 Than Ngo - 135.0.7049.52-1 +- Update to 135.0.7049.52 + * Fri Mar 28 2025 Than Ngo - 135.0.7049.41-1 - Update to 135.0.7049.41 diff --git a/sources b/sources index 600de90..5cf59d5 100644 --- a/sources +++ b/sources @@ -3,4 +3,4 @@ SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbe SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af825c4f426a3a76e3e0b2f3627a7eee1f108b8ca37eae366651df84e08ce36ac18741301d82cbe8b13373 -SHA512 (chromium-135.0.7049.41-clean.tar.xz) = 9c837f6aecac922715e1a3640d253f1d48d15c1cbd79f6a88d9645d705512537aeb04077bee4c43befb19f7aa85d6de9f0633486872ce459b218856724edc684 +SHA512 (chromium-135.0.7049.52-clean.tar.xz) = ad26ec99dde52de6f7438b906c7be592806a0d6d80e2e2be298d7e6d23ba5f91b87acff29171092e56658e3a07722a021249070e5db68684e74c4d753a3c9531 From 6e28cb22e9694d0b4365ab61cd66634224f4117e Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 2 Apr 2025 07:52:09 +0200 Subject: [PATCH 121/244] Add CFI suppressions for inline PipeWire functions --- ...-suppressions-for-pipewire-functions.patch | 39 +++++++++++++++++++ chromium.spec | 11 +++++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 chromium-135-add-cfi-suppressions-for-pipewire-functions.patch diff --git a/chromium-135-add-cfi-suppressions-for-pipewire-functions.patch b/chromium-135-add-cfi-suppressions-for-pipewire-functions.patch new file mode 100644 index 0000000..d4c8f14 --- /dev/null +++ b/chromium-135-add-cfi-suppressions-for-pipewire-functions.patch @@ -0,0 +1,39 @@ +From 0eebf40b9914bca8fe69bef8eea89522c1a5d4ce Mon Sep 17 00:00:00 2001 +From: Jan Grulich +Date: Tue, 01 Apr 2025 12:23:37 -0700 +Subject: [PATCH] Add more CFI suppressions for inline PipeWire functions + +There are now more inline functions with PipeWire 1.4, which are causing +SIGILL as we hit CFI check. + +Bug: chromium:354776214 +Change-Id: I055dd7edcaf3ca190ec7b4cc576ebe97a2baf82f +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6421030 +Reviewed-by: Peter Collingbourne +Reviewed-by: Alexander Cooper +Commit-Queue: Jan Grulich +Cr-Commit-Position: refs/heads/main@{#1441109} +--- + +diff --git a/tools/cfi/ignores.txt b/tools/cfi/ignores.txt +index 9a1180e..0a002bc6 100644 +--- a/tools/cfi/ignores.txt ++++ b/tools/cfi/ignores.txt +@@ -260,8 +260,16 @@ + src:*third_party/skia/src/ports/SkFontHost_FreeType.cpp + + # WebRTC / PipeWire +-fun:*pw_registry_bind* ++fun:*pw_core_add_listener* + fun:*pw_core_get_registry* ++fun:*pw_core_sync* ++fun:*pw_node_add_listener* ++fun:*pw_node_enum_params* ++fun:*pw_loop_add_event* ++fun:*pw_loop_signal_event* ++fun:*pw_registry_add_listener* ++fun:*pw_registry_bind* ++fun:*spa_loop_utils* + + ######### Function pointers cast to incorrect type signatures + diff --git a/chromium.spec b/chromium.spec index 403a9b7..251097a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -262,7 +262,7 @@ Name: chromium Version: 135.0.7049.52 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -447,6 +447,9 @@ Patch417: flatpak-Adjust-paths-for-the-sandbox.patch Patch418: flatpak-Expose-Widevine-into-the-sandbox.patch # upstream patches +# https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4636 +# https://chromium-review.googlesource.com/c/chromium/src/+/6421030 +Patch500: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1129,6 +1132,9 @@ Qt6 UI for chromium. %patch -P418 -p1 -b .flatpak-widevine %endif +# Upstream patches +%patch -P500 -p1 -b .add-cfi-suppressions-for-pipewire-functions + # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{chromium_pybin}=' {} + @@ -1764,6 +1770,9 @@ fi %endif %changelog +* Wed Apr 02 2025 Jan Grulich - 135.0.7049.52-2 +- Add CFI suppressions for inline PipeWire functions + * Tue Apr 01 2025 Than Ngo - 135.0.7049.52-1 - Update to 135.0.7049.52 From 45cd37cf1ca68270ef38e33e24ae80f9d82e74a5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 2 Apr 2025 13:01:44 +0200 Subject: [PATCH 122/244] Fixed build error on el9 due to old nodejs --- .gitignore | 3 +++ chromium.spec | 31 ++++++++++++++++++------------- sources | 5 +++-- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index b9e65eb..9b5ce06 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,6 @@ /bindgen-cli-aarch64.tar.xz /bindgen-cli-x86_64.tar.xz /linux-ppc64-0.19.2.tgz +/node-v22.14.0-linux-arm64.tar.xz +/node-v22.14.0-linux-ppc64le.tar.xz +/node-v22.14.0-linux-x64.tar.xz diff --git a/chromium.spec b/chromium.spec index 251097a..6c2f66f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -51,11 +51,11 @@ %endif # set nodejs_version -%global nodejs_version v20.6.1 +%global nodejs_version v22.14.0 %global system_nodejs 1 -# RHEL 8 needs newer nodejs -%if 0%{?rhel} == 8 +# RHEL 9 needs newer nodejs +%if 0%{?rhel} == 9 %global system_nodejs 0 %endif @@ -476,13 +476,14 @@ Source11: master_preferences %if ! %{system_nodejs} Source12: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-x64.tar.xz Source13: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-arm64.tar.xz +Source14: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-ppc64le.tar.xz %endif # esbuild binary from https://github.com/evanw/esbuild %if 0%{?rhel} && 0%{?rhel} < 10 -Source14: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_version}.tgz -Source15: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz -Source16: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-%{esbuild_version}.tgz +Source15: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_version}.tgz +Source16: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz +Source17: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-%{esbuild_version}.tgz %endif # esbuild binary from fedora/el10 @@ -1144,13 +1145,17 @@ find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env py pushd third_party/node/linux %ifarch x86_64 tar xf %{SOURCE12} - mv node-%{nodejs_version}-linux-x64 node-linux-x64 + ln -s node-%{nodejs_version}-linux-x64 node-linux-x64 %endif %ifarch aarch64 tar xf %{SOURCE13} - mv node-%{nodejs_version}-linux-arm64 node-linux-arm64 # This is weird, but whatever - ln -s node-linux-arm64 node-linux-x64 + ln -s node-%{nodejs_version}-linux-arm64 node-linux-x64 +%endif +%ifarch ppc64le + tar xf %{SOURCE14} + # This is weird, but whatever + ln -s node-%{nodejs_version}-linux-ppc64le node-linux-x64 %endif popd %else @@ -1163,14 +1168,14 @@ popd ln -sf $(which esbuild) third_party/devtools-frontend/src/third_party/esbuild/esbuild %else %ifarch x86_64 - tar -zxf %{SOURCE14} --directory %{_tmppath} - %endif - %ifarch aarch64 tar -zxf %{SOURCE15} --directory %{_tmppath} %endif - %ifarch ppc64le + %ifarch aarch64 tar -zxf %{SOURCE16} --directory %{_tmppath} %endif + %ifarch ppc64le + tar -zxf %{SOURCE17} --directory %{_tmppath} + %endif mv %{_tmppath}/package/bin/esbuild third_party/devtools-frontend/src/third_party/esbuild/esbuild %endif diff --git a/sources b/sources index 5cf59d5..31e03a9 100644 --- a/sources +++ b/sources @@ -1,6 +1,7 @@ -SHA512 (node-v20.6.1-linux-arm64.tar.xz) = adfcaf2c22614797fd69fb46d94c1cbf64dea0213cc817c45d3904b634dbf1f4e62e4ebd95bfa4ba0a9c559747d42115406edc471af294334160ba6e103e31d0 -SHA512 (node-v20.6.1-linux-x64.tar.xz) = 7e15c05041a9a50f0046266aadb2e092a5aefbec19be1c7c809471add520cb57c7df3c47d88b1888b29bf2979dca3c92adddfd965370fa2a9da4ea02186464fd SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af825c4f426a3a76e3e0b2f3627a7eee1f108b8ca37eae366651df84e08ce36ac18741301d82cbe8b13373 SHA512 (chromium-135.0.7049.52-clean.tar.xz) = ad26ec99dde52de6f7438b906c7be592806a0d6d80e2e2be298d7e6d23ba5f91b87acff29171092e56658e3a07722a021249070e5db68684e74c4d753a3c9531 +SHA512 (node-v22.14.0-linux-arm64.tar.xz) = 1b459f4fb1c52d35253c678e28198cb4f82d459eceecca64b699b80ed7ff8ac7a2d86f79dffe56cdcc783f3379a3c0a00296ce1e24d7ef5554cf1d6236f0ff16 +SHA512 (node-v22.14.0-linux-ppc64le.tar.xz) = 551ba75ee8c7ff84080e0c2ace721c9a0b32e2580637806df253108c01b6b27b79293360b7696646e3b8fcd447fb29b851e91adb5a9d0dd2fed693393086cbed +SHA512 (node-v22.14.0-linux-x64.tar.xz) = acb8c6df3ad9e5b403449a003726de7733de5bb23162e6db535948589fb15570cd606924ad7ce76f42785117d938deec1e8d5781c20a3558b1ef8f8e4af41735 From 98aabf1afa6e37394cd7338d588cfdc5e35c0970 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 3 Apr 2025 12:17:18 +0200 Subject: [PATCH 123/244] ... gen/third_party/skia/experimental/rust_png/ffi/FFI.rs.cc:919:59: error: no member named 'unique_ptr' in namespace 'std' 919 | ::rust::Box<::rust_png::ResultOfReader> new_reader(::std::unique_ptr<::rust_png::ReadTrait> input) noexcept { .. Fix build error on el10, ppc64le --- chromium.spec | 21 ++++++++++++--------- fix-ppc64-rust_png-build-error.patch | 11 +++++++++++ 2 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 fix-ppc64-rust_png-build-error.patch diff --git a/chromium.spec b/chromium.spec index 6c2f66f..7626c87 100644 --- a/chromium.spec +++ b/chromium.spec @@ -144,7 +144,7 @@ # enable|disable control flow integrity support %global cfi 0 %ifarch x86_64 aarch64 -%global cfi 1 +%global cfi 0 %endif # enable qt backend @@ -439,17 +439,19 @@ Patch412: add-ppc64-architecture-to-extensions.diff Patch413: fix-unknown-warning-option-messages.diff Patch414: cargo-add-ppc64.diff Patch415: add-ppc64-pthread-stack-size.patch +# Fix build error on el10 +Patch416: fix-ppc64-rust_png-build-error.patch # flatpak sandbox patches from # https://github.com/flathub/org.chromium.Chromium/tree/master/patches/chromium -Patch416: flatpak-Add-initial-sandbox-support.patch -Patch417: flatpak-Adjust-paths-for-the-sandbox.patch -Patch418: flatpak-Expose-Widevine-into-the-sandbox.patch +Patch500: flatpak-Add-initial-sandbox-support.patch +Patch501: flatpak-Adjust-paths-for-the-sandbox.patch +Patch502: flatpak-Expose-Widevine-into-the-sandbox.patch # upstream patches # https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4636 # https://chromium-review.googlesource.com/c/chromium/src/+/6421030 -Patch500: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch +Patch600: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1125,16 +1127,17 @@ Qt6 UI for chromium. %patch -P413 -p1 -b .fix-unknown-warning-option-messages %patch -P414 -p1 -b .rust-add-ppc64-case %patch -P415 -p1 -b .add-ppc64-pthread-stack-size +%patch -P416 -p1 -b .ppc64-rust_png-build-error %endif %if 0%{?flatpak} -%patch -P416 -p1 -b .flatpak-initial-sandbox -%patch -P417 -p1 -b .flatpak-sandbox-paths -%patch -P418 -p1 -b .flatpak-widevine +%patch -P500 -p1 -b .flatpak-initial-sandbox +%patch -P501 -p1 -b .flatpak-sandbox-paths +%patch -P502 -p1 -b .flatpak-widevine %endif # Upstream patches -%patch -P500 -p1 -b .add-cfi-suppressions-for-pipewire-functions +%patch -P600 -p1 -b .add-cfi-suppressions-for-pipewire-functions # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works diff --git a/fix-ppc64-rust_png-build-error.patch b/fix-ppc64-rust_png-build-error.patch new file mode 100644 index 0000000..5098f75 --- /dev/null +++ b/fix-ppc64-rust_png-build-error.patch @@ -0,0 +1,11 @@ +diff -up chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h.than chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h +--- chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h.than 2025-04-03 12:00:57.623069853 +0200 ++++ chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h 2025-04-03 12:02:42.234420632 +0200 +@@ -10,6 +10,7 @@ + + #include + #include ++#include + + // TODO(https://crbug.com/356698922): Use a real `#include` if possible. + namespace rust { From 1e076f59fd0004c6059646d2dba5510dbc7d315f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 4 Apr 2025 15:13:15 +0200 Subject: [PATCH 124/244] Fix FTBFS with rust-1.86 that replaces adler with adler2 on f43, --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 7626c87..a2fd5f2 100644 --- a/chromium.spec +++ b/chromium.spec @@ -334,7 +334,8 @@ Patch312: chromium-123-fstack-protector-strong.patch # build error stdarch_arm_crc32 Patch313: chromium-133-rust-crc32fast.patch -# build error: libadler2 not found +# build error: libadler2 not found, rust-1.86 or newer replaces adler with adler2 +# we have rust-1.86 in f41 and newer Patch315: chromium-134-rust-libadler2.patch # add -ftrivial-auto-var-init=zero and -fwrapv @@ -1044,7 +1045,9 @@ Qt6 UI for chromium. %patch -P313 -p1 -b .rust-crc32fast %endif %endif +%if 0%{?rhel} || 0%{?fedora} == 40 %patch -P315 -p1 -b .rust-libadler2 +%endif %patch -P316 -p1 -b .clang-build-flags %if %{disable_bti} From 0d9761748509bb12051ab149d28c1052cd834f87 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 9 Apr 2025 10:55:12 +0200 Subject: [PATCH 125/244] - Update to 135.0.7049.84 * CVE-2025-3066: Use after free in Site Isolation --- ....patch => chromium-135-rust-clanglib.patch | 63 ++++++++++--------- chromium-135.0.7049.84-clean.tar.xz.hashes | 6 ++ chromium.spec | 10 ++- sources | 2 +- 4 files changed, 46 insertions(+), 35 deletions(-) rename chromium-127-rust-clanglib.patch => chromium-135-rust-clanglib.patch (66%) create mode 100644 chromium-135.0.7049.84-clean.tar.xz.hashes diff --git a/chromium-127-rust-clanglib.patch b/chromium-135-rust-clanglib.patch similarity index 66% rename from chromium-127-rust-clanglib.patch rename to chromium-135-rust-clanglib.patch index d419701..b212606 100644 --- a/chromium-127-rust-clanglib.patch +++ b/chromium-135-rust-clanglib.patch @@ -1,35 +1,20 @@ -diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.6533.72/build/rust/rust_bindgen.gni ---- chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me 2024-07-25 16:11:18.754551595 +0200 -+++ chromium-127.0.6533.72/build/rust/rust_bindgen.gni 2024-07-25 16:11:33.997837660 +0200 -@@ -19,11 +19,11 @@ - - # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in - # ../lib. --_libclang_path = rust_bindgen_root -+_libclang_path = clang_base_path - if (host_os == "win") { - _libclang_path += "/bin" - } else { -- _libclang_path += "/lib" -+ _libclang_path += "/lib64" - } - - # Template to build Rust/C bindings with bindgen. -diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chromium-121.0.6167.57/build/config/clang/BUILD.gn ---- chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib 2024-01-10 16:43:01.000000000 +0100 -+++ chromium-121.0.6167.57/build/config/clang/BUILD.gn 2024-01-20 19:51:38.481992799 +0100 -@@ -112,6 +112,7 @@ template("clang_lib") { +diff -up chromium-135.0.7049.84/build/config/clang/BUILD.gn.than chromium-135.0.7049.84/build/config/clang/BUILD.gn +--- chromium-135.0.7049.84/build/config/clang/BUILD.gn.than 2025-04-09 10:22:51.699058451 +0200 ++++ chromium-135.0.7049.84/build/config/clang/BUILD.gn 2025-04-09 10:43:06.524085005 +0200 +@@ -166,8 +166,8 @@ template("clang_lib") { _prefix = "lib" _suffix = "" _ext = "a" + _libprefix = "" + +- _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib" if (is_win) { _dir = "windows" _prefix = "" -@@ -127,7 +128,33 @@ template("clang_lib") { +@@ -197,7 +197,33 @@ template("clang_lib") { + } else { + assert(false) # Unhandled cpu type } - } else if (is_apple) { - _dir = "darwin" - } else if (is_linux || is_chromeos) { + } else if (is_linux) { + if (current_cpu == "x64") { @@ -61,19 +46,35 @@ diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chrom if (current_cpu == "x64") { _dir = "x86_64-unknown-linux-gnu" } else if (current_cpu == "x86") { -@@ -166,7 +193,7 @@ template("clang_lib") { +@@ -236,6 +262,7 @@ template("clang_lib") { assert(false) # Unhandled target platform } -- _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib" + _clang_lib_dir = "$clang_base_path/lib${_libprefix}/clang/$clang_version/lib" _lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}" libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ] - } -diff -up chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni.me chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni ---- chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni.me 2024-12-31 15:08:27.013151672 +0100 -+++ chromium-132.0.6834.57/build/rust/rust_bindgen_generator.gni 2024-12-31 15:08:49.538663024 +0100 -@@ -18,11 +18,11 @@ + +diff -up chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni.than chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni +--- chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni.than 2025-04-09 10:46:48.772413981 +0200 ++++ chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni 2025-04-09 10:47:15.480900587 +0200 +@@ -18,11 +18,11 @@ if (host_os == "win") { + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path + if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. +diff -up chromium-135.0.7049.84/build/rust/rust_bindgen.gni.than chromium-135.0.7049.84/build/rust/rust_bindgen.gni +--- chromium-135.0.7049.84/build/rust/rust_bindgen.gni.than 2025-04-09 10:45:53.577078718 +0200 ++++ chromium-135.0.7049.84/build/rust/rust_bindgen.gni 2025-04-09 10:46:29.974649891 +0200 +@@ -19,11 +19,11 @@ if (host_os == "win") { # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in # ../lib. diff --git a/chromium-135.0.7049.84-clean.tar.xz.hashes b/chromium-135.0.7049.84-clean.tar.xz.hashes new file mode 100644 index 0000000..0d17a98 --- /dev/null +++ b/chromium-135.0.7049.84-clean.tar.xz.hashes @@ -0,0 +1,6 @@ +md5 c0f091a6a67a517c6635e795639b268e chromium-135.0.7049.84-clean.tar.xz +sha1 d302aa94ccadb40138af4de365991804efa7f3de chromium-135.0.7049.84-clean.tar.xz +sha224 6497e3ae78a424a48cb2f71ff4f2bd03c8b04ab6f62ae568a700218b chromium-135.0.7049.84-clean.tar.xz +sha256 beebe9d797a1cf853436c30ead1f4e05385046e51f244de39da52d09efe6d336 chromium-135.0.7049.84-clean.tar.xz +sha384 54def5a71ef42a4c20c08fe1eb208cb8d83b8013cacdf36a7e666d6e9011d72785715476b6fde2aaa97b5ec9f3acd868 chromium-135.0.7049.84-clean.tar.xz +sha512 7e409a987661ed641bac798c79268e45ee8751fa0ef9371ecc1707ea8e5860c5be3e2beb810c54a943c9ba2a7a76a6627ab7735e6f632d8e24220dcd3559c231 chromium-135.0.7049.84-clean.tar.xz diff --git a/chromium.spec b/chromium.spec index a2fd5f2..3014bc0 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,8 +261,8 @@ %endif Name: chromium -Version: 135.0.7049.52 -Release: 2%{?dist} +Version: 135.0.7049.84 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -362,7 +362,7 @@ Patch356: chromium-133-pipewire-cast.patch Patch357: chromium-134-type-mismatch-error.patch # set clang_lib path -Patch358: chromium-127-rust-clanglib.patch +Patch358: chromium-135-rust-clanglib.patch # PowerPC64 LE support # Timothy Pearson's patchset @@ -1781,6 +1781,10 @@ fi %endif %changelog +* Wed Apr 09 2025 Than Ngo - 135.0.7049.84-1 +- Update to 135.0.7049.84 + * CVE-2025-3066: Use after free in Site Isolation + * Wed Apr 02 2025 Jan Grulich - 135.0.7049.52-2 - Add CFI suppressions for inline PipeWire functions diff --git a/sources b/sources index 31e03a9..fce3728 100644 --- a/sources +++ b/sources @@ -1,7 +1,7 @@ SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af825c4f426a3a76e3e0b2f3627a7eee1f108b8ca37eae366651df84e08ce36ac18741301d82cbe8b13373 -SHA512 (chromium-135.0.7049.52-clean.tar.xz) = ad26ec99dde52de6f7438b906c7be592806a0d6d80e2e2be298d7e6d23ba5f91b87acff29171092e56658e3a07722a021249070e5db68684e74c4d753a3c9531 SHA512 (node-v22.14.0-linux-arm64.tar.xz) = 1b459f4fb1c52d35253c678e28198cb4f82d459eceecca64b699b80ed7ff8ac7a2d86f79dffe56cdcc783f3379a3c0a00296ce1e24d7ef5554cf1d6236f0ff16 SHA512 (node-v22.14.0-linux-ppc64le.tar.xz) = 551ba75ee8c7ff84080e0c2ace721c9a0b32e2580637806df253108c01b6b27b79293360b7696646e3b8fcd447fb29b851e91adb5a9d0dd2fed693393086cbed SHA512 (node-v22.14.0-linux-x64.tar.xz) = acb8c6df3ad9e5b403449a003726de7733de5bb23162e6db535948589fb15570cd606924ad7ce76f42785117d938deec1e8d5781c20a3558b1ef8f8e4af41735 +SHA512 (chromium-135.0.7049.84-clean.tar.xz) = 7e409a987661ed641bac798c79268e45ee8751fa0ef9371ecc1707ea8e5860c5be3e2beb810c54a943c9ba2a7a76a6627ab7735e6f632d8e24220dcd3559c231 From e10023df542c957b6293dc69b6b9b06a2dc5431a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 10 Apr 2025 09:13:13 +0200 Subject: [PATCH 126/244] rust-1.86 is landed in fedora --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 3014bc0..0d9f6f5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1045,7 +1045,7 @@ Qt6 UI for chromium. %patch -P313 -p1 -b .rust-crc32fast %endif %endif -%if 0%{?rhel} || 0%{?fedora} == 40 +%if 0%{?rhel} %patch -P315 -p1 -b .rust-libadler2 %endif %patch -P316 -p1 -b .clang-build-flags From 051dbef9c1c467703f0c16240b04afad37fa7e44 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 12 Apr 2025 13:17:37 +0200 Subject: [PATCH 127/244] Refreshed flatpak patches --- flatpak-Add-initial-sandbox-support.patch | 54 +++++++++---------- flatpak-Adjust-paths-for-the-sandbox.patch | 14 ++--- ...pak-Expose-Widevine-into-the-sandbox.patch | 14 ++--- 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/flatpak-Add-initial-sandbox-support.patch b/flatpak-Add-initial-sandbox-support.patch index 73f39b1..3551ae3 100644 --- a/flatpak-Add-initial-sandbox-support.patch +++ b/flatpak-Add-initial-sandbox-support.patch @@ -1,4 +1,4 @@ -From e29f4b52c8770033504794b934bc14b1d7261ef1 Mon Sep 17 00:00:00 2001 +From 1915558377f7dc194ff2238c79b70ceacd88f474 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 17 Mar 2020 13:18:27 -0500 Subject: [PATCH] flatpak: Add initial sandbox support @@ -30,7 +30,7 @@ Subject: [PATCH] flatpak: Add initial sandbox support create mode 100644 sandbox/linux/services/flatpak_sandbox.h diff --git a/.gitignore b/.gitignore -index 9056030523807..2c13d0ad5f1c7 100644 +index 375db3d02ce28..1eee661c2bed4 100644 --- a/.gitignore +++ b/.gitignore @@ -75,6 +75,7 @@ vs-chromium-project.txt @@ -42,10 +42,10 @@ index 9056030523807..2c13d0ad5f1c7 100644 /.externalToolBuilders/ /.settings/ diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h -index e029700325e79..14ef172d37087 100644 +index 56ddbc2d4fa33..736a06ab1d673 100644 --- a/base/threading/thread_restrictions.h +++ b/base/threading/thread_restrictions.h -@@ -409,6 +409,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; +@@ -405,6 +405,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; namespace rlz_lib { class FinancialPing; } @@ -55,7 +55,7 @@ index e029700325e79..14ef172d37087 100644 namespace service_manager { class ServiceProcessLauncher; } -@@ -646,6 +649,7 @@ class BASE_EXPORT ScopedAllowBlocking { +@@ -641,6 +644,7 @@ class BASE_EXPORT ScopedAllowBlocking { friend class remoting:: ScopedBypassIOThreadRestrictions; // http://crbug.com/1144161 friend class remoting::ScopedAllowBlockingForCrashReporting; @@ -63,7 +63,7 @@ index e029700325e79..14ef172d37087 100644 friend class ui::DrmDisplayHostManager; friend class ui::ScopedAllowBlockingForGbmSurface; friend class ui::SelectFileDialogLinux; -@@ -788,6 +792,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { +@@ -783,6 +787,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { friend class rlz_lib::FinancialPing; friend class shell_integration_linux:: LaunchXdgUtilityScopedAllowBaseSyncPrimitives; @@ -151,10 +151,10 @@ index 583a386414590..c1cf93992da5b 100644 } #endif diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index bd1013ccdd503..00f6ff8e13af5 100644 +index e84c86a30d504..595a469c765a6 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc -@@ -12,6 +12,7 @@ +@@ -17,6 +17,7 @@ #include "base/logging.h" #include "base/posix/unix_domain_socket.h" #include "base/process/kill.h" @@ -162,7 +162,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 #include "base/process/memory.h" #include "base/strings/string_number_conversions.h" #include "base/types/fixed_array.h" -@@ -21,6 +22,7 @@ +@@ -26,6 +27,7 @@ #include "content/common/zygote/zygote_handle_impl_linux.h" #include "content/public/common/zygote/zygote_handle.h" #include "sandbox/linux/services/credentials.h" @@ -170,7 +170,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 #include "sandbox/linux/services/namespace_sandbox.h" #include "sandbox/linux/suid/client/setuid_sandbox_host.h" #include "sandbox/linux/suid/common/sandbox.h" -@@ -71,6 +73,7 @@ ZygoteHostImpl::ZygoteHostImpl() +@@ -76,6 +78,7 @@ ZygoteHostImpl::ZygoteHostImpl() : use_namespace_sandbox_(false), use_suid_sandbox_(false), use_suid_sandbox_for_adj_oom_score_(false), @@ -178,7 +178,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 sandbox_binary_(), zygote_pids_lock_(), zygote_pids_() {} -@@ -109,9 +112,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { +@@ -114,9 +117,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { sandbox_binary_ = setuid_sandbox_host->GetSandboxBinaryPath().value(); } @@ -194,7 +194,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 use_namespace_sandbox_ = true; } else if (!command_line.HasSwitch( sandbox::policy::switches::kDisableSetuidSandbox) && -@@ -182,10 +188,16 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -187,10 +193,16 @@ pid_t ZygoteHostImpl::LaunchZygote( sandbox_host->SetupLaunchEnvironment(); } @@ -215,7 +215,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 CHECK(process.IsValid()) << "Failed to launch zygote process"; dummy_fd.reset(); -@@ -194,7 +206,8 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -199,7 +211,8 @@ pid_t ZygoteHostImpl::LaunchZygote( pid_t pid = process.Pid(); @@ -225,7 +225,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 // The namespace and SUID sandbox will execute the zygote in a new // PID namespace, and the main zygote process will then fork from // there. Watch now our elaborate dance to find and validate the -@@ -222,7 +235,11 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -227,7 +240,11 @@ pid_t ZygoteHostImpl::LaunchZygote( if (real_pid != pid) { // Reap the sandbox. @@ -238,7 +238,7 @@ index bd1013ccdd503..00f6ff8e13af5 100644 } pid = real_pid; } -@@ -273,6 +290,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, +@@ -278,6 +295,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, selinux_valid = true; } @@ -362,10 +362,10 @@ index c7ee91878e6dd..9c2c7a04bd968 100644 base::GlobalDescriptors::Descriptor( static_cast(kSandboxIPCChannel), GetSandboxFD())); diff --git a/sandbox/linux/BUILD.gn b/sandbox/linux/BUILD.gn -index 97e3deed4f2b9..61916ed9805d3 100644 +index 4eac178764a41..8bd0de35f246f 100644 --- a/sandbox/linux/BUILD.gn +++ b/sandbox/linux/BUILD.gn -@@ -311,6 +311,10 @@ if (is_linux || is_chromeos) { +@@ -309,6 +309,10 @@ if (is_linux || is_chromeos) { component("sandbox_services") { sources = [ @@ -376,7 +376,7 @@ index 97e3deed4f2b9..61916ed9805d3 100644 "services/init_process_reaper.cc", "services/init_process_reaper.h", "services/proc_util.cc", -@@ -329,8 +333,10 @@ component("sandbox_services") { +@@ -327,8 +331,10 @@ component("sandbox_services") { defines = [ "SANDBOX_IMPLEMENTATION" ] @@ -506,7 +506,7 @@ index 0000000000000..22799eb42f782 +#endif diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc new file mode 100644 -index 0000000000000..31229fdf59127 +index 0000000000000..b5da5a5801fde --- /dev/null +++ b/sandbox/linux/services/flatpak_sandbox.cc @@ -0,0 +1,576 @@ @@ -1015,7 +1015,7 @@ index 0000000000000..31229fdf59127 + writer.CloseContainer(&options_writer); + + object_proxy->CallMethodWithErrorResponse( -+ &method_call, dbus::ObjectProxy::TIMEOUT_INFINITE, ++ &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, + base::BindOnce(&FlatpakSandbox::OnSpawnResponse, base::Unretained(this), + base::Unretained(out_external_pid), + base::Unretained(event))); @@ -1211,24 +1211,24 @@ index 0000000000000..167bbc85945ad + +#endif // SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_ diff --git a/sandbox/policy/BUILD.gn b/sandbox/policy/BUILD.gn -index 6767e25821a9a..521c089a5f3df 100644 +index 793c68d50e59f..b44c986fd72ab 100644 --- a/sandbox/policy/BUILD.gn +++ b/sandbox/policy/BUILD.gn -@@ -116,6 +116,9 @@ component("policy") { +@@ -114,6 +114,9 @@ component("policy") { "//sandbox/linux:suid_sandbox_client", ] } + if (is_linux) { + public_deps += [ "//sandbox/linux:sandbox_services" ] + } - if (is_chromeos_ash) { + if (is_chromeos) { sources += [ "linux/bpf_ime_policy_linux.cc", diff --git a/sandbox/policy/linux/sandbox_linux.cc b/sandbox/policy/linux/sandbox_linux.cc -index 6249a61685332..a3ae93f9f4191 100644 +index 427604b2b8a00..7384c01cc9123 100644 --- a/sandbox/policy/linux/sandbox_linux.cc +++ b/sandbox/policy/linux/sandbox_linux.cc -@@ -37,6 +37,7 @@ +@@ -36,6 +36,7 @@ #include "sandbox/constants.h" #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" #include "sandbox/linux/services/credentials.h" @@ -1236,7 +1236,7 @@ index 6249a61685332..a3ae93f9f4191 100644 #include "sandbox/linux/services/libc_interceptor.h" #include "sandbox/linux/services/namespace_sandbox.h" #include "sandbox/linux/services/proc_util.h" -@@ -232,6 +233,9 @@ void SandboxLinux::PreinitializeSandbox() { +@@ -231,6 +232,9 @@ void SandboxLinux::PreinitializeSandbox() { const int yama_status = Yama::GetStatus(); yama_is_enforcing_ = (yama_status & Yama::STATUS_PRESENT) && (yama_status & Yama::STATUS_ENFORCING); @@ -1246,7 +1246,7 @@ index 6249a61685332..a3ae93f9f4191 100644 pre_initialized_ = true; } -@@ -270,6 +274,10 @@ int SandboxLinux::GetStatus() { +@@ -269,6 +273,10 @@ int SandboxLinux::GetStatus() { sandbox_status_flags_ |= kPIDNS; if (NamespaceSandbox::InNewNetNamespace()) sandbox_status_flags_ |= kNetNS; diff --git a/flatpak-Adjust-paths-for-the-sandbox.patch b/flatpak-Adjust-paths-for-the-sandbox.patch index 17c6bcd..c396242 100644 --- a/flatpak-Adjust-paths-for-the-sandbox.patch +++ b/flatpak-Adjust-paths-for-the-sandbox.patch @@ -1,4 +1,4 @@ -From bf5f40f06d453e0128a9289d2df48d82822f8646 Mon Sep 17 00:00:00 2001 +From e7fd5c3a43aed07cf0a1561c408b631090be8374 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 25 Aug 2020 19:26:07 -0500 Subject: [PATCH] flatpak: Adjust paths for the sandbox @@ -9,10 +9,10 @@ Subject: [PATCH] flatpak: Adjust paths for the sandbox 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn -index b7338a65d9a68..b13c79e33c3f6 100644 +index 40e1d1c431dd0..e4a19c80e1afc 100644 --- a/chrome/common/BUILD.gn +++ b/chrome/common/BUILD.gn -@@ -633,6 +633,10 @@ static_library("constants") { +@@ -621,6 +621,10 @@ static_library("constants") { "//third_party/widevine/cdm:headers", ] } @@ -24,7 +24,7 @@ index b7338a65d9a68..b13c79e33c3f6 100644 # Use a static library here because many test binaries depend on this but don't diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc -index afc13e1b56f78..d707b71ba03ac 100644 +index 6476c59ba6378..9f1b950b14adc 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -38,6 +38,10 @@ @@ -38,7 +38,7 @@ index afc13e1b56f78..d707b71ba03ac 100644 #if BUILDFLAG(ENABLE_WIDEVINE) #include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck #endif -@@ -529,6 +533,14 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -502,6 +506,14 @@ bool PathProvider(int key, base::FilePath* result) { #endif #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_OPENBSD) case chrome::DIR_POLICY_FILES: { @@ -53,7 +53,7 @@ index afc13e1b56f78..d707b71ba03ac 100644 cur = base::FilePath(policy::kPolicyPath); break; } -@@ -549,7 +561,13 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -518,7 +530,13 @@ bool PathProvider(int key, base::FilePath* result) { #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { @@ -68,7 +68,7 @@ index afc13e1b56f78..d707b71ba03ac 100644 break; } #endif -@@ -596,6 +614,12 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -565,6 +583,12 @@ bool PathProvider(int key, base::FilePath* result) { "/Library/Application Support/Chromium/NativeMessagingHosts")); #endif #else // BUILDFLAG(IS_MAC) diff --git a/flatpak-Expose-Widevine-into-the-sandbox.patch b/flatpak-Expose-Widevine-into-the-sandbox.patch index fc2eaf3..1e9bafa 100644 --- a/flatpak-Expose-Widevine-into-the-sandbox.patch +++ b/flatpak-Expose-Widevine-into-the-sandbox.patch @@ -1,4 +1,4 @@ -From 266e6fc37326e45402f826b282b0e0c461614905 Mon Sep 17 00:00:00 2001 +From c5330fa947e1db2db4055994e0da993620f2b5ef Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 17 Nov 2020 13:00:39 -0600 Subject: [PATCH] flatpak: Expose Widevine into the sandbox @@ -10,10 +10,10 @@ Subject: [PATCH] flatpak: Expose Widevine into the sandbox 3 files changed, 131 insertions(+), 24 deletions(-) diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index 00f6ff8e13af5..cf3019e26bbf2 100644 +index 595a469c765a6..56cbbb33addde 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc -@@ -9,7 +9,10 @@ +@@ -14,7 +14,10 @@ #include #include "base/files/file_enumerator.h" @@ -24,7 +24,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644 #include "base/posix/unix_domain_socket.h" #include "base/process/kill.h" #include "base/process/launch.h" -@@ -17,9 +20,12 @@ +@@ -22,9 +25,12 @@ #include "base/strings/string_number_conversions.h" #include "base/types/fixed_array.h" #include "build/build_config.h" @@ -37,7 +37,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644 #include "content/public/common/zygote/zygote_handle.h" #include "sandbox/linux/services/credentials.h" #include "sandbox/linux/services/flatpak_sandbox.h" -@@ -28,6 +34,7 @@ +@@ -33,6 +39,7 @@ #include "sandbox/linux/suid/common/sandbox.h" #include "sandbox/policy/linux/sandbox_linux.h" #include "sandbox/policy/switches.h" @@ -45,7 +45,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644 #if BUILDFLAG(IS_CHROMEOS) #include "content/common/zygote/zygote_communication_linux.h" -@@ -192,8 +199,51 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -197,8 +204,51 @@ pid_t ZygoteHostImpl::LaunchZygote( if (is_sandboxed_zygote && use_namespace_sandbox_) { process = sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options); } else if (is_sandboxed_zygote && use_flatpak_sandbox_) { @@ -100,7 +100,7 @@ index 00f6ff8e13af5..cf3019e26bbf2 100644 process = base::LaunchProcess(*cmd_line, options); } diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc -index 31229fdf59127..cabda783879e6 100644 +index b5da5a5801fde..7c9205e7bf602 100644 --- a/sandbox/linux/services/flatpak_sandbox.cc +++ b/sandbox/linux/services/flatpak_sandbox.cc @@ -4,6 +4,7 @@ From f3b7db492ce4cff869292d0d3ff68c0d760f0e48 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 12 Apr 2025 15:11:17 +0200 Subject: [PATCH 128/244] Prevent FTBFS due to changes in gperf 3.2 generated code in F43. --- chromium-135-gperf.patch | 35 +++++++++++++++++++++++++++++++++++ chromium.spec | 3 +++ 2 files changed, 38 insertions(+) create mode 100644 chromium-135-gperf.patch diff --git a/chromium-135-gperf.patch b/chromium-135-gperf.patch new file mode 100644 index 0000000..f404371 --- /dev/null +++ b/chromium-135-gperf.patch @@ -0,0 +1,35 @@ +From b552a86d494c1acf9c3472b8e5f00d90f9d3a704 Mon Sep 17 00:00:00 2001 +From: Daniel Richard G +Date: Thu, 10 Apr 2025 04:35:40 -0400 +Subject: [PATCH] Don't apply /*FALLTHROUGH*/ edit to gperf 3.2 output + +The gperf issue at https://savannah.gnu.org/bugs/index.php?53029 +has been resolved as of the 3.2 release, and not only is the +/*FALLTHROUGH*/ comment replacement no longer needed, it now +breaks the build with "error: fallthrough annotation does not +directly precede switch label". Only do the edit for 3.1. + +Bug: None +Change-Id: I1f12a2a685b62d0dedb4298bc171ab4c94ec6b47 +--- + +diff --git a/third_party/blink/renderer/build/scripts/gperf.py b/third_party/blink/renderer/build/scripts/gperf.py +index 42630d3..0df5abd 100644 +--- a/third_party/blink/renderer/build/scripts/gperf.py ++++ b/third_party/blink/renderer/build/scripts/gperf.py +@@ -35,10 +35,11 @@ + # https://savannah.gnu.org/bugs/index.php?53028 + gperf_output = re.sub(r'\bregister ', '', gperf_output) + # -Wimplicit-fallthrough needs an explicit fallthrough statement, +- # so replace gperf's /*FALLTHROUGH*/ comment with the statement. +- # https://savannah.gnu.org/bugs/index.php?53029 +- gperf_output = gperf_output.replace('/*FALLTHROUGH*/', +- ' [[fallthrough]];') ++ # so replace gperf 3.1's /*FALLTHROUGH*/ comment with the statement. ++ # https://savannah.gnu.org/bugs/index.php?53029 (fixed in 3.2) ++ if '/* C++ code produced by gperf version 3.1 */' in gperf_output: ++ gperf_output = gperf_output.replace('/*FALLTHROUGH*/', ++ ' [[fallthrough]];') + # -Wpointer-to-int-cast warns about casting pointers to smaller ints + # Replace {(int)(long)&(foo), bar} with + # {static_cast(reinterpret_cast(&(foo)), bar} diff --git a/chromium.spec b/chromium.spec index 0d9f6f5..f2e1557 100644 --- a/chromium.spec +++ b/chromium.spec @@ -453,6 +453,8 @@ Patch502: flatpak-Expose-Widevine-into-the-sandbox.patch # https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4636 # https://chromium-review.googlesource.com/c/chromium/src/+/6421030 Patch600: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch +# https://chromium-review.googlesource.com/c/chromium/src/+/6445471 +Patch601: chromium-135-gperf.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1141,6 +1143,7 @@ Qt6 UI for chromium. # Upstream patches %patch -P600 -p1 -b .add-cfi-suppressions-for-pipewire-functions +%patch -P601 -p1 -b .gperf-3.2 # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works From 09bc163b2e823a3d430e1c048ef50e30c2265385 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 14 Apr 2025 10:41:17 +0200 Subject: [PATCH 129/244] Backport upstream, fix Print preview almost fails and prevents printing --- chromium-135-print-review-fail.patch | 44 ++++++++++++++++++++++++++++ chromium.spec | 3 ++ 2 files changed, 47 insertions(+) create mode 100644 chromium-135-print-review-fail.patch diff --git a/chromium-135-print-review-fail.patch b/chromium-135-print-review-fail.patch new file mode 100644 index 0000000..478b3dc --- /dev/null +++ b/chromium-135-print-review-fail.patch @@ -0,0 +1,44 @@ +Only call format_message when needed + +SkJpegDecoderMgr.cpp#print_message calls into `format_message` to print +informational strings from the jpeg decoder. However, the informational +strings are only output in developer builds where +`SK_PRINT_CODEC_MESSAGES` is defined. As a result this call is usually +just extra work which is then ignored. Move the call of `format_message` +into the argument list of `SkCodecPrintf` so that the call is only +performed if its result is going to be used. + +When Skia is compiled to use the system libjpeg-turbo the +`format_message` function pointer is set by an external library to point +at a function inside an external library and is then called by Skia. +This can cause false positive reports [0] from CFI icall [1]. This +change effectively solves this issue by never calling `format_message` +in a CFI enabled build. + +[0] https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/issues/13 +[1] https://clang.llvm.org/docs/ControlFlowIntegrity.html#indirect-function-call-checking + +Change-Id: I5a59459e1e87bf8cdb3d7e90481a115a2a77d6cf +Reviewed-on: https://skia-review.googlesource.com/c/skia/+/961356 +Reviewed-by: Daniel Dilan +Commit-Queue: Ben Wagner + +diff --git a/third_party/skia/src/codec/SkJpegDecoderMgr.cpp b/third_party/skia/src/codec/SkJpegDecoderMgr.cpp +index c905ee1..5ae9573 100644 +--- a/third_party/skia/src/codec/SkJpegDecoderMgr.cpp ++++ b/third_party/skia/src/codec/SkJpegDecoderMgr.cpp +@@ -24,9 +24,11 @@ + * Print information, warning, and error messages + */ + static void print_message(const j_common_ptr info, const char caller[]) { +- char buffer[JMSG_LENGTH_MAX]; +- info->err->format_message(info, buffer); +- SkCodecPrintf("libjpeg error %d <%s> from %s\n", info->err->msg_code, buffer, caller); ++ [[maybe_unused]] char buffer[JMSG_LENGTH_MAX]; ++ SkCodecPrintf("libjpeg error %d <%s> from %s\n", ++ info->err->msg_code, ++ (info->err->format_message(info, buffer), buffer), ++ caller); + } + + /* diff --git a/chromium.spec b/chromium.spec index f2e1557..e99eaad 100644 --- a/chromium.spec +++ b/chromium.spec @@ -455,6 +455,8 @@ Patch502: flatpak-Expose-Widevine-into-the-sandbox.patch Patch600: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch # https://chromium-review.googlesource.com/c/chromium/src/+/6445471 Patch601: chromium-135-gperf.patch +# https://skia-review.googlesource.com/c/skia/+/961356 +Patch602: chromium-135-print-review-fail.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1144,6 +1146,7 @@ Qt6 UI for chromium. # Upstream patches %patch -P600 -p1 -b .add-cfi-suppressions-for-pipewire-functions %patch -P601 -p1 -b .gperf-3.2 +%patch -P602 -p1 -b .print-review-fail # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works From c1fd0feaf2ed2811cbfedb8141a806ba13b85001 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 16 Apr 2025 17:24:37 +0200 Subject: [PATCH 130/244] - Update to 135.0.7049.95 * CVE-2025-3619: Heap buffer overflow in Codecs * CVE-2025-3620: Use after free in USB --- chromium-135.0.7049.96-clean.tar.xz.hashes | 18 ++++++++++++++++++ chromium.spec | 7 ++++++- sources | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 chromium-135.0.7049.96-clean.tar.xz.hashes diff --git a/chromium-135.0.7049.96-clean.tar.xz.hashes b/chromium-135.0.7049.96-clean.tar.xz.hashes new file mode 100644 index 0000000..b1ec7b9 --- /dev/null +++ b/chromium-135.0.7049.96-clean.tar.xz.hashes @@ -0,0 +1,18 @@ + + + + + + +md5sum +sha1sum +sha224sum +sha256sum +sha384sum +sha512sum +md5 +sha1 +sha224 +sha256 +sha384 +sha512 diff --git a/chromium.spec b/chromium.spec index e99eaad..f549663 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 135.0.7049.84 +Version: 135.0.7049.95 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1787,6 +1787,11 @@ fi %endif %changelog +* Wed Apr 16 2025 Than Ngo - 135.0.7049.95-1 +- Update to 135.0.7049.95 + * CVE-2025-3619: Heap buffer overflow in Codecs + * CVE-2025-3620: Use after free in USB + * Wed Apr 09 2025 Than Ngo - 135.0.7049.84-1 - Update to 135.0.7049.84 * CVE-2025-3066: Use after free in Site Isolation diff --git a/sources b/sources index fce3728..66174da 100644 --- a/sources +++ b/sources @@ -4,4 +4,4 @@ SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af82 SHA512 (node-v22.14.0-linux-arm64.tar.xz) = 1b459f4fb1c52d35253c678e28198cb4f82d459eceecca64b699b80ed7ff8ac7a2d86f79dffe56cdcc783f3379a3c0a00296ce1e24d7ef5554cf1d6236f0ff16 SHA512 (node-v22.14.0-linux-ppc64le.tar.xz) = 551ba75ee8c7ff84080e0c2ace721c9a0b32e2580637806df253108c01b6b27b79293360b7696646e3b8fcd447fb29b851e91adb5a9d0dd2fed693393086cbed SHA512 (node-v22.14.0-linux-x64.tar.xz) = acb8c6df3ad9e5b403449a003726de7733de5bb23162e6db535948589fb15570cd606924ad7ce76f42785117d938deec1e8d5781c20a3558b1ef8f8e4af41735 -SHA512 (chromium-135.0.7049.84-clean.tar.xz) = 7e409a987661ed641bac798c79268e45ee8751fa0ef9371ecc1707ea8e5860c5be3e2beb810c54a943c9ba2a7a76a6627ab7735e6f632d8e24220dcd3559c231 +SHA512 (chromium-135.0.7049.95-clean.tar.xz) = bb73e201ebf08e05901a54ceef367de95257da49f3c090b0cc88e23af0e901ecaa13b915080f911c29a157191efd6bcab00c844a58fd3757009a89255af0ec89 From b6a4674a714a5f193e0dd033ad204025b2e3618e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 17 Apr 2025 09:06:01 +0200 Subject: [PATCH 131/244] Updated chromium-135.0.7049.95-clean.tar.xz.hashes --- chromium-135.0.7049.84-clean.tar.xz.hashes | 6 ------ chromium-135.0.7049.95-clean.tar.xz.hashes | 6 ++++++ chromium-135.0.7049.96-clean.tar.xz.hashes | 18 ------------------ 3 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 chromium-135.0.7049.84-clean.tar.xz.hashes create mode 100644 chromium-135.0.7049.95-clean.tar.xz.hashes delete mode 100644 chromium-135.0.7049.96-clean.tar.xz.hashes diff --git a/chromium-135.0.7049.84-clean.tar.xz.hashes b/chromium-135.0.7049.84-clean.tar.xz.hashes deleted file mode 100644 index 0d17a98..0000000 --- a/chromium-135.0.7049.84-clean.tar.xz.hashes +++ /dev/null @@ -1,6 +0,0 @@ -md5 c0f091a6a67a517c6635e795639b268e chromium-135.0.7049.84-clean.tar.xz -sha1 d302aa94ccadb40138af4de365991804efa7f3de chromium-135.0.7049.84-clean.tar.xz -sha224 6497e3ae78a424a48cb2f71ff4f2bd03c8b04ab6f62ae568a700218b chromium-135.0.7049.84-clean.tar.xz -sha256 beebe9d797a1cf853436c30ead1f4e05385046e51f244de39da52d09efe6d336 chromium-135.0.7049.84-clean.tar.xz -sha384 54def5a71ef42a4c20c08fe1eb208cb8d83b8013cacdf36a7e666d6e9011d72785715476b6fde2aaa97b5ec9f3acd868 chromium-135.0.7049.84-clean.tar.xz -sha512 7e409a987661ed641bac798c79268e45ee8751fa0ef9371ecc1707ea8e5860c5be3e2beb810c54a943c9ba2a7a76a6627ab7735e6f632d8e24220dcd3559c231 chromium-135.0.7049.84-clean.tar.xz diff --git a/chromium-135.0.7049.95-clean.tar.xz.hashes b/chromium-135.0.7049.95-clean.tar.xz.hashes new file mode 100644 index 0000000..aaf064f --- /dev/null +++ b/chromium-135.0.7049.95-clean.tar.xz.hashes @@ -0,0 +1,6 @@ +a4b3e165abbce1a7f059c1b8ba08c955 chromium-135.0.7049.95-clean.tar.xz +0cfedc1c1f27059ca5c42fe6562a2e7a30b586ba chromium-135.0.7049.95-clean.tar.xz +59120a05929b82313bf38e751f23ad91061e797750e87f02bfb67d28 chromium-135.0.7049.95-clean.tar.xz +efb07d889d133c90e0b7b84b08727203ada1b4031f4ee29db09e192b6fdfe5f3 chromium-135.0.7049.95-clean.tar.xz +80a89d944d9c6b6b43dcef237c07d7b2e19500eb5812b90e76d8767102aceef696fb062b4555fdc006f7cf44f519567e chromium-135.0.7049.95-clean.tar.xz +bb73e201ebf08e05901a54ceef367de95257da49f3c090b0cc88e23af0e901ecaa13b915080f911c29a157191efd6bcab00c844a58fd3757009a89255af0ec89 chromium-135.0.7049.95-clean.tar.xz diff --git a/chromium-135.0.7049.96-clean.tar.xz.hashes b/chromium-135.0.7049.96-clean.tar.xz.hashes deleted file mode 100644 index b1ec7b9..0000000 --- a/chromium-135.0.7049.96-clean.tar.xz.hashes +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - -md5sum -sha1sum -sha224sum -sha256sum -sha384sum -sha512sum -md5 -sha1 -sha224 -sha256 -sha384 -sha512 From be538748f34015ae98943ad6d7230c2427024f4e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 23 Apr 2025 10:50:57 +0200 Subject: [PATCH 132/244] Update to 135.0.7049.114 --- chromium-135.0.7049.95.tar.xz.hashes | 6 ++++++ chromium.spec | 5 ++++- sources | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 chromium-135.0.7049.95.tar.xz.hashes diff --git a/chromium-135.0.7049.95.tar.xz.hashes b/chromium-135.0.7049.95.tar.xz.hashes new file mode 100644 index 0000000..aaf064f --- /dev/null +++ b/chromium-135.0.7049.95.tar.xz.hashes @@ -0,0 +1,6 @@ +a4b3e165abbce1a7f059c1b8ba08c955 chromium-135.0.7049.95-clean.tar.xz +0cfedc1c1f27059ca5c42fe6562a2e7a30b586ba chromium-135.0.7049.95-clean.tar.xz +59120a05929b82313bf38e751f23ad91061e797750e87f02bfb67d28 chromium-135.0.7049.95-clean.tar.xz +efb07d889d133c90e0b7b84b08727203ada1b4031f4ee29db09e192b6fdfe5f3 chromium-135.0.7049.95-clean.tar.xz +80a89d944d9c6b6b43dcef237c07d7b2e19500eb5812b90e76d8767102aceef696fb062b4555fdc006f7cf44f519567e chromium-135.0.7049.95-clean.tar.xz +bb73e201ebf08e05901a54ceef367de95257da49f3c090b0cc88e23af0e901ecaa13b915080f911c29a157191efd6bcab00c844a58fd3757009a89255af0ec89 chromium-135.0.7049.95-clean.tar.xz diff --git a/chromium.spec b/chromium.spec index f549663..8e5e2ef 100644 --- a/chromium.spec +++ b/chromium.spec @@ -261,7 +261,7 @@ %endif Name: chromium -Version: 135.0.7049.95 +Version: 135.0.7049.114 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1787,6 +1787,9 @@ fi %endif %changelog +* Wed Apr 23 2025 Than Ngo - 135.0.7049.114-1 +- Update to 135.0.7049.114 + * Wed Apr 16 2025 Than Ngo - 135.0.7049.95-1 - Update to 135.0.7049.95 * CVE-2025-3619: Heap buffer overflow in Codecs diff --git a/sources b/sources index 66174da..c3373b9 100644 --- a/sources +++ b/sources @@ -4,4 +4,4 @@ SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af82 SHA512 (node-v22.14.0-linux-arm64.tar.xz) = 1b459f4fb1c52d35253c678e28198cb4f82d459eceecca64b699b80ed7ff8ac7a2d86f79dffe56cdcc783f3379a3c0a00296ce1e24d7ef5554cf1d6236f0ff16 SHA512 (node-v22.14.0-linux-ppc64le.tar.xz) = 551ba75ee8c7ff84080e0c2ace721c9a0b32e2580637806df253108c01b6b27b79293360b7696646e3b8fcd447fb29b851e91adb5a9d0dd2fed693393086cbed SHA512 (node-v22.14.0-linux-x64.tar.xz) = acb8c6df3ad9e5b403449a003726de7733de5bb23162e6db535948589fb15570cd606924ad7ce76f42785117d938deec1e8d5781c20a3558b1ef8f8e4af41735 -SHA512 (chromium-135.0.7049.95-clean.tar.xz) = bb73e201ebf08e05901a54ceef367de95257da49f3c090b0cc88e23af0e901ecaa13b915080f911c29a157191efd6bcab00c844a58fd3757009a89255af0ec89 +SHA512 (chromium-135.0.7049.114-clean.tar.xz) = ac77aadcd0fbefbf98276c3c8653a82873936929659c86f1edd1a4a53bc819d94007a6caa9daf25e0f2007f315175530f55575925d458837ef149c62f4402bcb From 97dc450dcf7a10fdab8bfb5eca94e4c973e9784b Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 23 Apr 2025 10:53:44 +0200 Subject: [PATCH 133/244] updated hash file --- chromium-135.0.7049.114-clean.tar.xz.hashes | 6 ++++++ chromium-135.0.7049.95.tar.xz.hashes | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 chromium-135.0.7049.114-clean.tar.xz.hashes delete mode 100644 chromium-135.0.7049.95.tar.xz.hashes diff --git a/chromium-135.0.7049.114-clean.tar.xz.hashes b/chromium-135.0.7049.114-clean.tar.xz.hashes new file mode 100644 index 0000000..65ba27e --- /dev/null +++ b/chromium-135.0.7049.114-clean.tar.xz.hashes @@ -0,0 +1,6 @@ +MD5 (chromium-135.0.7049.114-clean.tar.xz) = 3e6d39f1413b13c0aa50a2971401c552 +SHA1 (chromium-135.0.7049.114-clean.tar.xz) = 1f774ac27b3354e518275ac2dfa12bdd46b5bd9f +SHA224 (chromium-135.0.7049.114-clean.tar.xz) = 6ddd90b96353b3507be4c810073d510ab071f854e2cf02e13bd4f5df +SHA256 (chromium-135.0.7049.114-clean.tar.xz) = 54f6100482e40e30734efcdd2f0e706ae8549bbd58bc6e826cbe1f048865e7b2 +SHA384 (chromium-135.0.7049.114-clean.tar.xz) = 81828bec80e7ef896b620f99e5d90278da0f2001cfa4dfab26fbb511f9bbafa34992fe132ee03fb89b213e2915958465 +SHA512 (chromium-135.0.7049.114-clean.tar.xz) = ac77aadcd0fbefbf98276c3c8653a82873936929659c86f1edd1a4a53bc819d94007a6caa9daf25e0f2007f315175530f55575925d458837ef149c62f4402bcb diff --git a/chromium-135.0.7049.95.tar.xz.hashes b/chromium-135.0.7049.95.tar.xz.hashes deleted file mode 100644 index aaf064f..0000000 --- a/chromium-135.0.7049.95.tar.xz.hashes +++ /dev/null @@ -1,6 +0,0 @@ -a4b3e165abbce1a7f059c1b8ba08c955 chromium-135.0.7049.95-clean.tar.xz -0cfedc1c1f27059ca5c42fe6562a2e7a30b586ba chromium-135.0.7049.95-clean.tar.xz -59120a05929b82313bf38e751f23ad91061e797750e87f02bfb67d28 chromium-135.0.7049.95-clean.tar.xz -efb07d889d133c90e0b7b84b08727203ada1b4031f4ee29db09e192b6fdfe5f3 chromium-135.0.7049.95-clean.tar.xz -80a89d944d9c6b6b43dcef237c07d7b2e19500eb5812b90e76d8767102aceef696fb062b4555fdc006f7cf44f519567e chromium-135.0.7049.95-clean.tar.xz -bb73e201ebf08e05901a54ceef367de95257da49f3c090b0cc88e23af0e901ecaa13b915080f911c29a157191efd6bcab00c844a58fd3757009a89255af0ec89 chromium-135.0.7049.95-clean.tar.xz From c710b35d38ebe3e04f8880bdb3191406f6273441 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 29 Apr 2025 18:52:43 +0200 Subject: [PATCH 134/244] - Update to 136.0.7103.48 * Refresh ppc64le patches * Drop bundle esbuild * Drop bundle nodejs * Refresh system-brotli, unsupport-clang-flags patches * Disable NodeJS version check * Fixed ftbfs, skrifa build error due to old rustc * Drop chromium-133-pipewire-cast patch, merged by upstream * Drop chromium-135-print-review-fail patch, merged by upstream * Disable warning-suppression-mappings as it causes FTBFS on el9/f40 due to old llvm --- .gitignore | 1 + 0001-Add-PPC64-support-for-boringssl.patch | 266 ++++++------- ...Implement-support-for-PPC64-on-Linux.patch | 198 +++++----- ...Implement-support-for-ppc64-on-Linux.patch | 186 ++++----- 0001-Remove-unused-OpenSSL-config.patch | 46 +++ ...date-syscall-helpers-lists-for-ppc64.patch | 78 ++-- ...ty-lss-Don-t-look-for-mmap2-on-ppc64.patch | 22 -- ...-PPC64-generated-files-for-boringssl.patch | 40 +- ...-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch | 36 ++ ...party-libvpx-Remove-bad-ppc64-config.patch | 28 +- 0002-third_party-lss-kernel-structs.patch | 44 +-- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- HACK-third_party-libvpx-use-generic-gnu.patch | 22 +- cargo-add-ppc64.diff | 13 - chromium-132-el8-unsupport-clang-flags.patch | 17 - chromium-133-pipewire-cast.patch | 21 -- chromium-135-print-review-fail.patch | 44 --- chromium-135-system-brotli.patch | 38 -- chromium-135.0.7049.114-clean.tar.xz.hashes | 6 - chromium-135.0.7049.95-clean.tar.xz.hashes | 6 - chromium-136-checkversion-nodejs.patch | 20 + chromium-136-rust-skrifa-build-error.patch | 12 + chromium-136-system-brotli.patch | 38 ++ chromium-136-unsupport-clang-flags.patch | 17 + chromium.spec | 161 ++++---- nodejs-sources.sh | 353 ++++++++++++++++++ skia-vsx-instructions.patch | 138 +++---- sources | 9 +- 29 files changed, 1121 insertions(+), 785 deletions(-) create mode 100644 0001-Remove-unused-OpenSSL-config.patch delete mode 100644 0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch create mode 100644 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch delete mode 100644 cargo-add-ppc64.diff delete mode 100644 chromium-132-el8-unsupport-clang-flags.patch delete mode 100644 chromium-133-pipewire-cast.patch delete mode 100644 chromium-135-print-review-fail.patch delete mode 100644 chromium-135-system-brotli.patch delete mode 100644 chromium-135.0.7049.114-clean.tar.xz.hashes delete mode 100644 chromium-135.0.7049.95-clean.tar.xz.hashes create mode 100644 chromium-136-checkversion-nodejs.patch create mode 100644 chromium-136-rust-skrifa-build-error.patch create mode 100644 chromium-136-system-brotli.patch create mode 100644 chromium-136-unsupport-clang-flags.patch create mode 100755 nodejs-sources.sh diff --git a/.gitignore b/.gitignore index 9b5ce06..7589f13 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ /node-v22.14.0-linux-arm64.tar.xz /node-v22.14.0-linux-ppc64le.tar.xz /node-v22.14.0-linux-x64.tar.xz +/node-v22.14.0-stripped.tar.gz diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index af1288b..85c38d9 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc +} + +#endif // OPENSSL_PPC64LE -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/crypto.cc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/crypto.cc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/crypto.cc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/crypto.cc @@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -349,11 +349,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/crypto.cc + #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) - #include -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl + #if defined(OPENSSL_STATIC_ARMCAP) +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,11 +4164,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -@@ -82,6 +82,12 @@ inline int vpaes_capable(void) { return +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +@@ -81,6 +81,12 @@ inline int vpaes_capable(void) { return inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4181,7 +4181,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // !NO_ASM -@@ -504,6 +510,13 @@ void aes_gcm_dec_kernel(const uint8_t *i +@@ -501,6 +507,13 @@ void aes_gcm_dec_kernel(const uint8_t *i const u128 Htable[16]); #endif @@ -4195,11 +4195,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // OPENSSL_NO_ASM -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -@@ -105,6 +105,7 @@ +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +@@ -104,6 +104,7 @@ #include "self_check/fips.cc.inc" #include "self_check/self_check.cc.inc" #include "service_indicator/service_indicator.cc.inc" @@ -4207,10 +4207,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc #include "sha/sha1.cc.inc" #include "sha/sha256.cc.inc" #include "sha/sha512.cc.inc" -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc @@ -330,6 +330,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4235,11 +4235,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -@@ -1234,6 +1234,8 @@ int EVP_has_aes_hardware(void) { +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +@@ -1231,6 +1231,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); @@ -4248,10 +4248,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4924,10 +4924,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc @@ -233,6 +233,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4942,11 +4942,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gc #endif gcm_init_nohw(out_table, H); -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc -@@ -170,5 +170,15 @@ TEST(GCMTest, ABI) { +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +@@ -169,5 +169,15 @@ TEST(GCMTest, ABI) { } } #endif @@ -4962,10 +4962,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/aes/gc +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/rand/getrandom_fillin.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4975,10 +4975,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/rand/getrandom_fi #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc @@ -431,6 +431,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -4991,10 +4991,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5012,10 +5012,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc @@ -0,0 +1,369 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. @@ -5386,11 +5386,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/internal.h +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/internal.h -@@ -61,8 +61,9 @@ extern "C" { +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/internal.h +@@ -59,8 +59,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) @@ -5402,10 +5402,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1402,6 +1403,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl - +@@ -1401,6 +1402,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 + +#if defined(OPENSSL_PPC64LE) + +// CRYPTO_is_PPC64LE_vcrypto_capable returns true iff the current CPU supports @@ -5419,10 +5419,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5744,10 +5744,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5854,10 +5854,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6121,10 +6121,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-134.0.6998.35/third_party/boringssl/src/include/openssl/target.h +Index: chromium-136.0.7103.48/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-134.0.6998.35/third_party/boringssl/src/include/openssl/target.h +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-136.0.7103.48/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6135,10 +6135,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -35,6 +35,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6148,11 +6148,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go -@@ -54,7 +54,8 @@ type stringWriter interface { +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.go +@@ -56,7 +56,8 @@ type stringWriter interface { type processorType int const ( @@ -6162,7 +6162,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ aarch64 ) -@@ -67,6 +68,8 @@ type delocation struct { +@@ -69,6 +70,8 @@ type delocation struct { // symbols is the set of symbols defined in the module. symbols map[string]struct{} @@ -6171,7 +6171,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ // redirectors maps from out-call symbol name to the name of a // redirector function for that symbol. E.g. “memcpy” -> // “bcm_redirector_memcpy”. -@@ -75,6 +78,9 @@ type delocation struct { +@@ -77,6 +80,9 @@ type delocation struct { // should be used to reference it. E.g. “P384_data_storage” -> // “P384_data_storage”. bssAccessorsNeeded map[string]string @@ -6181,7 +6181,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ // gotExternalsNeeded is a set of symbol names for which we need // “delta” symbols: symbols that contain the offset from their location // to the memory in question. -@@ -151,6 +157,8 @@ func (d *delocation) processInput(input +@@ -155,6 +161,8 @@ func (d *delocation) processInput(input switch d.processor { case x86_64: statement, err = d.processIntelInstruction(statement, node.up) @@ -6190,7 +6190,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: statement, err = d.processAarch64Instruction(statement, node.up) default: -@@ -247,7 +255,7 @@ func (d *delocation) processDirective(st +@@ -255,7 +263,7 @@ func (d *delocation) processDirective(st d.writeNode(statement) break @@ -6199,7 +6199,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ d.writeNode(statement) break -@@ -336,6 +344,10 @@ func (d *delocation) processLabelContain +@@ -344,6 +352,10 @@ func (d *delocation) processLabelContain d.output.WriteString("\t" + name + "\t" + strings.Join(args, ", ") + "\n") } @@ -6210,7 +6210,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ return statement, nil } -@@ -659,6 +671,191 @@ func (d *delocation) processAarch64Instr +@@ -701,6 +713,191 @@ func (d *delocation) processAarch64Instr return statement, nil } @@ -6402,7 +6402,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ func (d *delocation) gatherOffsets(symRef *node32, offsets string) (*node32, string) { for symRef != nil && symRef.pegRule == ruleOffset { offset := d.contents(symRef) -@@ -713,6 +910,215 @@ func (d *delocation) parseMemRef(memRef +@@ -755,6 +952,215 @@ func (d *delocation) parseMemRef(memRef return } @@ -6618,7 +6618,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ /* Intel */ type instructionType int -@@ -1345,6 +1751,8 @@ func writeAarch64Function(w stringWriter +@@ -1368,6 +1774,8 @@ func writeAarch64Function(w stringWriter func transform(w stringWriter, inputs []inputFile) error { // symbols contains all defined symbols. symbols := make(map[string]struct{}) @@ -6627,8 +6627,8 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ // fileNumbers is the set of IDs seen in .file directives. fileNumbers := make(map[int]struct{}) // maxObservedFileNumber contains the largest seen file number in a -@@ -1368,6 +1776,25 @@ func transform(w stringWriter, inputs [] - }, ruleStatement, ruleLabel, ruleSymbolName) +@@ -1400,6 +1808,25 @@ func transform(w stringWriter, inputs [] + }, ruleStatement, ruleSymbolDefiningDirective, ruleSymbolDefiningDirectiveName) forEachPath(input.ast.up, func(node *node32) { + node = node.up @@ -6653,7 +6653,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ assertNodeType(node, ruleLocationDirective) directive := input.contents[node.begin:node.end] if !strings.HasPrefix(directive, ".file") { -@@ -1415,11 +1842,13 @@ func transform(w stringWriter, inputs [] +@@ -1447,11 +1874,13 @@ func transform(w stringWriter, inputs [] d := &delocation{ symbols: symbols, @@ -6667,7 +6667,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ gotExternalsNeeded: make(map[string]struct{}), gotOffsetsNeeded: make(map[string]struct{}), gotOffOffsetsNeeded: make(map[string]struct{}), -@@ -1454,6 +1883,22 @@ func transform(w stringWriter, inputs [] +@@ -1486,6 +1915,22 @@ func transform(w stringWriter, inputs [] for _, name := range redirectorNames { redirector := d.redirectors[name] switch d.processor { @@ -6690,7 +6690,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: writeAarch64Function(w, redirector, func(w stringWriter) { w.WriteString("\tb " + name + "\n") -@@ -1478,6 +1923,13 @@ func transform(w stringWriter, inputs [] +@@ -1510,6 +1955,13 @@ func transform(w stringWriter, inputs [] target := d.bssAccessorsNeeded[name] switch d.processor { @@ -6704,7 +6704,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ case x86_64: w.WriteString(".type " + funcName + ", @function\n") w.WriteString(funcName + ":\n") -@@ -1493,6 +1945,26 @@ func transform(w stringWriter, inputs [] +@@ -1525,6 +1977,26 @@ func transform(w stringWriter, inputs [] } switch d.processor { @@ -6731,7 +6731,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: externalNames := sortedSet(d.gotExternalsNeeded) for _, symbol := range externalNames { -@@ -1803,6 +2275,10 @@ func localTargetName(name string) string +@@ -1816,6 +2288,10 @@ func localTargetName(name string) string return ".L" + name + "_local_target" } @@ -6741,8 +6741,8 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ + func isSynthesized(symbol string) bool { return strings.HasSuffix(symbol, "_bss_get") || - symbol == "OPENSSL_ia32cap_get" || -@@ -1894,6 +2370,8 @@ func detectProcessor(input inputFile) pr + strings.HasPrefix(symbol, "BORINGSSL_bcm_text_") +@@ -1870,6 +2346,8 @@ func detectProcessor(input inputFile) pr switch instructionName { case "movq", "call", "leaq": return x86_64 @@ -6751,10 +6751,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. @@ -6768,10 +6768,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ # To regenerate delocate.peg.go: # -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6784,10 +6784,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6798,10 +6798,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6865,19 +6865,19 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6951,10 +6951,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.cc" + .abiversion 2 @@ -7117,10 +7117,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -7674,10 +7674,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.cc" + .abiversion 2 @@ -7905,10 +7905,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8587,10 +8587,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8615,10 +8615,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8798,10 +8798,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -+++ chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc @@ -367,6 +367,10 @@ static void sha1_block_data_order(uint32 return; } @@ -8813,11 +8813,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-134.0.6998.35/third_party/boringssl/src/build.json +Index: chromium-136.0.7103.48/third_party/boringssl/src/build.json =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/build.json -+++ chromium-134.0.6998.35/third_party/boringssl/src/build.json -@@ -126,6 +126,10 @@ +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/build.json ++++ chromium-136.0.7103.48/third_party/boringssl/src/build.json +@@ -128,6 +128,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} ], @@ -8828,7 +8828,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, {"src": "crypto/fipsmodule/bn/asm/bn-586.pl"}, -@@ -229,6 +233,7 @@ +@@ -234,6 +238,7 @@ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", @@ -8836,7 +8836,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/build.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -787,6 +792,9 @@ +@@ -791,6 +796,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8846,10 +8846,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-134.0.6998.35/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-136.0.7103.48/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-134.0.6998.35/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-136.0.7103.48/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8868,10 +8868,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-134.0.6998.35/third_party/boringssl/README.ppc64le +Index: chromium-136.0.7103.48/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/README.ppc64le ++++ chromium-136.0.7103.48/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8881,11 +8881,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.gni +Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.gni -@@ -119,6 +119,7 @@ bcm_sources_asm = [ +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.gni +@@ -121,6 +121,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", "gen/bcm/aesv8-gcm-armv8-win.S", @@ -8893,7 +8893,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.gni "gen/bcm/armv4-mont-linux.S", "gen/bcm/armv8-mont-apple.S", "gen/bcm/armv8-mont-linux.S", -@@ -135,6 +136,7 @@ bcm_sources_asm = [ +@@ -137,6 +138,7 @@ bcm_sources_asm = [ "gen/bcm/ghash-neon-armv8-apple.S", "gen/bcm/ghash-neon-armv8-linux.S", "gen/bcm/ghash-neon-armv8-win.S", @@ -8901,7 +8901,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.gni "gen/bcm/ghash-ssse3-x86-apple.S", "gen/bcm/ghash-ssse3-x86-linux.S", "gen/bcm/ghash-ssse3-x86_64-apple.S", -@@ -328,6 +330,7 @@ crypto_sources = [ +@@ -333,6 +335,7 @@ crypto_sources = [ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index c526728..9db7b99 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -686,6 +686,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +192,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +383,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +399,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -443,10 +443,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +571,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +592,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +666,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -94,6 +94,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +679,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-134.0.6998.35/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index 90eedf6..0c598c4 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dum #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dum +#endif + } // namespace google_breakpad -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dum }; } // namespace google_breakpad -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dum #endif } // namespace google_breakpad -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,11 +247,11 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/dum #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -@@ -464,6 +464,13 @@ bool ExceptionHandler::HandleSignal(int +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +@@ -465,6 +465,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); } @@ -265,7 +265,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han #elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE ucontext_t* uc_ptr = (ucontext_t*)uc; if (uc_ptr->uc_mcontext.fpregs) { -@@ -701,10 +708,18 @@ bool ExceptionHandler::WriteMinidump() { +@@ -703,10 +710,18 @@ bool ExceptionHandler::WriteMinidump() { } #endif @@ -285,7 +285,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han context.tid = sys_gettid(); // Add an exception stream to the minidump for better reporting. -@@ -725,6 +740,9 @@ bool ExceptionHandler::WriteMinidump() { +@@ -727,6 +742,9 @@ bool ExceptionHandler::WriteMinidump() { #elif defined(__mips__) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.pc); @@ -295,10 +295,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -200,7 +200,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -312,11 +312,11 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han fpstate_t float_state; #endif }; -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -@@ -321,7 +321,7 @@ TEST(ExceptionHandlerTest, ParallelChild +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +@@ -326,7 +326,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; } else { @@ -325,7 +325,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han } } -@@ -576,6 +576,8 @@ const unsigned char kIllegalInstruction[ +@@ -582,6 +582,8 @@ const unsigned char kIllegalInstruction[ #if defined(__mips__) // mfc2 zero,Impl - usually illegal in userspace. 0x48, 0x00, 0x00, 0x48 @@ -334,7 +334,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han #else // This crashes with SIGILL on x86/x86-64/arm. 0xff, 0xff, 0xff, 0xff -@@ -771,10 +773,10 @@ TEST(ExceptionHandlerTest, InstructionPo +@@ -777,10 +779,10 @@ TEST(ExceptionHandlerTest, InstructionPo // These are defined here so the parent can use them to check the // data from the minidump afterwards. @@ -347,22 +347,22 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/han const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -@@ -141,7 +141,9 @@ class MicrodumpWriter { +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +@@ -143,7 +143,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) - : ucontext_(context ? &context->context : NULL), + : ucontext_(context ? &context->context : nullptr), -#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE +#if defined(__powerpc64__) -+ vector_state_(context ? &context->vector_state : NULL), ++ vector_state_(context ? &context->vector_state : nullptr), +#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE - float_state_(context ? &context->float_state : NULL), + float_state_(context ? &context->float_state : nullptr), #endif dumper_(dumper), -@@ -348,6 +350,8 @@ class MicrodumpWriter { +@@ -350,6 +352,8 @@ class MicrodumpWriter { # else # error "Unexpected __riscv_xlen" # endif @@ -371,7 +371,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/mic #else # error "This code has not been ported to your platform yet" #endif -@@ -420,7 +424,9 @@ class MicrodumpWriter { +@@ -422,7 +426,9 @@ class MicrodumpWriter { void DumpCPUState() { RawContextCPU cpu; my_memset(&cpu, 0, sizeof(RawContextCPU)); @@ -382,7 +382,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/mic UContextReader::FillCPUContext(&cpu, ucontext_, float_state_); #else UContextReader::FillCPUContext(&cpu, ucontext_); -@@ -616,7 +622,9 @@ class MicrodumpWriter { +@@ -618,7 +624,9 @@ class MicrodumpWriter { void* Alloc(unsigned bytes) { return dumper_->allocator()->Alloc(bytes); } const ucontext_t* const ucontext_; @@ -393,10 +393,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/mic const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/mic #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,10 +446,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -461,10 +461,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,11 +475,11 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -@@ -56,6 +56,8 @@ +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +@@ -57,6 +57,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) #define TID_PTR_REGISTER "x4" @@ -488,10 +488,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -533,10 +533,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -556,22 +556,22 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -@@ -144,7 +144,9 @@ class MinidumpWriter { +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +@@ -145,7 +145,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), - ucontext_(context ? &context->context : NULL), + ucontext_(context ? &context->context : nullptr), -#if GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE +#if defined(__powerpc64__) -+ vector_state_(context ? &context->vector_state : NULL), ++ vector_state_(context ? &context->vector_state : nullptr), +#elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE - float_state_(context ? &context->float_state : NULL), + float_state_(context ? &context->float_state : nullptr), #endif dumper_(dumper), -@@ -476,7 +478,9 @@ class MinidumpWriter { +@@ -477,7 +479,9 @@ class MinidumpWriter { if (!cpu.Allocate()) return false; my_memset(cpu.get(), 0, sizeof(RawContextCPU)); @@ -582,7 +582,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min UContextReader::FillCPUContext(cpu.get(), ucontext_, float_state_); #else UContextReader::FillCPUContext(cpu.get(), ucontext_); -@@ -953,7 +957,7 @@ class MinidumpWriter { +@@ -954,7 +958,7 @@ class MinidumpWriter { dirent->location.rva = 0; } @@ -591,7 +591,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min bool WriteCPUInformation(MDRawSystemInfo* sys_info) { char vendor_id[sizeof(sys_info->cpu.x86_cpu_info.vendor_id) + 1] = {0}; static const char vendor_id_name[] = "vendor_id"; -@@ -973,7 +977,9 @@ class MinidumpWriter { +@@ -974,7 +978,9 @@ class MinidumpWriter { // processor_architecture should always be set, do this first sys_info->processor_architecture = @@ -602,7 +602,7 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min # if _MIPS_SIM == _ABIO32 MD_CPU_ARCHITECTURE_MIPS; # elif _MIPS_SIM == _ABI64 -@@ -1440,7 +1446,9 @@ class MinidumpWriter { +@@ -1441,7 +1447,9 @@ class MinidumpWriter { const char* path_; // Path to the file where the minidum should be written. const ucontext_t* const ucontext_; // also from the signal handler @@ -613,10 +613,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,10 +654,10 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/mem struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -672,25 +672,25 @@ Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/linux/mem for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); uint8_t* p = reinterpret_cast(allocator.Alloc(10000)); + uint64_t expected_pages = 1 + ((10000 - 1) / getpagesize()); - ASSERT_FALSE(p == NULL); + ASSERT_FALSE(p == nullptr); - EXPECT_EQ(3U, allocator.pages_allocated()); + EXPECT_EQ(expected_pages, allocator.pages_allocated()); for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); - ASSERT_FALSE(p == NULL); -Index: chromium-134.0.6998.35/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc + ASSERT_FALSE(p == nullptr); +Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-134.0.6998.35/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +--- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc @@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) diff --git a/0001-Remove-unused-OpenSSL-config.patch b/0001-Remove-unused-OpenSSL-config.patch new file mode 100644 index 0000000..5ad7382 --- /dev/null +++ b/0001-Remove-unused-OpenSSL-config.patch @@ -0,0 +1,46 @@ +From e93d9b5fdcd8e5744de629461c03a07de2252f8f Mon Sep 17 00:00:00 2001 +From: Stephen Gallagher +Date: Fri, 17 Apr 2020 12:59:44 +0200 +Subject: [PATCH] Remove unused OpenSSL config + +The build process will try to create these config files, even when +using the system OpenSSL and will thus fail since we strip this path +from the tarball. + +Signed-off-by: Stephen Gallagher +Signed-off-by: rpm-build +--- + node.gyp | 17 ----------------- + 1 file changed, 17 deletions(-) + +diff --git a/node.gyp b/node.gyp +index 1147495..da6ea50 100644 +--- a/node.gyp ++++ b/node.gyp +@@ -822,23 +822,6 @@ + ], + }, + ], +- }, { +- 'variables': { +- 'opensslconfig_internal': '<(obj_dir)/deps/openssl/openssl.cnf', +- 'opensslconfig': './deps/openssl/nodejs-openssl.cnf', +- }, +- 'actions': [ +- { +- 'action_name': 'reset_openssl_cnf', +- 'inputs': [ '<(opensslconfig)', ], +- 'outputs': [ '<(opensslconfig_internal)', ], +- 'action': [ +- '<(python)', 'tools/copyfile.py', +- '<(opensslconfig)', +- '<(opensslconfig_internal)', +- ], +- }, +- ], + }], + ], + }, # node_core_target_name +-- +2.47.0 + diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index ffe2476..3a74920 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -1,6 +1,21 @@ -diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ---- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 -+++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc 2025-03-19 16:20:41.392330750 +0100 +From da52663deec77f705d7d58b18484c3e28e563f10 Mon Sep 17 00:00:00 2001 +From: Shawn Anastasio +Date: Tue, 18 Sep 2018 18:39:28 -0500 +Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 + +--- + .../seccomp-bpf-helpers/baseline_policy.cc | 8 +- + .../syscall_parameters_restrictions.cc | 2 +- + .../syscall_parameters_restrictions.h | 2 +- + .../linux/seccomp-bpf-helpers/syscall_sets.cc | 108 ++++++++++-------- + .../linux/seccomp-bpf-helpers/syscall_sets.h | 6 +- + sandbox/linux/services/syscall_wrappers.cc | 2 +- + 6 files changed, 73 insertions(+), 55 deletions(-) + +Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +=================================================================== +--- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -39,19 +54,20 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/baseline_polic if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ---- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 -+++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2025-03-19 16:24:53.188175179 +0100 -@@ -35,7 +35,7 @@ +Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +=================================================================== +--- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -36,7 +36,7 @@ + #include "sandbox/linux/system_headers/linux_syscalls.h" #include "sandbox/linux/system_headers/linux_time.h" - #if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && \ -- !defined(PTRACE_GET_THREAD_AREA) -+ !defined(__powerpc64__) && !defined(PTRACE_GET_THREAD_AREA) +-#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && \ ++#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && !defined(__powerpc64__) && \ + !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. - // asm/ptrace-abi.h doesn't exist on arm32 and PTRACE_GET_THREAD_AREA isn't -@@ -43,6 +43,11 @@ +@@ -45,6 +45,11 @@ #include #endif @@ -63,7 +79,7 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame #if BUILDFLAG(IS_ANDROID) #if !defined(F_DUPFD_CLOEXEC) -@@ -100,6 +105,15 @@ inline bool IsArchitectureMips() { +@@ -102,6 +107,15 @@ inline bool IsArchitectureMips() { #endif } @@ -79,7 +95,7 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame // Ubuntu's version of glibc has a race condition in sem_post that can cause // it to call futex(2) with bogus op arguments. To workaround this, we need // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -267,9 +281,11 @@ ResultExpr RestrictFcntlCommands() { +@@ -269,9 +283,11 @@ ResultExpr RestrictFcntlCommands() { // operator. // Glibc overrides the kernel's O_LARGEFILE value. Account for this. uint64_t kOLargeFileFlag = O_LARGEFILE; @@ -92,7 +108,7 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame const Arg cmd(1); const Arg long_arg(2); -@@ -292,8 +308,17 @@ ResultExpr RestrictFcntlCommands() { +@@ -294,8 +310,17 @@ ResultExpr RestrictFcntlCommands() { F_SETLKW, F_GETLK, F_DUPFD, @@ -112,7 +128,7 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame .Case(F_SETFL, If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) .Case(F_ADD_SEALS, -@@ -302,7 +327,7 @@ ResultExpr RestrictFcntlCommands() { +@@ -304,7 +329,7 @@ ResultExpr RestrictFcntlCommands() { // clang-format on } @@ -121,7 +137,7 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -459,7 +484,7 @@ ResultExpr RestrictPtrace() { +@@ -470,7 +495,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -130,9 +146,10 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ---- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 -+++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h 2025-03-19 16:20:41.397390842 +0100 +Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +=================================================================== +--- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -142,9 +159,10 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_parame // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ---- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 -+++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc 2025-03-19 16:20:41.400744223 +0100 +Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +=================================================================== +--- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -564,9 +582,10 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.c case __NR_vserver: #endif return true; -diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ---- chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 -+++ chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h 2025-03-19 16:20:41.401408385 +0100 +Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +=================================================================== +--- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -604,9 +623,10 @@ diff -up chromium-135.0.7049.17/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -diff -up chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc ---- chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 2025-03-12 02:09:02.000000000 +0100 -+++ chromium-135.0.7049.17/sandbox/linux/services/syscall_wrappers.cc 2025-03-19 16:20:41.401536979 +0100 +Index: chromium-136.0.7103.48/sandbox/linux/services/syscall_wrappers.cc +=================================================================== +--- chromium-136.0.7103.48.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-136.0.7103.48/sandbox/linux/services/syscall_wrappers.cc @@ -66,7 +66,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch b/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch deleted file mode 100644 index 7926674..0000000 --- a/0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h -=================================================================== ---- chromium-128.0.6613.113.orig/third_party/lss/linux_syscall_support.h -+++ chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h -@@ -4638,7 +4638,7 @@ struct kernel_statx { - LSS_REG(2, buf); - LSS_BODY(void*, mmap2, "0"(__r2)); - } --#else -+#elif !defined(__powerpc64__) /* ppc64 doesn't have mmap2 */ - #define __NR__mmap2 __NR_mmap2 - LSS_INLINE _syscall6(void*, _mmap2, void*, s, - size_t, l, int, p, -@@ -4749,7 +4749,7 @@ struct kernel_statx { - #if defined(__i386__) || \ - defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \ - (defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI32) || \ -- defined(__PPC__) || \ -+ (defined(__PPC__) && !defined(__powerpc64__)) || \ - (defined(__s390__) && !defined(__s390x__)) - /* On these architectures, implement mmap() with mmap2(). */ - LSS_INLINE void* LSS_NAME(mmap)(void *s, size_t l, int p, int f, int d, diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 7a1f11a..e9c95a0 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,11 +4271,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake +Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake -@@ -118,6 +118,7 @@ set( +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake +@@ -120,6 +120,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S gen/bcm/aesni-x86_64-linux.S @@ -4283,7 +4283,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake gen/bcm/aesv8-armv7-linux.S gen/bcm/aesv8-armv8-apple.S gen/bcm/aesv8-armv8-linux.S -@@ -149,6 +150,7 @@ set( +@@ -151,6 +152,7 @@ set( gen/bcm/ghash-x86-linux.S gen/bcm/ghash-x86_64-apple.S gen/bcm/ghash-x86_64-linux.S @@ -4291,7 +4291,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake gen/bcm/ghashv8-armv7-linux.S gen/bcm/ghashv8-armv8-apple.S gen/bcm/ghashv8-armv8-linux.S -@@ -342,6 +344,7 @@ set( +@@ -347,6 +349,7 @@ set( crypto/cpu_arm_freebsd.cc crypto/cpu_arm_linux.cc crypto/cpu_intel.cc @@ -4299,7 +4299,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake crypto/crypto.cc crypto/curve25519/curve25519.cc crypto/curve25519/curve25519_64_adx.cc -@@ -2832,6 +2835,7 @@ set( +@@ -2864,6 +2867,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -4307,11 +4307,11 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json +Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-134.0.6998.35.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json -@@ -96,6 +96,7 @@ +--- chromium-136.0.7103.48.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json +@@ -98,6 +98,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", "gen/bcm/aesni-x86_64-linux.S", @@ -4319,7 +4319,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json "gen/bcm/aesv8-armv7-linux.S", "gen/bcm/aesv8-armv8-apple.S", "gen/bcm/aesv8-armv8-linux.S", -@@ -127,6 +128,7 @@ +@@ -129,6 +130,7 @@ "gen/bcm/ghash-x86-linux.S", "gen/bcm/ghash-x86_64-apple.S", "gen/bcm/ghash-x86_64-linux.S", @@ -4327,7 +4327,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json "gen/bcm/ghashv8-armv7-linux.S", "gen/bcm/ghashv8-armv8-apple.S", "gen/bcm/ghashv8-armv8-linux.S", -@@ -312,6 +314,7 @@ +@@ -317,6 +319,7 @@ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", @@ -4335,7 +4335,7 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -2752,6 +2755,7 @@ +@@ -2784,6 +2787,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -4343,10 +4343,10 @@ Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-134.0.6998.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-136.0.7103.48/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch b/0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch new file mode 100644 index 0000000..3e2bfb6 --- /dev/null +++ b/0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch @@ -0,0 +1,36 @@ +# crypto: fix missing OPENSSL_NO_ENGINE guard +# PR-URL: https://github.com/nodejs/node/pull/57012 +# Reviewed-By: Richard Lau +# Reviewed-By: Joyee Cheung +# Reviewed-By: Luigi Pinca +# Reviewed-By: James M Snell + +diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc +index abcdef1..2345678 100644 +--- a/src/crypto/crypto_context.cc ++++ b/src/crypto/crypto_context.cc +@@ -34,7 +34,9 @@ using ncrypto::BIOPointer; + using ncrypto::ClearErrorOnReturn; + using ncrypto::CryptoErrorList; + using ncrypto::DHPointer; ++#ifndef OPENSSL_NO_ENGINE + using ncrypto::EnginePointer; ++#endif // !OPENSSL_NO_ENGINE + using ncrypto::EVPKeyPointer; + using ncrypto::MarkPopErrorOnReturn; + using ncrypto::SSLPointer; + +diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc +index 1234567..abcdef0 100644 +--- a/src/crypto/crypto_util.cc ++++ b/src/crypto/crypto_util.cc +@@ -30,7 +30,9 @@ + using ncrypto::BIOPointer; + using ncrypto::CryptoErrorList; ++#ifndef OPENSSL_NO_ENGINE + using ncrypto::EnginePointer; ++#endif // !OPENSSL_NO_ENGINE + using ncrypto::EVPKeyCtxPointer; + using v8::ArrayBuffer; + using v8::BackingStore; + using v8::BigInt; diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index ac86882..b952917 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,6 +1,6 @@ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null @@ -1,330 +0,0 @@ -/* @@ -333,9 +333,9 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif // VP8_RTCD_H_ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null @@ -1,206 +0,0 @@ -/* @@ -544,9 +544,9 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif // VP9_RTCD_H_ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,108 +0,0 @@ -@ This file was created from a .asm file @@ -657,9 +657,9 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -672,9 +672,9 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_c -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -794,9 +794,9 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null @@ -1,2138 +0,0 @@ -/* @@ -2937,9 +2937,9 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif // VPX_DSP_RTCD_H_ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null @@ -1,110 +0,0 @@ -/* diff --git a/0002-third_party-lss-kernel-structs.patch b/0002-third_party-lss-kernel-structs.patch index c65a825..c39c210 100644 --- a/0002-third_party-lss-kernel-structs.patch +++ b/0002-third_party-lss-kernel-structs.patch @@ -1,8 +1,8 @@ -Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h +Index: chromium-136.0.7103.48/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/lss/linux_syscall_support.h -+++ chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h -@@ -87,7 +87,7 @@ +--- chromium-136.0.7103.48.orig/third_party/lss/linux_syscall_support.h ++++ chromium-136.0.7103.48/third_party/lss/linux_syscall_support.h +@@ -86,7 +86,7 @@ * Porting to other related platforms should not be difficult. */ #if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || \ @@ -11,7 +11,7 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h defined(__aarch64__) || defined(__s390__) || defined(__e2k__) || \ (defined(__riscv) && __riscv_xlen == 64) || defined(__loongarch_lp64)) \ && (defined(__linux) || defined(__ANDROID__)) -@@ -399,7 +399,7 @@ struct kernel_stat64 { +@@ -398,7 +398,7 @@ struct kernel_stat64 { unsigned __pad2; unsigned long long st_blocks; }; @@ -20,7 +20,7 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h struct kernel_stat64 { unsigned long long st_dev; unsigned long long st_ino; -@@ -421,6 +421,28 @@ struct kernel_stat64 { +@@ -420,6 +420,28 @@ struct kernel_stat64 { unsigned long __unused4; unsigned long __unused5; }; @@ -49,7 +49,7 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h #elif defined(__e2k__) struct kernel_stat64 { unsigned long long st_dev; -@@ -537,7 +559,7 @@ struct kernel_stat { +@@ -536,7 +558,7 @@ struct kernel_stat { uint64_t st_ctime_nsec_; int64_t __unused4[3]; }; @@ -58,7 +58,7 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h typedef unsigned long kernel_blkcnt_t; typedef unsigned long kernel_blksize_t; typedef unsigned kernel_dev_t; -@@ -568,6 +590,37 @@ struct kernel_stat { +@@ -567,6 +589,37 @@ struct kernel_stat { unsigned long __unused4; unsigned long __unused5; }; @@ -96,7 +96,7 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h #elif (defined(__mips__) && _MIPS_SIM != _MIPS_SIM_ABI64) typedef int kernel_blkcnt_t; typedef int kernel_blksize_t; -@@ -1824,6 +1877,28 @@ struct kernel_statx { +@@ -1823,6 +1876,28 @@ struct kernel_statx { #ifndef __NR_getcpu #define __NR_getcpu 302 #endif @@ -122,30 +122,10 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h +#define __NR_recvmsg 342 +#endif + - /* End of powerpc defininitions */ + /* End of powerpc definitions */ #elif defined(__s390__) #ifndef __NR_quotactl -@@ -3363,6 +3438,11 @@ struct kernel_statx { - /* TODO(csilvers): consider wrapping some args up in a struct, like we - * do for i386's _syscall6, so we can compile successfully on gcc 2.95 - */ -+ #ifdef __powerpc64__ -+ /* TODO: implement clone() for ppc64. -+ * until then, use system libc */ -+ #define sys_clone clone -+ #else - LSS_INLINE int LSS_NAME(clone)(int (*fn)(void *), void *child_stack, - int flags, void *arg, int *parent_tidptr, - void *newtls, int *child_tidptr) { -@@ -3433,6 +3513,7 @@ struct kernel_statx { - } - LSS_RETURN(int, __ret, __err); - } -+ #endif - #elif defined(__s390__) - #undef LSS_REG - #define LSS_REG(r, a) register unsigned long __r##r __asm__("r"#r) = (unsigned long) a -@@ -4783,7 +4864,7 @@ struct kernel_statx { +@@ -4824,7 +4899,7 @@ struct kernel_statx { LSS_INLINE _syscall6(void*, mmap, void*, addr, size_t, length, int, prot, int, flags, int, fd, int64_t, offset) #endif @@ -154,7 +134,7 @@ Index: chromium-128.0.6613.113/third_party/lss/linux_syscall_support.h #undef LSS_SC_LOADARGS_0 #define LSS_SC_LOADARGS_0(dummy...) #undef LSS_SC_LOADARGS_1 -@@ -5173,7 +5254,11 @@ struct kernel_statx { +@@ -5214,7 +5289,11 @@ struct kernel_statx { #endif #if !defined(__NR_pipe) diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index a97e719..a95e5ce 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index 9a37b40..bbb6672 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vp9/encoder/ppc/v eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct3 } // Returns 1 if negative 0 if positive -Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index 3b1423d..fb544b4 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/third_party/libvpx/generate_gni.sh +Index: chromium-136.0.7103.48/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/generate_gni.sh -+++ chromium-134.0.6998.35/third_party/libvpx/generate_gni.sh +--- chromium-136.0.7103.48.orig/third_party/libvpx/generate_gni.sh ++++ chromium-136.0.7103.48/third_party/libvpx/generate_gni.sh @@ -433,7 +433,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ @@ -11,12 +11,12 @@ Index: chromium-134.0.6998.35/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-134.0.6998.35/third_party/libvpx/source/libvpx/build/make/rtcd.pl -@@ -509,8 +509,9 @@ if ($opts{arch} eq 'x86') { - &require(@REQUIRES); +--- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/build/make/rtcd.pl +@@ -527,8 +527,9 @@ if ($opts{arch} eq 'x86') { + } arm; } elsif ($opts{arch} =~ /^ppc/ ) { - @ALL_ARCHS = filter(qw/vsx/); @@ -27,10 +27,10 @@ Index: chromium-134.0.6998.35/third_party/libvpx/source/libvpx/build/make/rtcd.p } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-134.0.6998.35/third_party/libvpx/BUILD.gn +Index: chromium-136.0.7103.48/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-134.0.6998.35.orig/third_party/libvpx/BUILD.gn -+++ chromium-134.0.6998.35/third_party/libvpx/BUILD.gn +--- chromium-136.0.7103.48.orig/third_party/libvpx/BUILD.gn ++++ chromium-136.0.7103.48/third_party/libvpx/BUILD.gn @@ -102,6 +102,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] diff --git a/cargo-add-ppc64.diff b/cargo-add-ppc64.diff deleted file mode 100644 index 482f6f6..0000000 --- a/cargo-add-ppc64.diff +++ /dev/null @@ -1,13 +0,0 @@ -Index: chromium-130.0.6723.44/build/rust/cargo_crate.gni -=================================================================== ---- chromium-130.0.6723.44.orig/build/rust/cargo_crate.gni -+++ chromium-130.0.6723.44/build/rust/cargo_crate.gni -@@ -430,7 +430,7 @@ template("cargo_crate") { - ] - } - if (current_cpu == "arm64" || current_cpu == "x64" || -- current_cpu == "loong64" || current_cpu == "riscv64") { -+ current_cpu == "loong64" || current_cpu == "riscv64" || current_cpu == "ppc64") { - args += [ - "--pointer-width", - "64", diff --git a/chromium-132-el8-unsupport-clang-flags.patch b/chromium-132-el8-unsupport-clang-flags.patch deleted file mode 100644 index 9768883..0000000 --- a/chromium-132-el8-unsupport-clang-flags.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -up chromium-132.0.6834.57/build/config/compiler/BUILD.gn.me chromium-132.0.6834.57/build/config/compiler/BUILD.gn ---- chromium-132.0.6834.57/build/config/compiler/BUILD.gn.me 2025-01-01 13:31:40.472819710 +0100 -+++ chromium-132.0.6834.57/build/config/compiler/BUILD.gn 2025-01-01 16:01:28.373834980 +0100 -@@ -623,13 +623,6 @@ config("compiler") { - cflags += [ "-ffp-contract=off" ] - } - -- # Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF -- # (excluding toolchains that use an older version of LLVM). -- # TODO(crbug.com/376278218): This causes segfault on Linux ARM builds. -- if (is_linux && !llvm_android_mainline && current_cpu != "arm" && -- default_toolchain != "//build/toolchain/cros:target") { -- cflags += [ "-Wa,--crel,--allow-experimental-crel" ] -- } - } - - # C11/C++11 compiler flags setup. diff --git a/chromium-133-pipewire-cast.patch b/chromium-133-pipewire-cast.patch deleted file mode 100644 index 670cb70..0000000 --- a/chromium-133-pipewire-cast.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.me chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc ---- chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.me 2025-02-12 19:09:54.742875003 +0100 -+++ chromium-133.0.6943.53/third_party/webrtc/modules/video_capture/linux/pipewire_session.cc 2025-02-12 19:12:17.492620559 +0100 -@@ -87,7 +87,7 @@ PipeWireNode::PipeWireNode(PipeWireSessi - .param = OnNodeParam, - }; - -- pw_node_add_listener(proxy_, &node_listener_, &node_events, this); -+ pw_node_add_listener((struct pw_node*) proxy_, &node_listener_, &node_events, this); - } - - // static -@@ -119,7 +119,7 @@ void PipeWireNode::OnNodeInfo(void* data - uint32_t id = info->params[i].id; - if (id == SPA_PARAM_EnumFormat && - info->params[i].flags & SPA_PARAM_INFO_READ) { -- pw_node_enum_params(that->proxy_, 0, id, 0, UINT32_MAX, nullptr); -+ pw_node_enum_params((struct pw_node*)that->proxy_, 0, id, 0, UINT32_MAX, nullptr); - break; - } - } diff --git a/chromium-135-print-review-fail.patch b/chromium-135-print-review-fail.patch deleted file mode 100644 index 478b3dc..0000000 --- a/chromium-135-print-review-fail.patch +++ /dev/null @@ -1,44 +0,0 @@ -Only call format_message when needed - -SkJpegDecoderMgr.cpp#print_message calls into `format_message` to print -informational strings from the jpeg decoder. However, the informational -strings are only output in developer builds where -`SK_PRINT_CODEC_MESSAGES` is defined. As a result this call is usually -just extra work which is then ignored. Move the call of `format_message` -into the argument list of `SkCodecPrintf` so that the call is only -performed if its result is going to be used. - -When Skia is compiled to use the system libjpeg-turbo the -`format_message` function pointer is set by an external library to point -at a function inside an external library and is then called by Skia. -This can cause false positive reports [0] from CFI icall [1]. This -change effectively solves this issue by never calling `format_message` -in a CFI enabled build. - -[0] https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/issues/13 -[1] https://clang.llvm.org/docs/ControlFlowIntegrity.html#indirect-function-call-checking - -Change-Id: I5a59459e1e87bf8cdb3d7e90481a115a2a77d6cf -Reviewed-on: https://skia-review.googlesource.com/c/skia/+/961356 -Reviewed-by: Daniel Dilan -Commit-Queue: Ben Wagner - -diff --git a/third_party/skia/src/codec/SkJpegDecoderMgr.cpp b/third_party/skia/src/codec/SkJpegDecoderMgr.cpp -index c905ee1..5ae9573 100644 ---- a/third_party/skia/src/codec/SkJpegDecoderMgr.cpp -+++ b/third_party/skia/src/codec/SkJpegDecoderMgr.cpp -@@ -24,9 +24,11 @@ - * Print information, warning, and error messages - */ - static void print_message(const j_common_ptr info, const char caller[]) { -- char buffer[JMSG_LENGTH_MAX]; -- info->err->format_message(info, buffer); -- SkCodecPrintf("libjpeg error %d <%s> from %s\n", info->err->msg_code, buffer, caller); -+ [[maybe_unused]] char buffer[JMSG_LENGTH_MAX]; -+ SkCodecPrintf("libjpeg error %d <%s> from %s\n", -+ info->err->msg_code, -+ (info->err->format_message(info, buffer), buffer), -+ caller); - } - - /* diff --git a/chromium-135-system-brotli.patch b/chromium-135-system-brotli.patch deleted file mode 100644 index acbc489..0000000 --- a/chromium-135-system-brotli.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -up chromium-135.0.7049.17/net/filter/brotli_source_stream.cc.me chromium-135.0.7049.17/net/filter/brotli_source_stream.cc ---- chromium-135.0.7049.17/net/filter/brotli_source_stream.cc.me 2025-03-19 16:10:42.050358426 +0100 -+++ chromium-135.0.7049.17/net/filter/brotli_source_stream.cc 2025-03-19 16:11:17.682904155 +0100 -@@ -17,8 +17,8 @@ - #include "base/metrics/histogram_macros.h" - #include "net/base/io_buffer.h" - #include "net/filter/source_stream_type.h" --#include "third_party/brotli/include/brotli/decode.h" --#include "third_party/brotli/include/brotli/shared_dictionary.h" -+#include -+#include - - namespace net { - -diff -up chromium-135.0.7049.17/net/ssl/cert_compression.cc.me chromium-135.0.7049.17/net/ssl/cert_compression.cc ---- chromium-135.0.7049.17/net/ssl/cert_compression.cc.me 2025-03-19 16:11:29.752064649 +0100 -+++ chromium-135.0.7049.17/net/ssl/cert_compression.cc 2025-03-19 16:11:46.372351558 +0100 -@@ -9,7 +9,7 @@ - #include "third_party/boringssl/src/include/openssl/ssl.h" - - #if !defined(NET_DISABLE_BROTLI) --#include "third_party/brotli/include/brotli/decode.h" -+#include - #endif - - namespace net { -diff -up chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc.me chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc ---- chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc.me 2025-03-19 16:11:57.586834877 +0100 -+++ chromium-135.0.7049.17/ui/base/resource/resource_bundle.cc 2025-03-19 16:13:09.096533134 +0100 -@@ -39,7 +39,7 @@ - #include "net/filter/gzip_header.h" - #include "skia/ext/image_operations.h" - #include "third_party/abseil-cpp/absl/types/variant.h" --#include "third_party/brotli/include/brotli/decode.h" -+#include - #include "third_party/skia/include/codec/SkPngDecoder.h" - #include "third_party/skia/include/core/SkBitmap.h" - #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium-135.0.7049.114-clean.tar.xz.hashes b/chromium-135.0.7049.114-clean.tar.xz.hashes deleted file mode 100644 index 65ba27e..0000000 --- a/chromium-135.0.7049.114-clean.tar.xz.hashes +++ /dev/null @@ -1,6 +0,0 @@ -MD5 (chromium-135.0.7049.114-clean.tar.xz) = 3e6d39f1413b13c0aa50a2971401c552 -SHA1 (chromium-135.0.7049.114-clean.tar.xz) = 1f774ac27b3354e518275ac2dfa12bdd46b5bd9f -SHA224 (chromium-135.0.7049.114-clean.tar.xz) = 6ddd90b96353b3507be4c810073d510ab071f854e2cf02e13bd4f5df -SHA256 (chromium-135.0.7049.114-clean.tar.xz) = 54f6100482e40e30734efcdd2f0e706ae8549bbd58bc6e826cbe1f048865e7b2 -SHA384 (chromium-135.0.7049.114-clean.tar.xz) = 81828bec80e7ef896b620f99e5d90278da0f2001cfa4dfab26fbb511f9bbafa34992fe132ee03fb89b213e2915958465 -SHA512 (chromium-135.0.7049.114-clean.tar.xz) = ac77aadcd0fbefbf98276c3c8653a82873936929659c86f1edd1a4a53bc819d94007a6caa9daf25e0f2007f315175530f55575925d458837ef149c62f4402bcb diff --git a/chromium-135.0.7049.95-clean.tar.xz.hashes b/chromium-135.0.7049.95-clean.tar.xz.hashes deleted file mode 100644 index aaf064f..0000000 --- a/chromium-135.0.7049.95-clean.tar.xz.hashes +++ /dev/null @@ -1,6 +0,0 @@ -a4b3e165abbce1a7f059c1b8ba08c955 chromium-135.0.7049.95-clean.tar.xz -0cfedc1c1f27059ca5c42fe6562a2e7a30b586ba chromium-135.0.7049.95-clean.tar.xz -59120a05929b82313bf38e751f23ad91061e797750e87f02bfb67d28 chromium-135.0.7049.95-clean.tar.xz -efb07d889d133c90e0b7b84b08727203ada1b4031f4ee29db09e192b6fdfe5f3 chromium-135.0.7049.95-clean.tar.xz -80a89d944d9c6b6b43dcef237c07d7b2e19500eb5812b90e76d8767102aceef696fb062b4555fdc006f7cf44f519567e chromium-135.0.7049.95-clean.tar.xz -bb73e201ebf08e05901a54ceef367de95257da49f3c090b0cc88e23af0e901ecaa13b915080f911c29a157191efd6bcab00c844a58fd3757009a89255af0ec89 chromium-135.0.7049.95-clean.tar.xz diff --git a/chromium-136-checkversion-nodejs.patch b/chromium-136-checkversion-nodejs.patch new file mode 100644 index 0000000..58cc6d8 --- /dev/null +++ b/chromium-136-checkversion-nodejs.patch @@ -0,0 +1,20 @@ +diff -up chromium-136.0.7103.33/third_party/node/node.gni.than chromium-136.0.7103.33/third_party/node/node.gni +--- chromium-136.0.7103.33/third_party/node/node.gni.than 2025-04-21 17:53:06.742517984 +0200 ++++ chromium-136.0.7103.33/third_party/node/node.gni 2025-04-21 17:54:05.452645652 +0200 +@@ -35,16 +35,5 @@ template("node") { + inputs += [ "//third_party/node/mac/node-darwin-x64/bin/node" ] + } + } +- +- # Automatically add a dependency to ":check_version" to ensure NodeJS is +- # always running the expected version, except when the ':check_version' +- # target itself is running in which case it shouldn't depend on itself. +- if (get_label_info(":" + target_name, "label_no_toolchain") != +- "//third_party/node:check_version") { +- if (!defined(deps)) { +- deps = [] +- } +- deps += [ "//third_party/node:check_version" ] +- } + } + } diff --git a/chromium-136-rust-skrifa-build-error.patch b/chromium-136-rust-skrifa-build-error.patch new file mode 100644 index 0000000..4170eec --- /dev/null +++ b/chromium-136-rust-skrifa-build-error.patch @@ -0,0 +1,12 @@ +diff -up chromium-136.0.7103.48/third_party/rust/chromium_crates_io/vendor/skrifa-0.29.2/src/glyph_name.rs.than chromium-136.0.7103.48/third_party/rust/chromium_crates_io/vendor/skrifa-0.29.2/src/glyph_name.rs +--- chromium-136.0.7103.48/third_party/rust/chromium_crates_io/vendor/skrifa-0.29.2/src/glyph_name.rs.than 2025-04-29 08:36:33.385071420 +0200 ++++ chromium-136.0.7103.48/third_party/rust/chromium_crates_io/vendor/skrifa-0.29.2/src/glyph_name.rs 2025-04-29 08:42:21.465525421 +0200 +@@ -94,7 +94,7 @@ impl<'a> GlyphNames<'a> { + _ => None, + }; + // If name is empty string, synthesize it +- if name.as_ref().is_none_or(|s| s.is_empty()) { ++ if name.is_none() || name.as_ref().map_or(false, |s| s.is_empty()) { + return Some(GlyphName::synthesize(glyph_id)); + } + Some(name.unwrap_or_else(|| GlyphName::synthesize(glyph_id))) diff --git a/chromium-136-system-brotli.patch b/chromium-136-system-brotli.patch new file mode 100644 index 0000000..6aed6c3 --- /dev/null +++ b/chromium-136-system-brotli.patch @@ -0,0 +1,38 @@ +diff -up chromium-136.0.7103.33/net/filter/brotli_source_stream.cc.system-brotli chromium-136.0.7103.33/net/filter/brotli_source_stream.cc +--- chromium-136.0.7103.33/net/filter/brotli_source_stream.cc.system-brotli 2025-04-15 23:18:07.000000000 +0200 ++++ chromium-136.0.7103.33/net/filter/brotli_source_stream.cc 2025-04-21 11:12:15.771632937 +0200 +@@ -17,8 +17,8 @@ + #include "base/metrics/histogram_macros.h" + #include "net/base/io_buffer.h" + #include "net/filter/source_stream_type.h" +-#include "third_party/brotli/include/brotli/decode.h" +-#include "third_party/brotli/include/brotli/shared_dictionary.h" ++#include ++#include + + namespace net { + +diff -up chromium-136.0.7103.33/net/ssl/cert_compression.cc.system-brotli chromium-136.0.7103.33/net/ssl/cert_compression.cc +--- chromium-136.0.7103.33/net/ssl/cert_compression.cc.system-brotli 2025-04-15 23:18:07.000000000 +0200 ++++ chromium-136.0.7103.33/net/ssl/cert_compression.cc 2025-04-21 11:12:15.775633048 +0200 +@@ -9,7 +9,7 @@ + #include "third_party/boringssl/src/include/openssl/ssl.h" + + #if !defined(NET_DISABLE_BROTLI) +-#include "third_party/brotli/include/brotli/decode.h" ++#include + #endif + + namespace net { +diff -up chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc.system-brotli chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc +--- chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc.system-brotli 2025-04-15 23:18:07.000000000 +0200 ++++ chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc 2025-04-21 11:19:08.136223039 +0200 +@@ -39,7 +39,7 @@ + #include "build/build_config.h" + #include "net/filter/gzip_header.h" + #include "skia/ext/image_operations.h" +-#include "third_party/brotli/include/brotli/decode.h" ++#include + #include "third_party/skia/include/codec/SkPngDecoder.h" + #include "third_party/skia/include/core/SkBitmap.h" + #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium-136-unsupport-clang-flags.patch b/chromium-136-unsupport-clang-flags.patch new file mode 100644 index 0000000..a004cb0 --- /dev/null +++ b/chromium-136-unsupport-clang-flags.patch @@ -0,0 +1,17 @@ +diff -up chromium-136.0.7103.48/build/config/compiler/BUILD.gn.than chromium-136.0.7103.48/build/config/compiler/BUILD.gn +--- chromium-136.0.7103.48/build/config/compiler/BUILD.gn.than 2025-04-28 15:44:08.883499599 +0200 ++++ chromium-136.0.7103.48/build/config/compiler/BUILD.gn 2025-04-28 15:44:47.624639772 +0200 +@@ -622,12 +622,6 @@ config("compiler") { + cflags += [ "-ffp-contract=off" ] + } + +- # Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF +- # (excluding toolchains that use an older version of LLVM). +- if (is_linux && !llvm_android_mainline && +- default_toolchain != "//build/toolchain/cros:target") { +- cflags += [ "-Wa,--crel,--allow-experimental-crel" ] +- } + } + + # C11/C++11 compiler flags setup. +diff -up chromium-136.0.7103.48/tools/licenses/licenses.py.than chromium-136.0.7103.48/tools/licenses/licenses.py diff --git a/chromium.spec b/chromium.spec index 8e5e2ef..9f9ffae 100644 --- a/chromium.spec +++ b/chromium.spec @@ -23,8 +23,8 @@ # enable|disble bootstrap %global bootstrap 0 -# workaround for old gn on rhel, it causes build error: unknown function filter_labels_include() -%if 0%{?rhel} +# workaround for old gn on el9, it causes build error: unknown function filter_labels_include() +%if 0%{?rhel} == 9 %global bootstrap 1 %endif @@ -43,9 +43,6 @@ # enable|disable headless client build %global build_headless 1 -%ifarch ppc64le -%global build_headless 0 -%endif %if 0%{?flatpak} %global build_headless 0 %endif @@ -59,9 +56,6 @@ %global system_nodejs 0 %endif -# set esbuild_version -%global esbuild_version 0.19.2 - %if 0%{?rhel} == 8 %global chromium_pybin /usr/bin/python3.9 %else @@ -143,7 +137,7 @@ # enable|disable control flow integrity support %global cfi 0 -%ifarch x86_64 aarch64 +%ifarch x86_64 %global cfi 0 %endif @@ -261,7 +255,7 @@ %endif Name: chromium -Version: 135.0.7049.114 +Version: 136.0.7103.48 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -283,7 +277,7 @@ Patch21: chromium-123-screen-ai-service.patch Patch82: chromium-98.0.4758.102-remoting-no-tests.patch # patch for using system brotli -Patch89: chromium-135-system-brotli.patch +Patch89: chromium-136-system-brotli.patch # patch for using system libxml Patch90: chromium-121-system-libxml.patch @@ -291,6 +285,9 @@ Patch90: chromium-121-system-libxml.patch # patch for using system opus Patch91: chromium-108-system-opus.patch +# patch for Failed NodeJS version check +Patch92: chromium-136-checkversion-nodejs.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -323,7 +320,7 @@ Patch306: chromium-127-el8-ifunc-header.patch # workaround for build error due to old atk version on el8 Patch307: chromium-134-el8-atk-compiler-error.patch # Fix build errors due to old clang18 in el 8/9 and f40 -Patch308: chromium-132-el8-unsupport-clang-flags.patch +Patch308: chromium-136-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch Patch310: chromium-132-el8-clang18-build-error.patch Patch311: chromium-133-clang18-template.patch @@ -334,6 +331,9 @@ Patch312: chromium-123-fstack-protector-strong.patch # build error stdarch_arm_crc32 Patch313: chromium-133-rust-crc32fast.patch +# build error error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope +Patch314: chromium-136-rust-skrifa-build-error.patch + # build error: libadler2 not found, rust-1.86 or newer replaces adler with adler2 # we have rust-1.86 in f41 and newer Patch315: chromium-134-rust-libadler2.patch @@ -355,9 +355,6 @@ Patch354: chromium-126-split-threshold-for-reg-with-hint.patch # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch -# fix build error with new pipewire in f43 -Patch356: chromium-133-pipewire-cast.patch - # error: no matching member function for call to 'Append' Patch357: chromium-134-type-mismatch-error.patch @@ -388,7 +385,6 @@ Patch375: 0008-sandbox-fix-ppc64le-glibc234.patch Patch376: 0001-third_party-angle-Include-missing-header-cstddef-in-.patch Patch377: 0001-Add-PPC64-support-for-boringssl.patch Patch378: 0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch -Patch379: 0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64.patch Patch380: 0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch Patch381: 0002-Add-PPC64-generated-files-for-boringssl.patch Patch382: 0002-third_party-lss-kernel-structs.patch @@ -438,7 +434,6 @@ Patch412: add-ppc64-architecture-to-extensions.diff # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff -Patch414: cargo-add-ppc64.diff Patch415: add-ppc64-pthread-stack-size.patch # Fix build error on el10 Patch416: fix-ppc64-rust_png-build-error.patch @@ -449,14 +444,18 @@ Patch500: flatpak-Add-initial-sandbox-support.patch Patch501: flatpak-Adjust-paths-for-the-sandbox.patch Patch502: flatpak-Expose-Widevine-into-the-sandbox.patch +# nodejs patches +%if ! %{system_nodejs} +Patch510: 0001-Remove-unused-OpenSSL-config.patch +Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch +%endif + # upstream patches # https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4636 # https://chromium-review.googlesource.com/c/chromium/src/+/6421030 Patch600: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch # https://chromium-review.googlesource.com/c/chromium/src/+/6445471 Patch601: chromium-135-gperf.patch -# https://skia-review.googlesource.com/c/skia/+/961356 -Patch602: chromium-135-print-review-fail.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -481,21 +480,13 @@ Source10: chromium-browser.appdata.xml Source11: master_preferences %if ! %{system_nodejs} -Source12: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-x64.tar.xz -Source13: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-arm64.tar.xz -Source14: https://nodejs.org/dist/%{nodejs_version}/node-%{nodejs_version}-linux-ppc64le.tar.xz -%endif - -# esbuild binary from https://github.com/evanw/esbuild -%if 0%{?rhel} && 0%{?rhel} < 10 -Source15: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_version}.tgz -Source16: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz -Source17: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-%{esbuild_version}.tgz -%endif - -# esbuild binary from fedora/el10 -%if 0%{?fedora} || 0%{?rhel} > 9 -BuildRequires: golang-github-evanw-esbuild +# nodejs bundles openssl, but we use the system version in el9 +# because openssl contains prohibited code, we remove openssl completely from +# the tarball, using the script in Source13 +# http://nodejs.org/dist/v${version}/node-${nodejs_version}.tar.gz +Source12: node-%{nodejs_version}-stripped.tar.gz +Source13: nodejs-sources.sh +BuildRequires: openssl-devel %endif BuildRequires: clang @@ -1006,6 +997,8 @@ Qt6 UI for chromium. %patch -P91 -p1 -b .system-opus %endif +%patch -P92 -p1 -b .chromium-136-nodejs-checkversion + %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque @@ -1036,7 +1029,7 @@ Qt6 UI for chromium. %patch -P307 -p1 -b .el8-atk-compiler-error %endif %if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} == 40 -%patch -P308 -p1 -b .el8-unsupport-clang-flags +%patch -P308 -p1 -b .unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error %patch -P311 -p1 -b .clang18-template @@ -1049,6 +1042,11 @@ Qt6 UI for chromium. %patch -P313 -p1 -b .rust-crc32fast %endif %endif + +%if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} == 40 +%patch -P314 -p1 -b .rust-skrifa-build-error +%endif + %if 0%{?rhel} %patch -P315 -p1 -b .rust-libadler2 %endif @@ -1068,10 +1066,6 @@ Qt6 UI for chromium. %patch -P355 -p1 -b .hardware_destructive_interference_size -%if 0%{?fedora} > 41 -%patch -P356 -p1 -b .pipewire-cast -%endif - %patch -P357 -p1 -b .type-mismatch-error %patch -P358 -p1 -b .rust-clang_lib @@ -1097,7 +1091,6 @@ Qt6 UI for chromium. %patch -P376 -p1 -b .0001-third_party-angle-Include-missing-header-cstddef-in- %patch -P377 -p1 -b .0001-Add-PPC64-support-for-boringssl %patch -P378 -p1 -b .0001-third_party-libvpx-Properly-generate-gni-on-ppc64 -%patch -P379 -p1 -b .0001-third_party-lss-Don-t-look-for-mmap2-on-ppc64 %patch -P380 -p1 -b .0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI %patch -P381 -p1 -b .002-Add-PPC64-generated-files-for-boringssl %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs @@ -1132,7 +1125,6 @@ Qt6 UI for chromium. %patch -P411 -p1 -b .dawn-fix-ppc64le-detection %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions %patch -P413 -p1 -b .fix-unknown-warning-option-messages -%patch -P414 -p1 -b .rust-add-ppc64-case %patch -P415 -p1 -b .add-ppc64-pthread-stack-size %patch -P416 -p1 -b .ppc64-rust_png-build-error %endif @@ -1146,7 +1138,6 @@ Qt6 UI for chromium. # Upstream patches %patch -P600 -p1 -b .add-cfi-suppressions-for-pipewire-functions %patch -P601 -p1 -b .gperf-3.2 -%patch -P602 -p1 -b .print-review-fail # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1154,42 +1145,14 @@ find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env py # Add correct path for nodejs binary %if ! %{system_nodejs} - pushd third_party/node/linux -%ifarch x86_64 - tar xf %{SOURCE12} - ln -s node-%{nodejs_version}-linux-x64 node-linux-x64 -%endif -%ifarch aarch64 - tar xf %{SOURCE13} - # This is weird, but whatever - ln -s node-%{nodejs_version}-linux-arm64 node-linux-x64 -%endif -%ifarch ppc64le - tar xf %{SOURCE14} - # This is weird, but whatever - ln -s node-%{nodejs_version}-linux-ppc64le node-linux-x64 -%endif -popd + ln -s ../../../node-%{nodejs_version}/node-%{nodejs_version}-linux-x64 third_party/node/linux/node-linux-x64 %else mkdir -p third_party/node/linux/node-linux-x64/bin ln -s $(which node) third_party/node/linux/node-linux-x64/bin/node %endif -# Get rid of the bundled esbuild -%if 0%{?fedora} || 0%{?rhel} > 9 - ln -sf $(which esbuild) third_party/devtools-frontend/src/third_party/esbuild/esbuild -%else - %ifarch x86_64 - tar -zxf %{SOURCE15} --directory %{_tmppath} - %endif - %ifarch aarch64 - tar -zxf %{SOURCE16} --directory %{_tmppath} - %endif - %ifarch ppc64le - tar -zxf %{SOURCE17} --directory %{_tmppath} - %endif - mv %{_tmppath}/package/bin/esbuild third_party/devtools-frontend/src/third_party/esbuild/esbuild -%endif +# Get rid of the prebuilt esbuild binary +rm -rf third_party/devtools-frontend/src/third_party/esbuild # Get rid of the pre-built eu-strip binary, it is x86_64 and of mysterious origin rm -rf buildtools/third_party/eu-strip/bin/eu-strip @@ -1197,6 +1160,14 @@ rm -rf buildtools/third_party/eu-strip/bin/eu-strip # Replace it with a symlink to the Fedora copy ln -s $(which eu-strip) buildtools/third_party/eu-strip/bin/eu-strip +# Remove bundle gn and replace it with a system gn or bootstrap gn as it is x86_64 and causes +# FTBFS on other arch like aarch64/ppc64le +%if %{bootstrap} +ln -sf ../../%{chromebuilddir}/gn buildtools/linux64/gn +%else +ln -sf $(which gn) buildtools/linux64/gn +%endif + %if %{bundlelibusbx} # no hackity hack hack %else @@ -1213,10 +1184,23 @@ sed -i 's/getenv("CHROME_VERSION_EXTRA")/"Fedora Project"/' chrome/common/channe sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' remoting/host/setup/daemon_controller_delegate_linux.cc # bz#2265957, add correct platform -sed -i "s/Linux x86_64/Linux %{_arch}/" content/common/user_agent.cc +sed -i "s/Linux x86_64/Linux %{_arch}/" components/embedder_support/user_agent_utils.cc %build +%if ! %{system_nodejs} +# Build nodejs and Replace bundle binary +export CXX=c++ +tar xf %{SOURCE12} +pushd node-%{nodejs_version} +patch -p1 < %{_sourcedir}/0001-Remove-unused-OpenSSL-config.patch +patch -p1 < %{_sourcedir}/0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch +./configure --ninja --shared-openssl --openssl-conf-name=openssl_conf --enable-static --prefix=node-%{nodejs_version}-linux-x64 +ninja -j %{numjobs} -C %{chromebuilddir} +make install +popd +%endif + # reduce warnings FLAGS=' -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line-argument' FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable' @@ -1278,10 +1262,8 @@ sed -i 's|OFFICIAL_BUILD|GOOGLE_CHROME_BUILD|g' tools/generate_shim_headers/gene CHROMIUM_CORE_GN_DEFINES+=' chrome_pgo_phase=0' -%if ! %{cfi} -CHROMIUM_CORE_GN_DEFINES+=' is_cfi=false use_thin_lto=false' -%else -CHROMIUM_CORE_GN_DEFINES+=' is_cfi=true use_thin_lto=true' +%if %{cfi} +CHROMIUM_CORE_GN_DEFINES+=' is_cfi=true use_cfi_icall=true use_cfi_cast=true use_thin_lto=true' %endif %if %{useapikey} @@ -1326,6 +1308,10 @@ CHROMIUM_CORE_GN_DEFINES+=' symbol_level=%{debug_level} blink_symbol_level=%{deb CHROMIUM_CORE_GN_DEFINES+=' angle_has_histograms=false' # drop unrar CHROMIUM_CORE_GN_DEFINES+=' safe_browsing_use_unrar=false' +# Disable --warning-suppression-mappings as it causes FTBFS on el9/f40 due to old llvm +%if 0%{?rhel} == 9 || 0%{?fedora} == 40 +CHROMIUM_CORE_GN_DEFINES+=' clang_warning_suppression_file=""' +%endif export CHROMIUM_CORE_GN_DEFINES # browser gn defines @@ -1526,22 +1512,18 @@ mkdir -p %{chromebuilddir} && cp -a $(which gn) %{chromebuilddir}/ %{chromebuilddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{chromebuilddir} -%if %{build_headless} -%{chromebuilddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_HEADLESS_GN_DEFINES" %{headlessbuilddir} -%endif - -%if %{build_headless} -# Do headless first. -%build_target %{headlessbuilddir} headless_shell -%endif - %build_target %{chromebuilddir} chrome + %build_target %{chromebuilddir} chrome_sandbox %if %{build_chromedriver} %build_target %{chromebuilddir} chromedriver %endif +%if %{build_headless} +%build_target %{chromebuilddir} headless_shell +%endif + %install rm -rf %{buildroot} @@ -1608,7 +1590,7 @@ pushd %{chromebuilddir} popd %if %{build_headless} - pushd %{headlessbuilddir} + pushd %{chromebuilddir} cp -a *.pak headless_shell %{buildroot}%{chromium_path} popd %endif @@ -1787,6 +1769,9 @@ fi %endif %changelog +* Thu Apr 24 2025 Than Ngo - 136.0.7103.48-1 +- Update to 136.0.7103.48 + * Wed Apr 23 2025 Than Ngo - 135.0.7049.114-1 - Update to 135.0.7049.114 diff --git a/nodejs-sources.sh b/nodejs-sources.sh new file mode 100755 index 0000000..6ba300f --- /dev/null +++ b/nodejs-sources.sh @@ -0,0 +1,353 @@ +#!/bin/sh +# Uses Argbash to generate command argument parsing. To update +# arguments, make sure to call +# `argbash nodejs-tarball.sh -o nodejs-tarball.sh` + +# ARG_POSITIONAL_SINGLE([version],[Node.js release version]) +# ARG_OPTIONAL_BOOLEAN([push],[],[Whether to upload to the lookaside cache],[on]) +# ARG_OPTIONAL_BOOLEAN([debug],[],[Print all commands],[off]) +# ARG_DEFAULTS_POS([]) +# ARG_HELP([Tool to aid in Node.js packaging of new releases]) +# ARGBASH_GO() +# needed because of Argbash --> m4_ignore([ +### START OF CODE GENERATED BY Argbash v2.10.0 one line above ### +# Argbash is a bash code generator used to get arguments parsing right. +# Argbash is FREE SOFTWARE, see https://argbash.io for more info + + +die() +{ + local _ret="${2:-1}" + test "${_PRINT_HELP:-no}" = yes && print_help >&2 + echo "$1" >&2 + exit "${_ret}" +} + + +begins_with_short_option() +{ + local first_option all_short_options='h' + first_option="${1:0:1}" + test "$all_short_options" = "${all_short_options/$first_option/}" && return 1 || return 0 +} + +# THE DEFAULTS INITIALIZATION - POSITIONALS +_positionals=() +_arg_version= +# THE DEFAULTS INITIALIZATION - OPTIONALS +_arg_push="on" +_arg_debug="off" + + +print_help() +{ + printf '%s\n' "Tool to aid in Node.js packaging of new releases" + printf 'Usage: %s [--(no-)push] [--(no-)debug] [-h|--help] \n' "$0" + printf '\t%s\n' ": Node.js release version" + printf '\t%s\n' "--push, --no-push: Whether to upload to the lookaside cache (on by default)" + printf '\t%s\n' "--debug, --no-debug: Print all commands (off by default)" + printf '\t%s\n' "-h, --help: Prints help" +} + + +parse_commandline() +{ + _positionals_count=0 + while test $# -gt 0 + do + _key="$1" + case "$_key" in + --no-push|--push) + _arg_push="on" + test "${1:0:5}" = "--no-" && _arg_push="off" + ;; + --no-debug|--debug) + _arg_debug="on" + test "${1:0:5}" = "--no-" && _arg_debug="off" + ;; + -h|--help) + print_help + exit 0 + ;; + -h*) + print_help + exit 0 + ;; + *) + _last_positional="$1" + _positionals+=("$_last_positional") + _positionals_count=$((_positionals_count + 1)) + ;; + esac + shift + done +} + + +handle_passed_args_count() +{ + local _required_args_string="'version'" + test "${_positionals_count}" -ge 1 || _PRINT_HELP=yes die "FATAL ERROR: Not enough positional arguments - we require exactly 1 (namely: $_required_args_string), but got only ${_positionals_count}." 1 + test "${_positionals_count}" -le 1 || _PRINT_HELP=yes die "FATAL ERROR: There were spurious positional arguments --- we expect exactly 1 (namely: $_required_args_string), but got ${_positionals_count} (the last one was: '${_last_positional}')." 1 +} + + +assign_positional_args() +{ + local _positional_name _shift_for=$1 + _positional_names="_arg_version " + + shift "$_shift_for" + for _positional_name in ${_positional_names} + do + test $# -gt 0 || break + eval "$_positional_name=\${1}" || die "Error during argument parsing, possibly an Argbash bug." 1 + shift + done +} + +parse_commandline "$@" +handle_passed_args_count +assign_positional_args 1 "${_positionals[@]}" + +# OTHER STUFF GENERATED BY Argbash + +### END OF CODE GENERATED BY Argbash (sortof) ### ]) +# [ <-- needed because of Argbash + +if [ $_arg_debug = 'on' ]; then + set -x +fi + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +alias wget='wget --quiet' + +packages=("jq" "wget" "tar" "fedpkg" "grep" "sed" "python3-jinja2-cli" "nodejs") + +rpm -q ${packages[@]} >/dev/null +if [ $? -ne 0 ]; then + sudo dnf -y install ${packages[@]} +fi + +set -e + +version=$_arg_version + +NODE_MAJOR=$(echo $version | cut -d. -f1) +NODE_MINOR=$(echo $version | cut -d. -f2) +NODE_PATCH=$(echo $version | cut -d. -f3) + +# Treat odd-numbered major releases as pre-releases for the +# next LTS release. +if [[ $((NODE_MAJOR % 2)) -eq 0 ]]; + then NODE_PKG_MAJOR=${NODE_MAJOR}; + else NODE_PKG_MAJOR=$((NODE_MAJOR + 1)); +fi + +FEDORA_DEFAULT_RELEASE_LOW=$((NODE_PKG_MAJOR + 19)) +FEDORA_DEFAULT_RELEASE_HIGH=$((NODE_PKG_MAJOR + 21)) + +if [[ $((NODE_PKG_MAJOR)) -eq 20 ]] + then RHEL_DEFAULT_RELEASE=" || 0%{?rhel} == 10" +elif [[ $((NODE_PKG_MAJOR)) -eq 22 ]]; + then RHEL_DEFAULT_RELEASE=" || 0%{?rhel} == 11" +fi + +rm -rf node-v${version}.tar.gz \ + node-v${version}-stripped.tar.gz \ + node-v${version}/ \ + wasi-sdk-* \ + cjs-module-lexer* \ + undici* \ + SHASUMS256.txt +echo Downloading node-v${version}.tar.gz +wget http://nodejs.org/dist/v${version}/node-v${version}.tar.gz \ + http://nodejs.org/dist/v${version}/SHASUMS256.txt +echo Validating sha256sum +sha256sum -c SHASUMS256.txt --ignore-missing +rm -f SHASUMS256.txt +tar -zxf node-v${version}.tar.gz + +# Remove bundled OpenSSL +# We will link to the system version +rm -rf node-v${version}/deps/openssl +tar -zcf node-v${version}-stripped.tar.gz node-v${version} + +# Record the bundled cjs-module-lexer version +LEXER_VERSION=$(jq -r '.version' node-v${version}/deps/cjs-module-lexer/package.json) + +# Record the bundled undici version +UNDICI_VERSION=$(jq -r '.version' node-v${version}/deps/undici/src/package.json) + +ICU_MAJOR=$(jq -r '.[0].url' node-v${version}/tools/icu/current_ver.dep | sed --expression='s/.*release-\([[:digit:]]\+\)-\([[:digit:]]\+\).*/\1/g') +ICU_MINOR=$(jq -r '.[0].url' node-v${version}/tools/icu/current_ver.dep | sed --expression='s/.*release-\([[:digit:]]\+\)-\([[:digit:]]\+\).*/\2/g') + +# Download the ICU binary data files +rm -Rf icu4c-${ICU_MAJOR}_${ICU_MINOR}-data-bin-*.zip +wget $(grep -E 'Source3\>' packaging/nodejs.spec.j2 | sed --expression="s/.*http/http/g" --expression="s/\(\%{icu_major}\)/${ICU_MAJOR}/g" --expression="s/\(\%{icu_minor}\)/${ICU_MINOR}/g") +wget $(grep -E 'Source4\>' packaging/nodejs.spec.j2 | sed --expression="s/.*http/http/g" --expression="s/\(\%{icu_major}\)/${ICU_MAJOR}/g" --expression="s/\(\%{icu_minor}\)/${ICU_MINOR}/g") + +rm -f node-v${version}.tar.gz + +set +e + +# Determine the bundled versions of the various packages +echo "Included software versions" +echo "-------------------------" +echo +echo "Node.js version" +echo "=========================" +echo "${version}" +echo +echo "libnode shared object version" +echo "=========================" +NODE_SOVERSION=$(grep -oP '(?<=#define NODE_MODULE_VERSION )\d+' node-v${version}/src/node_version.h) +echo "${NODE_SOVERSION}" +echo +echo "V8" +echo "=========================" +V8_MAJOR=$(grep -oP '(?<=#define V8_MAJOR_VERSION )\d+' node-v${version}/deps/v8/include/v8-version.h) +V8_MINOR=$(grep -oP '(?<=#define V8_MINOR_VERSION )\d+' node-v${version}/deps/v8/include/v8-version.h) +V8_BUILD=$(grep -oP '(?<=#define V8_BUILD_NUMBER )\d+' node-v${version}/deps/v8/include/v8-version.h) +V8_PATCH=$(grep -oP '(?<=#define V8_PATCH_LEVEL )\d+' node-v${version}/deps/v8/include/v8-version.h) +echo "${V8_MAJOR}.${V8_MINOR}.${V8_BUILD}.${V8_PATCH}" +echo +echo "c-ares" +echo "=========================" +C_ARES_VERSION=$(grep -oP '(?<=#define ARES_VERSION_STR ).*\"' node-v${version}/deps/cares/include/ares_version.h |sed -e 's/^"//' -e 's/"$//') +echo $C_ARES_VERSION +echo +echo "llhttp" +echo "=========================" +LLHTTP_MAJOR=$(grep -oP '(?<=#define LLHTTP_VERSION_MAJOR )\d+' node-v${version}/deps/llhttp/include/llhttp.h) +LLHTTP_MINOR=$(grep -oP '(?<=#define LLHTTP_VERSION_MINOR )\d+' node-v${version}/deps/llhttp/include/llhttp.h) +LLHTTP_PATCH=$(grep -oP '(?<=#define LLHTTP_VERSION_PATCH )\d+' node-v${version}/deps/llhttp/include/llhttp.h) +LLHTTP_VERSION="${LLHTTP_MAJOR}.${LLHTTP_MINOR}.${LLHTTP_PATCH}" +echo $LLHTTP_VERSION +echo +echo "libuv" +echo "=========================" +UV_MAJOR=$(grep -oP '(?<=#define UV_VERSION_MAJOR )\d+' node-v${version}/deps/uv/include/uv/version.h) +UV_MINOR=$(grep -oP '(?<=#define UV_VERSION_MINOR )\d+' node-v${version}/deps/uv/include/uv/version.h) +UV_PATCH=$(grep -oP '(?<=#define UV_VERSION_PATCH )\d+' node-v${version}/deps/uv/include/uv/version.h) +LIBUV_VERSION="${UV_MAJOR}.${UV_MINOR}.${UV_PATCH}" +echo $LIBUV_VERSION +echo +echo "nghttp2" +echo "=========================" +NGHTTP2_VERSION=$(grep -oP '(?<=#define NGHTTP2_VERSION ).*\"' node-v${version}/deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h |sed -e 's/^"//' -e 's/"$//') +echo $NGHTTP2_VERSION +echo +echo "nghttp3" +echo "=========================" +NGHTTP3_VERSION=$(grep -oP '(?<=#define NGHTTP3_VERSION ).*\"' node-v${version}/deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h |sed -e 's/^"//' -e 's/"$//') +echo $NGHTTP3_VERSION +echo +echo "ngtcp2" +echo "=========================" +NGTCP2_VERSION=$(grep -oP '(?<=#define NGTCP2_VERSION ).*\"' node-v${version}/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h |sed -e 's/^"//' -e 's/"$//') +echo $NGTCP2_VERSION +echo +echo "ICU" +echo "=========================" +echo "${ICU_MAJOR}.${ICU_MINOR}" +echo +echo "simdutf" +echo "=========================" +SIMDUTF_VERSION=$(grep -oP '(?<=#define SIMDUTF_VERSION ).*\"' node-v${version}/deps/simdutf/simdutf.h |sed -e 's/^"//' -e 's/"$//') +echo $SIMDUTF_VERSION +echo +echo "punycode" +echo "=========================" +PUNYCODE_VERSION=$(/usr/bin/node -e "console.log(require('punycode').version)") +echo $PUNYCODE_VERSION +echo +echo "uvwasi" +echo "=========================" +UVWASI_MAJOR=$(grep -oP '(?<=#define UVWASI_VERSION_MAJOR )\d+' node-v${version}/deps/uvwasi/include/uvwasi.h) +UVWASI_MINOR=$(grep -oP '(?<=#define UVWASI_VERSION_MINOR )\d+' node-v${version}/deps/uvwasi/include/uvwasi.h) +UVWASI_PATCH=$(grep -oP '(?<=#define UVWASI_VERSION_PATCH )\d+' node-v${version}/deps/uvwasi/include/uvwasi.h) +UVWASI_VERSION="${UVWASI_MAJOR}.${UVWASI_MINOR}.${UVWASI_PATCH}" +echo $UVWASI_VERSION +echo +echo "npm" +echo "=========================" +NPM_VERSION=$(jq -r .version ./node-v${version}/deps/npm/package.json) +echo $NPM_VERSION +echo +echo "zlib" +echo "=========================" +ZLIB_VERSION=$(grep -oP '(?<=#define ZLIB_VERSION ).*\"' node-v${version}/deps/zlib/zlib.h |sed -e 's/^"//' -e 's/"$//') +echo $ZLIB_VERSION +echo +echo "cjs-module-lexer" +echo "=========================" +echo "${LEXER_VERSION}" +echo +echo "undici" +echo "=========================" +echo "${UNDICI_VERSION}" +echo +echo "ada" +echo "=========================" +ADA_VERSION=$(grep -osP '(?<=#define ADA_VERSION ).*\"' node-v${version}/deps/ada/ada.h |sed -e 's/^"//' -e 's/"$//') +ADA_VERSION=${ADA_VERSION:-0} +echo "${ADA_VERSION}" +echo +echo "sqlite" +echo "=========================" +SQLITE_VERSION="$(grep -osP '(?<=#define SQLITE_VERSION ).*\"' node-v${version}/deps/sqlite/sqlite3.h |sed -e 's/^\s*"//' -e 's/"\s*$//')" +echo "${SQLITE_VERSION}" +echo +echo "Applying versions to spec template" + +# Get the list of patches we need to add to the specfile +readarray -t patchlist < <(git ls-files |grep '^[0-9]\{4\}-.*\.patch') +json_patchlist=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${patchlist[@]}") + +IFS='' read -r -d '' template_json < ${SCRIPT_DIR}/nodejs${NODE_PKG_MAJOR}.spec + +if [ $_arg_push = 'on' ]; then + fedpkg new-sources node-v${version}-stripped.tar.gz \ + icu4c-${ICU_MAJOR}_${ICU_MINOR}-data-bin-*.zip +fi + +rm -rf node-v${version} +# ] <-- needed because of Argbash diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index faac39f..e6c7ee4 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/third_party/skia/BUILD.gn +Index: chromium-136.0.7103.48/third_party/skia/BUILD.gn =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/BUILD.gn -+++ chromium-134.0.6998.35/third_party/skia/BUILD.gn +--- chromium-136.0.7103.48.orig/third_party/skia/BUILD.gn ++++ chromium-136.0.7103.48/third_party/skia/BUILD.gn @@ -193,6 +193,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-134.0.6998.35/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1642,6 +1648,7 @@ skia_component("skia") { +@@ -1651,6 +1657,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-134.0.6998.35/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1813,7 +1820,10 @@ skia_static_library("pathkit") { +@@ -1822,7 +1829,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,11 +35,11 @@ Index: chromium-134.0.6998.35/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-134.0.6998.35/third_party/skia/gn/skia/BUILD.gn +Index: chromium-136.0.7103.48/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-134.0.6998.35/third_party/skia/gn/skia/BUILD.gn -@@ -166,6 +166,8 @@ config("default") { +--- chromium-136.0.7103.48.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-136.0.7103.48/third_party/skia/gn/skia/BUILD.gn +@@ -175,6 +175,8 @@ config("default") { "-mfpmath=sse", ] ldflags += [ "-m32" ] @@ -48,11 +48,11 @@ Index: chromium-134.0.6998.35/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-134.0.6998.35/third_party/skia/include/core/SkTypes.h +Index: chromium-136.0.7103.48/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-134.0.6998.35/third_party/skia/include/core/SkTypes.h -@@ -183,4 +183,43 @@ static constexpr uint32_t SK_InvalidGenI +--- chromium-136.0.7103.48.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-136.0.7103.48/third_party/skia/include/core/SkTypes.h +@@ -188,4 +188,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -96,10 +96,10 @@ Index: chromium-134.0.6998.35/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-134.0.6998.35/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -110,10 +110,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-134.0.6998.35/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-136.0.7103.48/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -129,10 +129,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-134.0.6998.35/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-136.0.7103.48/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -142,10 +142,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -153,7 +153,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. -@@ -75,6 +76,8 @@ using NoCtx = const void*; +@@ -81,6 +82,8 @@ using NoCtx = const void*; #define SKRP_CPU_SCALAR #elif defined(SK_ARM_HAS_NEON) #define SKRP_CPU_NEON @@ -162,7 +162,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SKX #define SKRP_CPU_SKX #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_AVX2 -@@ -97,6 +100,8 @@ using NoCtx = const void*; +@@ -103,6 +106,8 @@ using NoCtx = const void*; #include #elif defined(SKRP_CPU_NEON) #include @@ -171,7 +171,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) #include #include -@@ -194,6 +199,184 @@ namespace SK_OPTS_NS { +@@ -200,6 +205,184 @@ namespace SK_OPTS_NS { ptr[3] = a; } @@ -356,7 +356,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_NEON) template using V = Vec<4, T>; using F = V; -@@ -1383,6 +1566,15 @@ SI F from_half(U16 h) { +@@ -1389,6 +1572,15 @@ SI F from_half(U16 h) { #elif defined(SKRP_CPU_HSW) return _mm256_cvtph_ps((__m128i)h); @@ -372,7 +372,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a half is 1-5-10 (sign-exponent-mantissa) with 15 exponent bias. U32 sem = expand(h), -@@ -1406,6 +1598,16 @@ SI U16 to_half(F f) { +@@ -1412,6 +1604,16 @@ SI U16 to_half(F f) { #elif defined(SKRP_CPU_HSW) return (U16)_mm256_cvtps_ph(f, _MM_FROUND_CUR_DIRECTION); @@ -389,7 +389,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a float is 1-8-23 (sign-exponent-mantissa) with 127 exponent bias. U32 sem = sk_bit_cast(f), -@@ -1481,7 +1683,7 @@ static constexpr size_t N = sizeof(F) / +@@ -1492,7 +1694,7 @@ static constexpr size_t N = sizeof(F) / // instead of {b,a} on the stack. Narrow stages work best for __vectorcall. #define ABI __vectorcall #define SKRP_NARROW_STAGES 1 @@ -398,7 +398,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define SKRP_NARROW_STAGES 0 -@@ -5470,6 +5672,10 @@ SI F sqrt_(F x) { +@@ -5501,6 +5703,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -409,7 +409,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5501,6 +5707,10 @@ SI F floor_(F x) { +@@ -5532,6 +5738,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -420,7 +420,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5520,6 +5730,7 @@ SI F floor_(F x) { +@@ -5551,6 +5761,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -428,7 +428,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5531,6 +5742,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5562,6 +5773,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); @@ -451,7 +451,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5558,7 +5785,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5589,7 +5816,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -478,7 +478,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6571,8 +6817,14 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6606,8 +6852,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -493,7 +493,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6584,7 +6836,12 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6619,7 +6871,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -506,7 +506,7 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6618,9 +6875,15 @@ STAGE_GP(bilerp_clamp_8888, const SkRast +@@ -6653,9 +6910,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -523,10 +523,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-134.0.6998.35/third_party/skia/src/base/SkVx.h +Index: chromium-136.0.7103.48/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/base/SkVx.h -+++ chromium-134.0.6998.35/third_party/skia/src/base/SkVx.h +--- chromium-136.0.7103.48.orig/third_party/skia/src/base/SkVx.h ++++ chromium-136.0.7103.48/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -541,10 +541,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -554,10 +554,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -567,10 +567,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -580,10 +580,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -593,10 +593,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkCpu.h +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkCpu.h +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -606,10 +606,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -619,10 +619,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-134.0.6998.35/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-136.0.7103.48/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-134.0.6998.35/third_party/skia/include/private/base/SkFeatures.h +--- chromium-136.0.7103.48.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-136.0.7103.48/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -632,10 +632,10 @@ Index: chromium-134.0.6998.35/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-134.0.6998.35/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-136.0.7103.48/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -682,10 +682,10 @@ Index: chromium-134.0.6998.35/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-134.0.6998.35/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-134.0.6998.35.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-134.0.6998.35/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-136.0.7103.48/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -127,6 +127,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index c3373b9..5d16181 100644 --- a/sources +++ b/sources @@ -1,7 +1,2 @@ -SHA512 (linux-arm64-0.19.2.tgz) = 8a0d8fec6786fffcd6954d00820037a55d61e60762c74300df0801f8db27057562c221a063bedfb8df56af9ba80abb366336987e881782c5996e6f871abd3dc6 -SHA512 (linux-x64-0.19.2.tgz) = a31cc74c4bfa54f9b75d735a1cfc944d3b5efb7c06bfba9542da9a642ae0b2d235ea00ae84d3ad0572c406405110fe7b61377af0fd15803806ef78d20fc6f05d -SHA512 (linux-ppc64-0.19.2.tgz) = 749d2413c293a9b887b40dc573fce7ee509dee9a95af825c4f426a3a76e3e0b2f3627a7eee1f108b8ca37eae366651df84e08ce36ac18741301d82cbe8b13373 -SHA512 (node-v22.14.0-linux-arm64.tar.xz) = 1b459f4fb1c52d35253c678e28198cb4f82d459eceecca64b699b80ed7ff8ac7a2d86f79dffe56cdcc783f3379a3c0a00296ce1e24d7ef5554cf1d6236f0ff16 -SHA512 (node-v22.14.0-linux-ppc64le.tar.xz) = 551ba75ee8c7ff84080e0c2ace721c9a0b32e2580637806df253108c01b6b27b79293360b7696646e3b8fcd447fb29b851e91adb5a9d0dd2fed693393086cbed -SHA512 (node-v22.14.0-linux-x64.tar.xz) = acb8c6df3ad9e5b403449a003726de7733de5bb23162e6db535948589fb15570cd606924ad7ce76f42785117d938deec1e8d5781c20a3558b1ef8f8e4af41735 -SHA512 (chromium-135.0.7049.114-clean.tar.xz) = ac77aadcd0fbefbf98276c3c8653a82873936929659c86f1edd1a4a53bc819d94007a6caa9daf25e0f2007f315175530f55575925d458837ef149c62f4402bcb +SHA512 (chromium-136.0.7103.48-clean.tar.xz) = 561f85d0cfc91cb96ad68b10f558bae32b1baf4e8e12fd396d975dbb022c2775b9f3c178c3cb0db8484d23bc47fa7b04073a8fb6c86d2336d32fecaa83a2a88f +SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 From 30ebe15eb31628468b39fbb917cfd874c8b833f8 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 30 Apr 2025 00:18:49 +0200 Subject: [PATCH 135/244] - Update to 136.0.7103.59 * CVE-2025-4096: Heap buffer overflow in HTML * CVE-2025-4050: Out of bounds memory access in DevTools * CVE-2025-4051: Insufficient data validation in DevTools * CVE-2025-4052: Inappropriate implementation in DevTools --- chromium.spec | 13 ++++++++++--- sources | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/chromium.spec b/chromium.spec index 9f9ffae..b6e0fc4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -255,7 +255,7 @@ %endif Name: chromium -Version: 136.0.7103.48 +Version: 136.0.7103.59 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1262,8 +1262,8 @@ sed -i 's|OFFICIAL_BUILD|GOOGLE_CHROME_BUILD|g' tools/generate_shim_headers/gene CHROMIUM_CORE_GN_DEFINES+=' chrome_pgo_phase=0' -%if %{cfi} -CHROMIUM_CORE_GN_DEFINES+=' is_cfi=true use_cfi_icall=true use_cfi_cast=true use_thin_lto=true' +%if ! %{cfi} +CHROMIUM_CORE_GN_DEFINES+=' is_cfi=false use_thin_lto=false' %endif %if %{useapikey} @@ -1769,6 +1769,13 @@ fi %endif %changelog +* Tue Apr 29 2025 Than Ngo - 136.0.7103.59-1 +- Update to 136.0.7103.59 + * CVE-2025-4096: Heap buffer overflow in HTML + * CVE-2025-4050: Out of bounds memory access in DevTools + * CVE-2025-4051: Insufficient data validation in DevTools + * CVE-2025-4052: Inappropriate implementation in DevTools + * Thu Apr 24 2025 Than Ngo - 136.0.7103.48-1 - Update to 136.0.7103.48 diff --git a/sources b/sources index 5d16181..947b755 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (chromium-136.0.7103.48-clean.tar.xz) = 561f85d0cfc91cb96ad68b10f558bae32b1baf4e8e12fd396d975dbb022c2775b9f3c178c3cb0db8484d23bc47fa7b04073a8fb6c86d2336d32fecaa83a2a88f SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 +SHA512 (chromium-136.0.7103.59-clean.tar.xz) = 9a503a5772ff7b750c7eb19ca701df2797b1aa4a253c858dccb9946a95de86e6e9ba226f832892775f9c37b9054fac73d4c4999cb9bedeca2a3cb8256b572c9b From a5cbb02c74fe6fd2d356da1f900a0ac22d3b4b01 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 30 Apr 2025 11:01:06 +0200 Subject: [PATCH 136/244] Disable warning-suppression-mappings as it causes FTBFS on el/f40/f41 due to old llvm --- chromium.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index b6e0fc4..d7b35ff 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1308,8 +1308,8 @@ CHROMIUM_CORE_GN_DEFINES+=' symbol_level=%{debug_level} blink_symbol_level=%{deb CHROMIUM_CORE_GN_DEFINES+=' angle_has_histograms=false' # drop unrar CHROMIUM_CORE_GN_DEFINES+=' safe_browsing_use_unrar=false' -# Disable --warning-suppression-mappings as it causes FTBFS on el9/f40 due to old llvm -%if 0%{?rhel} == 9 || 0%{?fedora} == 40 +# Disable --warning-suppression-mappings as it causes FTBFS on el/f40/f41 due to old llvm +%if 0%{?rhel} || 0%{?fedora} == 40 || 0%{?fedora} == 41 CHROMIUM_CORE_GN_DEFINES+=' clang_warning_suppression_file=""' %endif export CHROMIUM_CORE_GN_DEFINES From c4b52ce1020e66badca8b730623a6aafe85481a1 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 30 Apr 2025 18:01:40 +0200 Subject: [PATCH 137/244] Workaround for clang crash due to old clang-18.x on x86_64 el9/fedora40 --- chromium-136-cnnpack-clang18-crash-x86_64.patch | 11 +++++++++++ chromium-latest.py | 2 +- chromium.spec | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 chromium-136-cnnpack-clang18-crash-x86_64.patch diff --git a/chromium-136-cnnpack-clang18-crash-x86_64.patch b/chromium-136-cnnpack-clang18-crash-x86_64.patch new file mode 100644 index 0000000..f725834 --- /dev/null +++ b/chromium-136-cnnpack-clang18-crash-x86_64.patch @@ -0,0 +1,11 @@ +diff -up chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn.than chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn +--- chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn.than 2025-04-30 17:40:49.303107833 +0200 ++++ chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn 2025-04-30 17:51:06.934912263 +0200 +@@ -28,6 +28,7 @@ config("xnnpack_config") { + cflags = [ + "-Wno-unused-function", + "-Wno-deprecated-comma-subscript", ++ "-O0", + ] + + defines = [ diff --git a/chromium-latest.py b/chromium-latest.py index dc94fd7..f8dddb4 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -358,6 +358,6 @@ if __name__ == '__main__': if (not args.prep): print("Compressing cleaned tree, please wait...") os.chdir(chromium_root_dir) - os.system("tar --exclude=\\.svn -cf - chromium-%s | xz -9 -T 0 -f > %s" % (chromium_version, chromium_clean_xz_file)) + os.system("tar --exclude=\\.svn -cf - chromium-%s | xz -6 -T0 -f > %s" % (chromium_version, chromium_clean_xz_file)) print("Finished!") diff --git a/chromium.spec b/chromium.spec index d7b35ff..08ec774 100644 --- a/chromium.spec +++ b/chromium.spec @@ -341,6 +341,9 @@ Patch315: chromium-134-rust-libadler2.patch # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch +# Workaround for clang crash due to old clang-18.x on x86_64 el9/fedora40 +Patch317: chromium-136-cnnpack-clang18-crash-x86_64.patch + # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 # Disable BTI until this is fixed upstream. @@ -1033,6 +1036,9 @@ Qt6 UI for chromium. %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error %patch -P311 -p1 -b .clang18-template +%ifarch x86_64 +%patch -P317 -p1 -b .xnnpack-clang18-crash-x86_64 +%endif %endif %patch -P312 -p1 -b .fstack-protector-strong From 84194df9f537d8b3c53243f9ff2c46eb0c9064a6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 2 May 2025 11:29:06 +0200 Subject: [PATCH 138/244] Update chromium-latest.py --- chromium-latest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chromium-latest.py b/chromium-latest.py index f8dddb4..118509a 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -323,8 +323,11 @@ if __name__ == '__main__': 'build/linux/debian_bullseye_i386-sysroot', 'third_party/node/linux/node-linux-x64', 'third_party/rust-toolchain', - 'third_party/rust-src'] - junk_files = ['third_party/node/linux/node-linux-x64.tar.gz'] + 'third_party/rust-src', + 'third_party/devtools-frontend/src/third_party/esbuild'] + junk_files = ['third_party/node/linux/node-linux-x64.tar.gz', + 'buildtools/third_party/eu-strip/bin/eu-strip', + 'buildtools/linux64/gn'] # First, the dirs: for directory in junk_dirs: From 4242c89546541f843f0472579fd72476ba34cee0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 7 May 2025 07:34:36 +0200 Subject: [PATCH 139/244] - Update to 136.0.7103.92 * CVE-2025-4372: Use after free in WebAudio --- chromium.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 08ec774..41d2b83 100644 --- a/chromium.spec +++ b/chromium.spec @@ -255,7 +255,7 @@ %endif Name: chromium -Version: 136.0.7103.59 +Version: 136.0.7103.92 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1775,6 +1775,10 @@ fi %endif %changelog +* Wed May 07 2025 Than Ngo - 136.0.7103.92-1 +- Update to 136.0.7103.92 + * CVE-2025-4372: Use after free in WebAudio + * Tue Apr 29 2025 Than Ngo - 136.0.7103.59-1 - Update to 136.0.7103.59 * CVE-2025-4096: Heap buffer overflow in HTML diff --git a/sources b/sources index 947b755..d5bf3c6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-136.0.7103.59-clean.tar.xz) = 9a503a5772ff7b750c7eb19ca701df2797b1aa4a253c858dccb9946a95de86e6e9ba226f832892775f9c37b9054fac73d4c4999cb9bedeca2a3cb8256b572c9b +SHA512 (chromium-136.0.7103.92-clean.tar.xz) = d1ee6d35eb6f21a3bd3c83fdd2b320ce26f241341fdb74004c518ee7916f72e3ac84c59e577cdd1fde7f1e1e3feecde7b55f1f2f5c132ab62f586834805c4afd From e86d6fcf7b81833d4842b9f07cf2826821321c95 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 7 May 2025 19:50:24 +0200 Subject: [PATCH 140/244] Fix incorrect clang_base_path which caused FTBFS in EL10. --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 41d2b83..3bf55ce 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1246,7 +1246,7 @@ rust_sysroot_absolute="$(rustc --print sysroot)" # set clang version clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)" -%if 0%{?fedora} > 41 +%if 0%{?fedora} > 41 || 0%{?rhel} > 9 clang_base_path="$(PATH=/usr/bin:/usr/sbin which clang | sed 's#/bin/.*##')" %else clang_base_path="$(clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')" From 2275a819c82d798252de8f538f532f0c390d008b Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 8 May 2025 15:07:53 +0200 Subject: [PATCH 141/244] Fix FTBFS caused by bindgen-cli-0.71, rust-1.79.0 on EL9 --- ...mium-136-el9-bindgen-cli-build-error.patch | 22 +++++++++++++++++++ chromium.spec | 6 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 chromium-136-el9-bindgen-cli-build-error.patch diff --git a/chromium-136-el9-bindgen-cli-build-error.patch b/chromium-136-el9-bindgen-cli-build-error.patch new file mode 100644 index 0000000..caa196e --- /dev/null +++ b/chromium-136-el9-bindgen-cli-build-error.patch @@ -0,0 +1,22 @@ +bindgen generates rust codes that cannot be compiled with rust-1.79.0 on EPEL9 + https://github.com/rust-lang/rust-bindgen/issues/3052 + +Add Workaround for this build error on el9 + +error: extern block cannot be declared unsafe + --> ../../third_party/crabbyavif/src/sys/dav1d-sys/src/../../../../../../out/Release/gen/third_party/crabbyavif/crabbyavif_dav1d_sys/dav1d_bindgen.rs:3:18605 + +Signed-off-by: Than Ngo + +diff -up chromium-136.0.7103.92/build/rust/run_bindgen.py.than chromium-136.0.7103.92/build/rust/run_bindgen.py +--- chromium-136.0.7103.92/build/rust/run_bindgen.py.than 2025-05-08 14:09:50.268246973 +0200 ++++ chromium-136.0.7103.92/build/rust/run_bindgen.py 2025-05-08 14:46:22.421719175 +0200 +@@ -68,7 +68,7 @@ def main(): + # TODO(danakj): We need to point bindgen to + # //third_party/rust-toolchain/bin/rustfmt. + genargs.append('--no-rustfmt-bindings') +- genargs += ['--rust-target', 'nightly'] ++ genargs += ['--rust-target', '1.79'] + + if args.depfile: + depfile = stack.enter_context(action_helpers.atomic_output(args.depfile)) diff --git a/chromium.spec b/chromium.spec index 3bf55ce..044efac 100644 --- a/chromium.spec +++ b/chromium.spec @@ -288,6 +288,9 @@ Patch91: chromium-108-system-opus.patch # patch for Failed NodeJS version check Patch92: chromium-136-checkversion-nodejs.patch +# Fix FTBFS caused by bindgen-cli-0.71, rust-1.79.0 on EL9 +Patch93: chromium-136-el9-bindgen-cli-build-error.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -1000,7 +1003,8 @@ Qt6 UI for chromium. %patch -P91 -p1 -b .system-opus %endif -%patch -P92 -p1 -b .chromium-136-nodejs-checkversion +%patch -P92 -p1 -b .nodejs-checkversion +%patch -P93 -p1 -b .bindgen-cli-build-error %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 From 73838bc519bd6b71014b924c899b8e1920ec1694 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 14 May 2025 11:55:12 +0200 Subject: [PATCH 142/244] Fix Error loading V8 startup snapshot file --- chromium.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 044efac..9d17442 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1663,7 +1663,6 @@ fi %config %{_sysconfdir}/%{name}/master_preferences %config %{_sysconfdir}/%{name}/policies/ %{_bindir}/chromium-browser -%{chromium_path}/*.bin %{chromium_path}/chrome_*.pak %{chromium_path}/chrome_crashpad_handler %{chromium_path}/resources.pak @@ -1687,13 +1686,12 @@ fi %endif %files common -%ifarch x86_64 aarch64 ppc64le %{chromium_path}/libvk_swiftshader.so* %{chromium_path}/libvulkan.so* %{chromium_path}/vk_swiftshader_icd.json %{chromium_path}/libEGL.so* %{chromium_path}/libGLESv2.so* -%endif +%{chromium_path}/*.bin %if %{bundleicu} %{chromium_path}/icudtl.dat %endif From aeb3513d149d488ac2dcbb30e334bbc5ea781281 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 15 May 2025 10:43:20 +0200 Subject: [PATCH 143/244] - Update to 136.0.7103.113 * CVE-2025-4664: Insufficient policy enforcement in Loader * CVE-2025-4609: Incorrect handle provided in unspecified circumstances in Mojo --- chromium.spec | 7 ++++++- sources | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 9d17442..5da81c0 100644 --- a/chromium.spec +++ b/chromium.spec @@ -255,7 +255,7 @@ %endif Name: chromium -Version: 136.0.7103.92 +Version: 136.0.7103.113 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1777,6 +1777,11 @@ fi %endif %changelog +* Wed May 14 2025 Than Ngo - 136.0.7103.113-1 +- Update to 136.0.7103.113 + * CVE-2025-4664: Insufficient policy enforcement in Loader + * CVE-2025-4609: Incorrect handle provided in unspecified circumstances in Mojo + * Wed May 07 2025 Than Ngo - 136.0.7103.92-1 - Update to 136.0.7103.92 * CVE-2025-4372: Use after free in WebAudio diff --git a/sources b/sources index d5bf3c6..9628776 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-136.0.7103.92-clean.tar.xz) = d1ee6d35eb6f21a3bd3c83fdd2b320ce26f241341fdb74004c518ee7916f72e3ac84c59e577cdd1fde7f1e1e3feecde7b55f1f2f5c132ab62f586834805c4afd +SHA512 (chromium-136.0.7103.113-clean.tar.xz) = a9a6d3dcd8d26e06a95e5caef29eee002ed538b04126a69d78600c08ef50d47811e29ad16625686033c10847a632c827d6b19032f90d872041ac00bb8848a908 From 90322e2621052af8adb2e1281ab1addb23d99ccc Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 15 May 2025 11:46:44 +0200 Subject: [PATCH 144/244] Enable system simdutf for Fedora --- chromium.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 5da81c0..601052c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -190,6 +190,7 @@ %global bundlelibsecret 0 %global bundleopus 0 %global bundlelcms2 0 +%global bundlesimdutf 1 # workaround for build error # disable bundleminizip for Fedora > 39 due to switch to minizip-ng @@ -206,6 +207,7 @@ %global bundleffmpegfree 0 %global bundlefreetype 0 %global bundlelibxml 0 +%global bundlesimdutf 0 # need libtiff-4.6.1 or newer, error: use of undeclared identifier 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' %if 0%{?fedora} > 41 %global bundlelibtiff 0 @@ -781,6 +783,10 @@ BuildRequires: java-openjdk-headless BuildRequires: libevdev-devel +%if ! %{bundlesimdutf} +BuildRequires: simdutf-devel +%endif + # There is a hardcoded check for nss 3.26 in the chromium code (crypto/nss_util.cc) Requires: nss%{_isa} >= 3.26 Requires: nss-mdns%{_isa} @@ -812,7 +818,9 @@ Provides: bundled(boringssl) %if %{bundlebrotli} Provides: bundled(brotli) = 222564a95d9ab58865a096b8d9f7324ea5f2e03e %endif - +%if %{bundlesimdutf} +Provides: bundled(simdutf) = 6.4.0 +%endif Provides: bundled(bspatch) Provides: bundled(cacheinvalidation) = 20150720 Provides: bundled(colorama) = 799604a104 @@ -1505,6 +1513,9 @@ system_libs=() %if 0%{?noopenh264} system_libs+=(openh264) %endif +%if ! {bundlesimdutf} + system_libs+=(simdutf) +%endif build/linux/unbundle/replace_gn_files.py --system-libraries ${system_libs[@]} From e89a0949b300fb862a58bdf69435adc64c98e43f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 15 May 2025 11:48:45 +0200 Subject: [PATCH 145/244] Fix typo --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 601052c..ca799cc 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1513,7 +1513,7 @@ system_libs=() %if 0%{?noopenh264} system_libs+=(openh264) %endif -%if ! {bundlesimdutf} +%if ! %{bundlesimdutf} system_libs+=(simdutf) %endif From c88c58dc11fb097c60b03cff3424513094ccd48b Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 15 May 2025 13:28:03 +0200 Subject: [PATCH 146/244] Enable system simdutf for Fedora build --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index ca799cc..09340b0 100644 --- a/chromium.spec +++ b/chromium.spec @@ -207,13 +207,13 @@ %global bundleffmpegfree 0 %global bundlefreetype 0 %global bundlelibxml 0 -%global bundlesimdutf 0 # need libtiff-4.6.1 or newer, error: use of undeclared identifier 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' %if 0%{?fedora} > 41 %global bundlelibtiff 0 %endif %if 0%{?fedora} %global bundlecrc32c 0 +%global bundlesimdutf 1 %endif %if 0%{?rhel} > 9 || 0%{?fedora} %global bundlelibopenjpeg2 0 From 48bbe02d1d9a7178cd1443121a4b2e0b594d8bbf Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 15 May 2025 13:29:31 +0200 Subject: [PATCH 147/244] Fix another Typo --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 09340b0..af19149 100644 --- a/chromium.spec +++ b/chromium.spec @@ -213,7 +213,7 @@ %endif %if 0%{?fedora} %global bundlecrc32c 0 -%global bundlesimdutf 1 +%global bundlesimdutf 0 %endif %if 0%{?rhel} > 9 || 0%{?fedora} %global bundlelibopenjpeg2 0 From c183b6d1001297f84aa6e3342488a29c5e4410c9 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 16 May 2025 23:46:39 +0200 Subject: [PATCH 148/244] * Fix FTBFS - ld.lld: error: unable to find library -latomic Add BR gcc-toolset-14-libatomic-devel for clang-19.x on el9 to fix FTBFS ld.lld: error: unable to find library -latomic * Fix condition for el8 build due to old clang/rust --- ...mium-136-el9-bindgen-cli-build-error.patch | 22 ------------------- chromium.spec | 15 +++++-------- 2 files changed, 6 insertions(+), 31 deletions(-) delete mode 100644 chromium-136-el9-bindgen-cli-build-error.patch diff --git a/chromium-136-el9-bindgen-cli-build-error.patch b/chromium-136-el9-bindgen-cli-build-error.patch deleted file mode 100644 index caa196e..0000000 --- a/chromium-136-el9-bindgen-cli-build-error.patch +++ /dev/null @@ -1,22 +0,0 @@ -bindgen generates rust codes that cannot be compiled with rust-1.79.0 on EPEL9 - https://github.com/rust-lang/rust-bindgen/issues/3052 - -Add Workaround for this build error on el9 - -error: extern block cannot be declared unsafe - --> ../../third_party/crabbyavif/src/sys/dav1d-sys/src/../../../../../../out/Release/gen/third_party/crabbyavif/crabbyavif_dav1d_sys/dav1d_bindgen.rs:3:18605 - -Signed-off-by: Than Ngo - -diff -up chromium-136.0.7103.92/build/rust/run_bindgen.py.than chromium-136.0.7103.92/build/rust/run_bindgen.py ---- chromium-136.0.7103.92/build/rust/run_bindgen.py.than 2025-05-08 14:09:50.268246973 +0200 -+++ chromium-136.0.7103.92/build/rust/run_bindgen.py 2025-05-08 14:46:22.421719175 +0200 -@@ -68,7 +68,7 @@ def main(): - # TODO(danakj): We need to point bindgen to - # //third_party/rust-toolchain/bin/rustfmt. - genargs.append('--no-rustfmt-bindings') -- genargs += ['--rust-target', 'nightly'] -+ genargs += ['--rust-target', '1.79'] - - if args.depfile: - depfile = stack.enter_context(action_helpers.atomic_output(args.depfile)) diff --git a/chromium.spec b/chromium.spec index af19149..e23b58f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -290,9 +290,6 @@ Patch91: chromium-108-system-opus.patch # patch for Failed NodeJS version check Patch92: chromium-136-checkversion-nodejs.patch -# Fix FTBFS caused by bindgen-cli-0.71, rust-1.79.0 on EL9 -Patch93: chromium-136-el9-bindgen-cli-build-error.patch - # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -324,7 +321,7 @@ Patch306: chromium-127-el8-ifunc-header.patch # workaround for build error due to old atk version on el8 Patch307: chromium-134-el8-atk-compiler-error.patch -# Fix build errors due to old clang18 in el 8/9 and f40 +# Fix build errors due to old clang18 in el8 Patch308: chromium-136-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch Patch310: chromium-132-el8-clang18-build-error.patch @@ -336,7 +333,8 @@ Patch312: chromium-123-fstack-protector-strong.patch # build error stdarch_arm_crc32 Patch313: chromium-133-rust-crc32fast.patch -# build error error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope +# old rust version causes build error on el8: +# error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope Patch314: chromium-136-rust-skrifa-build-error.patch # build error: libadler2 not found, rust-1.86 or newer replaces adler with adler2 @@ -503,7 +501,7 @@ BuildRequires: llvm BuildRequires: lld %if 0%{?rhel} && 0%{?rhel} <= 9 -BuildRequires: gcc-toolset-13-libatomic-devel +BuildRequires: gcc-toolset-14-libatomic-devel %endif BuildRequires: rustc @@ -1012,7 +1010,6 @@ Qt6 UI for chromium. %endif %patch -P92 -p1 -b .nodejs-checkversion -%patch -P93 -p1 -b .bindgen-cli-build-error %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 @@ -1043,7 +1040,7 @@ Qt6 UI for chromium. %endif %patch -P307 -p1 -b .el8-atk-compiler-error %endif -%if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} == 40 +%if 0%{?rhel} == 8 %patch -P308 -p1 -b .unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error @@ -1061,7 +1058,7 @@ Qt6 UI for chromium. %endif %endif -%if 0%{?rhel} == 8 || 0%{?rhel} == 9 || 0%{?fedora} == 40 +%if 0%{?rhel} == 8 %patch -P314 -p1 -b .rust-skrifa-build-error %endif From e5d715b3d601af44fe2b6611a3c700b0fe3c5e86 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 17 May 2025 17:15:07 +0200 Subject: [PATCH 149/244] in f43, system simdutf is incompatible and causes FTBFS. --- chromium.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index e23b58f..5b29dcb 100644 --- a/chromium.spec +++ b/chromium.spec @@ -207,15 +207,17 @@ %global bundleffmpegfree 0 %global bundlefreetype 0 %global bundlelibxml 0 -# need libtiff-4.6.1 or newer, error: use of undeclared identifier 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' %if 0%{?fedora} > 41 +# require libtiff-4.6.1 or newer, error: use of undeclared identifier 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' %global bundlelibtiff 0 %endif %if 0%{?fedora} %global bundlecrc32c 0 +%endif +%if 0%{?fedora} && 0%{?fedora} < 43 %global bundlesimdutf 0 %endif -%if 0%{?rhel} > 9 || 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 9 %global bundlelibopenjpeg2 0 %global bundleharfbuzz 0 %global bundlebrotli 0 From 7f177695daa3649c9cb1c279b2a7fd71fb3e7c38 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 27 May 2025 17:04:57 +0200 Subject: [PATCH 150/244] Rebuilt for flac 1.5.0 --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 5b29dcb..1411178 100644 --- a/chromium.spec +++ b/chromium.spec @@ -260,7 +260,7 @@ Name: chromium Version: 136.0.7103.113 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1787,6 +1787,9 @@ fi %endif %changelog +* Tue May 27 2025 Jitka Plesnikova - 136.0.7103.113-2 +- Rebuilt for flac 1.5.0 + * Wed May 14 2025 Than Ngo - 136.0.7103.113-1 - Update to 136.0.7103.113 * CVE-2025-4664: Insufficient policy enforcement in Loader From b7e0f6070bd446302940dfc63fece91c1e667d12 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 27 May 2025 23:18:23 +0200 Subject: [PATCH 151/244] - Update to 137.0.7151.55 * CVE-2025-5063: Use after free in Compositing * CVE-2025-5280: Out of bounds write in V8 * CVE-2025-5064: Inappropriate implementation in Background Fetch API * CVE-2025-5065: Inappropriate implementation in FileSystemAccess API * CVE-2025-5066: Inappropriate implementation in Messages * CVE-2025-5281: Inappropriate implementation in BFCache * CVE-2025-5283: Use after free in libvpx * CVE-2025-5067: Inappropriate implementation in Tab Strip - Fix FTBFS caused by simdutf and pdfium-png_decoder - Remove chromium-135-gperf.patch and chromium-135-add-cfi-suppressions-for-pipewire-functions.patch, merged by upstream - Refresh ppc64le patches - Enable system simdutf for F43 --- ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 11 +- ...party-libvpx-Remove-bad-ppc64-config.patch | 2444 +++-------------- ...-suppressions-for-pipewire-functions.patch | 39 - chromium-135-gperf.patch | 35 - ...m-137-pdfium-png_decoder-build-error.patch | 14 + chromium-137-simdutf-7.x-build-error.patch | 21 + chromium-137-simdutf-build-error.patch | 12 + chromium.spec | 53 +- fix-partition-alloc-compile.patch | 19 +- skia-vsx-instructions.patch | 140 +- sources | 2 +- 11 files changed, 615 insertions(+), 2175 deletions(-) delete mode 100644 chromium-135-add-cfi-suppressions-for-pipewire-functions.patch delete mode 100644 chromium-135-gperf.patch create mode 100644 chromium-137-pdfium-png_decoder-build-error.patch create mode 100644 chromium-137-simdutf-7.x-build-error.patch create mode 100644 chromium-137-simdutf-build-error.patch diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index a603ada..f069cc4 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -7,17 +7,14 @@ Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64 sandbox/features.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: chromium-128.0.6613.113/sandbox/features.gni +Index: chromium-137.0.7151.40/sandbox/features.gni =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/features.gni -+++ chromium-128.0.6613.113/sandbox/features.gni -@@ -9,7 +9,8 @@ +--- chromium-137.0.7151.40.orig/sandbox/features.gni ++++ chromium-137.0.7151.40/sandbox/features.gni +@@ -9,4 +9,5 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm" || current_cpu == "arm64" || - current_cpu == "mipsel" || current_cpu == "mips64el") + current_cpu == "mipsel" || current_cpu == "mips64el" || + current_cpu == "ppc64") - - # SSBD (Speculative Store Bypass Disable) is a mitigation of Spectre Variant 4. - # As Spectre Variant 4 can be mitigated by site isolation, opt-out SSBD on site diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index b952917..26410c5 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,8 +1,6 @@ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h -+++ /dev/null -@@ -1,330 +0,0 @@ +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h 2025-05-26 21:02:11.891388790 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +@@ -1,186 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * @@ -42,278 +40,133 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_r -extern "C" { -#endif - --void vp8_bilinear_predict16x16_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_bilinear_predict16x16_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_c - --void vp8_bilinear_predict4x4_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_bilinear_predict4x4_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_c - --void vp8_bilinear_predict8x4_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_bilinear_predict8x4_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_c - --void vp8_bilinear_predict8x8_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_bilinear_predict8x8_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_c - --int vp8_block_error_c(short* coeff, short* dqcoeff); +-int vp8_block_error_c(short *coeff, short *dqcoeff); -#define vp8_block_error vp8_block_error_c - --void vp8_copy32xn_c(const unsigned char* src_ptr, -- int src_stride, -- unsigned char* dst_ptr, -- int dst_stride, -- int height); +-void vp8_copy32xn_c(const unsigned char *src_ptr, int src_stride, unsigned char *dst_ptr, int dst_stride, int height); -#define vp8_copy32xn vp8_copy32xn_c - --void vp8_copy_mem16x16_c(unsigned char* src, -- int src_stride, -- unsigned char* dst, -- int dst_stride); +-void vp8_copy_mem16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride); -#define vp8_copy_mem16x16 vp8_copy_mem16x16_c - --void vp8_copy_mem8x4_c(unsigned char* src, -- int src_stride, -- unsigned char* dst, -- int dst_stride); +-void vp8_copy_mem8x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride); -#define vp8_copy_mem8x4 vp8_copy_mem8x4_c - --void vp8_copy_mem8x8_c(unsigned char* src, -- int src_stride, -- unsigned char* dst, -- int dst_stride); +-void vp8_copy_mem8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride); -#define vp8_copy_mem8x8 vp8_copy_mem8x8_c - --void vp8_dc_only_idct_add_c(short input_dc, -- unsigned char* pred_ptr, -- int pred_stride, -- unsigned char* dst_ptr, -- int dst_stride); +-void vp8_dc_only_idct_add_c(short input_dc, unsigned char *pred_ptr, int pred_stride, unsigned char *dst_ptr, int dst_stride); -#define vp8_dc_only_idct_add vp8_dc_only_idct_add_c - --int vp8_denoiser_filter_c(unsigned char* mc_running_avg_y, -- int mc_avg_y_stride, -- unsigned char* running_avg_y, -- int avg_y_stride, -- unsigned char* sig, -- int sig_stride, -- unsigned int motion_magnitude, -- int increase_denoising); +-int vp8_denoiser_filter_c(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising); -#define vp8_denoiser_filter vp8_denoiser_filter_c - --int vp8_denoiser_filter_uv_c(unsigned char* mc_running_avg, -- int mc_avg_stride, -- unsigned char* running_avg, -- int avg_stride, -- unsigned char* sig, -- int sig_stride, -- unsigned int motion_magnitude, -- int increase_denoising); +-int vp8_denoiser_filter_uv_c(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising); -#define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_c - --void vp8_dequant_idct_add_c(short* input, -- short* dq, -- unsigned char* dest, -- int stride); +-void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *dest, int stride); -#define vp8_dequant_idct_add vp8_dequant_idct_add_c - --void vp8_dequant_idct_add_uv_block_c(short* q, -- short* dq, -- unsigned char* dst_u, -- unsigned char* dst_v, -- int stride, -- char* eobs); +-void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); -#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_c - --void vp8_dequant_idct_add_y_block_c(short* q, -- short* dq, -- unsigned char* dst, -- int stride, -- char* eobs); +-void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs); -#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_c - --void vp8_dequantize_b_c(struct blockd*, short* DQC); +-void vp8_dequantize_b_c(struct blockd*, short *DQC); -#define vp8_dequantize_b vp8_dequantize_b_c - --int vp8_diamond_search_sad_c(struct macroblock* x, -- struct block* b, -- struct blockd* d, -- union int_mv* ref_mv, -- union int_mv* best_mv, -- int search_param, -- int sad_per_bit, -- int* num00, -- struct variance_vtable* fn_ptr, -- int* mvcost[2], -- union int_mv* center_mv); +-int vp8_diamond_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); -#define vp8_diamond_search_sad vp8_diamond_search_sad_c - --void vp8_fast_quantize_b_c(struct block*, struct blockd*); +-void vp8_fast_quantize_b_c(struct block *, struct blockd *); -#define vp8_fast_quantize_b vp8_fast_quantize_b_c - --void vp8_filter_by_weight16x16_c(unsigned char* src, -- int src_stride, -- unsigned char* dst, -- int dst_stride, -- int src_weight); +-void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); -#define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_c - --void vp8_filter_by_weight4x4_c(unsigned char* src, -- int src_stride, -- unsigned char* dst, -- int dst_stride, -- int src_weight); +-void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); -#define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c - --void vp8_filter_by_weight8x8_c(unsigned char* src, -- int src_stride, -- unsigned char* dst, -- int dst_stride, -- int src_weight); +-void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char *dst, int dst_stride, int src_weight); -#define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_c - --void vp8_loop_filter_bh_c(unsigned char* y_ptr, -- unsigned char* u_ptr, -- unsigned char* v_ptr, -- int y_stride, -- int uv_stride, -- struct loop_filter_info* lfi); +-void vp8_loop_filter_bh_c(unsigned char *y_ptr, unsigned char *u_ptr, unsigned char *v_ptr, int y_stride, int uv_stride, struct loop_filter_info *lfi); -#define vp8_loop_filter_bh vp8_loop_filter_bh_c - --void vp8_loop_filter_bv_c(unsigned char* y_ptr, -- unsigned char* u_ptr, -- unsigned char* v_ptr, -- int y_stride, -- int uv_stride, -- struct loop_filter_info* lfi); +-void vp8_loop_filter_bv_c(unsigned char *y_ptr, unsigned char *u_ptr, unsigned char *v_ptr, int y_stride, int uv_stride, struct loop_filter_info *lfi); -#define vp8_loop_filter_bv vp8_loop_filter_bv_c - --void vp8_loop_filter_mbh_c(unsigned char* y_ptr, -- unsigned char* u_ptr, -- unsigned char* v_ptr, -- int y_stride, -- int uv_stride, -- struct loop_filter_info* lfi); +-void vp8_loop_filter_mbh_c(unsigned char *y_ptr, unsigned char *u_ptr, unsigned char *v_ptr, int y_stride, int uv_stride, struct loop_filter_info *lfi); -#define vp8_loop_filter_mbh vp8_loop_filter_mbh_c - --void vp8_loop_filter_mbv_c(unsigned char* y_ptr, -- unsigned char* u_ptr, -- unsigned char* v_ptr, -- int y_stride, -- int uv_stride, -- struct loop_filter_info* lfi); +-void vp8_loop_filter_mbv_c(unsigned char *y_ptr, unsigned char *u_ptr, unsigned char *v_ptr, int y_stride, int uv_stride, struct loop_filter_info *lfi); -#define vp8_loop_filter_mbv vp8_loop_filter_mbv_c - --void vp8_loop_filter_bhs_c(unsigned char* y_ptr, -- int y_stride, -- const unsigned char* blimit); +-void vp8_loop_filter_bhs_c(unsigned char *y_ptr, int y_stride, const unsigned char *blimit); -#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_c - --void vp8_loop_filter_bvs_c(unsigned char* y_ptr, -- int y_stride, -- const unsigned char* blimit); +-void vp8_loop_filter_bvs_c(unsigned char *y_ptr, int y_stride, const unsigned char *blimit); -#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_c - --void vp8_loop_filter_simple_horizontal_edge_c(unsigned char* y_ptr, -- int y_stride, -- const unsigned char* blimit); +-void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y_ptr, int y_stride, const unsigned char *blimit); -#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_c - --void vp8_loop_filter_simple_vertical_edge_c(unsigned char* y_ptr, -- int y_stride, -- const unsigned char* blimit); +-void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y_ptr, int y_stride, const unsigned char *blimit); -#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_c - --int vp8_mbblock_error_c(struct macroblock* mb, int dc); +-int vp8_mbblock_error_c(struct macroblock *mb, int dc); -#define vp8_mbblock_error vp8_mbblock_error_c - --int vp8_mbuverror_c(struct macroblock* mb); +-int vp8_mbuverror_c(struct macroblock *mb); -#define vp8_mbuverror vp8_mbuverror_c - --int vp8_refining_search_sad_c(struct macroblock* x, -- struct block* b, -- struct blockd* d, -- union int_mv* ref_mv, -- int error_per_bit, -- int search_range, -- struct variance_vtable* fn_ptr, -- int* mvcost[2], -- union int_mv* center_mv); +-int vp8_refining_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int error_per_bit, int search_range, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); -#define vp8_refining_search_sad vp8_refining_search_sad_c - --void vp8_regular_quantize_b_c(struct block*, struct blockd*); +-void vp8_regular_quantize_b_c(struct block *, struct blockd *); -#define vp8_regular_quantize_b vp8_regular_quantize_b_c - --void vp8_short_fdct4x4_c(short* input, short* output, int pitch); +-void vp8_short_fdct4x4_c(short *input, short *output, int pitch); -#define vp8_short_fdct4x4 vp8_short_fdct4x4_c - --void vp8_short_fdct8x4_c(short* input, short* output, int pitch); +-void vp8_short_fdct8x4_c(short *input, short *output, int pitch); -#define vp8_short_fdct8x4 vp8_short_fdct8x4_c - --void vp8_short_idct4x4llm_c(short* input, -- unsigned char* pred_ptr, -- int pred_stride, -- unsigned char* dst_ptr, -- int dst_stride); +-void vp8_short_idct4x4llm_c(short *input, unsigned char *pred_ptr, int pred_stride, unsigned char *dst_ptr, int dst_stride); -#define vp8_short_idct4x4llm vp8_short_idct4x4llm_c - --void vp8_short_inv_walsh4x4_c(short* input, short* mb_dqcoeff); +-void vp8_short_inv_walsh4x4_c(short *input, short *mb_dqcoeff); -#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_c - --void vp8_short_inv_walsh4x4_1_c(short* input, short* mb_dqcoeff); +-void vp8_short_inv_walsh4x4_1_c(short *input, short *mb_dqcoeff); -#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c - --void vp8_short_walsh4x4_c(short* input, short* output, int pitch); +-void vp8_short_walsh4x4_c(short *input, short *output, int pitch); -#define vp8_short_walsh4x4 vp8_short_walsh4x4_c - --void vp8_sixtap_predict16x16_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_sixtap_predict16x16_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_c - --void vp8_sixtap_predict4x4_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_sixtap_predict4x4_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_c - --void vp8_sixtap_predict8x4_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_sixtap_predict8x4_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_c - --void vp8_sixtap_predict8x8_c(unsigned char* src_ptr, -- int src_pixels_per_line, -- int xoffset, -- int yoffset, -- unsigned char* dst_ptr, -- int dst_pitch); +-void vp8_sixtap_predict8x8_c(unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch); -#define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_c - -void vp8_rtcd(void); @@ -322,9 +175,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_r - -#ifdef RTCD_C -#include "vpx_ports/ppc.h" --static void setup_rtcd_internal(void) { -- int flags = ppc_simd_caps(); -- (void)flags; +-static void setup_rtcd_internal(void) +-{ +- int flags = ppc_simd_caps(); +- (void)flags; -} -#endif - @@ -333,11 +187,9 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif // VP8_RTCD_H_ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h -+++ /dev/null -@@ -1,206 +0,0 @@ +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h 2025-05-26 21:02:11.891388790 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +@@ -1,119 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * @@ -362,10 +214,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_r - * VP9 - */ - +-#include "vpx/vpx_integer.h" -#include "vp9/common/vp9_common.h" -#include "vp9/common/vp9_enums.h" -#include "vp9/common/vp9_filter.h" --#include "vpx/vpx_integer.h" -#if !CONFIG_REALTIME_ONLY && CONFIG_VP9_ENCODER -#include "vp9/encoder/vp9_temporal_filter.h" -#endif @@ -386,145 +238,57 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_r -extern "C" { -#endif - --int64_t vp9_block_error_c(const tran_low_t* coeff, -- const tran_low_t* dqcoeff, -- intptr_t block_size, -- int64_t* ssz); +-int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz); -#define vp9_block_error vp9_block_error_c - --int64_t vp9_block_error_fp_c(const tran_low_t* coeff, -- const tran_low_t* dqcoeff, -- int block_size); +-int64_t vp9_block_error_fp_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, int block_size); -#define vp9_block_error_fp vp9_block_error_fp_c - --int vp9_denoiser_filter_c(const uint8_t* sig, -- int sig_stride, -- const uint8_t* mc_avg, -- int mc_avg_stride, -- uint8_t* avg, -- int avg_stride, -- int increase_denoising, -- BLOCK_SIZE bs, -- int motion_magnitude); +-int vp9_denoiser_filter_c(const uint8_t *sig, int sig_stride, const uint8_t *mc_avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_denoising, BLOCK_SIZE bs, int motion_magnitude); -#define vp9_denoiser_filter vp9_denoiser_filter_c - --int vp9_diamond_search_sad_c(const struct macroblock* x, -- const struct search_site_config* cfg, -- struct mv* ref_mv, -- uint32_t start_mv_sad, -- struct mv* best_mv, -- int search_param, -- int sad_per_bit, -- int* num00, -- const struct vp9_sad_table* sad_fn_ptr, -- const struct mv* center_mv); +-int vp9_diamond_search_sad_c(const struct macroblock *x, const struct search_site_config *cfg, struct mv *ref_mv, uint32_t start_mv_sad, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_sad_table *sad_fn_ptr, const struct mv *center_mv); -#define vp9_diamond_search_sad vp9_diamond_search_sad_c - --void vp9_fht16x16_c(const int16_t* input, -- tran_low_t* output, -- int stride, -- int tx_type); +-void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); -#define vp9_fht16x16 vp9_fht16x16_c - --void vp9_fht4x4_c(const int16_t* input, -- tran_low_t* output, -- int stride, -- int tx_type); +-void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); -#define vp9_fht4x4 vp9_fht4x4_c - --void vp9_fht8x8_c(const int16_t* input, -- tran_low_t* output, -- int stride, -- int tx_type); +-void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); -#define vp9_fht8x8 vp9_fht8x8_c - --void vp9_filter_by_weight16x16_c(const uint8_t* src, -- int src_stride, -- uint8_t* dst, -- int dst_stride, -- int src_weight); +-void vp9_filter_by_weight16x16_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int src_weight); -#define vp9_filter_by_weight16x16 vp9_filter_by_weight16x16_c - --void vp9_filter_by_weight8x8_c(const uint8_t* src, -- int src_stride, -- uint8_t* dst, -- int dst_stride, -- int src_weight); +-void vp9_filter_by_weight8x8_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int src_weight); -#define vp9_filter_by_weight8x8 vp9_filter_by_weight8x8_c - --void vp9_fwht4x4_c(const int16_t* input, tran_low_t* output, int stride); +-void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); -#define vp9_fwht4x4 vp9_fwht4x4_c - --void vp9_iht16x16_256_add_c(const tran_low_t* input, -- uint8_t* dest, -- int stride, -- int tx_type); --void vp9_iht16x16_256_add_vsx(const tran_low_t* input, -- uint8_t* dest, -- int stride, -- int tx_type); +-void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); +-void vp9_iht16x16_256_add_vsx(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); -#define vp9_iht16x16_256_add vp9_iht16x16_256_add_vsx - --void vp9_iht4x4_16_add_c(const tran_low_t* input, -- uint8_t* dest, -- int stride, -- int tx_type); --void vp9_iht4x4_16_add_vsx(const tran_low_t* input, -- uint8_t* dest, -- int stride, -- int tx_type); +-void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); +-void vp9_iht4x4_16_add_vsx(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); -#define vp9_iht4x4_16_add vp9_iht4x4_16_add_vsx - --void vp9_iht8x8_64_add_c(const tran_low_t* input, -- uint8_t* dest, -- int stride, -- int tx_type); --void vp9_iht8x8_64_add_vsx(const tran_low_t* input, -- uint8_t* dest, -- int stride, -- int tx_type); +-void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); +-void vp9_iht8x8_64_add_vsx(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); -#define vp9_iht8x8_64_add vp9_iht8x8_64_add_vsx - --void vp9_quantize_fp_c(const tran_low_t* coeff_ptr, -- intptr_t n_coeffs, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); --void vp9_quantize_fp_vsx(const tran_low_t* coeff_ptr, -- intptr_t n_coeffs, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); +-void vp9_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); +-void vp9_quantize_fp_vsx(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); -#define vp9_quantize_fp vp9_quantize_fp_vsx - --void vp9_quantize_fp_32x32_c(const tran_low_t* coeff_ptr, -- intptr_t n_coeffs, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); --void vp9_quantize_fp_32x32_vsx(const tran_low_t* coeff_ptr, -- intptr_t n_coeffs, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); +-void vp9_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); +-void vp9_quantize_fp_32x32_vsx(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); -#define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_vsx - --void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config* src, -- struct yv12_buffer_config* dst, -- INTERP_FILTER filter_type, -- int phase_scaler); +-void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct yv12_buffer_config *dst, INTERP_FILTER filter_type, int phase_scaler); -#define vp9_scale_and_extend_frame vp9_scale_and_extend_frame_c - -void vp9_rtcd(void); @@ -533,9 +297,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_r - -#ifdef RTCD_C -#include "vpx_ports/ppc.h" --static void setup_rtcd_internal(void) { -- int flags = ppc_simd_caps(); -- (void)flags; +-static void setup_rtcd_internal(void) +-{ +- int flags = ppc_simd_caps(); +- (void)flags; -} -#endif - @@ -544,11 +309,9 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif // VP9_RTCD_H_ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm -+++ /dev/null -@@ -1,108 +0,0 @@ +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm 2025-05-26 21:02:11.891388790 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +@@ -1,107 +0,0 @@ -@ This file was created from a .asm file -@ using the ads2gas.pl script. -.syntax unified @@ -652,15 +415,12 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ CONFIG_FP_MB_STATS , 0 -.equ CONFIG_EMULATE_HARDWARE , 0 -.equ CONFIG_NON_GREEDY_MV , 0 --.equ CONFIG_RATE_CTRL , 0 -.equ CONFIG_COLLECT_COMPONENT_TIMING , 0 -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.c -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c -+++ /dev/null +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c 2025-05-26 21:02:11.891388790 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -672,11 +432,9 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_c -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.h -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h -+++ /dev/null -@@ -1,117 +0,0 @@ +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h 2025-05-26 21:02:11.892388814 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +@@ -1,116 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ -/* Use of this source code is governed by a BSD-style license */ @@ -789,16 +547,13 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define CONFIG_FP_MB_STATS 0 -#define CONFIG_EMULATE_HARDWARE 0 -#define CONFIG_NON_GREEDY_MV 0 --#define CONFIG_RATE_CTRL 0 -#define CONFIG_COLLECT_COMPONENT_TIMING 0 -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h -+++ /dev/null -@@ -1,2138 +0,0 @@ +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h 2025-05-26 21:02:11.892388814 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +@@ -1,858 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * @@ -827,2097 +582,816 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_d -#include "vpx_dsp/vpx_dsp_common.h" -#include "vpx_dsp/vpx_filter.h" -#if CONFIG_VP9_ENCODER --struct macroblock_plane; --struct ScanOrder; +- struct macroblock_plane; +- struct ScanOrder; -#endif - +- -#ifdef __cplusplus -extern "C" { -#endif - --unsigned int vpx_avg_4x4_c(const uint8_t*, int p); +-unsigned int vpx_avg_4x4_c(const uint8_t *, int p); -#define vpx_avg_4x4 vpx_avg_4x4_c - --unsigned int vpx_avg_8x8_c(const uint8_t*, int p); +-unsigned int vpx_avg_8x8_c(const uint8_t *, int p); -#define vpx_avg_8x8 vpx_avg_8x8_c - --void vpx_comp_avg_pred_c(uint8_t* comp_pred, -- const uint8_t* pred, -- int width, -- int height, -- const uint8_t* ref, -- int ref_stride); --void vpx_comp_avg_pred_vsx(uint8_t* comp_pred, -- const uint8_t* pred, -- int width, -- int height, -- const uint8_t* ref, -- int ref_stride); +-void vpx_comp_avg_pred_c(uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride); +-void vpx_comp_avg_pred_vsx(uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride); -#define vpx_comp_avg_pred vpx_comp_avg_pred_vsx - --void vpx_convolve8_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve8_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve8_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve8_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve8 vpx_convolve8_vsx - --void vpx_convolve8_avg_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve8_avg_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve8_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve8_avg_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve8_avg vpx_convolve8_avg_vsx - --void vpx_convolve8_avg_horiz_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve8_avg_horiz_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve8_avg_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve8_avg_horiz_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve8_avg_horiz vpx_convolve8_avg_horiz_vsx - --void vpx_convolve8_avg_vert_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve8_avg_vert_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve8_avg_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve8_avg_vert_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve8_avg_vert vpx_convolve8_avg_vert_vsx - --void vpx_convolve8_horiz_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve8_horiz_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve8_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve8_horiz_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve8_horiz vpx_convolve8_horiz_vsx - --void vpx_convolve8_vert_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve8_vert_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve8_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve8_vert_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve8_vert vpx_convolve8_vert_vsx - --void vpx_convolve_avg_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve_avg_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve_avg_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve_avg vpx_convolve_avg_vsx - --void vpx_convolve_copy_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); --void vpx_convolve_copy_vsx(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_convolve_copy_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); +-void vpx_convolve_copy_vsx(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_convolve_copy vpx_convolve_copy_vsx - --void vpx_d117_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d117_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d117_predictor_16x16 vpx_d117_predictor_16x16_c - --void vpx_d117_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d117_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d117_predictor_32x32 vpx_d117_predictor_32x32_c - --void vpx_d117_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d117_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d117_predictor_4x4 vpx_d117_predictor_4x4_c - --void vpx_d117_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d117_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d117_predictor_8x8 vpx_d117_predictor_8x8_c - --void vpx_d135_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d135_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d135_predictor_16x16 vpx_d135_predictor_16x16_c - --void vpx_d135_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d135_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d135_predictor_32x32 vpx_d135_predictor_32x32_c - --void vpx_d135_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d135_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d135_predictor_4x4 vpx_d135_predictor_4x4_c - --void vpx_d135_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d135_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d135_predictor_8x8 vpx_d135_predictor_8x8_c - --void vpx_d153_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d153_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d153_predictor_16x16 vpx_d153_predictor_16x16_c - --void vpx_d153_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d153_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d153_predictor_32x32 vpx_d153_predictor_32x32_c - --void vpx_d153_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d153_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d153_predictor_4x4 vpx_d153_predictor_4x4_c - --void vpx_d153_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d153_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d153_predictor_8x8 vpx_d153_predictor_8x8_c - --void vpx_d207_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d207_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d207_predictor_16x16 vpx_d207_predictor_16x16_c - --void vpx_d207_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d207_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d207_predictor_32x32 vpx_d207_predictor_32x32_c - --void vpx_d207_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d207_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d207_predictor_4x4 vpx_d207_predictor_4x4_c - --void vpx_d207_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d207_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d207_predictor_8x8 vpx_d207_predictor_8x8_c - --void vpx_d45_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_d45_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d45_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_d45_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d45_predictor_16x16 vpx_d45_predictor_16x16_vsx - --void vpx_d45_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_d45_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d45_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_d45_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d45_predictor_32x32 vpx_d45_predictor_32x32_vsx - --void vpx_d45_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d45_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d45_predictor_4x4 vpx_d45_predictor_4x4_c - --void vpx_d45_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d45_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d45_predictor_8x8 vpx_d45_predictor_8x8_c - --void vpx_d45e_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d45e_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d45e_predictor_4x4 vpx_d45e_predictor_4x4_c - --void vpx_d63_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_d63_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d63_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_d63_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d63_predictor_16x16 vpx_d63_predictor_16x16_vsx - --void vpx_d63_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_d63_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d63_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_d63_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d63_predictor_32x32 vpx_d63_predictor_32x32_vsx - --void vpx_d63_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d63_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d63_predictor_4x4 vpx_d63_predictor_4x4_c - --void vpx_d63_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d63_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d63_predictor_8x8 vpx_d63_predictor_8x8_c - --void vpx_d63e_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_d63e_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_d63e_predictor_4x4 vpx_d63e_predictor_4x4_c - --void vpx_dc_128_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_128_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_128_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_128_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_128_predictor_16x16 vpx_dc_128_predictor_16x16_vsx - --void vpx_dc_128_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_128_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_128_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_128_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_128_predictor_32x32 vpx_dc_128_predictor_32x32_vsx - --void vpx_dc_128_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_128_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_128_predictor_4x4 vpx_dc_128_predictor_4x4_c - --void vpx_dc_128_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_128_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_128_predictor_8x8 vpx_dc_128_predictor_8x8_c - --void vpx_dc_left_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_left_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_left_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_left_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_left_predictor_16x16 vpx_dc_left_predictor_16x16_vsx - --void vpx_dc_left_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_left_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_left_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_left_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_left_predictor_32x32 vpx_dc_left_predictor_32x32_vsx - --void vpx_dc_left_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_left_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_left_predictor_4x4 vpx_dc_left_predictor_4x4_c - --void vpx_dc_left_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_left_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_left_predictor_8x8 vpx_dc_left_predictor_8x8_c - --void vpx_dc_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_predictor_16x16 vpx_dc_predictor_16x16_vsx - --void vpx_dc_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_predictor_32x32 vpx_dc_predictor_32x32_vsx - --void vpx_dc_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_predictor_4x4 vpx_dc_predictor_4x4_c - --void vpx_dc_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_predictor_8x8 vpx_dc_predictor_8x8_c - --void vpx_dc_top_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_top_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_top_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_top_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_top_predictor_16x16 vpx_dc_top_predictor_16x16_vsx - --void vpx_dc_top_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_dc_top_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_top_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_dc_top_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_top_predictor_32x32 vpx_dc_top_predictor_32x32_vsx - --void vpx_dc_top_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_top_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_top_predictor_4x4 vpx_dc_top_predictor_4x4_c - --void vpx_dc_top_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_dc_top_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_dc_top_predictor_8x8 vpx_dc_top_predictor_8x8_c - --void vpx_fdct16x16_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct16x16_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct16x16 vpx_fdct16x16_c - --void vpx_fdct16x16_1_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct16x16_1_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct16x16_1 vpx_fdct16x16_1_c - --void vpx_fdct32x32_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct32x32_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct32x32 vpx_fdct32x32_c - --void vpx_fdct32x32_1_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct32x32_1_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct32x32_1 vpx_fdct32x32_1_c - --void vpx_fdct32x32_rd_c(const int16_t* input, tran_low_t* output, int stride); --void vpx_fdct32x32_rd_vsx(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct32x32_rd_c(const int16_t *input, tran_low_t *output, int stride); +-void vpx_fdct32x32_rd_vsx(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct32x32_rd vpx_fdct32x32_rd_vsx - --void vpx_fdct4x4_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct4x4 vpx_fdct4x4_c - --void vpx_fdct4x4_1_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct4x4_1_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct4x4_1 vpx_fdct4x4_1_c - --void vpx_fdct8x8_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct8x8 vpx_fdct8x8_c - --void vpx_fdct8x8_1_c(const int16_t* input, tran_low_t* output, int stride); +-void vpx_fdct8x8_1_c(const int16_t *input, tran_low_t *output, int stride); -#define vpx_fdct8x8_1 vpx_fdct8x8_1_c - --void vpx_get16x16var_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse, -- int* sum); --void vpx_get16x16var_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse, -- int* sum); +-void vpx_get16x16var_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); +-void vpx_get16x16var_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); -#define vpx_get16x16var vpx_get16x16var_vsx - --unsigned int vpx_get4x4sse_cs_c(const unsigned char* src_ptr, -- int src_stride, -- const unsigned char* ref_ptr, -- int ref_stride); --unsigned int vpx_get4x4sse_cs_vsx(const unsigned char* src_ptr, -- int src_stride, -- const unsigned char* ref_ptr, -- int ref_stride); +-unsigned int vpx_get4x4sse_cs_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride); +-unsigned int vpx_get4x4sse_cs_vsx(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride); -#define vpx_get4x4sse_cs vpx_get4x4sse_cs_vsx - --void vpx_get8x8var_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse, -- int* sum); --void vpx_get8x8var_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse, -- int* sum); +-void vpx_get8x8var_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); +-void vpx_get8x8var_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); -#define vpx_get8x8var vpx_get8x8var_vsx - --unsigned int vpx_get_mb_ss_c(const int16_t*); --unsigned int vpx_get_mb_ss_vsx(const int16_t*); +-unsigned int vpx_get_mb_ss_c(const int16_t *); +-unsigned int vpx_get_mb_ss_vsx(const int16_t *); -#define vpx_get_mb_ss vpx_get_mb_ss_vsx - --void vpx_h_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_h_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_h_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_h_predictor_16x16 vpx_h_predictor_16x16_vsx - --void vpx_h_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_h_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_h_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_h_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_h_predictor_32x32 vpx_h_predictor_32x32_vsx - --void vpx_h_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_h_predictor_4x4 vpx_h_predictor_4x4_c - --void vpx_h_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_h_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_h_predictor_8x8 vpx_h_predictor_8x8_c - --void vpx_hadamard_16x16_c(const int16_t* src_diff, -- ptrdiff_t src_stride, -- int16_t* coeff); --void vpx_hadamard_16x16_vsx(const int16_t* src_diff, -- ptrdiff_t src_stride, -- int16_t* coeff); +-void vpx_hadamard_16x16_c(const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff); +-void vpx_hadamard_16x16_vsx(const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff); -#define vpx_hadamard_16x16 vpx_hadamard_16x16_vsx - --void vpx_hadamard_32x32_c(const int16_t* src_diff, -- ptrdiff_t src_stride, -- int16_t* coeff); +-void vpx_hadamard_32x32_c(const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff); -#define vpx_hadamard_32x32 vpx_hadamard_32x32_c - --void vpx_hadamard_8x8_c(const int16_t* src_diff, -- ptrdiff_t src_stride, -- int16_t* coeff); --void vpx_hadamard_8x8_vsx(const int16_t* src_diff, -- ptrdiff_t src_stride, -- int16_t* coeff); +-void vpx_hadamard_8x8_c(const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff); +-void vpx_hadamard_8x8_vsx(const int16_t *src_diff, ptrdiff_t src_stride, int16_t *coeff); -#define vpx_hadamard_8x8 vpx_hadamard_8x8_vsx - --void vpx_he_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_he_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_he_predictor_4x4 vpx_he_predictor_4x4_c - --void vpx_idct16x16_10_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct16x16_10_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct16x16_10_add vpx_idct16x16_10_add_c - --void vpx_idct16x16_1_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct16x16_1_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct16x16_1_add vpx_idct16x16_1_add_c - --void vpx_idct16x16_256_add_c(const tran_low_t* input, -- uint8_t* dest, -- int stride); --void vpx_idct16x16_256_add_vsx(const tran_low_t* input, -- uint8_t* dest, -- int stride); +-void vpx_idct16x16_256_add_c(const tran_low_t *input, uint8_t *dest, int stride); +-void vpx_idct16x16_256_add_vsx(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct16x16_256_add vpx_idct16x16_256_add_vsx - --void vpx_idct16x16_38_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct16x16_38_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct16x16_38_add vpx_idct16x16_38_add_c - --void vpx_idct32x32_1024_add_c(const tran_low_t* input, -- uint8_t* dest, -- int stride); --void vpx_idct32x32_1024_add_vsx(const tran_low_t* input, -- uint8_t* dest, -- int stride); +-void vpx_idct32x32_1024_add_c(const tran_low_t *input, uint8_t *dest, int stride); +-void vpx_idct32x32_1024_add_vsx(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct32x32_1024_add vpx_idct32x32_1024_add_vsx - --void vpx_idct32x32_135_add_c(const tran_low_t* input, -- uint8_t* dest, -- int stride); +-void vpx_idct32x32_135_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct32x32_135_add vpx_idct32x32_135_add_c - --void vpx_idct32x32_1_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct32x32_1_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct32x32_1_add vpx_idct32x32_1_add_c - --void vpx_idct32x32_34_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct32x32_34_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct32x32_34_add vpx_idct32x32_34_add_c - --void vpx_idct4x4_16_add_c(const tran_low_t* input, uint8_t* dest, int stride); --void vpx_idct4x4_16_add_vsx(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride); +-void vpx_idct4x4_16_add_vsx(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct4x4_16_add vpx_idct4x4_16_add_vsx - --void vpx_idct4x4_1_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct4x4_1_add vpx_idct4x4_1_add_c - --void vpx_idct8x8_12_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct8x8_12_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct8x8_12_add vpx_idct8x8_12_add_c - --void vpx_idct8x8_1_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct8x8_1_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct8x8_1_add vpx_idct8x8_1_add_c - --void vpx_idct8x8_64_add_c(const tran_low_t* input, uint8_t* dest, int stride); --void vpx_idct8x8_64_add_vsx(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_idct8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride); +-void vpx_idct8x8_64_add_vsx(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_idct8x8_64_add vpx_idct8x8_64_add_vsx - --int16_t vpx_int_pro_col_c(const uint8_t* ref, const int width); +-int16_t vpx_int_pro_col_c(const uint8_t *ref, const int width); -#define vpx_int_pro_col vpx_int_pro_col_c - --void vpx_int_pro_row_c(int16_t hbuf[16], -- const uint8_t* ref, -- const int ref_stride, -- const int height); +-void vpx_int_pro_row_c(int16_t hbuf[16], const uint8_t *ref, const int ref_stride, const int height); -#define vpx_int_pro_row vpx_int_pro_row_c - --void vpx_iwht4x4_16_add_c(const tran_low_t* input, uint8_t* dest, int stride); --void vpx_iwht4x4_16_add_vsx(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride); +-void vpx_iwht4x4_16_add_vsx(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_iwht4x4_16_add vpx_iwht4x4_16_add_vsx - --void vpx_iwht4x4_1_add_c(const tran_low_t* input, uint8_t* dest, int stride); +-void vpx_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int stride); -#define vpx_iwht4x4_1_add vpx_iwht4x4_1_add_c - --void vpx_lpf_horizontal_16_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_horizontal_16 vpx_lpf_horizontal_16_c - --void vpx_lpf_horizontal_16_dual_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_horizontal_16_dual_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_horizontal_16_dual vpx_lpf_horizontal_16_dual_c - --void vpx_lpf_horizontal_4_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_horizontal_4_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_horizontal_4 vpx_lpf_horizontal_4_c - --void vpx_lpf_horizontal_4_dual_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit0, -- const uint8_t* limit0, -- const uint8_t* thresh0, -- const uint8_t* blimit1, -- const uint8_t* limit1, -- const uint8_t* thresh1); +-void vpx_lpf_horizontal_4_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1); -#define vpx_lpf_horizontal_4_dual vpx_lpf_horizontal_4_dual_c - --void vpx_lpf_horizontal_8_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_horizontal_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_horizontal_8 vpx_lpf_horizontal_8_c - --void vpx_lpf_horizontal_8_dual_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit0, -- const uint8_t* limit0, -- const uint8_t* thresh0, -- const uint8_t* blimit1, -- const uint8_t* limit1, -- const uint8_t* thresh1); +-void vpx_lpf_horizontal_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1); -#define vpx_lpf_horizontal_8_dual vpx_lpf_horizontal_8_dual_c - --void vpx_lpf_vertical_16_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_vertical_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_vertical_16 vpx_lpf_vertical_16_c - --void vpx_lpf_vertical_16_dual_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_vertical_16_dual_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_vertical_16_dual vpx_lpf_vertical_16_dual_c - --void vpx_lpf_vertical_4_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_vertical_4_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_vertical_4 vpx_lpf_vertical_4_c - --void vpx_lpf_vertical_4_dual_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit0, -- const uint8_t* limit0, -- const uint8_t* thresh0, -- const uint8_t* blimit1, -- const uint8_t* limit1, -- const uint8_t* thresh1); +-void vpx_lpf_vertical_4_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1); -#define vpx_lpf_vertical_4_dual vpx_lpf_vertical_4_dual_c - --void vpx_lpf_vertical_8_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit, -- const uint8_t* limit, -- const uint8_t* thresh); +-void vpx_lpf_vertical_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); -#define vpx_lpf_vertical_8 vpx_lpf_vertical_8_c - --void vpx_lpf_vertical_8_dual_c(uint8_t* s, -- int pitch, -- const uint8_t* blimit0, -- const uint8_t* limit0, -- const uint8_t* thresh0, -- const uint8_t* blimit1, -- const uint8_t* limit1, -- const uint8_t* thresh1); +-void vpx_lpf_vertical_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1); -#define vpx_lpf_vertical_8_dual vpx_lpf_vertical_8_dual_c - --void vpx_mbpost_proc_across_ip_c(unsigned char* src, -- int pitch, -- int rows, -- int cols, -- int flimit); --void vpx_mbpost_proc_across_ip_vsx(unsigned char* src, -- int pitch, -- int rows, -- int cols, -- int flimit); +-void vpx_mbpost_proc_across_ip_c(unsigned char *src, int pitch, int rows, int cols,int flimit); +-void vpx_mbpost_proc_across_ip_vsx(unsigned char *src, int pitch, int rows, int cols,int flimit); -#define vpx_mbpost_proc_across_ip vpx_mbpost_proc_across_ip_vsx - --void vpx_mbpost_proc_down_c(unsigned char* dst, -- int pitch, -- int rows, -- int cols, -- int flimit); --void vpx_mbpost_proc_down_vsx(unsigned char* dst, -- int pitch, -- int rows, -- int cols, -- int flimit); +-void vpx_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,int flimit); +-void vpx_mbpost_proc_down_vsx(unsigned char *dst, int pitch, int rows, int cols,int flimit); -#define vpx_mbpost_proc_down vpx_mbpost_proc_down_vsx - --void vpx_minmax_8x8_c(const uint8_t* s, -- int p, -- const uint8_t* d, -- int dp, -- int* min, -- int* max); +-void vpx_minmax_8x8_c(const uint8_t *s, int p, const uint8_t *d, int dp, int *min, int *max); -#define vpx_minmax_8x8 vpx_minmax_8x8_c - --unsigned int vpx_mse16x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_mse16x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_mse16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_mse16x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_mse16x16 vpx_mse16x16_vsx - --unsigned int vpx_mse16x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_mse16x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_mse16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_mse16x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_mse16x8 vpx_mse16x8_vsx - --unsigned int vpx_mse8x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_mse8x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_mse8x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_mse8x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_mse8x16 vpx_mse8x16_vsx - --unsigned int vpx_mse8x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_mse8x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_mse8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_mse8x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_mse8x8 vpx_mse8x8_vsx - --void vpx_plane_add_noise_c(uint8_t* start, -- const int8_t* noise, -- int blackclamp, -- int whiteclamp, -- int width, -- int height, -- int pitch); +-void vpx_plane_add_noise_c(uint8_t *start, const int8_t *noise, int blackclamp, int whiteclamp, int width, int height, int pitch); -#define vpx_plane_add_noise vpx_plane_add_noise_c - --void vpx_post_proc_down_and_across_mb_row_c(unsigned char* src, -- unsigned char* dst, -- int src_pitch, -- int dst_pitch, -- int cols, -- unsigned char* flimits, -- int size); --void vpx_post_proc_down_and_across_mb_row_vsx(unsigned char* src, -- unsigned char* dst, -- int src_pitch, -- int dst_pitch, -- int cols, -- unsigned char* flimits, -- int size); --#define vpx_post_proc_down_and_across_mb_row \ -- vpx_post_proc_down_and_across_mb_row_vsx +-void vpx_post_proc_down_and_across_mb_row_c(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); +-void vpx_post_proc_down_and_across_mb_row_vsx(unsigned char *src, unsigned char *dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); +-#define vpx_post_proc_down_and_across_mb_row vpx_post_proc_down_and_across_mb_row_vsx - --void vpx_quantize_b_c(const tran_low_t* coeff_ptr, -- intptr_t n_coeffs, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); --void vpx_quantize_b_vsx(const tran_low_t* coeff_ptr, -- intptr_t n_coeffs, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); +-void vpx_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); +-void vpx_quantize_b_vsx(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); -#define vpx_quantize_b vpx_quantize_b_vsx - --void vpx_quantize_b_32x32_c(const tran_low_t* coeff_ptr, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); --void vpx_quantize_b_32x32_vsx(const tran_low_t* coeff_ptr, -- const struct macroblock_plane* const mb_plane, -- tran_low_t* qcoeff_ptr, -- tran_low_t* dqcoeff_ptr, -- const int16_t* dequant_ptr, -- uint16_t* eob_ptr, -- const struct ScanOrder* const scan_order); +-void vpx_quantize_b_32x32_c(const tran_low_t *coeff_ptr, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); +-void vpx_quantize_b_32x32_vsx(const tran_low_t *coeff_ptr, const struct macroblock_plane *const mb_plane, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const struct ScanOrder *const scan_order); -#define vpx_quantize_b_32x32 vpx_quantize_b_32x32_vsx - --unsigned int vpx_sad16x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad16x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad16x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad16x16 vpx_sad16x16_vsx - --unsigned int vpx_sad16x16_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad16x16_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad16x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad16x16_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad16x16_avg vpx_sad16x16_avg_vsx - --void vpx_sad16x16x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad16x16x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad16x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad16x16x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad16x16x4d vpx_sad16x16x4d_vsx - --unsigned int vpx_sad16x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad16x32_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad16x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad16x32_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad16x32 vpx_sad16x32_vsx - --unsigned int vpx_sad16x32_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad16x32_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad16x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad16x32_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad16x32_avg vpx_sad16x32_avg_vsx - --void vpx_sad16x32x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad16x32x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad16x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad16x32x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad16x32x4d vpx_sad16x32x4d_vsx - --unsigned int vpx_sad16x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad16x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad16x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad16x8 vpx_sad16x8_vsx - --unsigned int vpx_sad16x8_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad16x8_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad16x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad16x8_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad16x8_avg vpx_sad16x8_avg_vsx - --void vpx_sad16x8x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad16x8x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad16x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad16x8x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad16x8x4d vpx_sad16x8x4d_vsx - --unsigned int vpx_sad32x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad32x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad32x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad32x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad32x16 vpx_sad32x16_vsx - --unsigned int vpx_sad32x16_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad32x16_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad32x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad32x16_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad32x16_avg vpx_sad32x16_avg_vsx - --void vpx_sad32x16x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad32x16x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad32x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad32x16x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad32x16x4d vpx_sad32x16x4d_vsx - --unsigned int vpx_sad32x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad32x32_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad32x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad32x32_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad32x32 vpx_sad32x32_vsx - --unsigned int vpx_sad32x32_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad32x32_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad32x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad32x32_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad32x32_avg vpx_sad32x32_avg_vsx - --void vpx_sad32x32x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad32x32x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad32x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad32x32x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad32x32x4d vpx_sad32x32x4d_vsx - --unsigned int vpx_sad32x64_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad32x64_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad32x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad32x64_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad32x64 vpx_sad32x64_vsx - --unsigned int vpx_sad32x64_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad32x64_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad32x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad32x64_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad32x64_avg vpx_sad32x64_avg_vsx - --void vpx_sad32x64x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad32x64x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad32x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad32x64x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad32x64x4d vpx_sad32x64x4d_vsx - --unsigned int vpx_sad4x4_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad4x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad4x4 vpx_sad4x4_c - --unsigned int vpx_sad4x4_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad4x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad4x4_avg vpx_sad4x4_avg_c - --void vpx_sad4x4x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad4x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad4x4x4d vpx_sad4x4x4d_c - --unsigned int vpx_sad4x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad4x8 vpx_sad4x8_c - --unsigned int vpx_sad4x8_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad4x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad4x8_avg vpx_sad4x8_avg_c - --void vpx_sad4x8x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad4x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad4x8x4d vpx_sad4x8x4d_c - --unsigned int vpx_sad64x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad64x32_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad64x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad64x32_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad64x32 vpx_sad64x32_vsx - --unsigned int vpx_sad64x32_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad64x32_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad64x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad64x32_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad64x32_avg vpx_sad64x32_avg_vsx - --void vpx_sad64x32x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad64x32x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad64x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad64x32x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad64x32x4d vpx_sad64x32x4d_vsx - --unsigned int vpx_sad64x64_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad64x64_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad64x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad64x64_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad64x64 vpx_sad64x64_vsx - --unsigned int vpx_sad64x64_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); --unsigned int vpx_sad64x64_avg_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad64x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); +-unsigned int vpx_sad64x64_avg_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad64x64_avg vpx_sad64x64_avg_vsx - --void vpx_sad64x64x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); --void vpx_sad64x64x4d_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad64x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); +-void vpx_sad64x64x4d_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad64x64x4d vpx_sad64x64x4d_vsx - --unsigned int vpx_sad8x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad8x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad8x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad8x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad8x16 vpx_sad8x16_vsx - --unsigned int vpx_sad8x16_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad8x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad8x16_avg vpx_sad8x16_avg_c - --void vpx_sad8x16x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad8x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad8x16x4d vpx_sad8x16x4d_c - --unsigned int vpx_sad8x4_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad8x4_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad8x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad8x4_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad8x4 vpx_sad8x4_vsx - --unsigned int vpx_sad8x4_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad8x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad8x4_avg vpx_sad8x4_avg_c - --void vpx_sad8x4x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad8x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad8x4x4d vpx_sad8x4x4d_c - --unsigned int vpx_sad8x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); --unsigned int vpx_sad8x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +-unsigned int vpx_sad8x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad8x8 vpx_sad8x8_vsx - --unsigned int vpx_sad8x8_avg_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- const uint8_t* second_pred); +-unsigned int vpx_sad8x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -#define vpx_sad8x8_avg vpx_sad8x8_avg_c - --void vpx_sad8x8x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad8x8x4d vpx_sad8x8x4d_c - --unsigned int vpx_sad_skip_16x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_16x16 vpx_sad_skip_16x16_c - --void vpx_sad_skip_16x16x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_16x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_16x16x4d vpx_sad_skip_16x16x4d_c - --unsigned int vpx_sad_skip_16x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_16x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_16x32 vpx_sad_skip_16x32_c - --void vpx_sad_skip_16x32x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_16x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_16x32x4d vpx_sad_skip_16x32x4d_c - --unsigned int vpx_sad_skip_16x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_16x8 vpx_sad_skip_16x8_c - --void vpx_sad_skip_16x8x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_16x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_16x8x4d vpx_sad_skip_16x8x4d_c - --unsigned int vpx_sad_skip_32x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_32x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_32x16 vpx_sad_skip_32x16_c - --void vpx_sad_skip_32x16x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_32x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_32x16x4d vpx_sad_skip_32x16x4d_c - --unsigned int vpx_sad_skip_32x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_32x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_32x32 vpx_sad_skip_32x32_c - --void vpx_sad_skip_32x32x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_32x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_32x32x4d vpx_sad_skip_32x32x4d_c - --unsigned int vpx_sad_skip_32x64_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_32x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_32x64 vpx_sad_skip_32x64_c - --void vpx_sad_skip_32x64x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_32x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_32x64x4d vpx_sad_skip_32x64x4d_c - --unsigned int vpx_sad_skip_4x4_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_4x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_4x4 vpx_sad_skip_4x4_c - --void vpx_sad_skip_4x4x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_4x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_4x4x4d vpx_sad_skip_4x4x4d_c - --unsigned int vpx_sad_skip_4x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_4x8 vpx_sad_skip_4x8_c - --void vpx_sad_skip_4x8x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_4x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_4x8x4d vpx_sad_skip_4x8x4d_c - --unsigned int vpx_sad_skip_64x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_64x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_64x32 vpx_sad_skip_64x32_c - --void vpx_sad_skip_64x32x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_64x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_64x32x4d vpx_sad_skip_64x32x4d_c - --unsigned int vpx_sad_skip_64x64_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_64x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_64x64 vpx_sad_skip_64x64_c - --void vpx_sad_skip_64x64x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_64x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_64x64x4d vpx_sad_skip_64x64x4d_c - --unsigned int vpx_sad_skip_8x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_8x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_8x16 vpx_sad_skip_8x16_c - --void vpx_sad_skip_8x16x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_8x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_8x16x4d vpx_sad_skip_8x16x4d_c - --unsigned int vpx_sad_skip_8x4_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_8x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_8x4 vpx_sad_skip_8x4_c - --void vpx_sad_skip_8x4x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_8x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_8x4x4d vpx_sad_skip_8x4x4d_c - --unsigned int vpx_sad_skip_8x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride); +-unsigned int vpx_sad_skip_8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -#define vpx_sad_skip_8x8 vpx_sad_skip_8x8_c - --void vpx_sad_skip_8x8x4d_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* const ref_array[4], -- int ref_stride, -- uint32_t sad_array[4]); +-void vpx_sad_skip_8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t *const ref_array[4], int ref_stride, uint32_t sad_array[4]); -#define vpx_sad_skip_8x8x4d vpx_sad_skip_8x8x4d_c - --int vpx_satd_c(const int16_t* coeff, int length); +-int vpx_satd_c(const int16_t *coeff, int length); -#define vpx_satd vpx_satd_c - --void vpx_scaled_2d_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_scaled_2d_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_scaled_2d vpx_scaled_2d_c - --void vpx_scaled_avg_2d_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_scaled_avg_2d_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_scaled_avg_2d vpx_scaled_avg_2d_c - --void vpx_scaled_avg_horiz_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_scaled_avg_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_scaled_avg_horiz vpx_scaled_avg_horiz_c - --void vpx_scaled_avg_vert_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_scaled_avg_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_scaled_avg_vert vpx_scaled_avg_vert_c - --void vpx_scaled_horiz_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_scaled_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_scaled_horiz vpx_scaled_horiz_c - --void vpx_scaled_vert_c(const uint8_t* src, -- ptrdiff_t src_stride, -- uint8_t* dst, -- ptrdiff_t dst_stride, -- const InterpKernel* filter, -- int x0_q4, -- int x_step_q4, -- int y0_q4, -- int y_step_q4, -- int w, -- int h); +-void vpx_scaled_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const InterpKernel *filter, int x0_q4, int x_step_q4, int y0_q4, int y_step_q4, int w, int h); -#define vpx_scaled_vert vpx_scaled_vert_c - --int64_t vpx_sse_c(const uint8_t* src, -- int src_stride, -- const uint8_t* ref, -- int ref_stride, -- int width, -- int height); +-int64_t vpx_sse_c(const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, int width, int height); -#define vpx_sse vpx_sse_c - --uint32_t vpx_sub_pixel_avg_variance16x16_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance16x16_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance16x16 vpx_sub_pixel_avg_variance16x16_c - --uint32_t vpx_sub_pixel_avg_variance16x32_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance16x32_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance16x32 vpx_sub_pixel_avg_variance16x32_c - --uint32_t vpx_sub_pixel_avg_variance16x8_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance16x8_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance16x8 vpx_sub_pixel_avg_variance16x8_c - --uint32_t vpx_sub_pixel_avg_variance32x16_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance32x16_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance32x16 vpx_sub_pixel_avg_variance32x16_c - --uint32_t vpx_sub_pixel_avg_variance32x32_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance32x32_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance32x32 vpx_sub_pixel_avg_variance32x32_c - --uint32_t vpx_sub_pixel_avg_variance32x64_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance32x64_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance32x64 vpx_sub_pixel_avg_variance32x64_c - --uint32_t vpx_sub_pixel_avg_variance4x4_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance4x4_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance4x4 vpx_sub_pixel_avg_variance4x4_c - --uint32_t vpx_sub_pixel_avg_variance4x8_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance4x8_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance4x8 vpx_sub_pixel_avg_variance4x8_c - --uint32_t vpx_sub_pixel_avg_variance64x32_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance64x32_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance64x32 vpx_sub_pixel_avg_variance64x32_c - --uint32_t vpx_sub_pixel_avg_variance64x64_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance64x64_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance64x64 vpx_sub_pixel_avg_variance64x64_c - --uint32_t vpx_sub_pixel_avg_variance8x16_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance8x16_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance8x16 vpx_sub_pixel_avg_variance8x16_c - --uint32_t vpx_sub_pixel_avg_variance8x4_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance8x4_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance8x4 vpx_sub_pixel_avg_variance8x4_c - --uint32_t vpx_sub_pixel_avg_variance8x8_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse, -- const uint8_t* second_pred); +-uint32_t vpx_sub_pixel_avg_variance8x8_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred); -#define vpx_sub_pixel_avg_variance8x8 vpx_sub_pixel_avg_variance8x8_c - --uint32_t vpx_sub_pixel_variance16x16_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance16x16_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance16x16 vpx_sub_pixel_variance16x16_c - --uint32_t vpx_sub_pixel_variance16x32_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance16x32_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance16x32 vpx_sub_pixel_variance16x32_c - --uint32_t vpx_sub_pixel_variance16x8_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance16x8_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance16x8 vpx_sub_pixel_variance16x8_c - --uint32_t vpx_sub_pixel_variance32x16_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance32x16_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance32x16 vpx_sub_pixel_variance32x16_c - --uint32_t vpx_sub_pixel_variance32x32_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance32x32_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance32x32 vpx_sub_pixel_variance32x32_c - --uint32_t vpx_sub_pixel_variance32x64_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance32x64_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance32x64 vpx_sub_pixel_variance32x64_c - --uint32_t vpx_sub_pixel_variance4x4_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance4x4_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance4x4 vpx_sub_pixel_variance4x4_c - --uint32_t vpx_sub_pixel_variance4x8_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance4x8_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance4x8 vpx_sub_pixel_variance4x8_c - --uint32_t vpx_sub_pixel_variance64x32_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance64x32_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance64x32 vpx_sub_pixel_variance64x32_c - --uint32_t vpx_sub_pixel_variance64x64_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance64x64_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance64x64 vpx_sub_pixel_variance64x64_c - --uint32_t vpx_sub_pixel_variance8x16_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance8x16_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance8x16 vpx_sub_pixel_variance8x16_c - --uint32_t vpx_sub_pixel_variance8x4_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance8x4_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance8x4 vpx_sub_pixel_variance8x4_c - --uint32_t vpx_sub_pixel_variance8x8_c(const uint8_t* src_ptr, -- int src_stride, -- int x_offset, -- int y_offset, -- const uint8_t* ref_ptr, -- int ref_stride, -- uint32_t* sse); +-uint32_t vpx_sub_pixel_variance8x8_c(const uint8_t *src_ptr, int src_stride, int x_offset, int y_offset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse); -#define vpx_sub_pixel_variance8x8 vpx_sub_pixel_variance8x8_c - --void vpx_subtract_block_c(int rows, -- int cols, -- int16_t* diff_ptr, -- ptrdiff_t diff_stride, -- const uint8_t* src_ptr, -- ptrdiff_t src_stride, -- const uint8_t* pred_ptr, -- ptrdiff_t pred_stride); --void vpx_subtract_block_vsx(int rows, -- int cols, -- int16_t* diff_ptr, -- ptrdiff_t diff_stride, -- const uint8_t* src_ptr, -- ptrdiff_t src_stride, -- const uint8_t* pred_ptr, -- ptrdiff_t pred_stride); +-void vpx_subtract_block_c(int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride); +-void vpx_subtract_block_vsx(int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride); -#define vpx_subtract_block vpx_subtract_block_vsx - --uint64_t vpx_sum_squares_2d_i16_c(const int16_t* src, int stride, int size); +-uint64_t vpx_sum_squares_2d_i16_c(const int16_t *src, int stride, int size); -#define vpx_sum_squares_2d_i16 vpx_sum_squares_2d_i16_c - --void vpx_tm_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_tm_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_tm_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_tm_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_tm_predictor_16x16 vpx_tm_predictor_16x16_vsx - --void vpx_tm_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_tm_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_tm_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_tm_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_tm_predictor_32x32 vpx_tm_predictor_32x32_vsx - --void vpx_tm_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_tm_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_tm_predictor_4x4 vpx_tm_predictor_4x4_c - --void vpx_tm_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_tm_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_tm_predictor_8x8 vpx_tm_predictor_8x8_c - --void vpx_v_predictor_16x16_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_v_predictor_16x16_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_v_predictor_16x16_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_v_predictor_16x16_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_v_predictor_16x16 vpx_v_predictor_16x16_vsx - --void vpx_v_predictor_32x32_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); --void vpx_v_predictor_32x32_vsx(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_v_predictor_32x32_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); +-void vpx_v_predictor_32x32_vsx(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_v_predictor_32x32 vpx_v_predictor_32x32_vsx - --void vpx_v_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_v_predictor_4x4 vpx_v_predictor_4x4_c - --void vpx_v_predictor_8x8_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_v_predictor_8x8_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_v_predictor_8x8 vpx_v_predictor_8x8_c - --unsigned int vpx_variance16x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance16x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance16x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance16x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance16x16 vpx_variance16x16_vsx - --unsigned int vpx_variance16x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance16x32_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance16x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance16x32_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance16x32 vpx_variance16x32_vsx - --unsigned int vpx_variance16x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance16x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance16x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance16x8 vpx_variance16x8_vsx - --unsigned int vpx_variance32x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance32x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance32x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance32x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance32x16 vpx_variance32x16_vsx - --unsigned int vpx_variance32x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance32x32_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance32x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance32x32_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance32x32 vpx_variance32x32_vsx - --unsigned int vpx_variance32x64_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance32x64_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance32x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance32x64_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance32x64 vpx_variance32x64_vsx - --unsigned int vpx_variance4x4_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance4x4_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance4x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance4x4_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance4x4 vpx_variance4x4_vsx - --unsigned int vpx_variance4x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance4x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance4x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance4x8 vpx_variance4x8_vsx - --unsigned int vpx_variance64x32_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance64x32_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance64x32_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance64x32_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance64x32 vpx_variance64x32_vsx - --unsigned int vpx_variance64x64_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance64x64_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance64x64_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance64x64_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance64x64 vpx_variance64x64_vsx - --unsigned int vpx_variance8x16_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance8x16_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance8x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance8x16_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance8x16 vpx_variance8x16_vsx - --unsigned int vpx_variance8x4_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance8x4_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance8x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance8x4_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance8x4 vpx_variance8x4_vsx - --unsigned int vpx_variance8x8_c(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); --unsigned int vpx_variance8x8_vsx(const uint8_t* src_ptr, -- int src_stride, -- const uint8_t* ref_ptr, -- int ref_stride, -- unsigned int* sse); +-unsigned int vpx_variance8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); +-unsigned int vpx_variance8x8_vsx(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); -#define vpx_variance8x8 vpx_variance8x8_vsx - --void vpx_ve_predictor_4x4_c(uint8_t* dst, -- ptrdiff_t stride, -- const uint8_t* above, -- const uint8_t* left); +-void vpx_ve_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride, const uint8_t *above, const uint8_t *left); -#define vpx_ve_predictor_4x4 vpx_ve_predictor_4x4_c - --int vpx_vector_var_c(const int16_t* ref, const int16_t* src, const int bwl); +-int vpx_vector_var_c(const int16_t *ref, const int16_t *src, const int bwl); -#define vpx_vector_var vpx_vector_var_c - -void vpx_dsp_rtcd(void); @@ -2926,9 +1400,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_d - -#ifdef RTCD_C -#include "vpx_ports/ppc.h" --static void setup_rtcd_internal(void) { -- int flags = ppc_simd_caps(); -- (void)flags; +-static void setup_rtcd_internal(void) +-{ +- int flags = ppc_simd_caps(); +- (void)flags; -} -#endif - @@ -2937,11 +1412,9 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif // VPX_DSP_RTCD_H_ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h -=================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h -+++ /dev/null -@@ -1,110 +0,0 @@ +--- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h 2025-05-26 21:02:11.892388814 +0200 ++++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +@@ -1,83 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. - * @@ -2968,71 +1441,43 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_s -extern "C" { -#endif - --void vp8_horizontal_line_2_1_scale_c(const unsigned char* source, -- unsigned int source_width, -- unsigned char* dest, -- unsigned int dest_width); +-void vp8_horizontal_line_2_1_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); -#define vp8_horizontal_line_2_1_scale vp8_horizontal_line_2_1_scale_c - --void vp8_horizontal_line_5_3_scale_c(const unsigned char* source, -- unsigned int source_width, -- unsigned char* dest, -- unsigned int dest_width); +-void vp8_horizontal_line_5_3_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); -#define vp8_horizontal_line_5_3_scale vp8_horizontal_line_5_3_scale_c - --void vp8_horizontal_line_5_4_scale_c(const unsigned char* source, -- unsigned int source_width, -- unsigned char* dest, -- unsigned int dest_width); +-void vp8_horizontal_line_5_4_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); -#define vp8_horizontal_line_5_4_scale vp8_horizontal_line_5_4_scale_c - --void vp8_vertical_band_2_1_scale_c(unsigned char* source, -- unsigned int src_pitch, -- unsigned char* dest, -- unsigned int dest_pitch, -- unsigned int dest_width); +-void vp8_vertical_band_2_1_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width); -#define vp8_vertical_band_2_1_scale vp8_vertical_band_2_1_scale_c - --void vp8_vertical_band_2_1_scale_i_c(unsigned char* source, -- unsigned int src_pitch, -- unsigned char* dest, -- unsigned int dest_pitch, -- unsigned int dest_width); +-void vp8_vertical_band_2_1_scale_i_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width); -#define vp8_vertical_band_2_1_scale_i vp8_vertical_band_2_1_scale_i_c - --void vp8_vertical_band_5_3_scale_c(unsigned char* source, -- unsigned int src_pitch, -- unsigned char* dest, -- unsigned int dest_pitch, -- unsigned int dest_width); +-void vp8_vertical_band_5_3_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width); -#define vp8_vertical_band_5_3_scale vp8_vertical_band_5_3_scale_c - --void vp8_vertical_band_5_4_scale_c(unsigned char* source, -- unsigned int src_pitch, -- unsigned char* dest, -- unsigned int dest_pitch, -- unsigned int dest_width); +-void vp8_vertical_band_5_4_scale_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width); -#define vp8_vertical_band_5_4_scale vp8_vertical_band_5_4_scale_c - --void vp8_yv12_copy_frame_c(const struct yv12_buffer_config* src_ybc, -- struct yv12_buffer_config* dst_ybc); +-void vp8_yv12_copy_frame_c(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); -#define vp8_yv12_copy_frame vp8_yv12_copy_frame_c - --void vp8_yv12_extend_frame_borders_c(struct yv12_buffer_config* ybf); +-void vp8_yv12_extend_frame_borders_c(struct yv12_buffer_config *ybf); -#define vp8_yv12_extend_frame_borders vp8_yv12_extend_frame_borders_c - --void vpx_extend_frame_borders_c(struct yv12_buffer_config* ybf); +-void vpx_extend_frame_borders_c(struct yv12_buffer_config *ybf); -#define vpx_extend_frame_borders vpx_extend_frame_borders_c - --void vpx_extend_frame_inner_borders_c(struct yv12_buffer_config* ybf); +-void vpx_extend_frame_inner_borders_c(struct yv12_buffer_config *ybf); -#define vpx_extend_frame_inner_borders vpx_extend_frame_inner_borders_c - --void vpx_yv12_copy_frame_c(const struct yv12_buffer_config* src_ybc, -- struct yv12_buffer_config* dst_ybc); +-void vpx_yv12_copy_frame_c(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); -#define vpx_yv12_copy_frame vpx_yv12_copy_frame_c - --void vpx_yv12_copy_y_c(const struct yv12_buffer_config* src_ybc, -- struct yv12_buffer_config* dst_ybc); +-void vpx_yv12_copy_y_c(const struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); -#define vpx_yv12_copy_y vpx_yv12_copy_y_c - -void vpx_scale_rtcd(void); @@ -3041,9 +1486,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_s - -#ifdef RTCD_C -#include "vpx_ports/ppc.h" --static void setup_rtcd_internal(void) { -- int flags = ppc_simd_caps(); -- (void)flags; +-static void setup_rtcd_internal(void) +-{ +- int flags = ppc_simd_caps(); +- (void)flags; -} -#endif - diff --git a/chromium-135-add-cfi-suppressions-for-pipewire-functions.patch b/chromium-135-add-cfi-suppressions-for-pipewire-functions.patch deleted file mode 100644 index d4c8f14..0000000 --- a/chromium-135-add-cfi-suppressions-for-pipewire-functions.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 0eebf40b9914bca8fe69bef8eea89522c1a5d4ce Mon Sep 17 00:00:00 2001 -From: Jan Grulich -Date: Tue, 01 Apr 2025 12:23:37 -0700 -Subject: [PATCH] Add more CFI suppressions for inline PipeWire functions - -There are now more inline functions with PipeWire 1.4, which are causing -SIGILL as we hit CFI check. - -Bug: chromium:354776214 -Change-Id: I055dd7edcaf3ca190ec7b4cc576ebe97a2baf82f -Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6421030 -Reviewed-by: Peter Collingbourne -Reviewed-by: Alexander Cooper -Commit-Queue: Jan Grulich -Cr-Commit-Position: refs/heads/main@{#1441109} ---- - -diff --git a/tools/cfi/ignores.txt b/tools/cfi/ignores.txt -index 9a1180e..0a002bc6 100644 ---- a/tools/cfi/ignores.txt -+++ b/tools/cfi/ignores.txt -@@ -260,8 +260,16 @@ - src:*third_party/skia/src/ports/SkFontHost_FreeType.cpp - - # WebRTC / PipeWire --fun:*pw_registry_bind* -+fun:*pw_core_add_listener* - fun:*pw_core_get_registry* -+fun:*pw_core_sync* -+fun:*pw_node_add_listener* -+fun:*pw_node_enum_params* -+fun:*pw_loop_add_event* -+fun:*pw_loop_signal_event* -+fun:*pw_registry_add_listener* -+fun:*pw_registry_bind* -+fun:*spa_loop_utils* - - ######### Function pointers cast to incorrect type signatures - diff --git a/chromium-135-gperf.patch b/chromium-135-gperf.patch deleted file mode 100644 index f404371..0000000 --- a/chromium-135-gperf.patch +++ /dev/null @@ -1,35 +0,0 @@ -From b552a86d494c1acf9c3472b8e5f00d90f9d3a704 Mon Sep 17 00:00:00 2001 -From: Daniel Richard G -Date: Thu, 10 Apr 2025 04:35:40 -0400 -Subject: [PATCH] Don't apply /*FALLTHROUGH*/ edit to gperf 3.2 output - -The gperf issue at https://savannah.gnu.org/bugs/index.php?53029 -has been resolved as of the 3.2 release, and not only is the -/*FALLTHROUGH*/ comment replacement no longer needed, it now -breaks the build with "error: fallthrough annotation does not -directly precede switch label". Only do the edit for 3.1. - -Bug: None -Change-Id: I1f12a2a685b62d0dedb4298bc171ab4c94ec6b47 ---- - -diff --git a/third_party/blink/renderer/build/scripts/gperf.py b/third_party/blink/renderer/build/scripts/gperf.py -index 42630d3..0df5abd 100644 ---- a/third_party/blink/renderer/build/scripts/gperf.py -+++ b/third_party/blink/renderer/build/scripts/gperf.py -@@ -35,10 +35,11 @@ - # https://savannah.gnu.org/bugs/index.php?53028 - gperf_output = re.sub(r'\bregister ', '', gperf_output) - # -Wimplicit-fallthrough needs an explicit fallthrough statement, -- # so replace gperf's /*FALLTHROUGH*/ comment with the statement. -- # https://savannah.gnu.org/bugs/index.php?53029 -- gperf_output = gperf_output.replace('/*FALLTHROUGH*/', -- ' [[fallthrough]];') -+ # so replace gperf 3.1's /*FALLTHROUGH*/ comment with the statement. -+ # https://savannah.gnu.org/bugs/index.php?53029 (fixed in 3.2) -+ if '/* C++ code produced by gperf version 3.1 */' in gperf_output: -+ gperf_output = gperf_output.replace('/*FALLTHROUGH*/', -+ ' [[fallthrough]];') - # -Wpointer-to-int-cast warns about casting pointers to smaller ints - # Replace {(int)(long)&(foo), bar} with - # {static_cast(reinterpret_cast(&(foo)), bar} diff --git a/chromium-137-pdfium-png_decoder-build-error.patch b/chromium-137-pdfium-png_decoder-build-error.patch new file mode 100644 index 0000000..f45c757 --- /dev/null +++ b/chromium-137-pdfium-png_decoder-build-error.patch @@ -0,0 +1,14 @@ +diff -up chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp.me chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp +--- chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp.me 2025-05-10 23:12:58.189339791 +0200 ++++ chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp 2025-05-10 23:13:54.931224351 +0200 +@@ -52,8 +52,8 @@ void _png_load_bmp_attribute(png_structp + CFX_DIBAttribute* pAttribute) { + if (pAttribute) { + #if defined(PNG_pHYs_SUPPORTED) +- pAttribute->xdpi_ = png_get_x_pixels_per_meter(png_ptr, info_ptr); +- pAttribute->ydpi_ = png_get_y_pixels_per_meter(png_ptr, info_ptr); ++ pAttribute->x_dpi_ = png_get_x_pixels_per_meter(png_ptr, info_ptr); ++ pAttribute->y_dpi_ = png_get_y_pixels_per_meter(png_ptr, info_ptr); + png_uint_32 res_x, res_y; + int unit_type; + png_get_pHYs(png_ptr, info_ptr, &res_x, &res_y, &unit_type); diff --git a/chromium-137-simdutf-7.x-build-error.patch b/chromium-137-simdutf-7.x-build-error.patch new file mode 100644 index 0000000..5e33d54 --- /dev/null +++ b/chromium-137-simdutf-7.x-build-error.patch @@ -0,0 +1,21 @@ +diff -up chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.simdutf-7.x chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc +--- chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.simdutf-7.x 2025-05-21 00:14:25.000000000 +0200 ++++ chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc 2025-05-23 23:31:59.961068931 +0200 +@@ -493,7 +493,7 @@ Maybe ArrayBufferFromBa + std::unique_ptr output = std::make_unique(output_length); + simdutf::result simd_result = simdutf::base64_to_binary_safe( + reinterpret_cast(input_vector), input_length, output.get(), +- output_length, alphabet, last_chunk_handling); ++ output_length, alphabet, last_chunk_handling, false); + + { + AllowGarbageCollection gc; +@@ -526,7 +526,7 @@ simdutf::result ArrayBufferSetFromBase64 + simdutf::result simd_result = simdutf::base64_to_binary_safe( + reinterpret_cast(input_vector), input_length, + reinterpret_cast(typed_array->DataPtr()), output_length, alphabet, +- last_chunk_handling); ++ last_chunk_handling, false); + + return simd_result; + } diff --git a/chromium-137-simdutf-build-error.patch b/chromium-137-simdutf-build-error.patch new file mode 100644 index 0000000..50441b7 --- /dev/null +++ b/chromium-137-simdutf-build-error.patch @@ -0,0 +1,12 @@ +diff -up chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.me chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc +--- chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.me 2025-05-21 00:14:25.000000000 +0200 ++++ chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc 2025-05-23 23:31:59.961068931 +0200 +@@ -820,7 +820,7 @@ BUILTIN(Uint8ArrayPrototypeToBase64) { + + size_t simd_result_size; + if (uint8array->buffer()->is_shared()) { +- simd_result_size = simdutf::atomic_binary_to_base64( ++ simd_result_size = simdutf::binary_to_base64( + std::bit_cast(uint8array->GetBuffer()->backing_store()), + length, reinterpret_cast(output->GetChars(no_gc)), alphabet); + } else { diff --git a/chromium.spec b/chromium.spec index 1411178..fe3d7ce 100644 --- a/chromium.spec +++ b/chromium.spec @@ -213,8 +213,6 @@ %endif %if 0%{?fedora} %global bundlecrc32c 0 -%endif -%if 0%{?fedora} && 0%{?fedora} < 43 %global bundlesimdutf 0 %endif %if 0%{?fedora} || 0%{?rhel} > 9 @@ -259,8 +257,8 @@ %endif Name: chromium -Version: 136.0.7103.113 -Release: 2%{?dist} +Version: 137.0.7151.55 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -292,6 +290,11 @@ Patch91: chromium-108-system-opus.patch # patch for Failed NodeJS version check Patch92: chromium-136-checkversion-nodejs.patch +# Fix FTBFS +Patch93: chromium-137-pdfium-png_decoder-build-error.patch +Patch94: chromium-137-simdutf-build-error.patch +Patch95: chromium-137-simdutf-7.x-build-error.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch @@ -459,11 +462,6 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch %endif # upstream patches -# https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4636 -# https://chromium-review.googlesource.com/c/chromium/src/+/6421030 -Patch600: chromium-135-add-cfi-suppressions-for-pipewire-functions.patch -# https://chromium-review.googlesource.com/c/chromium/src/+/6445471 -Patch601: chromium-135-gperf.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1012,6 +1010,13 @@ Qt6 UI for chromium. %endif %patch -P92 -p1 -b .nodejs-checkversion +%patch -P93 -p1 -b .pdfium-png_decoder-build-error +%if ! %{bundlesimdutf} +%patch -P94 -p1 -b .simdutf-build-error +%if 0%{?fedora} > 42 +%patch -P95 -p1 -b .simdutf-7.x-build-error +%endif +%endif %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 @@ -1041,12 +1046,11 @@ Qt6 UI for chromium. %patch -P306 -p1 -b .el8-ifunc-header %endif %patch -P307 -p1 -b .el8-atk-compiler-error -%endif -%if 0%{?rhel} == 8 %patch -P308 -p1 -b .unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags %patch -P310 -p1 -b .el8-clang18-build-error %patch -P311 -p1 -b .clang18-template +%patch -P314 -p1 -b .rust-skrifa-build-error %ifarch x86_64 %patch -P317 -p1 -b .xnnpack-clang18-crash-x86_64 %endif @@ -1060,10 +1064,6 @@ Qt6 UI for chromium. %endif %endif -%if 0%{?rhel} == 8 -%patch -P314 -p1 -b .rust-skrifa-build-error -%endif - %if 0%{?rhel} %patch -P315 -p1 -b .rust-libadler2 %endif @@ -1153,8 +1153,6 @@ Qt6 UI for chromium. %endif # Upstream patches -%patch -P600 -p1 -b .add-cfi-suppressions-for-pipewire-functions -%patch -P601 -p1 -b .gperf-3.2 # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1202,7 +1200,11 @@ sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' remoting/host/setup/d # bz#2265957, add correct platform sed -i "s/Linux x86_64/Linux %{_arch}/" components/embedder_support/user_agent_utils.cc - + +%if ! %{bundlesimdutf} +ln -sf %{_includedir}/simdutf.h third_party/simdutf/simdutf.h +%endif + %build %if ! %{system_nodejs} @@ -1787,6 +1789,21 @@ fi %endif %changelog +* Tue May 27 2025 Than Ngo - 137.0.7151.55-1 +- Update to 137.0.7151.55 + * CVE-2025-5063: Use after free in Compositing + * CVE-2025-5280: Out of bounds write in V8 + * CVE-2025-5064: Inappropriate implementation in Background Fetch API + * CVE-2025-5065: Inappropriate implementation in FileSystemAccess API + * CVE-2025-5066: Inappropriate implementation in Messages + * CVE-2025-5281: Inappropriate implementation in BFCache + * CVE-2025-5283: Use after free in libvpx + * CVE-2025-5067: Inappropriate implementation in Tab Strip +- Fix FTBFS caused by simdutf and pdfium-png_decoder +- Remove chromium-135-gperf.patch and chromium-135-add-cfi-suppressions-for-pipewire-functions.patch, merged by upstream +- Refresh ppc64le patches +- Enable system simdutf for F43 + * Tue May 27 2025 Jitka Plesnikova - 136.0.7103.113-2 - Rebuilt for flac 1.5.0 diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index c192df4..16f8f33 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,16 +1,15 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-128.0.6613.113/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-137.0.7151.40/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-128.0.6613.113.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-128.0.6613.113/base/allocator/partition_allocator/partition_alloc.gni -@@ -19,7 +19,8 @@ if (is_nacl) { - # NaCl targets don't use 64-bit pointers. +--- chromium-137.0.7151.40.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-137.0.7151.40/base/allocator/partition_allocator/partition_alloc.gni +@@ -70,7 +70,7 @@ if (is_nacl) { has_64_bit_pointers = false } else if (current_cpu == "x64" || current_cpu == "arm64" || -- current_cpu == "loong64" || current_cpu == "riscv64") { -+ current_cpu == "loong64" || current_cpu == "riscv64" || -+ current_cpu == "ppc64") { + current_cpu == "arm64e" || current_cpu == "loong64" || +- current_cpu == "riscv64") { ++ current_cpu == "riscv64" || current_cpu == "ppc64") { + assert(current_cpu != "arm64e" || (is_ios && target_environment == "device")) has_64_bit_pointers = true - } else if (current_cpu == "x86" || current_cpu == "arm") { - has_64_bit_pointers = false + } else if (current_cpu == "x86" || current_cpu == "arm" || diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index e6c7ee4..74268c6 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-136.0.7103.48/third_party/skia/BUILD.gn +Index: chromium-137.0.7151.40/third_party/skia/BUILD.gn =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/BUILD.gn -+++ chromium-136.0.7103.48/third_party/skia/BUILD.gn +--- chromium-137.0.7151.40.orig/third_party/skia/BUILD.gn ++++ chromium-137.0.7151.40/third_party/skia/BUILD.gn @@ -193,6 +193,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-136.0.7103.48/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1651,6 +1657,7 @@ skia_component("skia") { +@@ -1648,6 +1654,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,7 +23,7 @@ Index: chromium-136.0.7103.48/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1822,7 +1829,10 @@ skia_static_library("pathkit") { +@@ -1819,7 +1826,10 @@ skia_static_library("pathkit") { public_configs = [ ":skia_public" ] configs = skia_library_configs @@ -35,10 +35,10 @@ Index: chromium-136.0.7103.48/third_party/skia/BUILD.gn sources = [] sources += skia_pathops_sources -Index: chromium-136.0.7103.48/third_party/skia/gn/skia/BUILD.gn +Index: chromium-137.0.7151.40/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-136.0.7103.48/third_party/skia/gn/skia/BUILD.gn +--- chromium-137.0.7151.40.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-137.0.7151.40/third_party/skia/gn/skia/BUILD.gn @@ -175,6 +175,8 @@ config("default") { "-mfpmath=sse", ] @@ -48,11 +48,11 @@ Index: chromium-136.0.7103.48/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-136.0.7103.48/third_party/skia/include/core/SkTypes.h +Index: chromium-137.0.7151.40/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-136.0.7103.48/third_party/skia/include/core/SkTypes.h -@@ -188,4 +188,43 @@ static constexpr uint32_t SK_InvalidGenI +--- chromium-137.0.7151.40.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-137.0.7151.40/third_party/skia/include/core/SkTypes.h +@@ -194,4 +194,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -96,10 +96,10 @@ Index: chromium-136.0.7103.48/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-136.0.7103.48/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -110,10 +110,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-136.0.7103.48/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-137.0.7151.40/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -129,10 +129,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-136.0.7103.48/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-137.0.7151.40/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -142,10 +142,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -171,7 +171,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) #include #include -@@ -200,6 +205,184 @@ namespace SK_OPTS_NS { +@@ -202,6 +207,192 @@ namespace SK_OPTS_NS { ptr[3] = a; } @@ -238,6 +238,14 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h + SI V gather(const T* p, U32 ix) { + return {p[ix[0]], p[ix[1]], p[ix[2]], p[ix[3]]}; + } ++ template ++ SI V gather_unaligned(const T* ptr, U32 ix) { ++ // This tells the compiler ptr might not be aligned appropriately, so ++ // it generates better assembly. ++ typedef T __attribute__ ((aligned (1))) unaligned_ptr; ++ const unaligned_ptr* uptr = static_cast(ptr); ++ return V{uptr[ix[0]], uptr[ix[1]], uptr[ix[2]], uptr[ix[3]]}; ++ } + template + SI void scatter_masked(V src, S* dst, U32 ix, I32 mask) { + V before = gather(dst, ix); @@ -356,7 +364,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_NEON) template using V = Vec<4, T>; using F = V; -@@ -1389,6 +1572,15 @@ SI F from_half(U16 h) { +@@ -1427,6 +1618,15 @@ SI F from_half(U16 h) { #elif defined(SKRP_CPU_HSW) return _mm256_cvtph_ps((__m128i)h); @@ -372,7 +380,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a half is 1-5-10 (sign-exponent-mantissa) with 15 exponent bias. U32 sem = expand(h), -@@ -1412,6 +1604,16 @@ SI U16 to_half(F f) { +@@ -1450,6 +1650,16 @@ SI U16 to_half(F f) { #elif defined(SKRP_CPU_HSW) return (U16)_mm256_cvtps_ph(f, _MM_FROUND_CUR_DIRECTION); @@ -389,7 +397,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #else // Remember, a float is 1-8-23 (sign-exponent-mantissa) with 127 exponent bias. U32 sem = sk_bit_cast(f), -@@ -1492,7 +1694,7 @@ static constexpr size_t N = sizeof(F) / +@@ -1530,7 +1740,7 @@ static constexpr size_t N = sizeof(F) / // instead of {b,a} on the stack. Narrow stages work best for __vectorcall. #define ABI __vectorcall #define SKRP_NARROW_STAGES 1 @@ -398,7 +406,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define SKRP_NARROW_STAGES 0 -@@ -5501,6 +5703,10 @@ SI F sqrt_(F x) { +@@ -5539,6 +5749,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -409,7 +417,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5532,6 +5738,10 @@ SI F floor_(F x) { +@@ -5570,6 +5784,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -420,7 +428,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5551,6 +5761,7 @@ SI F floor_(F x) { +@@ -5589,6 +5807,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -428,7 +436,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5562,6 +5773,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5600,6 +5819,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); @@ -451,7 +459,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5589,7 +5816,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5627,7 +5862,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -478,7 +486,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6606,8 +6852,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6683,8 +6937,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -493,7 +501,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6619,7 +6871,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6696,7 +6956,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -506,7 +514,7 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6653,9 +6910,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6730,9 +6995,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -523,10 +531,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-136.0.7103.48/third_party/skia/src/base/SkVx.h +Index: chromium-137.0.7151.40/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/base/SkVx.h -+++ chromium-136.0.7103.48/third_party/skia/src/base/SkVx.h +--- chromium-137.0.7151.40.orig/third_party/skia/src/base/SkVx.h ++++ chromium-137.0.7151.40/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -541,10 +549,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -554,10 +562,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -567,10 +575,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -580,10 +588,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -593,10 +601,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkCpu.h +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkCpu.h +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -606,10 +614,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -619,10 +627,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-136.0.7103.48/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-137.0.7151.40/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-136.0.7103.48/third_party/skia/include/private/base/SkFeatures.h +--- chromium-137.0.7151.40.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-137.0.7151.40/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -632,10 +640,10 @@ Index: chromium-136.0.7103.48/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-136.0.7103.48/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-137.0.7151.40/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -682,10 +690,10 @@ Index: chromium-136.0.7103.48/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-136.0.7103.48/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-136.0.7103.48.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-136.0.7103.48/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-137.0.7151.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -127,6 +127,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index 9628776..c709c48 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-136.0.7103.113-clean.tar.xz) = a9a6d3dcd8d26e06a95e5caef29eee002ed538b04126a69d78600c08ef50d47811e29ad16625686033c10847a632c827d6b19032f90d872041ac00bb8848a908 +SHA512 (chromium-137.0.7151.55-clean.tar.xz) = bbae8eaaadee48edc17aed3400980c5cdd5420ee24a22b38e76d75783ae65b63bca5a4474b47badc741702037852128953bc3e09ecc34ffced528f1b46bb412d From 0441c746f053c6e6d49d67259e2d8a0f45064055 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 28 May 2025 11:58:10 +0200 Subject: [PATCH 152/244] =?UTF-8?q?-=20Remove=20old=20patches=20for=20clan?= =?UTF-8?q?g18=20as=20epel-8/9/10=20and=20fedora=20already=20have=20clang?= =?UTF-8?q?=20>=3D19.x=20-=20Fix=20FTBFS=20caused=20by=C2=A0an=20unknown?= =?UTF-8?q?=20argument=20(clang=20<=2020.x)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chromium-132-el8-clang18-build-error.patch | 12 --------- chromium-133-clang18-template.patch | 12 --------- ...ium-136-cnnpack-clang18-crash-x86_64.patch | 11 -------- chromium-137-clang++-unknown-argument.patch | 27 +++++++++++++++++++ chromium.spec | 15 +++++------ 5 files changed, 33 insertions(+), 44 deletions(-) delete mode 100644 chromium-132-el8-clang18-build-error.patch delete mode 100644 chromium-133-clang18-template.patch delete mode 100644 chromium-136-cnnpack-clang18-crash-x86_64.patch create mode 100644 chromium-137-clang++-unknown-argument.patch diff --git a/chromium-132-el8-clang18-build-error.patch b/chromium-132-el8-clang18-build-error.patch deleted file mode 100644 index 05b2603..0000000 --- a/chromium-132-el8-clang18-build-error.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc.me chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc ---- chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc.me 2025-01-10 11:17:44.598459092 +0100 -+++ chromium-132.0.6834.57/pdf/pdfium/pdfium_api_wrappers.cc 2025-01-10 11:18:55.910222909 +0100 -@@ -147,7 +147,7 @@ std::u16string GetPageObjectMarkName(FPD - - // Number of characters, including the NUL. - const size_t expected_size = base::checked_cast(buflen_bytes / 2); -- PDFiumAPIStringBufferAdapter adapter(&name, expected_size, -+ PDFiumAPIStringBufferAdapter adapter(&name, expected_size, - /*check_expected_size=*/true); - unsigned long actual_buflen_bytes = 0; // NOLINT(runtime/int) - bool result = diff --git a/chromium-133-clang18-template.patch b/chromium-133-clang18-template.patch deleted file mode 100644 index f95aa57..0000000 --- a/chromium-133-clang18-template.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc.me chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc ---- chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc.me 2025-02-10 14:16:34.810693753 +0100 -+++ chromium-133.0.6943.53/chrome/browser/compose/compose_session.cc 2025-02-10 14:16:39.747791800 +0100 -@@ -543,7 +543,7 @@ void ComposeSession::RequestWithSession( - // execution in case request fails. - compose::LogComposeRequestReason(request_reason); - -- optimization_guide::ModelExecutionSessionCallbackWithLogging callback = -+ optimization_guide::ModelExecutionSessionCallbackWithLogging callback = - base::BindRepeating(&ComposeSession::ModelExecutionCallback, - weak_ptr_factory_.GetWeakPtr(), - std::move(request_timer), request_id_, request_reason, diff --git a/chromium-136-cnnpack-clang18-crash-x86_64.patch b/chromium-136-cnnpack-clang18-crash-x86_64.patch deleted file mode 100644 index f725834..0000000 --- a/chromium-136-cnnpack-clang18-crash-x86_64.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn.than chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn ---- chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn.than 2025-04-30 17:40:49.303107833 +0200 -+++ chromium-136.0.7103.59/third_party/xnnpack/BUILD.gn 2025-04-30 17:51:06.934912263 +0200 -@@ -28,6 +28,7 @@ config("xnnpack_config") { - cflags = [ - "-Wno-unused-function", - "-Wno-deprecated-comma-subscript", -+ "-O0", - ] - - defines = [ diff --git a/chromium-137-clang++-unknown-argument.patch b/chromium-137-clang++-unknown-argument.patch new file mode 100644 index 0000000..6255729 --- /dev/null +++ b/chromium-137-clang++-unknown-argument.patch @@ -0,0 +1,27 @@ +diff -up chromium-137.0.7151.55/build/config/compiler/BUILD.gn.me chromium-137.0.7151.55/build/config/compiler/BUILD.gn +--- chromium-137.0.7151.55/build/config/compiler/BUILD.gn.me 2025-05-28 11:19:37.795916619 +0200 ++++ chromium-137.0.7151.55/build/config/compiler/BUILD.gn 2025-05-28 11:22:56.845410531 +0200 +@@ -623,13 +623,6 @@ config("compiler") { + default_toolchain != "//build/toolchain/cros:target") { + cflags += [ "-Wa,--crel,--allow-experimental-crel" ] + } +- +- # TODO(crbug.com/413427035): Remove once +- # https://github.com/llvm/llvm-project/pull/136867/ is landed. +- if (!is_win && !llvm_android_mainline && +- default_toolchain != "//build/toolchain/cros:target") { +- cflags += [ "-fextend-variable-liveness=none" ] +- } + } + + # C11/C++11 compiler flags setup. +@@ -2053,9 +2046,6 @@ config("default_warnings") { + + # TODO(crbug.com/40284799): Fix and re-enable. + "-Wno-thread-safety-reference-return", +- +- # TODO(crbug.com/376641662): Fix and re-enable. +- "-Wno-nontrivial-memcall", + ] + + cflags_cc += [ diff --git a/chromium.spec b/chromium.spec index fe3d7ce..c1b0827 100644 --- a/chromium.spec +++ b/chromium.spec @@ -329,8 +329,6 @@ Patch307: chromium-134-el8-atk-compiler-error.patch # Fix build errors due to old clang18 in el8 Patch308: chromium-136-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch -Patch310: chromium-132-el8-clang18-build-error.patch -Patch311: chromium-133-clang18-template.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -349,8 +347,8 @@ Patch315: chromium-134-rust-libadler2.patch # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch -# Workaround for clang crash due to old clang-18.x on x86_64 el9/fedora40 -Patch317: chromium-136-cnnpack-clang18-crash-x86_64.patch +# Fix FTBFS, clang++: error: unknown argument: '-fextend-variable-liveness=none' +Patch317: chromium-137-clang++-unknown-argument.patch # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 @@ -1048,12 +1046,7 @@ Qt6 UI for chromium. %patch -P307 -p1 -b .el8-atk-compiler-error %patch -P308 -p1 -b .unsupport-clang-flags %patch -P309 -p1 -b .el8-unsupport-rustc-flags -%patch -P310 -p1 -b .el8-clang18-build-error -%patch -P311 -p1 -b .clang18-template %patch -P314 -p1 -b .rust-skrifa-build-error -%ifarch x86_64 -%patch -P317 -p1 -b .xnnpack-clang18-crash-x86_64 -%endif %endif %patch -P312 -p1 -b .fstack-protector-strong @@ -1069,6 +1062,10 @@ Qt6 UI for chromium. %endif %patch -P316 -p1 -b .clang-build-flags +%if 0%{?fedora} > 41 || 0%{?rhel} > 9 +%patch -P317 -p1 -b .clang++-unsupported-argument +%endif + %if %{disable_bti} %patch -P352 -p1 -b .workaround_for_crash_on_BTI_capable_system %endif From b1015a3ed4b7b3ba2bb949fecbc08578d5c50f73 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 28 May 2025 16:43:00 +0200 Subject: [PATCH 153/244] - Fix condition for clang++-unsupported-argument - Remove useless chromium-133-rust-crc32fast.patch --- chromium-133-rust-crc32fast.patch | 11 ----------- chromium.spec | 23 +---------------------- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 chromium-133-rust-crc32fast.patch diff --git a/chromium-133-rust-crc32fast.patch b/chromium-133-rust-crc32fast.patch deleted file mode 100644 index 838a53b..0000000 --- a/chromium-133-rust-crc32fast.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn.me chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn ---- chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn.me 2025-02-11 00:13:06.132152874 +0100 -+++ chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn 2025-02-11 00:28:22.785233997 +0100 -@@ -41,7 +41,6 @@ cargo_crate("lib") { - proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ] - deps = [ "//third_party/rust/cfg_if/v1:lib" ] - features = [ -- "nightly", - "std", - ] - rustflags = [ diff --git a/chromium.spec b/chromium.spec index c1b0827..c00ba2c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -4,20 +4,8 @@ # enable|disable system build flags %global system_build_flags 0 -# set default numjobs for the koji build -%ifarch aarch64 -%global numjobs 8 -%else %global numjobs %{_smp_build_ncpus} -%endif -# enable|disable all cpus for the build. -%global use_all_cpus 1 - -%if %{use_all_cpus} -%global numjobs %{_smp_build_ncpus} -%endif - # official builds have less debugging and go faster... but we have to shut some things off. %global official_build 1 @@ -333,9 +321,6 @@ Patch309: chromium-132-el8-unsupport-rustc-flags.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch -# build error stdarch_arm_crc32 -Patch313: chromium-133-rust-crc32fast.patch - # old rust version causes build error on el8: # error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope Patch314: chromium-136-rust-skrifa-build-error.patch @@ -1051,18 +1036,12 @@ Qt6 UI for chromium. %patch -P312 -p1 -b .fstack-protector-strong -%ifarch aarch64 -%if 0%{?rhel} == 8 || 0%{?rhel} == 9 -%patch -P313 -p1 -b .rust-crc32fast -%endif -%endif - %if 0%{?rhel} %patch -P315 -p1 -b .rust-libadler2 %endif %patch -P316 -p1 -b .clang-build-flags -%if 0%{?fedora} > 41 || 0%{?rhel} > 9 +%if 0%{?fedora} < 42 || 0%{?rhel} < 10 %patch -P317 -p1 -b .clang++-unsupported-argument %endif From 9175afe7bfaf5b535a7c2b4ca75819a3fd2f30f4 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 29 May 2025 11:17:57 +0200 Subject: [PATCH 154/244] Fix FTBFS on ppc64le --- 0001-add-xnn-ppc64el-support.patch | 31 + 0002-regenerate-xnn-buildgn.patch | 80681 +++++++++++++++++++++++++++ chromium.spec | 5 + 3 files changed, 80717 insertions(+) create mode 100644 0001-add-xnn-ppc64el-support.patch create mode 100644 0002-regenerate-xnn-buildgn.patch diff --git a/0001-add-xnn-ppc64el-support.patch b/0001-add-xnn-ppc64el-support.patch new file mode 100644 index 0000000..4285096 --- /dev/null +++ b/0001-add-xnn-ppc64el-support.patch @@ -0,0 +1,31 @@ +--- a/third_party/xnnpack/generate_build_gn.py ++++ b/third_party/xnnpack/generate_build_gn.py +@@ -236,7 +236,10 @@ + _Platform(gn_cpu='x64', bazel_cpu='k8', bazel_platform='//:linux_x64'), + _Platform(gn_cpu='arm64', + bazel_cpu='aarch64', +- bazel_platform='//:linux_aarch64') ++ bazel_platform='//:linux_aarch64'), ++ _Platform(gn_cpu='ppc64', ++ bazel_cpu='ppc64le', ++ bazel_platform='//:linux_ppc64le') + ] + + +--- a/third_party/xnnpack/bazelroot/BUILD ++++ b/third_party/xnnpack/bazelroot/BUILD +@@ -21,6 +21,14 @@ + ], + ) + ++platform( ++ name = "linux_ppc64le", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:ppc64le", ++ ], ++) ++ + # A dummy clang toolchain for building them for any arch. + + filegroup(name = "empty") diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch new file mode 100644 index 0000000..78977f4 --- /dev/null +++ b/0002-regenerate-xnn-buildgn.patch @@ -0,0 +1,80681 @@ +File regenerated by running 'python3 generate_build_gn.py' + +--- a/third_party/xnnpack/BUILD.gn ++++ b/third_party/xnnpack/BUILD.gn +@@ -25,7 +25,7 @@ + "src", + ] + +- cflags = [ ++ cflags=[ + "-Wno-unused-function", + "-Wno-deprecated-comma-subscript", + ] +@@ -54,11 +54,15 @@ + } + + if (current_cpu == "x86" || current_cpu == "x64") { +- defines += [ "XNN_ENABLE_AVXVNNI=1" ] ++ defines += [ ++ "XNN_ENABLE_AVXVNNI=1", ++ ] + } + } + ++ + if (current_cpu == "x64" || current_cpu == "x86") { ++ + xnnpack_deps = [ + ":configs_x64", + ":enums_x64", +@@ -545,7 +549,7 @@ + ":xx-fill_x64", + ":xx-pad_sse2-no-sse3", + ":xx-pad_x64", +- ":xx-transposev_x64", ++ ":xx-transposev_x64" + ] + + xnnpack_standalone_deps = [ +@@ -572,8 +576,8 @@ + ":f16-qu8-vcvt_x64_standalone", + ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", + ":f16-rdminmax_x64_standalone", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", + ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", + ":f16-rminmax_f16c-no-avx2-no-fma_standalone", + ":f16-rminmax_x64_standalone", + ":f16-vapproxgelu_x64_standalone", +@@ -776,47 +780,47 @@ + ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", + ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", + ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", + ":qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", + ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", + ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", + ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", + ":qd8-f32-qb4w-gemm_x64_standalone", + ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", + ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", + ":qd8-f32-qc4w-gemm_x64_standalone", + ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", + ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", + ":qd8-f32-qc8w-gemm_x64_standalone", + ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", + ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", + ":qd8-f32-qc8w-igemm_x64_standalone", +@@ -847,9 +851,9 @@ + ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", + ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qs8-qc8w-gemm_sse2-no-sse3_standalone", + ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", + ":qs8-qc8w-gemm_x64_standalone", +@@ -857,9 +861,9 @@ + ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", + ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", + ":qs8-qc8w-igemm_sse2-no-sse3_standalone", + ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", + ":qs8-qc8w-igemm_x64_standalone", +@@ -872,8 +876,8 @@ + ":qs8-rdsum_x64_standalone", + ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", + ":qs8-rsum_f16c-fma-avx2_standalone", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-rsum_ssse3-no-sse4.1_standalone", + ":qs8-rsum_x64_standalone", + ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", +@@ -1021,8 +1025,8 @@ + ":x64-transposec_x64_standalone", + ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", + ":x8-lut_f16c-fma-avx2_standalone", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", + ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", + ":x8-lut_x64_standalone", + ":x8-packq_x64_standalone", + ":x8-packw_x64_standalone", +@@ -1034,9 +1038,11 @@ + ":xx-fill_x64_standalone", + ":xx-pad_sse2-no-sse3_standalone", + ":xx-pad_x64_standalone", +- ":xx-transposev_x64_standalone", ++ ":xx-transposev_x64_standalone" + ] +-} else if (current_cpu == "arm64") { ++} else ++if (current_cpu == "arm64") { ++ + xnnpack_deps = [ + ":configs_arm64", + ":enums_arm64", +@@ -1235,7 +1241,7 @@ + ":xx-copy_arm64", + ":xx-fill_arm64", + ":xx-pad_arm64", +- ":xx-transposev_arm64", ++ ":xx-transposev_arm64" + ] + + xnnpack_standalone_deps = [ +@@ -1248,12 +1254,12 @@ + ":f16-f32-vcvt_arm64_standalone", + ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", + ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", +- ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":f16-gemm_arch=armv8.2-a+fp16_standalone", ++ ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone", + ":f16-ibilinear_arch=armv8.2-a+fp16_standalone", +- ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":f16-igemm_arch=armv8.2-a+fp16_standalone", ++ ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":f16-maxpool_arch=armv8.2-a+fp16_standalone", + ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", + ":f16-qs8-vcvt_arm64_standalone", +@@ -1341,12 +1347,12 @@ + ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", + ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", + ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +@@ -1436,7 +1442,247 @@ + ":xx-copy_arm64_standalone", + ":xx-fill_arm64_standalone", + ":xx-pad_arm64_standalone", +- ":xx-transposev_arm64_standalone", ++ ":xx-transposev_arm64_standalone" ++ ] ++} else ++if (current_cpu == "ppc64") { ++ ++ xnnpack_deps = [ ++ ":configs_ppc64", ++ ":enums_ppc64", ++ ":f16-f32-vcvt_ppc64", ++ ":f16-qs8-vcvt_ppc64", ++ ":f16-qu8-vcvt_ppc64", ++ ":f16-rdminmax_ppc64", ++ ":f16-rminmax_ppc64", ++ ":f16-vapproxgelu_ppc64", ++ ":f16-vcos_ppc64", ++ ":f16-vexp_ppc64", ++ ":f16-vgelu_ppc64", ++ ":f16-vsin_ppc64", ++ ":f32-argmaxpool_ppc64", ++ ":f32-avgpool_ppc64", ++ ":f32-conv-hwc2chw_ppc64", ++ ":f32-dwconv2d-chw_ppc64", ++ ":f32-dwconv_ppc64", ++ ":f32-f16-vcvt_ppc64", ++ ":f32-gemm_ppc64", ++ ":f32-ibilinear-chw_ppc64", ++ ":f32-ibilinear_ppc64", ++ ":f32-igemm_ppc64", ++ ":f32-maxpool_ppc64", ++ ":f32-qc4w-gemm_ppc64", ++ ":f32-qc8w-gemm_ppc64", ++ ":f32-qs8-vcvt_ppc64", ++ ":f32-qu8-vcvt_ppc64", ++ ":f32-raddstoreexpminusmax_ppc64", ++ ":f32-rdminmax_ppc64", ++ ":f32-rdsum_ppc64", ++ ":f32-rminmax_ppc64", ++ ":f32-rsum_ppc64", ++ ":f32-spmm_ppc64", ++ ":f32-vapproxgelu_ppc64", ++ ":f32-vbinary_ppc64", ++ ":f32-vclamp_ppc64", ++ ":f32-vcmul_ppc64", ++ ":f32-vcopysign_ppc64", ++ ":f32-vcos_ppc64", ++ ":f32-velu_ppc64", ++ ":f32-vexp_ppc64", ++ ":f32-vgelu_ppc64", ++ ":f32-vhswish_ppc64", ++ ":f32-vlog_ppc64", ++ ":f32-vlrelu_ppc64", ++ ":f32-vmulcaddc_ppc64", ++ ":f32-vrelu_ppc64", ++ ":f32-vrnd_ppc64", ++ ":f32-vrsqrt_ppc64", ++ ":f32-vsigmoid_ppc64", ++ ":f32-vsin_ppc64", ++ ":f32-vsqrt_ppc64", ++ ":f32-vtanh_ppc64", ++ ":f32-vunary_ppc64", ++ ":operators_ppc64", ++ ":qd8-f32-qb4w-gemm_ppc64", ++ ":qd8-f32-qc4w-gemm_ppc64", ++ ":qd8-f32-qc8w-gemm_ppc64", ++ ":qd8-f32-qc8w-igemm_ppc64", ++ ":qs8-dwconv_ppc64", ++ ":qs8-f32-vcvt_ppc64", ++ ":qs8-packw_ppc64", ++ ":qs8-qc4w-gemm_ppc64", ++ ":qs8-qc8w-dwconv_ppc64", ++ ":qs8-qc8w-gemm_ppc64", ++ ":qs8-qc8w-igemm_ppc64", ++ ":qs8-qu8-packw_ppc64", ++ ":qs8-rdsum_ppc64", ++ ":qs8-rsum_ppc64", ++ ":qs8-vadd_ppc64", ++ ":qs8-vaddc_ppc64", ++ ":qs8-vcvt_ppc64", ++ ":qs8-vlrelu_ppc64", ++ ":qs8-vmul_ppc64", ++ ":qs8-vmulc_ppc64", ++ ":qu8-dwconv_ppc64", ++ ":qu8-f32-vcvt_ppc64", ++ ":qu8-gemm_ppc64", ++ ":qu8-igemm_ppc64", ++ ":qu8-rdsum_ppc64", ++ ":qu8-rsum_ppc64", ++ ":qu8-vadd_ppc64", ++ ":qu8-vaddc_ppc64", ++ ":qu8-vcvt_ppc64", ++ ":qu8-vlrelu_ppc64", ++ ":qu8-vmul_ppc64", ++ ":qu8-vmulc_ppc64", ++ ":reference_ppc64", ++ ":s8-ibilinear_ppc64", ++ ":s8-maxpool_ppc64", ++ ":s8-rdminmax_ppc64", ++ ":s8-rminmax_ppc64", ++ ":s8-vclamp_ppc64", ++ ":subgraph_ppc64", ++ ":tables_ppc64", ++ ":u8-ibilinear_ppc64", ++ ":u8-lut32norm_ppc64", ++ ":u8-maxpool_ppc64", ++ ":u8-rdminmax_ppc64", ++ ":u8-rminmax_ppc64", ++ ":u8-vclamp_ppc64", ++ ":x16-transposec_ppc64", ++ ":x16-x32-packw_ppc64", ++ ":x24-transposec_ppc64", ++ ":x32-packw_ppc64", ++ ":x32-transposec_ppc64", ++ ":x32-unpool_ppc64", ++ ":x64-transposec_ppc64", ++ ":x8-lut_ppc64", ++ ":x8-packq_ppc64", ++ ":x8-packw_ppc64", ++ ":x8-transposec_ppc64", ++ ":xx-copy_ppc64", ++ ":xx-fill_ppc64", ++ ":xx-pad_ppc64", ++ ":xx-transposev_ppc64" ++ ] ++ ++ xnnpack_standalone_deps = [ ++ ":configs_ppc64_standalone", ++ ":enums_ppc64_standalone", ++ ":f16-f32-vcvt_ppc64_standalone", ++ ":f16-qs8-vcvt_ppc64_standalone", ++ ":f16-qu8-vcvt_ppc64_standalone", ++ ":f16-rdminmax_ppc64_standalone", ++ ":f16-rminmax_ppc64_standalone", ++ ":f16-vapproxgelu_ppc64_standalone", ++ ":f16-vcos_ppc64_standalone", ++ ":f16-vexp_ppc64_standalone", ++ ":f16-vgelu_ppc64_standalone", ++ ":f16-vsin_ppc64_standalone", ++ ":f32-argmaxpool_ppc64_standalone", ++ ":f32-avgpool_ppc64_standalone", ++ ":f32-conv-hwc2chw_ppc64_standalone", ++ ":f32-dwconv2d-chw_ppc64_standalone", ++ ":f32-dwconv_ppc64_standalone", ++ ":f32-f16-vcvt_ppc64_standalone", ++ ":f32-gemm_ppc64_standalone", ++ ":f32-ibilinear-chw_ppc64_standalone", ++ ":f32-ibilinear_ppc64_standalone", ++ ":f32-igemm_ppc64_standalone", ++ ":f32-maxpool_ppc64_standalone", ++ ":f32-qc4w-gemm_ppc64_standalone", ++ ":f32-qc8w-gemm_ppc64_standalone", ++ ":f32-qs8-vcvt_ppc64_standalone", ++ ":f32-qu8-vcvt_ppc64_standalone", ++ ":f32-raddstoreexpminusmax_ppc64_standalone", ++ ":f32-rdminmax_ppc64_standalone", ++ ":f32-rdsum_ppc64_standalone", ++ ":f32-rminmax_ppc64_standalone", ++ ":f32-rsum_ppc64_standalone", ++ ":f32-spmm_ppc64_standalone", ++ ":f32-vapproxgelu_ppc64_standalone", ++ ":f32-vbinary_ppc64_standalone", ++ ":f32-vclamp_ppc64_standalone", ++ ":f32-vcmul_ppc64_standalone", ++ ":f32-vcopysign_ppc64_standalone", ++ ":f32-vcos_ppc64_standalone", ++ ":f32-velu_ppc64_standalone", ++ ":f32-vexp_ppc64_standalone", ++ ":f32-vgelu_ppc64_standalone", ++ ":f32-vhswish_ppc64_standalone", ++ ":f32-vlog_ppc64_standalone", ++ ":f32-vlrelu_ppc64_standalone", ++ ":f32-vmulcaddc_ppc64_standalone", ++ ":f32-vrelu_ppc64_standalone", ++ ":f32-vrnd_ppc64_standalone", ++ ":f32-vrsqrt_ppc64_standalone", ++ ":f32-vsigmoid_ppc64_standalone", ++ ":f32-vsin_ppc64_standalone", ++ ":f32-vsqrt_ppc64_standalone", ++ ":f32-vtanh_ppc64_standalone", ++ ":f32-vunary_ppc64_standalone", ++ ":operators_ppc64_standalone", ++ ":qd8-f32-qb4w-gemm_ppc64_standalone", ++ ":qd8-f32-qc4w-gemm_ppc64_standalone", ++ ":qd8-f32-qc8w-gemm_ppc64_standalone", ++ ":qd8-f32-qc8w-igemm_ppc64_standalone", ++ ":qs8-dwconv_ppc64_standalone", ++ ":qs8-f32-vcvt_ppc64_standalone", ++ ":qs8-packw_ppc64_standalone", ++ ":qs8-qc4w-gemm_ppc64_standalone", ++ ":qs8-qc8w-dwconv_ppc64_standalone", ++ ":qs8-qc8w-gemm_ppc64_standalone", ++ ":qs8-qc8w-igemm_ppc64_standalone", ++ ":qs8-qu8-packw_ppc64_standalone", ++ ":qs8-rdsum_ppc64_standalone", ++ ":qs8-rsum_ppc64_standalone", ++ ":qs8-vadd_ppc64_standalone", ++ ":qs8-vaddc_ppc64_standalone", ++ ":qs8-vcvt_ppc64_standalone", ++ ":qs8-vlrelu_ppc64_standalone", ++ ":qs8-vmul_ppc64_standalone", ++ ":qs8-vmulc_ppc64_standalone", ++ ":qu8-dwconv_ppc64_standalone", ++ ":qu8-f32-vcvt_ppc64_standalone", ++ ":qu8-gemm_ppc64_standalone", ++ ":qu8-igemm_ppc64_standalone", ++ ":qu8-rdsum_ppc64_standalone", ++ ":qu8-rsum_ppc64_standalone", ++ ":qu8-vadd_ppc64_standalone", ++ ":qu8-vaddc_ppc64_standalone", ++ ":qu8-vcvt_ppc64_standalone", ++ ":qu8-vlrelu_ppc64_standalone", ++ ":qu8-vmul_ppc64_standalone", ++ ":qu8-vmulc_ppc64_standalone", ++ ":reference_ppc64_standalone", ++ ":s8-ibilinear_ppc64_standalone", ++ ":s8-maxpool_ppc64_standalone", ++ ":s8-rdminmax_ppc64_standalone", ++ ":s8-rminmax_ppc64_standalone", ++ ":s8-vclamp_ppc64_standalone", ++ ":subgraph_ppc64_standalone", ++ ":tables_ppc64_standalone", ++ ":u8-ibilinear_ppc64_standalone", ++ ":u8-lut32norm_ppc64_standalone", ++ ":u8-maxpool_ppc64_standalone", ++ ":u8-rdminmax_ppc64_standalone", ++ ":u8-rminmax_ppc64_standalone", ++ ":u8-vclamp_ppc64_standalone", ++ ":x16-transposec_ppc64_standalone", ++ ":x16-x32-packw_ppc64_standalone", ++ ":x24-transposec_ppc64_standalone", ++ ":x32-packw_ppc64_standalone", ++ ":x32-transposec_ppc64_standalone", ++ ":x32-unpool_ppc64_standalone", ++ ":x64-transposec_ppc64_standalone", ++ ":x8-lut_ppc64_standalone", ++ ":x8-packq_ppc64_standalone", ++ ":x8-packw_ppc64_standalone", ++ ":x8-transposec_ppc64_standalone", ++ ":xx-copy_ppc64_standalone", ++ ":xx-fill_ppc64_standalone", ++ ":xx-pad_ppc64_standalone", ++ ":xx-transposev_ppc64_standalone" + ] + } else { + xnnpack_deps = [] +@@ -1451,8 +1697,8 @@ + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + + sources = [ +- "build_identifier.c", +- "src/include/xnnpack.h", ++ "src/include/xnnpack.h", ++ "build_identifier.c", + "src/src/allocator.c", + "src/src/cache.c", + "src/src/datatype.c", +@@ -1472,15 +1718,15 @@ + "src/src/runtime.c", + "src/src/sanitizers.c", + "src/src/subgraph.c", +- "src/src/tensor.c", ++ "src/src/tensor.c" + ] + + deps = xnnpack_deps + [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + + public_configs = [ ":xnnpack_config" ] + } +@@ -1494,8 +1740,8 @@ + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + + sources = [ +- "build_identifier.c", +- "src/include/xnnpack.h", ++ "src/include/xnnpack.h", ++ "build_identifier.c", + "src/src/allocator.c", + "src/src/cache.c", + "src/src/datatype.c", +@@ -1515,15 +1761,15 @@ + "src/src/runtime.c", + "src/src/sanitizers.c", + "src/src/subgraph.c", +- "src/src/tensor.c", ++ "src/src/tensor.c" + ] + + deps = xnnpack_standalone_deps + [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + + public_configs = [ ":xnnpack_config" ] + +@@ -1533,39160 +1779,47034 @@ + } + + if (current_cpu == "x64" || current_cpu == "x86") { +- source_set("configs_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] ++source_set("configs_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("configs_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("enums_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("configs_x64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("enums_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-avgpool_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++source_set("enums_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("enums_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- source_set("f16-dwconv_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("f16-avgpool_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-dwconv_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" ++ ] + +- source_set("f16-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" ++ ] + +- source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-f32-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" ++ ] + +- source_set("f16-f32acc-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f16-f32acc-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++source_set("f16-f32-vcvt_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c", +- ] ++source_set("f16-f32acc-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-f32acc-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" ++ ] + +- source_set("f16-ibilinear_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-maxpool_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-maxpool_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f16-maxpool_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" ++ ] + +- source_set("f16-qs8-vcvt_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-qs8-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] ++source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f16-qu8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-qu8-vcvt_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" ++ ] + +- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-rdminmax_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] ++source_set("f16-ibilinear_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-rdminmax_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-maxpool_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-maxpool_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-maxpool_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" ++ ] + +- source_set("f16-rminmax_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} ++ ++source_set("f16-qs8-vcvt_x64") { ++ cflags = [ + +- source_set("f16-rminmax_x64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- source_set("f16-vapproxgelu_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vapproxgelu_x64_standalone") { +- cflags = [] ++source_set("f16-qu8-vcvt_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vbinary_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" ++ ] + +- source_set("f16-vclamp_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", +- ] ++source_set("f16-rdminmax_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vcos_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vcos_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-velu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-velu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] + +- source_set("f16-vexp_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f16-vgelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vgelu_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-rminmax_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] + +- source_set("f16-vhswish_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++source_set("f16-rminmax_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", +- ] ++source_set("f16-vapproxgelu_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vrnd_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ ] + +- source_set("f16-vsigmoid_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", +- ] ++source_set("f16-vbinary_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f16-vsin_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vclamp_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] + +- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vtanh_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("f16-vcos_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- source_set("f16-vtanh_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++source_set("f16-velu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f16-vunary_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-velu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-vexp_x64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] + +- source_set("f16-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_x64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f16-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-argmaxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f16-vgelu_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-argmaxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vgelu_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + +- source_set("f32-argmaxpool_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-argmaxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] ++source_set("f16-vhswish_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-avgpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-avgpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vlrelu_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" ++ ] + +- source_set("f32-avgpool_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-avgpool_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-conv-hwc2chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f16-vmulcaddc_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-conv-hwc2chw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-vrnd_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" ++ ] + +- source_set("f32-dwconv2d-chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++source_set("f16-vsigmoid_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv2d-chw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f16-vsin_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vsqrt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ ] + +- source_set("f32-dwconv_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-dwconv_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f16-vtanh_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] ++source_set("f16-vtanh_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vunary_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++source_set("f16-vunary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vunary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-f16-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-argmaxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ ] + +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- ] ++source_set("f32-argmaxpool_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-f16-vcvt_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-avgpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", +- ] ++source_set("f32-avgpool_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-gemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-gemm_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f32-conv-hwc2chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] ++source_set("f32-conv-hwc2chw_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-ibilinear-chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-ibilinear-chw_x64") { +- cflags = [] ++source_set("f32-dwconv2d-chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear-chw_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-ibilinear_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" ++ ] + +- source_set("f32-ibilinear_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear_x64_standalone") { +- cflags = [] ++source_set("f32-dwconv2d-chw_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_x64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", +- ] ++source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" ++ ] + +- source_set("f32-igemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("f32-dwconv_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-igemm_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-dwconv_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-maxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-dwconv_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-maxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" ++ ] + +- source_set("f32-maxpool_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] ++source_set("f32-dwconv_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" ++ ] + +- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", +- ] ++source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-qc4w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-f16-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" ++ ] + +- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", +- ] ++source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", +- ] ++source_set("f32-f16-vcvt_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-qc8w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-gemm_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" ++ ] + +- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-qs8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-gemm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-qs8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-gemm_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] + +- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f32-ibilinear-chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-qs8-vcvt_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] ++source_set("f32-ibilinear-chw_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-qu8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", +- ] ++source_set("f32-ibilinear_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", +- ] ++source_set("f32-ibilinear_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-qu8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-qu8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] + +- source_set("f32-raddstoreexpminusmax_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++source_set("f32-igemm_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-igemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-igemm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] + +- source_set("f32-raddstoreexpminusmax_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] ++source_set("f32-igemm_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-rdminmax_avx512f") { +- cflags = [ "-mavx512f" ] ++source_set("f32-maxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-rdminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-maxpool_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- source_set("f32-rdminmax_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] ++source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" ++ ] + +- source_set("f32-rdsum_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-rdsum_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-rdsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" ++ ] + +- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-qc4w-gemm_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-rminmax_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_x64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-rminmax_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" ++ ] + +- source_set("f32-rminmax_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] ++source_set("f32-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" ++ ] + +- source_set("f32-rsum_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-rsum_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-rsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" ++ ] + +- source_set("f32-spmm_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-spmm_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f32-qc8w-gemm_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-spmm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_x64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-spmm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vapproxgelu_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-qs8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" ++ ] + +- source_set("f32-vapproxgelu_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", +- ] ++source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-vapproxgelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-qs8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" ++ ] + +- source_set("f32-vapproxgelu_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vbinary_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", +- ] ++source_set("f32-qs8-vcvt_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vbinary_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vbinary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vbinary_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-qu8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" ++ ] + +- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vclamp_avx512f") { +- cflags = [ "-mavx512f" ] ++source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vclamp_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-qu8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" ++ ] + +- source_set("f32-vclamp_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- ] ++source_set("f32-qu8-vcvt_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vcmul_avx512f") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vcmul_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("f32-raddstoreexpminusmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vcmul_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" ++ ] + +- source_set("f32-vcmul_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_x64_standalone") { +- cflags = [] ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vcopysign_avx512f") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vcopysign_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-raddstoreexpminusmax_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] + +- source_set("f32-vcopysign_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" ++ ] + +- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vcos_avx512f") { +- cflags = [ "-mavx512f" ] ++source_set("f32-rdminmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vcos_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-rdminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" ++ ] + +- source_set("f32-vcos_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- ] ++source_set("f32-rdminmax_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vcos_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" ++ ] + +- source_set("f32-velu_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++source_set("f32-rdsum_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-velu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdsum_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rminmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rminmax_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rsum_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rsum_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-spmm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-spmm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vclamp_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vclamp_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vclamp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcopysign_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcopysign_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcopysign_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcos_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcos_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcos_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcos_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-velu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-velu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-velu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-velu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-velu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-velu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-velu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-velu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vexp_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vexp_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vexp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vexp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vgelu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vgelu_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vgelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlog_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlog_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlog_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlog_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlog_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vmulcaddc_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vmulcaddc_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vmulcaddc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vmulcaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vunary_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vunary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-sse2.c", ++ "src/src/f32-vunary/gen/f32-vneg-sse2.c", ++ "src/src/f32-vunary/gen/f32-vsqr-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-sse2.c", ++ "src/src/f32-vunary/gen/f32-vneg-sse2.c", ++ "src/src/f32-vunary/gen/f32-vsqr-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vunary_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("operators_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("operators_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f16-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-packw_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qu8-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rdsum_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rdsum_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rdsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rdsum_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rdsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rsum_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rsum_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("reference_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("reference_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-ibilinear_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-ibilinear_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-ibilinear_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-maxpool_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-maxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rdminmax_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rminmax_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("subgraph_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("subgraph_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("tables_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("tables_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-ibilinear_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-ibilinear_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-ibilinear_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-lut32norm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-lut32norm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-maxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-maxpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-maxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-rdminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-rdminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-rminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-rminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} ++ ++source_set("u8-vclamp_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-velu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-velu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("u8-vclamp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" ++ ] + +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] ++source_set("u8-vclamp_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vexp_avx512f") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vexp_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("x16-packw_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-packw_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vexp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("x16-transposec_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("x16-transposec_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" ++ ] + +- source_set("f32-vexp_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_x64_standalone") { +- cflags = [] ++source_set("x16-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-transposec_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("x16-transposec_x64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] + +- source_set("f32-vgelu_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("x16-transposec_x64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vgelu_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("x16-x32-packw_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-x32-packw_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- source_set("f32-vgelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("x24-transposec_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-vgelu_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++source_set("x24-transposec_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("x24-transposec_x64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] + +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("x24-transposec_x64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vhswish_avx512f") { +- cflags = [ "-mavx512f" ] ++source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vhswish_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("x32-packw_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-packw_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vhswish_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("x32-packw_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("x32-packw_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" ++ ] + +- source_set("f32-vhswish_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- ] ++source_set("x32-packw_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vlog_avx512f") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-packw_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vlog_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vlog_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("x32-transposec_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ ] + +- source_set("f32-vlog_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- ] ++source_set("x32-transposec_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vlog_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("x32-unpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-sse2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vlrelu_avx512f") { +- cflags = [ "-mavx512f" ] ++source_set("x32-unpool_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] + +- source_set("f32-vlrelu_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", +- ] ++source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("x64-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" ++ ] + +- source_set("f32-vlrelu_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vmulcaddc_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("x64-transposec_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- source_set("f32-vmulcaddc_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_x64_standalone") { +- cflags = [] ++source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + +- source_set("f32-vrelu_x64") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vrelu_x64_standalone") { +- cflags = [] ++source_set("x8-lut_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("x8-lut_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vrnd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vbmi", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vbmi", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vrnd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("x8-lut_x64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-lut_x64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("x8-packq_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packq_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- source_set("f32-vrsqrt_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c", +- ] ++source_set("x8-packw_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vrsqrt_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packw_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vrsqrt_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("x8-transposec_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vrsqrt_x64") { +- cflags = [] ++source_set("x8-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("x8-transposec_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- source_set("f32-vsigmoid_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] ++source_set("xx-copy_x64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vsigmoid_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-copy_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsigmoid_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("xx-fill_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-sse2-u64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-fill_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("xx-fill_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-fill_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- source_set("f32-vsigmoid_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_x64_standalone") { +- cflags = [] ++source_set("xx-pad_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-pad_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("xx-pad_x64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- source_set("f32-vsin_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("xx-pad_x64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsin_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("xx-transposev_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-transposev_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- source_set("f32-vsin_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- ] ++if (current_cpu == "arm64") { ++source_set("configs_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vsin_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("configs_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("enums_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("enums_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- source_set("f32-vsqrt_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c", +- ] ++source_set("f16-avgpool_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-vsqrt_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ ] + +- source_set("f32-vsqrt_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsqrt_x64") { +- cflags = [] ++source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-dwconv_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" ++ ] + +- source_set("f32-vtanh_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c", +- ] ++source_set("f16-f32-vcvt_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vtanh_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vtanh_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vtanh_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" ++ ] + +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f16-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-vunary_avx512f") { +- cflags = [ "-mavx512f" ] ++# This is a target that cannot depend on //base. ++source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] ++source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vunary_x64") { +- cflags = [] ++source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("operators_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("operators_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] ++source_set("f16-ibilinear_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-igemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-maxpool_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" ++ ] + +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-qs8-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] ++source_set("f16-qu8-vcvt_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" ++ ] + +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++source_set("f16-rdminmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-rdminmax_arm64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-rminmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f16-rminmax_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-spmm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f16-vapproxgelu_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f16-vbinary_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- source_set("qd8-f32-qb4w-gemm_x64") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} ++ ++source_set("f16-vclamp_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vcmul_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vcos_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vcos_arm64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++source_set("f16-velu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vexp_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" ++ ] + +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++source_set("f16-vexp_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] + +- source_set("qd8-f32-qc4w-gemm_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- cflags = [] ++source_set("f16-vgelu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-vgelu_arm64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vgelu_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-vhswish_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vlrelu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" ++ ] + +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f16-vrnd_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vsin_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vsin_arm64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++source_set("f16-vsqrt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f16-vtanh_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f16-vunary_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-argmaxpool_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- source_set("qs8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-avgpool_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-conv-hwc2chw_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f32-dwconv2d-chw_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" ++ ] + +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-dwconv_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-f16-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- source_set("qs8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] ++source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-f32-vcvt_x64") { +- cflags = [] ++source_set("f32-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" ++ ] + +- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-ibilinear-chw_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-packw_x64") { +- cflags = [] ++source_set("f32-ibilinear_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] + +- source_set("qs8-qc4w-gemm_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] ++source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-igemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] ++source_set("f32-maxpool_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f32-qc4w-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-qc8w-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ ] + +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-qs8-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-qu8-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-raddstoreexpminusmax_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-rdminmax_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] + +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f32-rdsum_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-rminmax_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] + +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] ++source_set("f32-rsum_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-spmm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vapproxgelu_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vbinary_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-vclamp_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ ] + +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("f32-vcmul_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vcopysign_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vcos_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_arm64_standalone") { ++ cflags = [ + +- source_set("qs8-qu8-packw_x64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_x64_standalone") { +- cflags = [] ++source_set("f32-velu_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-rdsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-velu_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vexp_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] + +- source_set("qs8-rdsum_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] ++source_set("f32-vgelu_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-rdsum_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vhswish_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ ] + +- source_set("qs8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vlog_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] ++source_set("f32-vlrelu_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_arm64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("qs8-rsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] ++source_set("f32-vmulcaddc_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-rsum_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vmulcaddc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-vrelu_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ ] + +- source_set("qs8-vadd_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vrnd_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vadd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-vrsqrt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ ] + +- source_set("qs8-vadd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] ++source_set("f32-vsigmoid_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-vadd_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("f32-vsin_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] + +- source_set("qs8-vaddc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vsqrt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vaddc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f32-vtanh_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- source_set("qs8-vaddc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] ++source_set("f32-vunary_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-vaddc_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("operators_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("operators_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] + +- source_set("qs8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] + +- source_set("qs8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vcvt_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qs8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] + +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", +- ] ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- source_set("qs8-vlrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qs8-vlrelu_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" ++ ] + +- source_set("qs8-vlrelu_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", +- ] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qs8-vmul_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" ++ ] + +- source_set("qs8-vmul_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_x64_standalone") { +- cflags = [] ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] + +- source_set("qs8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ asmflags = cflags + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vmulc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qs8-vmulc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qu8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qd8-f32-qb4w-gemm_arm64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_arm64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qu8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- source_set("qu8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qd8-f32-qc4w-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- source_set("qu8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] + +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- source_set("qu8-f32-vcvt_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qd8-f32-qc8w-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- source_set("qu8-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] + +- source_set("qu8-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qd8-f32-qc8w-igemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" ++ ] + +- source_set("qu8-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" ++ ] + +- source_set("qu8-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ ] + +- source_set("qu8-rdsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-rdsum_x64") { +- cflags = [] ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qu8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ ] + +- source_set("qu8-rsum_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", +- ] ++source_set("qs8-dwconv_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-rsum_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ ] + +- source_set("qu8-vadd_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("qs8-f32-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vadd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qs8-packw_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- source_set("qu8-vadd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] ++source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vadd_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qs8-qc4w-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc4w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] + +- source_set("qu8-vaddc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("qs8-qc8w-dwconv_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vaddc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ ] + +- source_set("qu8-vaddc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vaddc_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] + +- source_set("qu8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", +- ] ++source_set("qs8-qc8w-gemm_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" ++ ] + +- source_set("qu8-vcvt_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", +- ] ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ asmflags = cflags + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vcvt_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] + +- source_set("qu8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", +- ] ++source_set("qs8-qc8w-igemm_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vlrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qs8-qu8-packw_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- source_set("qu8-vlrelu_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", +- ] ++source_set("qs8-rdsum_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vlrelu_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-rsum_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" ++ ] + +- source_set("qu8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++source_set("qs8-rsum_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vmul_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vmul_x64") { +- cflags = [] ++source_set("qs8-vadd_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] + +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++source_set("qs8-vaddc_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vmulc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qs8-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] + +- source_set("qu8-vmulc_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_x64_standalone") { +- cflags = [] ++source_set("qs8-vlrelu_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("reference_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("reference_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("s8-ibilinear_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qs8-vmul_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- source_set("s8-ibilinear_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", +- ] ++source_set("qs8-vmulc_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("s8-ibilinear_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("s8-maxpool_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qu8-dwconv_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- source_set("s8-maxpool_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] ++source_set("qu8-f32-vcvt_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("s8-rdminmax_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("s8-rdminmax_x64") { +- cflags = [] ++source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] + +- source_set("s8-rminmax_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qu8-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("s8-rminmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("s8-vclamp_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", +- ] ++source_set("qu8-igemm_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("s8-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("s8-vclamp_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qu8-rdsum_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] + +- source_set("s8-vclamp_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_x64_standalone") { +- cflags = [] ++source_set("qu8-rsum_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("subgraph_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("subgraph_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("tables_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("tables_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] ++source_set("qu8-vadd_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("u8-ibilinear_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("u8-ibilinear_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qu8-vaddc_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- source_set("u8-ibilinear_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] ++source_set("qu8-vcvt_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("u8-lut32norm_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-lut32norm_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("u8-maxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qu8-vlrelu_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ ] + +- source_set("u8-maxpool_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] ++source_set("qu8-vmul_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("u8-rdminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("u8-rdminmax_x64") { +- cflags = [] ++source_set("qu8-vmulc_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] + +- source_set("u8-rminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("reference_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("u8-rminmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("reference_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("u8-vclamp_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("s8-ibilinear_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", +- ] ++source_set("s8-maxpool_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("u8-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-maxpool_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("u8-vclamp_x64") { +- cflags = [] ++source_set("s8-rdminmax_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-rdminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] + +- source_set("x16-packw_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x16-packw_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", +- ] ++source_set("s8-rminmax_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x16-transposec_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x16-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("s8-vclamp_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- source_set("x16-transposec_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] ++source_set("subgraph_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x16-x32-packw_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("subgraph_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x16-x32-packw_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x24-transposec_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++source_set("tables_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("tables_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- source_set("x24-transposec_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_x64_standalone") { +- cflags = [] ++source_set("u8-ibilinear_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- ] ++source_set("u8-lut32norm_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x32-packw_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("u8-lut32norm_arm64_standalone") { ++ cflags = [ + +- source_set("x32-packw_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x32-packw_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("u8-maxpool_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("u8-maxpool_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("x32-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("u8-rdminmax_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-rdminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] + +- source_set("x32-transposec_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", +- ] ++source_set("u8-rminmax_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x32-transposec_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-rminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x32-unpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("u8-vclamp_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + +- source_set("x32-unpool_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++source_set("x16-packw_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-packw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x64-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("x16-transposec_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-transposec_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ ] + +- source_set("x64-transposec_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] ++source_set("x16-x32-packw_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-x32-packw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x8-lut_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("x24-transposec_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x8-lut_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x24-transposec_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++source_set("x32-packw_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-packw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x8-lut_x64") { +- cflags = [] ++source_set("x32-transposec_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", ++ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x8-lut_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", ++ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ ] + +- source_set("x8-packq_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x8-packq_x64_standalone") { +- cflags = [] ++source_set("x32-unpool_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("x8-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x8-transposec_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("x64-transposec_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- source_set("x8-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", +- ] ++source_set("x8-lut_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x8-transposec_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-lut_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("xx-copy_x64") { +- cflags = [] ++source_set("x8-packq_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("xx-copy_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packq_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- source_set("xx-fill_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("xx-fill_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", +- ] ++source_set("x8-packw_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("xx-fill_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packw_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("xx-fill_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("xx-pad_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("x8-transposec_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("xx-pad_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- source_set("xx-pad_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("xx-pad_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] ++source_set("xx-copy_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("xx-transposev_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-copy_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("xx-transposev_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } + +-if (current_cpu == "arm64") { +- source_set("configs_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] ++source_set("xx-fill_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("configs_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("enums_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-fill_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("enums_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-avgpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("xx-pad_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-pad_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("xx-transposev_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("xx-transposev_arm64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-dwconv_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++if (current_cpu == "ppc64") { ++source_set("configs_ppc64") { ++ cflags = [ + +- source_set("f16-f32-vcvt_arm64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("configs_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("enums_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("enums_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", +- ] ++source_set("f16-f32-vcvt_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f16-qs8-vcvt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f16-qu8-vcvt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] ++source_set("f16-rdminmax_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-maxpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f16-rminmax_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- source_set("f16-qs8-vcvt_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] ++source_set("f16-vapproxgelu_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-qu8-vcvt_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-qu8-vcvt_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f16-vcos_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", +- ] ++source_set("f16-vexp_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-rdminmax_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-rdminmax_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-rminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f16-vgelu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vgelu_ppc64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("f16-rminmax_arm64") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] ++source_set("f16-vsin_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-spmm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f32-argmaxpool_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- source_set("f16-vapproxgelu_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vapproxgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-avgpool_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vbinary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- source_set("f16-vclamp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", +- ] ++source_set("f32-conv-hwc2chw_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vcmul_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vcos_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f32-dwconv2d-chw_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- source_set("f16-vcos_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vcos_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] ++source_set("f32-dwconv_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-velu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vexp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f32-f16-vcvt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- source_set("f16-vexp_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++source_set("f32-gemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vgelu_arm64") { +- cflags = [] ++source_set("f32-ibilinear-chw_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vgelu_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- source_set("f16-vhswish_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", +- ] ++source_set("f32-ibilinear_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-igemm_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vrnd_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f32-maxpool_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] ++source_set("f32-qc4w-gemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vsin_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vsin_arm64") { +- cflags = [] ++source_set("f32-qc8w-gemm_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] ++source_set("f32-qs8-vcvt_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-vtanh_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vunary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("f32-qu8-vcvt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- source_set("f32-argmaxpool_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-argmaxpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] ++source_set("f32-raddstoreexpminusmax_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-avgpool_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-avgpool_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-conv-hwc2chw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++source_set("f32-rdminmax_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv2d-chw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++source_set("f32-rdsum_ppc64") { ++ cflags = [ + +- asmflags = cflags ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- asmflags = cflags ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-rminmax_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] + +- source_set("f32-f16-vcvt_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-rsum_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] + +- source_set("f32-ibilinear-chw_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear-chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-spmm_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] + +- source_set("f32-ibilinear_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-vapproxgelu_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] + +- source_set("f32-maxpool_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-maxpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-vbinary_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_ppc64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags ++source_set("f32-vclamp_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc8w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qs8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-vcmul_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qu8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] + +- source_set("f32-raddstoreexpminusmax_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-vcopysign_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] + +- source_set("f32-rdsum_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f32-vcos_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] + +- source_set("f32-rsum_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_arm64_standalone") { +- cflags = [] ++source_set("f32-velu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-spmm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-velu_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-spmm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vapproxgelu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-vexp_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vbinary_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vclamp_arm64") { +- cflags = [] ++source_set("f32-vgelu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] + +- source_set("f32-vcmul_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_arm64_standalone") { +- cflags = [] ++source_set("f32-vhswish_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcopysign_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vcos_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-vlog_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vexp_arm64") { +- cflags = [] ++source_set("f32-vlrelu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] + +- source_set("f32-vgelu_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] ++source_set("f32-vmulcaddc_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vhswish_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vmulcaddc_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vlog_arm64") { +- cflags = [] ++source_set("f32-vrelu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ ] + +- source_set("f32-vlrelu_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_arm64_standalone") { +- cflags = [] ++source_set("f32-vrnd_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-vmulcaddc_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vrelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-vrsqrt_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrelu_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} ++ ++source_set("f32-vsigmoid_ppc64") { ++ cflags = [ + +- source_set("f32-vrsqrt_arm64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] + +- source_set("f32-vsigmoid_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] ++source_set("f32-vsin_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vsin_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsqrt_arm64") { +- cflags = [] ++source_set("f32-vsqrt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ ] + +- source_set("f32-vtanh_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_arm64_standalone") { +- cflags = [] ++source_set("f32-vtanh_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("operators_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("operators_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] ++source_set("f32-vunary_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("operators_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("operators_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] + +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++source_set("qd8-f32-qb4w-gemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("qd8-f32-qc4w-gemm_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qd8-f32-qc8w-gemm_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", +- ] ++source_set("qd8-f32-qc8w-igemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qs8-dwconv_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", +- ] ++source_set("qs8-f32-vcvt_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++source_set("qs8-packw_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] ++source_set("qs8-qc4w-gemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc4w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qs8-qc8w-dwconv_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] ++source_set("qs8-qc8w-gemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qs8-qc8w-igemm_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qs8-qu8-packw_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_ppc64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++source_set("qs8-rdsum_ppc64") { ++ cflags = [ + +- asmflags = cflags ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_ppc64_standalone") { ++ cflags = [ + +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qs8-rsum_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", +- ] ++source_set("qs8-vadd_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qs8-vaddc_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] ++source_set("qs8-vcvt_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qs8-vlrelu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ ] + +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] ++source_set("qs8-vmul_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++source_set("qs8-vmulc_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qu8-dwconv_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++source_set("qu8-f32-vcvt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- source_set("qs8-f32-vcvt_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] ++source_set("qu8-gemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-packw_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] ++source_set("qu8-igemm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- source_set("qs8-qc4w-gemm_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_arm64_standalone") { +- cflags = [] ++source_set("qu8-rdsum_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qu8-rsum_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qu8-vadd_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qu8-vaddc_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qu8-vcvt_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + +- source_set("qs8-qu8-packw_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++source_set("qu8-vlrelu_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-rdsum_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++source_set("qu8-vmul_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- source_set("qs8-rsum_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_arm64_standalone") { +- cflags = [] ++source_set("qu8-vmulc_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++source_set("reference_ppc64") { ++ cflags = [ + +- source_set("qs8-vcvt_arm64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("reference_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] + +- source_set("qs8-vlrelu_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", +- ] ++source_set("s8-ibilinear_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-vmul_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vmulc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("s8-maxpool_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-maxpool_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-f32-vcvt_arm64") { +- cflags = [] ++source_set("s8-rdminmax_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("s8-rdminmax_ppc64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++source_set("s8-rminmax_ppc64") { ++ cflags = [ + +- asmflags = cflags ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++source_set("s8-vclamp_ppc64") { ++ cflags = [ + +- asmflags = cflags ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- asmflags = cflags ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++source_set("subgraph_ppc64") { ++ cflags = [ + +- source_set("qu8-rdsum_arm64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("subgraph_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- source_set("qu8-rsum_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_arm64_standalone") { +- cflags = [] ++source_set("tables_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("tables_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++source_set("u8-ibilinear_ppc64") { ++ cflags = [ + +- source_set("qu8-vcvt_arm64") { +- cflags = [] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] + +- source_set("qu8-vlrelu_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", +- ] ++source_set("u8-lut32norm_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vmul_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-lut32norm_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vmulc_arm64") { +- cflags = [] ++source_set("u8-maxpool_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-maxpool_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- source_set("reference_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("reference_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] ++source_set("u8-rdminmax_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("s8-ibilinear_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-rdminmax_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("s8-maxpool_arm64") { +- cflags = [] ++source_set("u8-rminmax_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-rminmax_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("u8-vclamp_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_ppc64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("s8-vclamp_arm64") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_arm64_standalone") { +- cflags = [] ++source_set("x16-transposec_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("subgraph_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("x16-transposec_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("subgraph_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("tables_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("tables_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] ++source_set("x16-x32-packw_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("u8-ibilinear_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-x32-packw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("u8-lut32norm_arm64") { +- cflags = [] ++source_set("x24-transposec_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("u8-lut32norm_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x24-transposec_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] + +- source_set("u8-maxpool_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_arm64_standalone") { +- cflags = [] ++source_set("x32-packw_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("x32-packw_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] ++source_set("x32-transposec_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("u8-vclamp_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x16-packw_arm64") { +- cflags = [] ++source_set("x32-unpool_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x16-packw_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] + +- source_set("x16-transposec_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] ++source_set("x64-transposec_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x16-x32-packw_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x16-x32-packw_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x24-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", +- ] ++source_set("x8-lut_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-lut_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x32-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x32-transposec_arm64") { +- cflags = [] ++source_set("x8-packq_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("x8-packq_ppc64_standalone") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- source_set("x32-unpool_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_arm64_standalone") { +- cflags = [] ++source_set("x8-packw_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("x64-transposec_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packw_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x8-lut_arm64") { +- cflags = [] ++source_set("x8-transposec_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x8-lut_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- source_set("x8-packq_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x8-packq_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("xx-copy_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x8-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-copy_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- source_set("x8-transposec_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] ++source_set("xx-fill_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("xx-copy_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-fill_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("xx-copy_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("xx-fill_arm64") { +- cflags = [] ++source_set("xx-pad_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("xx-fill_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-pad_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- source_set("xx-pad_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("xx-pad_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] ++source_set("xx-transposev_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("xx-transposev_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("xx-transposev_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("xx-transposev_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++ ++} diff --git a/chromium.spec b/chromium.spec index c00ba2c..4d84705 100644 --- a/chromium.spec +++ b/chromium.spec @@ -432,6 +432,9 @@ Patch415: add-ppc64-pthread-stack-size.patch # Fix build error on el10 Patch416: fix-ppc64-rust_png-build-error.patch +Patch417: 0001-add-xnn-ppc64el-support.patch +Patch418: 0002-regenerate-xnn-buildgn.patch + # flatpak sandbox patches from # https://github.com/flathub/org.chromium.Chromium/tree/master/patches/chromium Patch500: flatpak-Add-initial-sandbox-support.patch @@ -1120,6 +1123,8 @@ Qt6 UI for chromium. %patch -P413 -p1 -b .fix-unknown-warning-option-messages %patch -P415 -p1 -b .add-ppc64-pthread-stack-size %patch -P416 -p1 -b .ppc64-rust_png-build-error +%patch -P417 -p1 -b .0001-add-xnn-ppc64el-support +%patch -P418 -p1 -b .0002-regenerate-xnn-buildgn %endif %if 0%{?flatpak} From 4aa58789944a9bb981dcb4e959ca1d1355f2b91a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 3 Jun 2025 11:38:54 +0200 Subject: [PATCH 155/244] - Update to 137.0.7151.68 * CVE-2025-5419: Out of bounds read and write in V8 * CVE-2025-5068: Use after free in Blink --- chromium.spec | 7 ++++++- sources | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 4d84705..6262e06 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ %endif Name: chromium -Version: 137.0.7151.55 +Version: 137.0.7151.68 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1770,6 +1770,11 @@ fi %endif %changelog +* Tue Jun 03 2025 Than Ngo - 137.0.7151.68-1 +- Update to 137.0.7151.68 + * CVE-2025-5419: Out of bounds read and write in V8 + * CVE-2025-5068: Use after free in Blink + * Tue May 27 2025 Than Ngo - 137.0.7151.55-1 - Update to 137.0.7151.55 * CVE-2025-5063: Use after free in Compositing diff --git a/sources b/sources index c709c48..a90e9a2 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-137.0.7151.55-clean.tar.xz) = bbae8eaaadee48edc17aed3400980c5cdd5420ee24a22b38e76d75783ae65b63bca5a4474b47badc741702037852128953bc3e09ecc34ffced528f1b46bb412d +SHA512 (chromium-137.0.7151.68-clean.tar.xz) = e4f65bcb993141ebe6a100fa00bd64371ec15003626e0748ec9909970700bd98004bf5eb83d7a4b7a08d463bca06e19249a9a46e71e3a032a18b0ee833962fb8 From 24bb6db92782c9b2e4cfd465bc294eab88fcd024 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 3 Jun 2025 17:00:22 +0200 Subject: [PATCH 156/244] Fix FTBFS with rust-1.86 in EPEL10 --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 6262e06..edabe37 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1039,7 +1039,7 @@ Qt6 UI for chromium. %patch -P312 -p1 -b .fstack-protector-strong -%if 0%{?rhel} +%if 0%{?rhel} < 10 %patch -P315 -p1 -b .rust-libadler2 %endif %patch -P316 -p1 -b .clang-build-flags From ffc0f668ec7c67964501e44bf7dec96c3fa04158 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 3 Jun 2025 22:41:23 +0200 Subject: [PATCH 157/244] Fix FTBFS on EL9 due to libadler --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index edabe37..60008a0 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1039,7 +1039,7 @@ Qt6 UI for chromium. %patch -P312 -p1 -b .fstack-protector-strong -%if 0%{?rhel} < 10 +%if 0%{?rhel} == 9 %patch -P315 -p1 -b .rust-libadler2 %endif %patch -P316 -p1 -b .clang-build-flags From dee384f4469182b9c647ade47b5c8128f5331f00 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 4 Jun 2025 12:07:15 +0200 Subject: [PATCH 158/244] - refreshed ppc64le patches - cleanup fedora/epel conditions --- ...f_dsl-Update-syscall-ranges-for-ppc6.patch | 10 ++--- 0008-sandbox-fix-ppc64le-glibc234.patch | 44 ++++++------------- chromium.spec | 9 ++-- 3 files changed, 22 insertions(+), 41 deletions(-) diff --git a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch index 1e0db40..2cc51a1 100644 --- a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch +++ b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch @@ -7,19 +7,19 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64 sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++ 1 file changed, 7 insertions(+) -Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-137.0.7151.40.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -56,6 +56,13 @@ #define MAX_PUBLIC_SYSCALL __NR_syscalls #define MAX_SYSCALL MAX_PUBLIC_SYSCALL +#elif defined(__powerpc64__) + -+#include ++#include +#define MIN_SYSCALL 0u -+#define MAX_PUBLIC_SYSCALL 386u ++#define MAX_PUBLIC_SYSCALL __NR_syscalls +#define MAX_SYSCALL MAX_PUBLIC_SYSCALL + #else diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch index 4c9943d..dbb32ab 100644 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ b/0008-sandbox-fix-ppc64le-glibc234.patch @@ -1,7 +1,7 @@ -Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc +Index: chromium-137.0.7151.40/sandbox/policy/linux/bpf_utility_policy_linux.cc =================================================================== ---- chromium-134.0.6998.35.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- chromium-137.0.7151.40.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-137.0.7151.40/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -11,10 +11,10 @@ Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-137.0.7151.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-134.0.6998.35.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-137.0.7151.40.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-137.0.7151.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -90,7 +90,7 @@ ResultExpr RendererProcessPolicy::Evalua case __NR_ftruncate64: #endif @@ -24,27 +24,11 @@ Index: chromium-134.0.6998.35/sandbox/policy/linux/bpf_renderer_policy_linux.cc case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-134.0.6998.35/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-137.0.7151.40/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-134.0.6998.35/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -@@ -58,9 +58,9 @@ - - #elif defined(__powerpc64__) - --#include -+#include - #define MIN_SYSCALL 0u --#define MAX_PUBLIC_SYSCALL 386u -+#define MAX_PUBLIC_SYSCALL __NR_syscalls - #define MAX_SYSCALL MAX_PUBLIC_SYSCALL - - #else -Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/services/credentials.cc -+++ chromium-134.0.6998.35/sandbox/linux/services/credentials.cc -@@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() { +--- chromium-137.0.7151.40.orig/sandbox/linux/services/credentials.cc ++++ chromium-137.0.7151.40/sandbox/linux/services/credentials.cc +@@ -99,7 +99,8 @@ bool ChrootToSafeEmptyDir() { int clone_flags = CLONE_FS | LINUX_SIGCHLD; void* tls = nullptr; @@ -54,7 +38,7 @@ Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc !defined(MEMORY_SANITIZER) // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. // Since clone writes to the new child's TLS before returning, we must set a -@@ -104,6 +105,11 @@ bool ChrootToSafeEmptyDir() { +@@ -107,6 +108,11 @@ bool ChrootToSafeEmptyDir() { // glibc performs syscalls by calling a function pointer in TLS, so we do not // attempt this optimization. // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. @@ -66,10 +50,10 @@ Index: chromium-134.0.6998.35/sandbox/linux/services/credentials.cc clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; -Index: chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +Index: chromium-137.0.7151.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc =================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-134.0.6998.35/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +--- chromium-137.0.7151.40.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-137.0.7151.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc @@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && diff --git a/chromium.spec b/chromium.spec index 60008a0..17363ef 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1039,12 +1039,13 @@ Qt6 UI for chromium. %patch -P312 -p1 -b .fstack-protector-strong -%if 0%{?rhel} == 9 +%if 0%{?rhel} && 0%{?rhel} < 10 %patch -P315 -p1 -b .rust-libadler2 +%patch -P354 -p1 -b .split-threshold-for-reg-with-hint %endif %patch -P316 -p1 -b .clang-build-flags -%if 0%{?fedora} < 42 || 0%{?rhel} < 10 +%if 0%{?fedora} && 0%{?fedora} < 42 || 0%{?rhel} && 0%{?rhel} < 10 %patch -P317 -p1 -b .clang++-unsupported-argument %endif @@ -1056,10 +1057,6 @@ Qt6 UI for chromium. %patch -P353 -p1 -b .duplicate-case-value %endif -%if 0%{?rhel} && 0%{?rhel} < 10 || 0%{?fedora} && 0%{?fedora} < 40 -%patch -P354 -p1 -b .split-threshold-for-reg-with-hint -%endif - %patch -P355 -p1 -b .hardware_destructive_interference_size %patch -P357 -p1 -b .type-mismatch-error From f1498d7d81f2ab2fdd31b6b6a151560daea62e2e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 11 Jun 2025 09:37:30 +0200 Subject: [PATCH 159/244] - Update to 137.0.7151.103 * CVE-2025-5958: Use after free in Media * CVE-2025-5959: Type Confusion in V8 - Provide correct version for bundle librarires - Fix rhbz#2368923, Chromium crash --- chromium.spec | 74 +++++++++++++++++++++++---------------------------- sources | 2 +- 2 files changed, 34 insertions(+), 42 deletions(-) diff --git a/chromium.spec b/chromium.spec index 17363ef..18197d5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -168,6 +168,7 @@ # openjpeg2, need to update to 2.5.x %global bundlelibopenjpeg2 1 %global bundlelibtiff 1 +# libxml2, need to update to 2.14.x for bz#2368923 %global bundlelibxml 1 %global bundlepylibs 0 %global bundlelibxslt 0 @@ -194,7 +195,6 @@ %global bundlelibdrm 0 %global bundleffmpegfree 0 %global bundlefreetype 0 -%global bundlelibxml 0 %if 0%{?fedora} > 41 # require libtiff-4.6.1 or newer, error: use of undeclared identifier 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' %global bundlelibtiff 0 @@ -245,7 +245,7 @@ %endif Name: chromium -Version: 137.0.7151.68 +Version: 137.0.7151.103 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -794,78 +794,68 @@ ExclusiveArch: x86_64 aarch64 %endif # Bundled bits (I'm sure I've missed some) -Provides: bundled(angle) = 2422 Provides: bundled(bintrees) = 1.0.1 # This is a fork of openssl. Provides: bundled(boringssl) - %if %{bundlebrotli} Provides: bundled(brotli) = 222564a95d9ab58865a096b8d9f7324ea5f2e03e %endif %if %{bundlesimdutf} Provides: bundled(simdutf) = 6.4.0 %endif -Provides: bundled(bspatch) -Provides: bundled(cacheinvalidation) = 20150720 -Provides: bundled(colorama) = 799604a104 -Provides: bundled(crashpad) -Provides: bundled(dmg_fp) -Provides: bundled(expat) = 2.2.0 -Provides: bundled(fdmlibm) = 5.3 +Provides: bundled(bspatch) = 465265d0d473d107b76e74d969199eaf2cdc8750 +Provides: bundled(colorama) = 0.4.6 +Provides: bundled(crashpad) = 8f131016b21d986c38ca4a0f091403dbb822d636 +Provides: bundled(expat) = 2.7.1 +Provides: bundled(fdmlibm) = c512d6173f33c6b8301d3fba9384edc9fc1f9e45 # Don't get too excited. MPEG and other legally problematic stuff is stripped out. %if %{bundleffmpegfree} -Provides: bundled(ffmpeg) = 6.0 +Provides: bundled(ffmpeg) = 7.1.git %endif %if %{bundlelibaom} -Provides: bundled(libaom) +Provides: bundled(libaom) = 3.12.1 %endif -Provides: bundled(fips181) = 2.2.3 - %if %{bundlefontconfig} -Provides: bundled(fontconfig) = 2.12.6 +Provides: bundled(fontconfig) = 8cf0ce700a8abe0d97ace4bf7efc7f9534b729ba %endif %if %{bundlefreetype} -Provides: bundled(freetype) = 2.11.0git +Provides: bundled(freetype) = VER-2-13-3-230-ge07e56c7f %endif -Provides: bundled(gperftools) = svn144 - %if %{bundleharfbuzz} -Provides: bundled(harfbuzz) = 2.4.0 +Provides: bundled(harfbuzz) = 11.0.0-97 %endif -Provides: bundled(hunspell) = 1.6.0 -Provides: bundled(iccjpeg) +Provides: bundled(hunspell) = 6d7d19f %if %{bundleicu} -Provides: bundled(icu) = 58.1 +Provides: bundled(icu) = 74-2 %endif -Provides: bundled(kitchensink) = 1 -Provides: bundled(leveldb) = 1.20 -Provides: bundled(libaddressinput) = 0 +Provides: bundled(leveldb) = 1.23 +Provides: bundled(libaddressinput) = 2610f7b104 %if %{bundlelibdrm} -Provides: bundled(libdrm) = 2.4.85 +Provides: bundled(libdrm) = 2.4.122 %endif -Provides: bundled(libjingle) = 9564 +Provides: bundled(libjingle) = 5493b8a59deb16cf0481e24707a0ed72d19047dc %if %{bundlelibjpeg} -Provides: bundled(libjpeg-turbo) = 1.4.90 +Provides: bundled(libjpeg-turbo) = 3.1.0 %endif -Provides: bundled(libphonenumber) = a4da30df63a097d67e3c429ead6790ad91d36cf4 +Provides: bundled(libphonenumber) = 140dfeb81b753388e8a672900fb7a971e9a0d362 %if %{bundlelibpng} -Provides: bundled(libpng) = 1.6.22 +Provides: bundled(libpng) = 1.6.43 %endif -Provides: bundled(libsrtp) = 2cbd85085037dc7bf2eda48d4cf62e2829056e2d +Provides: bundled(libsrtp) = fd08747fa6800b321d53e15feb34da12dc697dee %if %{bundlelibusbx} Provides: bundled(libusbx) = 1.0.17 @@ -878,22 +868,17 @@ Provides: bundled(libwebp) = 0.6.0 %endif %if %{bundlelibxml} -# Well, it's actually newer than 2.9.4 and has code in it that has been reverted upstream... but eh. -Provides: bundled(libxml) = 2.9.4 +Provides: bundled(libxml) = 2.14.2 %endif %if %{bundlelibXNVCtrl} Provides: bundled(libXNVCtrl) = 302.17 %endif -Provides: bundled(libyuv) = 1651 -Provides: bundled(lzma) = 15.14 -Provides: bundled(libudis86) = 1.7.1 -Provides: bundled(mesa) = 9.0.3 -Provides: bundled(NSBezierPath) = 1.0 -Provides: bundled(mozc) +Provides: bundled(libyuv) = 1909 +Provides: bundled(lzma) = 24.09 %if %{bundleopus} -Provides: bundled(opus) = 1.1.3 +Provides: bundled(opus) = 55513e81 %endif Provides: bundled(ots) = 8d70cffebbfa58f67a5c3ed0e9bc84dccdbc5bc0 @@ -1767,6 +1752,13 @@ fi %endif %changelog +* Wed Jun 11 2025 Than Ngo - 137.0.7151.103-1 +- Update to 137.0.7151.103 + * CVE-2025-5958: Use after free in Media + * CVE-2025-5959: Type Confusion in V8 +- Provide correct version for bundle librarires +- Fix rhbz#2368923, Chromium crash + * Tue Jun 03 2025 Than Ngo - 137.0.7151.68-1 - Update to 137.0.7151.68 * CVE-2025-5419: Out of bounds read and write in V8 diff --git a/sources b/sources index a90e9a2..6008d65 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-137.0.7151.68-clean.tar.xz) = e4f65bcb993141ebe6a100fa00bd64371ec15003626e0748ec9909970700bd98004bf5eb83d7a4b7a08d463bca06e19249a9a46e71e3a032a18b0ee833962fb8 +SHA512 (chromium-137.0.7151.103-clean.tar.xz) = 3e6fe1bf95a0b494299a62d3ae04d8f54825d2c9b8f8363aab7837a4692448ddc17251367d2f68d1502eb9724368cfbe25c8856aef20e111eb39a22cf456848a From f55a174b7c96a3fd7b81c3318bd8d3b107125e61 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 18 Jun 2025 10:27:03 +0200 Subject: [PATCH 160/244] - Update to 137.0.7151.119 * CVE-2025-6191: Integer overflow in V8 * CVE-2025-6192: Use after free in Profiler --- chromium.spec | 7 ++++++- sources | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 18197d5..3e00d74 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ %endif Name: chromium -Version: 137.0.7151.103 +Version: 137.0.7151.119 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1752,6 +1752,11 @@ fi %endif %changelog +* Wed Jun 18 2025 Than Ngo - 137.0.7151.119-1 +- Update to 137.0.7151.119 + * CVE-2025-6191: Integer overflow in V8 + * CVE-2025-6192: Use after free in Profiler + * Wed Jun 11 2025 Than Ngo - 137.0.7151.103-1 - Update to 137.0.7151.103 * CVE-2025-5958: Use after free in Media diff --git a/sources b/sources index 6008d65..07b5732 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-137.0.7151.103-clean.tar.xz) = 3e6fe1bf95a0b494299a62d3ae04d8f54825d2c9b8f8363aab7837a4692448ddc17251367d2f68d1502eb9724368cfbe25c8856aef20e111eb39a22cf456848a +SHA512 (chromium-137.0.7151.119-clean.tar.xz) = f30a176b8ff99b07b6c7743e3c4c72b2c176eb59ee60d827cd595ee473a42a0c2fafd02fb4c4f5d7332730df477564b2fbe35142a552422fabd7c1dc54a458ba From 99ff6b4d8515b7bb058e46146cda885a2b4d2466 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 24 Jun 2025 23:43:49 +0200 Subject: [PATCH 161/244] - Update to 138.0.7204.49 * CVE-2025-6555: Use after free in Animation * CVE-2025-6556: Insufficient policy enforcement in Loader * CVE-2025-6557: Insufficient data validation in DevTools --- 0001-Add-PPC64-support-for-boringssl.patch | 238 +- 0002-regenerate-xnn-buildgn.patch | 30939 +++++++++------- ...m-137-pdfium-png_decoder-build-error.patch | 14 - chromium-137-simdutf-7.x-build-error.patch | 21 - chromium-137-simdutf-build-error.patch | 12 - chromium-138-checkversion-nodejs.patch | 23 + chromium.spec | 25 +- sources | 2 +- 8 files changed, 16970 insertions(+), 14304 deletions(-) delete mode 100644 chromium-137-pdfium-png_decoder-build-error.patch delete mode 100644 chromium-137-simdutf-7.x-build-error.patch delete mode 100644 chromium-137-simdutf-build-error.patch create mode 100644 chromium-138-checkversion-nodejs.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index 85c38d9..248ad06 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/cpu_ppc64le.cc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/cpu_ppc64le.cc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/cpu_ppc64le.cc +} + +#endif // OPENSSL_PPC64LE -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/crypto.cc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/crypto.cc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/crypto.cc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/crypto.cc @@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -347,13 +347,13 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/crypto.cc + +HIDDEN unsigned long OPENSSL_ppc64le_hwcap2 = 0; + - #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) - - #if defined(OPENSSL_STATIC_ARMCAP) -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl + #elif (defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) && \ + !defined(OPENSSL_STATIC_ARMCAP) + HIDDEN uint32_t OPENSSL_armcap_P = 0; +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,10 +4164,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -81,6 +81,12 @@ inline int vpaes_capable(void) { return inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4195,10 +4195,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // OPENSSL_NO_ASM -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc @@ -104,6 +104,7 @@ #include "self_check/fips.cc.inc" #include "self_check/self_check.cc.inc" @@ -4207,10 +4207,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bcm.cc #include "sha/sha1.cc.inc" #include "sha/sha256.cc.inc" #include "sha/sha512.cc.inc" -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc @@ -330,6 +330,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4235,11 +4235,11 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -@@ -1231,6 +1231,8 @@ int EVP_has_aes_hardware(void) { +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +@@ -1229,6 +1229,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); @@ -4248,10 +4248,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4924,10 +4924,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc @@ -233,6 +233,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4942,10 +4942,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gc #endif gcm_init_nohw(out_table, H); -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc @@ -169,5 +169,15 @@ TEST(GCMTest, ABI) { } } @@ -4962,10 +4962,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/aes/gc +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4975,10 +4975,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/rand/getrandom_fi #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc @@ -431,6 +431,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -4991,10 +4991,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5012,10 +5012,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc @@ -0,0 +1,369 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. @@ -5386,10 +5386,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/internal.h +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/internal.h +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/internal.h @@ -59,8 +59,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ @@ -5402,7 +5402,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1401,6 +1402,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl +@@ -1394,6 +1395,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5419,10 +5419,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5744,10 +5744,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5854,10 +5854,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6121,10 +6121,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-136.0.7103.48/third_party/boringssl/src/include/openssl/target.h +Index: chromium-138.0.7204.35/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-136.0.7103.48/third_party/boringssl/src/include/openssl/target.h +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-138.0.7204.35/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6135,10 +6135,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -35,6 +35,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6148,10 +6148,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -56,7 +56,8 @@ type stringWriter interface { type processorType int @@ -6210,7 +6210,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ return statement, nil } -@@ -701,6 +713,191 @@ func (d *delocation) processAarch64Instr +@@ -703,6 +715,191 @@ func (d *delocation) processAarch64Instr return statement, nil } @@ -6402,7 +6402,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ func (d *delocation) gatherOffsets(symRef *node32, offsets string) (*node32, string) { for symRef != nil && symRef.pegRule == ruleOffset { offset := d.contents(symRef) -@@ -755,6 +952,215 @@ func (d *delocation) parseMemRef(memRef +@@ -757,6 +954,215 @@ func (d *delocation) parseMemRef(memRef return } @@ -6618,7 +6618,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ /* Intel */ type instructionType int -@@ -1368,6 +1774,8 @@ func writeAarch64Function(w stringWriter +@@ -1370,6 +1776,8 @@ func writeAarch64Function(w stringWriter func transform(w stringWriter, inputs []inputFile) error { // symbols contains all defined symbols. symbols := make(map[string]struct{}) @@ -6627,7 +6627,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ // fileNumbers is the set of IDs seen in .file directives. fileNumbers := make(map[int]struct{}) // maxObservedFileNumber contains the largest seen file number in a -@@ -1400,6 +1808,25 @@ func transform(w stringWriter, inputs [] +@@ -1402,6 +1810,25 @@ func transform(w stringWriter, inputs [] }, ruleStatement, ruleSymbolDefiningDirective, ruleSymbolDefiningDirectiveName) forEachPath(input.ast.up, func(node *node32) { @@ -6653,7 +6653,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ assertNodeType(node, ruleLocationDirective) directive := input.contents[node.begin:node.end] if !strings.HasPrefix(directive, ".file") { -@@ -1447,11 +1874,13 @@ func transform(w stringWriter, inputs [] +@@ -1449,11 +1876,13 @@ func transform(w stringWriter, inputs [] d := &delocation{ symbols: symbols, @@ -6667,7 +6667,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ gotExternalsNeeded: make(map[string]struct{}), gotOffsetsNeeded: make(map[string]struct{}), gotOffOffsetsNeeded: make(map[string]struct{}), -@@ -1486,6 +1915,22 @@ func transform(w stringWriter, inputs [] +@@ -1488,6 +1917,22 @@ func transform(w stringWriter, inputs [] for _, name := range redirectorNames { redirector := d.redirectors[name] switch d.processor { @@ -6690,7 +6690,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: writeAarch64Function(w, redirector, func(w stringWriter) { w.WriteString("\tb " + name + "\n") -@@ -1510,6 +1955,13 @@ func transform(w stringWriter, inputs [] +@@ -1512,6 +1957,13 @@ func transform(w stringWriter, inputs [] target := d.bssAccessorsNeeded[name] switch d.processor { @@ -6704,7 +6704,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ case x86_64: w.WriteString(".type " + funcName + ", @function\n") w.WriteString(funcName + ":\n") -@@ -1525,6 +1977,26 @@ func transform(w stringWriter, inputs [] +@@ -1527,6 +1979,26 @@ func transform(w stringWriter, inputs [] } switch d.processor { @@ -6731,7 +6731,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ case aarch64: externalNames := sortedSet(d.gotExternalsNeeded) for _, symbol := range externalNames { -@@ -1816,6 +2288,10 @@ func localTargetName(name string) string +@@ -1818,6 +2290,10 @@ func localTargetName(name string) string return ".L" + name + "_local_target" } @@ -6742,7 +6742,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ func isSynthesized(symbol string) bool { return strings.HasSuffix(symbol, "_bss_get") || strings.HasPrefix(symbol, "BORINGSSL_bcm_text_") -@@ -1870,6 +2346,8 @@ func detectProcessor(input inputFile) pr +@@ -1872,6 +2348,8 @@ func detectProcessor(input inputFile) pr switch instructionName { case "movq", "call", "leaq": return x86_64 @@ -6751,10 +6751,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. @@ -6768,10 +6768,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ # To regenerate delocate.peg.go: # -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6784,10 +6784,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6798,10 +6798,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6865,19 +6865,19 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6951,10 +6951,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.cc" + .abiversion 2 @@ -7117,10 +7117,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -7674,10 +7674,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.cc" + .abiversion 2 @@ -7905,10 +7905,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8587,10 +8587,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8615,10 +8615,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8798,11 +8798,11 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -+++ chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -@@ -367,6 +367,10 @@ static void sha1_block_data_order(uint32 +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +@@ -377,6 +377,10 @@ static void sha1_block_data_order(uint32 return; } #endif @@ -8813,10 +8813,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-136.0.7103.48/third_party/boringssl/src/build.json +Index: chromium-138.0.7204.35/third_party/boringssl/src/build.json =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/build.json -+++ chromium-136.0.7103.48/third_party/boringssl/src/build.json +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/build.json ++++ chromium-138.0.7204.35/third_party/boringssl/src/build.json @@ -128,6 +128,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} @@ -8828,7 +8828,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, {"src": "crypto/fipsmodule/bn/asm/bn-586.pl"}, -@@ -234,6 +238,7 @@ +@@ -237,6 +241,7 @@ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", @@ -8836,7 +8836,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/build.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -791,6 +796,9 @@ +@@ -798,6 +803,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8846,10 +8846,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-136.0.7103.48/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-138.0.7204.35/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-136.0.7103.48/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-138.0.7204.35/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8868,10 +8868,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-136.0.7103.48/third_party/boringssl/README.ppc64le +Index: chromium-138.0.7204.35/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/README.ppc64le ++++ chromium-138.0.7204.35/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8881,10 +8881,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.gni +Index: chromium-138.0.7204.35/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.gni +--- chromium-138.0.7204.35.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-138.0.7204.35/third_party/boringssl/src/gen/sources.gni @@ -121,6 +121,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", @@ -8901,7 +8901,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.gni "gen/bcm/ghash-ssse3-x86-apple.S", "gen/bcm/ghash-ssse3-x86-linux.S", "gen/bcm/ghash-ssse3-x86_64-apple.S", -@@ -333,6 +335,7 @@ crypto_sources = [ +@@ -336,6 +338,7 @@ crypto_sources = [ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch index 78977f4..dd44958 100644 --- a/0002-regenerate-xnn-buildgn.patch +++ b/0002-regenerate-xnn-buildgn.patch @@ -1,8 +1,10 @@ File regenerated by running 'python3 generate_build_gn.py' ---- a/third_party/xnnpack/BUILD.gn -+++ b/third_party/xnnpack/BUILD.gn -@@ -25,7 +25,7 @@ +Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn +=================================================================== +--- chromium-138.0.7204.35.orig/third_party/xnnpack/BUILD.gn ++++ chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn +@@ -25,7 +25,7 @@ config("xnnpack_config") { "src", ] @@ -11,7 +13,7 @@ File regenerated by running 'python3 generate_build_gn.py' "-Wno-unused-function", "-Wno-deprecated-comma-subscript", ] -@@ -54,11 +54,15 @@ +@@ -54,11 +54,15 @@ config("xnnpack_config") { } if (current_cpu == "x86" || current_cpu == "x64") { @@ -28,7 +30,7 @@ File regenerated by running 'python3 generate_build_gn.py' xnnpack_deps = [ ":configs_x64", ":enums_x64", -@@ -545,7 +549,7 @@ +@@ -560,7 +564,7 @@ if (current_cpu == "x64" || current_cpu ":xx-fill_x64", ":xx-pad_sse2-no-sse3", ":xx-pad_x64", @@ -37,7 +39,7 @@ File regenerated by running 'python3 generate_build_gn.py' ] xnnpack_standalone_deps = [ -@@ -572,8 +576,8 @@ +@@ -587,8 +591,8 @@ if (current_cpu == "x64" || current_cpu ":f16-qu8-vcvt_x64_standalone", ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", ":f16-rdminmax_x64_standalone", @@ -47,7 +49,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":f16-rminmax_f16c-no-avx2-no-fma_standalone", ":f16-rminmax_x64_standalone", ":f16-vapproxgelu_x64_standalone", -@@ -776,47 +780,47 @@ +@@ -794,47 +798,47 @@ if (current_cpu == "x64" || current_cpu ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", @@ -108,7 +110,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", ":qd8-f32-qc8w-igemm_x64_standalone", -@@ -847,9 +851,9 @@ +@@ -865,9 +869,9 @@ if (current_cpu == "x64" || current_cpu ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", @@ -120,7 +122,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":qs8-qc8w-gemm_sse2-no-sse3_standalone", ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", ":qs8-qc8w-gemm_x64_standalone", -@@ -857,9 +861,9 @@ +@@ -875,9 +879,9 @@ if (current_cpu == "x64" || current_cpu ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", @@ -132,7 +134,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":qs8-qc8w-igemm_sse2-no-sse3_standalone", ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", ":qs8-qc8w-igemm_x64_standalone", -@@ -872,8 +876,8 @@ +@@ -890,8 +894,8 @@ if (current_cpu == "x64" || current_cpu ":qs8-rdsum_x64_standalone", ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", ":qs8-rsum_f16c-fma-avx2_standalone", @@ -142,7 +144,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":qs8-rsum_ssse3-no-sse4.1_standalone", ":qs8-rsum_x64_standalone", ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", -@@ -1021,8 +1025,8 @@ +@@ -1051,8 +1055,8 @@ if (current_cpu == "x64" || current_cpu ":x64-transposec_x64_standalone", ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", ":x8-lut_f16c-fma-avx2_standalone", @@ -152,7 +154,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":x8-lut_x64_standalone", ":x8-packq_x64_standalone", ":x8-packw_x64_standalone", -@@ -1034,9 +1038,11 @@ +@@ -1064,9 +1068,11 @@ if (current_cpu == "x64" || current_cpu ":xx-fill_x64_standalone", ":xx-pad_sse2-no-sse3_standalone", ":xx-pad_x64_standalone", @@ -166,7 +168,7 @@ File regenerated by running 'python3 generate_build_gn.py' xnnpack_deps = [ ":configs_arm64", ":enums_arm64", -@@ -1235,7 +1241,7 @@ +@@ -1278,7 +1284,7 @@ if (current_cpu == "x64" || current_cpu ":xx-copy_arm64", ":xx-fill_arm64", ":xx-pad_arm64", @@ -175,7 +177,7 @@ File regenerated by running 'python3 generate_build_gn.py' ] xnnpack_standalone_deps = [ -@@ -1248,12 +1254,12 @@ +@@ -1291,12 +1297,12 @@ if (current_cpu == "x64" || current_cpu ":f16-f32-vcvt_arm64_standalone", ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", @@ -190,7 +192,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":f16-maxpool_arch=armv8.2-a+fp16_standalone", ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", ":f16-qs8-vcvt_arm64_standalone", -@@ -1341,12 +1347,12 @@ +@@ -1387,12 +1393,12 @@ if (current_cpu == "x64" || current_cpu ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", @@ -205,7 +207,7 @@ File regenerated by running 'python3 generate_build_gn.py' ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -@@ -1436,7 +1442,247 @@ +@@ -1492,7 +1498,259 @@ if (current_cpu == "x64" || current_cpu ":xx-copy_arm64_standalone", ":xx-fill_arm64_standalone", ":xx-pad_arm64_standalone", @@ -291,6 +293,9 @@ File regenerated by running 'python3 generate_build_gn.py' + ":qs8-vlrelu_ppc64", + ":qs8-vmul_ppc64", + ":qs8-vmulc_ppc64", ++ ":qs8-vprelu_ppc64", ++ ":qs8-vpreluc_ppc64", ++ ":qs8-vrpreluc_ppc64", + ":qu8-dwconv_ppc64", + ":qu8-f32-vcvt_ppc64", + ":qu8-gemm_ppc64", @@ -303,6 +308,9 @@ File regenerated by running 'python3 generate_build_gn.py' + ":qu8-vlrelu_ppc64", + ":qu8-vmul_ppc64", + ":qu8-vmulc_ppc64", ++ ":qu8-vprelu_ppc64", ++ ":qu8-vpreluc_ppc64", ++ ":qu8-vrpreluc_ppc64", + ":reference_ppc64", + ":s8-ibilinear_ppc64", + ":s8-maxpool_ppc64", @@ -410,6 +418,9 @@ File regenerated by running 'python3 generate_build_gn.py' + ":qs8-vlrelu_ppc64_standalone", + ":qs8-vmul_ppc64_standalone", + ":qs8-vmulc_ppc64_standalone", ++ ":qs8-vprelu_ppc64_standalone", ++ ":qs8-vpreluc_ppc64_standalone", ++ ":qs8-vrpreluc_ppc64_standalone", + ":qu8-dwconv_ppc64_standalone", + ":qu8-f32-vcvt_ppc64_standalone", + ":qu8-gemm_ppc64_standalone", @@ -422,6 +433,9 @@ File regenerated by running 'python3 generate_build_gn.py' + ":qu8-vlrelu_ppc64_standalone", + ":qu8-vmul_ppc64_standalone", + ":qu8-vmulc_ppc64_standalone", ++ ":qu8-vprelu_ppc64_standalone", ++ ":qu8-vpreluc_ppc64_standalone", ++ ":qu8-vrpreluc_ppc64_standalone", + ":reference_ppc64_standalone", + ":s8-ibilinear_ppc64_standalone", + ":s8-maxpool_ppc64_standalone", @@ -454,7 +468,7 @@ File regenerated by running 'python3 generate_build_gn.py' ] } else { xnnpack_deps = [] -@@ -1451,8 +1697,8 @@ +@@ -1507,8 +1765,8 @@ source_set("xnnpack") { configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] sources = [ @@ -465,7 +479,7 @@ File regenerated by running 'python3 generate_build_gn.py' "src/src/allocator.c", "src/src/cache.c", "src/src/datatype.c", -@@ -1472,15 +1718,15 @@ +@@ -1528,15 +1786,15 @@ source_set("xnnpack") { "src/src/runtime.c", "src/src/sanitizers.c", "src/src/subgraph.c", @@ -487,7 +501,7 @@ File regenerated by running 'python3 generate_build_gn.py' public_configs = [ ":xnnpack_config" ] } -@@ -1494,8 +1740,8 @@ +@@ -1550,8 +1808,8 @@ source_set("xnnpack_standalone") { configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] sources = [ @@ -498,7 +512,7 @@ File regenerated by running 'python3 generate_build_gn.py' "src/src/allocator.c", "src/src/cache.c", "src/src/datatype.c", -@@ -1515,15 +1761,15 @@ +@@ -1571,15 +1829,15 @@ source_set("xnnpack_standalone") { "src/src/runtime.c", "src/src/sanitizers.c", "src/src/subgraph.c", @@ -520,7 +534,7 @@ File regenerated by running 'python3 generate_build_gn.py' public_configs = [ ":xnnpack_config" ] -@@ -1533,39160 +1779,47034 @@ +@@ -1589,40466 +1847,48672 @@ source_set("xnnpack_standalone") { } if (current_cpu == "x64" || current_cpu == "x86") { @@ -1881,7 +1895,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -1927,7 +1941,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", - ] +source_set("f16-f32acc-gemm_f16c-fma-avx2") { + cflags = [ @@ -2421,7 +2435,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c" ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -2473,7 +2487,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u64-acc4.c" ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -3593,22 +3607,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -3620,8 +3618,10 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mfma" + ] -- public_configs = [ ":xnnpack_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", @@ -3629,6 +3629,29 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" + ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - source_set("f16-velu_f16c-fma-avx2_standalone") { - cflags = [ @@ -3636,13 +3659,114 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f16-vexp_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_x64_standalone") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -3666,15 +3790,18 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { + cflags = [ + "-mavx512bw", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", ++ "-mavx512fp16", + "-mavx512vl", ++ "-mavx512vnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] - if (!(is_android && use_order_profiling)) { @@ -3683,12 +3810,12 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" + ] -- source_set("f16-vexp_x64") { +- source_set("f16-vgelu_x64") { - cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -3696,7 +3823,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -3724,14 +3851,377 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f16-vexp_x64_standalone") { +- source_set("f16-vgelu_x64_standalone") { - cflags = [] ++source_set("f16-rminmax_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f16-vhswish_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-rminmax_x64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_x64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++source_set("f16-vapproxgelu_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- source_set("f16-vrnd_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", - ] -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { + cflags = [ + "-mavx512bw", + "-mavx512cd", @@ -3757,9 +4247,25 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -3778,17 +4284,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("f16-vgelu_x64") { -- cflags = [] +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { + cflags = [ + "-mavx512bw", + "-mavx512cd", @@ -3814,9 +4324,25 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -3826,8 +4352,12 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f16-vgelu_x64_standalone") { -- cflags = [] +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -3837,7 +4367,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -3857,7 +4387,7 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-rminmax_f16c-no-avx2-no-fma") { ++source_set("f16-vbinary_f16c-no-avx2-no-fma") { + cflags = [ + "-mf16c", + "-mno-avx2", @@ -3870,497 +4400,25 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" -+ ] - -- source_set("f16-vhswish_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+source_set("f16-rminmax_x64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_x64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", -- ] -+source_set("f16-vapproxgelu_x64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-vrnd_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_x64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" + ] - source_set("f16-vsigmoid_f16c-fma-avx2") { @@ -4381,7 +4439,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -4395,90 +4453,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +} -- # This is a target that cannot depend on //base. -- source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", -- ] -+source_set("f16-vbinary_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" -+ ] - - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vsin_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] +# This is a target that cannot depend on //base. +source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { + cflags = [ @@ -4487,15 +4465,12 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-fma" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", +- # This is a target that cannot depend on //base. +- source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", - ] + sources = [ + "src/include/xnnpack.h", @@ -4520,119 +4495,9 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" + ] -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_x64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- public_configs = [ ":xnnpack_config" ] -+source_set("f16-vclamp_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" -+ ] - -- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -4666,18 +4531,114 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f16-vtanh_f16c-fma-no-avx2") { +- source_set("f16-vsin_x64") { +- cflags = [] ++source_set("f16-vclamp_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", -- "-mfma", - "-mno-avx2", +- "-mno-fma", - ] +source_set("f16-vcos_x64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", - ] + ] @@ -4703,11 +4664,11 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { +- source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mfma", - "-mno-avx2", +- "-mno-fma", - ] + deps = [ + "//third_party/cpuinfo", @@ -4718,7 +4679,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -4749,11 +4710,11 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] -- source_set("f16-vtanh_f16c-no-avx2-no-fma") { +- source_set("f16-vtanh_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", +- "-mfma", - "-mno-avx2", -- "-mno-fma", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -4761,7 +4722,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -4789,11 +4750,11 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { +- source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", +- "-mfma", - "-mno-avx2", -- "-mno-fma", - ] +source_set("f16-velu_f16c-fma-avx2") { + cflags = [ @@ -4804,7 +4765,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -4840,7 +4801,7 @@ File regenerated by running 'python3 generate_build_gn.py' + public_configs = [ ":xnnpack_config" ] +} -- source_set("f16-vunary_f16c-no-avx2-no-fma") { +- source_set("f16-vtanh_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", @@ -4856,7 +4817,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -4887,7 +4848,7 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { +- source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", - "-mno-avx2", @@ -4897,7 +4858,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] @@ -4929,10 +4890,11 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -- source_set("f16-vunary_sse2-no-sse3") { +- source_set("f16-vunary_f16c-no-avx2-no-fma") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -4940,8 +4902,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -4970,17 +4931,17 @@ File regenerated by running 'python3 generate_build_gn.py' + cflags = [ - # This is a target that cannot depend on //base. -- source_set("f16-vunary_sse2-no-sse3_standalone") { +- source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", - ] + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -5019,7 +4980,7 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-argmaxpool_sse2-no-sse3") { +- source_set("f16-vunary_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", @@ -5029,7 +4990,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", +- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", - ] + ] @@ -5055,7 +5017,7 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_sse2-no-sse3_standalone") { +- source_set("f16-vunary_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", @@ -5069,7 +5031,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", +- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -5100,15 +5063,18 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] -- source_set("f32-argmaxpool_x64") { -- cflags = [] +- source_set("f32-argmaxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -5136,12 +5102,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_x64_standalone") { -- cflags = [] +- source_set("f32-argmaxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", - ] +source_set("f16-vhswish_f16c-no-avx2-no-fma") { + cflags = [ @@ -5181,17 +5150,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("f32-avgpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] +- source_set("f32-argmaxpool_x64") { +- cflags = [] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] +# This is a target that cannot depend on //base. +source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { @@ -5223,11 +5189,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f32-avgpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] +- source_set("f32-argmaxpool_x64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -5237,7 +5200,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -5273,15 +5236,20 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" + ] -- source_set("f32-avgpool_x64") { -- cflags = [] +- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -5314,8 +5282,13 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-avgpool_x64_standalone") { -- cflags = [] +- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" @@ -5323,7 +5296,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -5357,11 +5330,8 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-conv-hwc2chw_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] +- source_set("f32-avgpool_avx512f") { +- cflags = [ "-mavx512f" ] +source_set("f16-vmulcaddc_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", @@ -5371,7 +5341,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -5402,17 +5372,14 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] +- source_set("f32-avgpool_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", - ] +# This is a target that cannot depend on //base. +source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { @@ -5453,13 +5420,16 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- source_set("f32-conv-hwc2chw_x64") { -- cflags = [] +- source_set("f32-avgpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + public_configs = [ ":xnnpack_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] @@ -5494,15 +5464,18 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_x64_standalone") { -- cflags = [] +- source_set("f32-avgpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -5545,21 +5518,15 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" + ] -- source_set("f32-dwconv2d-chw_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] +- source_set("f32-avgpool_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -5587,10 +5554,12 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", +- source_set("f32-avgpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] +source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { + cflags = [ @@ -5599,18 +5568,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-fma" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5621,11 +5578,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -5633,17 +5599,17 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- source_set("f32-conv-hwc2chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] + public_configs = [ ":xnnpack_config" ] +} -- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", - ] +# This is a target that cannot depend on //base. +source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { @@ -5653,15 +5619,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-fma" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5672,10 +5629,134 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-vsigmoid_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] + +- source_set("f32-conv-hwc2chw_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -5685,7 +5766,135 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-dwconv2d-chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++source_set("f16-vsin_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] + +- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -5697,11 +5906,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.1", - "-mssse3", - ] -+source_set("f16-vsigmoid_f16c-fma-avx2") { ++source_set("f16-vsqrt_f16c-no-avx2-no-fma") { + cflags = [ -+ "-mavx2", + "-mf16c", -+ "-mfma" ++ "-mno-avx2", ++ "-mno-fma" + ] - sources = [ @@ -5710,7 +5919,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5768,18 +5977,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { ++source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ "-mavx2", + "-mf16c", -+ "-mfma" ++ "-mno-avx2", ++ "-mno-fma" + ] - public_configs = [ ":xnnpack_config" ] - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" + ] - # This is a target that cannot depend on //base. @@ -5836,8 +6045,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("f16-vsin_x64") { ++source_set("f16-vtanh_f16c-fma-no-avx2") { + cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -5846,6 +6059,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5858,17 +6074,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -5877,12 +6095,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", @@ -5891,8 +6105,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -5904,12 +6123,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vsin_x64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] - public_configs = [ ":xnnpack_config" ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -5926,9 +6148,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5941,18 +6165,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("f32-dwconv_avx512f_standalone") { @@ -5965,8 +6184,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5977,13 +6195,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vsqrt_f16c-no-avx2-no-fma") { ++source_set("f16-vtanh_f16c-no-avx2-no-fma") { + cflags = [ + "-mf16c", + "-mno-avx2", @@ -5996,7 +6210,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" + ] - source_set("f32-dwconv_f16c-fma-no-avx2") { @@ -6039,7 +6253,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { ++source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", + "-mno-avx2", @@ -6055,7 +6269,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" + ] - sources = [ @@ -6102,11 +6316,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse2", - "-msse", - ] -+source_set("f16-vtanh_f16c-fma-no-avx2") { ++source_set("f16-vunary_f16c-no-avx2-no-fma") { + cflags = [ + "-mf16c", -+ "-mfma", -+ "-mno-avx2" ++ "-mno-avx2", ++ "-mno-fma" + ] - sources = [ @@ -6118,7 +6332,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -6161,11 +6375,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { ++source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", -+ "-mfma", -+ "-mno-avx2" ++ "-mno-avx2", ++ "-mno-fma" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -6180,7 +6394,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -6251,11 +6465,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", - ] -+source_set("f16-vtanh_f16c-no-avx2-no-fma") { ++source_set("f16-vunary_sse2-no-sse3") { + cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" ++ "-mno-sse3", ++ "-msse2" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -6270,7 +6483,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -6304,11 +6518,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { ++source_set("f16-vunary_sse2-no-sse3_standalone") { + cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" ++ "-mno-sse3", ++ "-msse2" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -6323,7 +6536,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -6369,11 +6583,10 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vunary_f16c-no-avx2-no-fma") { ++source_set("f32-argmaxpool_sse2-no-sse3") { + cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" ++ "-mno-sse3", ++ "-msse2" + ] - if (!(is_android && use_order_profiling)) { @@ -6394,7 +6607,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" + ] - sources = [ @@ -6440,11 +6653,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { ++source_set("f32-argmaxpool_sse2-no-sse3_standalone") { + cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" ++ "-mno-sse3", ++ "-msse2" + ] - sources = [ @@ -6453,7 +6665,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -6469,15 +6681,15 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -6494,20 +6706,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-avx2", - "-mno-fma", - ] -+source_set("f16-vunary_sse2-no-sse3") { ++source_set("f32-argmaxpool_x64") { + cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -6520,18 +6725,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { @@ -6540,105 +6743,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-avx2", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-vunary_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- source_set("f32-f16-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("f32-argmaxpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -6646,6 +6750,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6656,15 +6767,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_x64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" + ] - if (!(is_android && use_order_profiling)) { @@ -6673,13 +6780,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] -- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { +- source_set("f32-f16-vcvt_sse2-no-sse3") { - cflags = [ -- "-mno-sse4.2", -- "-msse4.1", +- "-mno-sse3", +- "-msse2", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -6687,7 +6794,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -6715,18 +6822,23 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { +- source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { - cflags = [ -- "-mno-sse4.2", -- "-msse4.1", +- "-mno-sse3", +- "-msse2", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", - ] -+source_set("f32-argmaxpool_x64") { ++source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { + cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -6738,24 +6850,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" + ] - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-f16-vcvt_x64") { -- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -6763,13 +6871,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", - ] + public_configs = [ ":xnnpack_config" ] +} +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6780,12 +6902,102 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_x64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-avgpool_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" ++ ] + +- source_set("f32-f16-vcvt_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" + ] - # This is a target that cannot depend on //base. @@ -6793,7 +7005,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" + ] - sources = [ @@ -7205,9 +7417,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", @@ -7248,9 +7457,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", @@ -8042,9 +8248,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", @@ -8086,9 +8289,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", @@ -9691,9 +9891,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", @@ -9753,9 +9950,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", @@ -9862,7 +10056,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] @@ -9884,34 +10077,30 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - # This is a target that cannot depend on //base. - source_set("f32-qs8-vcvt_x64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_config" ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] -+source_set("f32-ibilinear-chw_x64") { -+ cflags = [ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -9923,21 +10112,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] ++source_set("f32-ibilinear-chw_x64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] - source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { - cflags = [ @@ -9946,6 +10134,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -9953,13 +10149,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9970,13 +10159,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_x64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] - } -+ ] ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_x64_standalone") { ++ cflags = [ - # This is a target that cannot depend on //base. - source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -9986,18 +10176,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -10009,6 +10197,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -10016,16 +10209,11 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ public_configs = [ ":xnnpack_config" ] - source_set("f32-qu8-vcvt_f16c-fma-avx2") { - cflags = [ @@ -10033,7 +10221,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -- ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", @@ -10290,14 +10482,63 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-qu8-vcvt_x64") { - cflags = [] -- ++source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] -+source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", + "-mno-avx2", @@ -10313,7 +10554,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] + sources = [ + "src/include/xnnpack.h", @@ -10324,20 +10565,69 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_x64_standalone") { -- cflags = [] -- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-raddstoreexpminusmax_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_config" ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f32-igemm_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -10361,12 +10651,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++source_set("f32-igemm_avx512f_standalone") { + cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" ++ "-mavx512f" + ] - if (!(is_android && use_order_profiling)) { @@ -10375,21 +10662,25 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" + ] -- source_set("f32-raddstoreexpminusmax_avx512f") { -- cflags = [ "-mavx512f" ] +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -10417,23 +10708,33 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+source_set("f32-igemm_avx512f") { +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-igemm_f16c-fma-no-avx2") { + cflags = [ -+ "-mavx512f" ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -10458,108 +10759,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} - -- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("f32-igemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" -+ ] - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -10576,19 +10775,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -10601,31 +10800,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", @@ -10638,13 +10812,36 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" + ] +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -10656,35 +10853,49 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("f32-igemm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] - source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", - ] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10695,19 +10906,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-igemm_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" + ] - # This is a target that cannot depend on //base. @@ -10716,20 +10924,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -10741,15 +10949,95 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-raddstoreexpminusmax_x64") { +- cflags = [] ++source_set("f32-igemm_x64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] + public_configs = [ ":xnnpack_config" ] +} -- public_configs = [ ":xnnpack_config" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("f32-igemm_sse-no-sse2_standalone") { ++source_set("f32-igemm_x64_standalone") { + cflags = [ -+ "-mno-sse2", -+ "-msse" + +- public_configs = [ ":xnnpack_config" ] + ] - if (!(is_android && use_order_profiling)) { @@ -10758,20 +11046,31 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] -- source_set("f32-raddstoreexpminusmax_x64") { -- cflags = [] +- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -10798,93 +11097,6 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -+source_set("f32-igemm_x64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_x64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - - # This is a target that cannot depend on //base. - source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -10893,30 +11105,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10927,40 +11122,39 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-rdminmax_avx512f") { -- cflags = [ "-mavx512f" ] +source_set("f32-maxpool_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] + +- source_set("f32-rdminmax_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -10973,30 +11167,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] + public_configs = [ ":xnnpack_config" ] +} -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", -- ] +- public_configs = [ ":xnnpack_config" ] +- } +# This is a target that cannot depend on //base. +source_set("f32-maxpool_sse2-no-sse3_standalone") { + cflags = [ @@ -11004,6 +11179,23 @@ File regenerated by running 'python3 generate_build_gn.py' + "-msse2" + ] +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11014,15 +11206,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -12040,7 +12223,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -12089,7 +12272,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -12123,10 +12306,10 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-rsum_sse-no-sse2") { +- source_set("f32-rsum_sse2-no-sse3") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] +source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { + cflags = [ @@ -12137,7 +12320,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -12169,17 +12352,17 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-rsum_sse-no-sse2_standalone") { +- source_set("f32-rsum_sse2-no-sse3_standalone") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", - ] +# This is a target that cannot depend on //base. +source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { @@ -12577,7 +12760,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] @@ -12617,7 +12800,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -13150,7 +13333,6 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] @@ -13223,7 +13405,6 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] @@ -13493,7 +13674,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c", +- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -13540,7 +13721,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c", +- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -13589,7 +13770,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -13627,7 +13808,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", - ] +# This is a target that cannot depend on //base. +source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -13672,16 +13853,16 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- source_set("f32-vclamp_sse-no-sse2") { +- source_set("f32-vclamp_sse2-no-sse3") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] + public_configs = [ ":xnnpack_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c", +- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] @@ -13712,10 +13893,10 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-vclamp_sse-no-sse2_standalone") { +- source_set("f32-vclamp_sse2-no-sse3_standalone") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -13723,7 +13904,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c", +- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -13770,7 +13951,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -13803,7 +13984,7 @@ File regenerated by running 'python3 generate_build_gn.py' - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] +source_set("f32-qu8-vcvt_x64") { + cflags = [ @@ -13823,7 +14004,6 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] @@ -13875,7 +14055,6 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-mavx512f" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] @@ -14645,7 +14824,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -14684,7 +14863,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", - ] +# This is a target that cannot depend on //base. +source_set("f32-rdminmax_avx512f_standalone") { @@ -14983,22 +15162,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -15006,51 +15169,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ @@ -15059,133 +15197,69 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" + ] - -- source_set("f32-velu_avx512f") { -- cflags = [ "-mavx512f" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ +source_set("f32-rdsum_avx512f") { + cflags = [ + "-mavx512f" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("f32-velu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-rdsum_avx512f_standalone") { + cflags = [ + "-mavx512f" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -15610,7 +15684,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c" ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -15635,7 +15709,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-avx512f-u64-acc4.c" ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -15656,15 +15730,15 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + -+source_set("f32-rsum_sse-no-sse2") { ++source_set("f32-rsum_sse2-no-sse3") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c" ++ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -15682,15 +15756,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} + +# This is a target that cannot depend on //base. -+source_set("f32-rsum_sse-no-sse2_standalone") { ++source_set("f32-rsum_sse2-no-sse3_standalone") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-sse-u16-acc4.c" ++ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -15942,7 +16016,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -15967,7 +16041,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-nr.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16580,7 +16654,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16608,7 +16682,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx-u16.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16636,7 +16710,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16661,7 +16735,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx512f-u16.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16682,15 +16756,15 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + -+source_set("f32-vclamp_sse-no-sse2") { ++source_set("f32-vclamp_sse2-no-sse3") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16708,15 +16782,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} + +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_sse-no-sse2_standalone") { ++source_set("f32-vclamp_sse2-no-sse3_standalone") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-sse-u8.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16744,7 +16818,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16769,7 +16843,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -17310,7 +17384,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c" ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -17335,7 +17409,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-nr.c" ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -17752,7 +17826,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] + @@ -17778,7 +17851,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] + @@ -18143,7 +18215,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18168,7 +18240,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18364,7 +18436,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18392,7 +18464,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18420,7 +18492,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18445,7 +18517,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18475,7 +18547,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18502,7 +18574,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18523,15 +18595,15 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + -+source_set("f32-vhswish_sse-no-sse2") { ++source_set("f32-vhswish_sse2-no-sse3") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18549,15 +18621,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} + +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_sse-no-sse2_standalone") { ++source_set("f32-vhswish_sse2-no-sse3_standalone") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18585,7 +18657,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18610,7 +18682,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19289,6 +19361,173 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + ++source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrelu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("f32-vrelu_x64") { + cflags = [ + @@ -19296,7 +19535,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19321,7 +19560,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19596,13 +19835,9 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", + "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19628,13 +19863,9 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", + "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19665,7 +19896,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19693,7 +19925,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19721,7 +19954,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19746,7 +19980,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19767,16 +20002,15 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + -+source_set("f32-vrsqrt_f16c-fma-no-avx2") { ++source_set("f32-vrsqrt_sse2-no-sse3") { + cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19794,71 +20028,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_f16c-fma-no-avx2_standalone") { ++source_set("f32-vrsqrt_sse2-no-sse3_standalone") { + cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} -+ -+source_set("f32-vrsqrt_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19887,7 +20065,7 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19913,7 +20091,7 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20332,7 +20510,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c" ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20357,7 +20535,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c" ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20553,7 +20731,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20581,7 +20760,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20609,7 +20789,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20634,7 +20814,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20655,16 +20835,15 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + -+source_set("f32-vsqrt_f16c-fma-no-avx2") { ++source_set("f32-vsqrt_sse2-no-sse3") { + cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20682,71 +20861,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} + +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_f16c-fma-no-avx2_standalone") { ++source_set("f32-vsqrt_sse2-no-sse3_standalone") { + cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} -+ -+source_set("f32-vsqrt_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20774,7 +20897,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20799,7 +20922,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20886,7 +21009,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20911,7 +21034,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -23865,7 +23988,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] + @@ -23893,7 +24015,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] + @@ -24373,7 +24494,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] + @@ -24401,7 +24521,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] + @@ -24732,10 +24851,8 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] + @@ -24762,10 +24879,8 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] + @@ -25142,7 +25257,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] + @@ -25168,7 +25282,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] + @@ -25747,13 +25860,10 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] + @@ -25780,13 +25890,10 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] + @@ -26386,9 +26493,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -26414,9 +26519,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -27016,9 +27119,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -27044,9 +27145,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -28815,7 +28914,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] + @@ -28841,7 +28939,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] + @@ -29151,8 +29248,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -29177,8 +29273,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -29643,6 +29738,336 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + ++source_set("qs8-vprelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vprelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vprelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vprelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vrpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vrpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vrpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -29868,37 +30293,74 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-dwconv_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -29936,29 +30398,47 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} + +source_set("qu8-dwconv_x64") { + cflags = [ -+ + +- source_set("f32-velu_avx512f") { +- cflags = [ "-mavx512f" ] + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -29982,10 +30462,8 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] + @@ -30001,12 +30479,16 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -30014,12 +30496,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30058,26 +30554,50 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-velu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +source_set("qu8-f32-vcvt_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30108,7 +30628,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -30120,9 +30641,16 @@ File regenerated by running 'python3 generate_build_gn.py' + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -30133,12 +30661,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30180,25 +30722,48 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-velu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-f32-vcvt_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30237,23 +30802,44 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30274,7 +30860,8 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" @@ -30292,20 +30879,38 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-velu_x64") { +- cflags = [] +source_set("qu8-f32-vcvt_x64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] + @@ -30331,7 +30936,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] + @@ -30347,12 +30951,16 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-velu_x64_standalone") { +- cflags = [] +source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -30360,13 +30968,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30406,27 +31028,52 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-gemm_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30467,12 +31114,21 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -30483,13 +31139,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30532,26 +31202,46 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vexp_avx512f") { +- cflags = [ "-mavx512f" ] +source_set("qu8-gemm_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30591,24 +31281,42 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +source_set("qu8-gemm_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30646,24 +31354,46 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vexp_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +source_set("qu8-gemm_x64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -30689,9 +31419,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -30707,12 +31435,20 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -30720,13 +31456,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30740,7 +31490,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + public_configs = [ ":xnnpack_config" ] +} -+ + +- public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. +source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ @@ -30768,25 +31519,47 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vexp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-igemm_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30825,14 +31598,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -30843,17 +31623,32 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -30885,7 +31680,10 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -30897,21 +31695,37 @@ File regenerated by running 'python3 generate_build_gn.py' + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vexp_x64") { +- cflags = [] +source_set("qu8-igemm_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30949,26 +31763,44 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_x64_standalone") { +- cflags = [] +source_set("qu8-igemm_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30995,7 +31827,8 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" + ] -+ + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31008,22 +31841,44 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-igemm_x64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -31046,12 +31901,11 @@ File regenerated by running 'python3 generate_build_gn.py' + cflags = [ + + ] -+ + +- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] + @@ -31070,20 +31924,42 @@ File regenerated by running 'python3 generate_build_gn.py' + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-rdsum_ssse3-no-sse4.1") { + cflags = [ + "-mno-sse4.1", + "-mssse3" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31120,19 +31996,39 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vgelu_avx512f") { +- cflags = [ "-mavx512f" ] +source_set("qu8-rdsum_x64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" @@ -31173,26 +32069,44 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +source_set("qu8-rsum_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31223,7 +32137,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31232,23 +32147,46 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vgelu_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +source_set("qu8-rsum_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31285,19 +32223,41 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +source_set("qu8-rsum_x64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" @@ -31338,14 +32298,23 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vgelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -31353,12 +32322,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31399,24 +32382,45 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-vadd_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31430,7 +32434,8 @@ File regenerated by running 'python3 generate_build_gn.py' + + public_configs = [ ":xnnpack_config" ] +} -+ + +- public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. +source_set("qu8-vadd_f16c-fma-avx2_standalone") { + cflags = [ @@ -31456,12 +32461,17 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vgelu_x64") { +- cflags = [] +source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -31472,12 +32482,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31521,23 +32545,41 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_x64_standalone") { +- cflags = [] +source_set("qu8-vadd_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31548,7 +32590,8 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] +} + @@ -31574,29 +32617,54 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-vadd_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31634,20 +32702,43 @@ File regenerated by running 'python3 generate_build_gn.py' + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +source_set("qu8-vadd_x64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31686,12 +32777,17 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vhswish_avx512f") { +- cflags = [ "-mavx512f" ] +source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -31699,12 +32795,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31745,10 +32855,11 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} + +source_set("qu8-vaddc_f16c-fma-avx2") { @@ -31757,16 +32868,33 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31800,14 +32928,24 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vhswish_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -31818,12 +32956,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31867,23 +33019,45 @@ File regenerated by running 'python3 generate_build_gn.py' + ] + + public_configs = [ ":xnnpack_config" ] -+ + +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +source_set("qu8-vaddc_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31920,25 +33094,48 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- source_set("f32-vhswish_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-vaddc_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31968,7 +33165,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31980,9 +33178,15 @@ File regenerated by running 'python3 generate_build_gn.py' + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +source_set("qu8-vaddc_x64") { + cflags = [ + @@ -32326,7 +33530,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] + @@ -32352,7 +33555,6 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] + @@ -32662,8 +33864,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -32688,8 +33889,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -33154,6 +34354,336 @@ File regenerated by running 'python3 generate_build_gn.py' + } +} + ++source_set("qu8-vprelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vprelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vprelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vprelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vrpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vrpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vrpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("reference_x64") { + cflags = [ + @@ -34027,6 +35557,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/subgraph/static-resize-bilinear-2d.c", + "src/src/subgraph/static-slice.c", + "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", + "src/src/subgraph/unary.c", + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" @@ -34079,6 +35610,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/subgraph/static-resize-bilinear-2d.c", + "src/src/subgraph/static-slice.c", + "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", + "src/src/subgraph/unary.c", + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" @@ -34720,7 +36252,7 @@ File regenerated by running 'python3 generate_build_gn.py' + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} + +source_set("u8-vclamp_f16c-fma-avx2") { @@ -34756,60 +36288,30 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-velu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -34820,52 +36322,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ @@ -34877,343 +36353,164 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-velu_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("u8-vclamp_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_x64_standalone") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("u8-vclamp_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" + ] - -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -- ] ++ +source_set("u8-vclamp_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vexp_avx512f") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-vclamp_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("x16-packw_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x16-packw_f16c-fma-avx2_standalone") { + cflags = [ @@ -35221,113 +36518,56 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-vexp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("x16-transposec_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("x16-transposec_f16c-fma-avx2_standalone") { + cflags = [ @@ -35335,248 +36575,67 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mf16c", + "-mfma" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" + ] - -- source_set("f32-vexp_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_x64_standalone") { -- cflags = [] ++ +source_set("x16-transposec_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x16-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("x16-transposec_x64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] - -- source_set("f32-vgelu_avx512f") { -- cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("x16-transposec_x64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-nr.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -35587,341 +36646,159 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vgelu_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -+source_set("x16-x32-packw_x64") { ++ ++source_set("x16-transposec_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_x64_standalone") { ++source_set("x16-transposec_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - -- source_set("f32-vgelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+source_set("x24-transposec_ssse3-no-sse4.1") { ++ ++source_set("x16-x32-packw_x64") { + cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("f32-vgelu_x64") { -- cflags = [] ++ ++# This is a target that cannot depend on //base. ++source_set("x16-x32-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x24-transposec_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ +# This is a target that cannot depend on //base. +source_set("x24-transposec_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", + "-mssse3" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_x64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("x24-transposec_x64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] - -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("x24-transposec_x64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx-u16.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -35932,20 +36809,67 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vhswish_avx512f") { -- cflags = [ "-mavx512f" ] ++ ++source_set("x24-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x24-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -35953,11 +36877,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", @@ -35966,40 +36886,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ @@ -36008,17 +36909,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mno-f16c", + "-mno-fma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", @@ -36038,33 +36929,19 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vhswish_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("x32-packw_avx512f") { + cflags = [ + "-mavx512f" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", @@ -36072,60 +36949,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-packw_avx512f_standalone") { + cflags = [ + "-mavx512f" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", @@ -36133,76 +36977,497 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-vhswish_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("x32-packw_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-packw_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-transposec_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-unpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-unpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x64-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" ++ ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-sse-u8.c", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -36226,7 +37491,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("x32-packw_sse2-no-sse3_standalone") { ++source_set("x64-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" @@ -36238,8 +37503,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" + ] - source_set("f32-vhswish_x64") { @@ -36250,7 +37514,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -36283,9 +37547,9 @@ File regenerated by running 'python3 generate_build_gn.py' - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] -+source_set("x32-packw_x64") { ++source_set("x64-transposec_x64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36303,12 +37567,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - if (!(is_android && use_order_profiling)) { @@ -36346,7 +37605,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("x32-packw_x64_standalone") { ++source_set("x64-transposec_x64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -36358,12 +37617,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-mavx512f" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - sources = [ @@ -36408,7 +37662,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { ++source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", + "-mno-avx2", @@ -36422,7 +37676,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36463,7 +37717,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", - ] +# This is a target that cannot depend on //base. -+source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", + "-mno-avx2", @@ -36483,7 +37737,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -36529,17 +37783,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("x32-transposec_sse-no-sse2") { ++source_set("x8-lut_f16c-fma-avx2") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] - public_configs = [ ":xnnpack_config" ] - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" + ] - # This is a target that cannot depend on //base. @@ -36579,10 +37834,11 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("x32-transposec_sse-no-sse2_standalone") { ++source_set("x8-lut_f16c-fma-avx2_standalone") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] - if (!(is_android && use_order_profiling)) { @@ -36591,7 +37847,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" + ] - source_set("f32-vlog_sse2-no-sse3") { @@ -36643,8 +37899,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", - ] -+source_set("x32-transposec_x64") { ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -36656,24 +37920,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" + ] - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vlog_x64") { -- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -36681,12 +37941,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- source_set("f32-vlog_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -36698,29 +37972,32 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("x32-transposec_x64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("f32-vlog_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -36732,23 +38009,32 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vbmi", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" ++ ] - source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { - cflags = [ @@ -36757,19 +38043,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("x32-unpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-sse2.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36782,17 +38068,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++# This is a target that cannot depend on //base. ++source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vbmi", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] - # This is a target that cannot depend on //base. @@ -36803,19 +38094,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("x32-unpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -36827,15 +38117,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -36856,7 +38137,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-vlrelu_avx512f") { - cflags = [ "-mavx512f" ] -+source_set("x32-unpool_x64") { ++source_set("x8-lut_x64") { + cflags = [ - sources = [ @@ -36877,7 +38158,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -36914,7 +38195,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("x32-unpool_x64_standalone") { ++source_set("x8-lut_x64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -36926,7 +38207,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - source_set("f32-vlrelu_sse-no-sse2") { @@ -36978,13 +38259,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", - ] -+source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { ++source_set("x8-packq_x64") { + cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -36996,20 +38272,27 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -37017,26 +38300,12 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("f32-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", - ] -+# This is a target that cannot depend on //base. -+source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -37048,16 +38317,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" -+ ] ++# This is a target that cannot depend on //base. ++source_set("x8-packq_x64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - # This is a target that cannot depend on //base. - source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { @@ -37065,101 +38331,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", - ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- public_configs = [ ":xnnpack_config" ] -+source_set("x64-transposec_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" -+ ] - -- source_set("f32-vlrelu_x64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("x64-transposec_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_x64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -37192,17 +38372,14 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-vmulcaddc_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -+source_set("x64-transposec_x64") { +- source_set("f32-vlrelu_x64") { +- cflags = [] ++source_set("x8-packw_x64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", - ] + ] @@ -37218,7 +38395,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -37227,966 +38407,101 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packw_x64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- source_set("f32-vmulcaddc_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + - # This is a target that cannot depend on //base. - source_set("f32-vmulcaddc_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("x64-transposec_x64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] - -- source_set("f32-vmulcaddc_x64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_x64_standalone") { -- cflags = [] -+source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx-u64.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+# This is a target that cannot depend on //base. -+source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - -- source_set("f32-vrelu_x64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx-u64.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrelu_x64_standalone") { -- cflags = [] -+source_set("x8-lut_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+# This is a target that cannot depend on //base. -+source_set("x8-lut_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-vrnd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vbmi", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vbmi", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- source_set("f32-vrnd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("x8-lut_x64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-lut_x64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("x8-packq_x64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-packq_x64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - -- source_set("f32-vrsqrt_avx512f") { -- cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt-u32.c", -- ] -+source_set("x8-packw_x64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vrsqrt_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-packw_x64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-fma3-rsqrt-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-vrsqrt_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] +source_set("x8-transposec_f16c-fma-avx2") { + cflags = [ + "-mavx2", @@ -38194,15 +38509,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "-mfma" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38211,13 +38517,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + deps = [ + "//third_party/cpuinfo", @@ -38226,18 +38540,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] +- source_set("f32-vmulcaddc_x64") { +- cflags = [] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse-rsqrt-u8.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", - ] +# This is a target that cannot depend on //base. +source_set("x8-transposec_f16c-fma-avx2_standalone") { @@ -38255,17 +38565,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" + ] -+ + +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_x64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -38273,35 +38588,65 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] + public_configs = [ ":xnnpack_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} -- source_set("f32-vrsqrt_x64") { -- cflags = [] +- public_configs = [ ":xnnpack_config" ] +source_set("x8-transposec_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", -- ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" + ] +- source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrelu/gen/f32-vrelu-avx.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38312,30 +38657,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_x64_standalone") { -- cflags = [] + public_configs = [ ":xnnpack_config" ] +} -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", -- ] +- public_configs = [ ":xnnpack_config" ] +- } +# This is a target that cannot depend on //base. +source_set("x8-transposec_sse2-no-sse3_standalone") { + cflags = [ @@ -38343,6 +38669,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "-msse2" + ] +- # This is a target that cannot depend on //base. +- source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrelu/gen/f32-vrelu-avx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38353,15 +38700,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -38380,19 +38718,14 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] +- source_set("f32-vrelu_avx512f") { +- cflags = [ "-mavx512f" ] +source_set("x8-transposec_x64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c", - ] + ] @@ -38418,13 +38751,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] +- source_set("f32-vrelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -38434,7 +38762,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -38465,15 +38793,18 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] -- source_set("f32-vsigmoid_avx512f") { -- cflags = [ "-mavx512f" ] +- source_set("f32-vrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- "src/src/f32-vrelu/gen/f32-vrelu-sse2.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -38501,12 +38832,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_avx512f_standalone") { -- cflags = [ "-mavx512f" ] +- source_set("f32-vrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- "src/src/f32-vrelu/gen/f32-vrelu-sse2.c", - ] +source_set("xx-copy_x64") { + cflags = [ @@ -38537,12 +38871,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("f32-vsigmoid_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] +- source_set("f32-vrelu_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -38552,7 +38882,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -38576,12 +38906,8 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] +- source_set("f32-vrelu_x64_standalone") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" @@ -38589,7 +38915,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -38623,10 +38949,12 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-vsigmoid_sse2-no-sse3") { +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", - ] +source_set("xx-fill_sse2-no-sse3") { + cflags = [ @@ -38636,7 +38964,10 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -38667,17 +38998,22 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", - ] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", - ] +# This is a target that cannot depend on //base. +source_set("xx-fill_sse2-no-sse3_standalone") { @@ -38700,11 +39036,27 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-sse2-u64.c" + ] -+ + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -38712,31 +39064,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+source_set("xx-fill_x64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", -- ] -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38747,36 +39074,27 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- source_set("f32-vrnd_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++source_set("xx-fill_x64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -38788,39 +39106,44 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("xx-fill_x64_standalone") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] - -- source_set("f32-vsigmoid_x64") { -- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- source_set("f32-vrnd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", - ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38831,17 +39154,69 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("xx-fill_x64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } +} -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_x64_standalone") { -- cflags = [] +- source_set("f32-vrnd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +source_set("xx-pad_sse2-no-sse3") { + cflags = [ + "-mno-sse3", @@ -38850,7 +39225,10 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -38865,13 +39243,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -38879,19 +39258,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] + public_configs = [ ":xnnpack_config" ] +} -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", - ] +# This is a target that cannot depend on //base. +source_set("xx-pad_sse2-no-sse3_standalone") { @@ -38900,15 +39281,48 @@ File regenerated by running 'python3 generate_build_gn.py' + "-msse2" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p16-sse2-u16.c" + ] +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38919,38 +39333,28 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] + public_configs = [ ":xnnpack_config" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", -- ] +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] ++source_set("xx-pad_x64") { ++ cflags = [ + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -38961,30 +39365,28 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("xx-pad_x64") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] - -- source_set("f32-vsin_avx512f") { -- cflags = [ "-mavx512f" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c", +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", - ] + deps = [ + "//third_party/cpuinfo", @@ -38993,6 +39395,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -39003,29 +39413,36 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } +# This is a target that cannot depend on //base. +source_set("xx-pad_x64_standalone") { + cflags = [ -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_avx512f_standalone") { -- cflags = [ "-mavx512f" ] +- public_configs = [ ":xnnpack_config" ] +- } + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-nr.c", +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", - ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -39036,10 +39453,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -39058,18 +39471,15 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-vsin_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] +- source_set("f32-vrsqrt_avx512f") { +- cflags = [ "-mavx512f" ] +source_set("xx-transposev_x64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", - ] + ] @@ -39095,12 +39505,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] +- source_set("f32-vrsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -39110,7 +39516,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -39141,7 +39548,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] -- source_set("f32-vsin_sse2-no-sse3") { +- source_set("f32-vrsqrt_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", @@ -39152,7 +39559,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -39180,7 +39587,7 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-vsin_sse2-no-sse3_standalone") { +- source_set("f32-vrsqrt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", @@ -39189,7 +39596,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", - ] +if (current_cpu == "arm64") { +source_set("configs_arm64") { @@ -39244,7 +39651,7 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("f32-vsin_x64") { +- source_set("f32-vrsqrt_x64") { - cflags = [] + deps = [ + "//third_party/cpuinfo", @@ -39255,7 +39662,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -39279,7 +39687,7 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("f32-vsin_x64_standalone") { +- source_set("f32-vrsqrt_x64_standalone") { - cflags = [] + sources = [ + "src/include/xnnpack.h", @@ -39311,7 +39719,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -39345,7 +39754,7 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", - "-mno-avx2", @@ -39357,7 +39766,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", - ] + ] @@ -39387,7 +39796,7 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", - "-mno-avx2", @@ -39403,7 +39812,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -39438,6 +39847,953 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/enums/operator-type.c" + ] +- source_set("f32-vsigmoid_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-avgpool_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" ++ ] + +- source_set("f32-vsigmoid_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsigmoid_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ ] + +- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] ++source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("f32-vsigmoid_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-dwconv_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" ++ ] + +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsin_avx512f") { +- cflags = [ "-mavx512f" ] ++source_set("f16-f32-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + +- source_set("f32-vsin_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" ++ ] + +- source_set("f32-vsin_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("f32-vsin_x64") { +- cflags = [] ++source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + - source_set("f32-vsqrt_avx512f") { - cflags = [ "-mavx512f" ] + configs -= [ "//build/config/compiler:chromium_code" ] @@ -39446,7 +40802,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -39479,11 +40835,11 @@ File regenerated by running 'python3 generate_build_gn.py' - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt-u16.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", - ] -+source_set("f16-avgpool_arch=armv8.2-a+fp16") { ++source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-march=armv8.2-a+fp16+dotprod" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -39496,20 +40852,32 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" -+ ] ++ asmflags = cflags - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f32-vsqrt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -39517,25 +40885,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("f32-vsqrt_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", - ] + public_configs = [ ":xnnpack_config" ] +} -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -39546,122 +40902,35 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-fma3-rsqrt-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- public_configs = [ ":xnnpack_config" ] -+source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" -+ ] - -- source_set("f32-vsqrt_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } +# This is a target that cannot depend on //base. -+source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-march=armv8.2-a+fp16+dotprod" + ] +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + - # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_sse-no-sse2_standalone") { +- source_set("f32-vsqrt_sse2-no-sse3_standalone") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse-rsqrt-u12.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -39697,23 +40966,12 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-vsqrt_x64") { - cflags = [] -+source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -39724,33 +40982,34 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] - # This is a target that cannot depend on //base. - source_set("f32-vsqrt_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -39763,28 +41022,23 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] - source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { @@ -39794,51 +41048,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("f16-dwconv_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -39851,56 +41060,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" -+ ] - -- source_set("f32-vtanh_avx512f") { -- cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] @@ -39923,15 +41082,22 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("f32-vtanh_avx512f_standalone") { -- cflags = [ "-mavx512f" ] +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-nr.c", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", - ] -+source_set("f16-f32-vcvt_arm64") { ++source_set("f16-ibilinear_arch=armv8.2-a+fp16") { + cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -39943,30 +41109,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" + ] - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vtanh_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -39974,13 +41130,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", -- ] +- source_set("f32-vtanh_avx512f") { +- cflags = [ "-mavx512f" ] + public_configs = [ ":xnnpack_config" ] +} +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -39991,12 +41155,106 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_arm64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("f16-igemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] + +- source_set("f32-vtanh_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - # This is a target that cannot depend on //base. @@ -40008,9 +41266,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" + ] - sources = [ @@ -40054,18 +41313,199 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { ++source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-march=armv8.2-a+fp16+dotprod" + ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", - ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" ++ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] + +- source_set("f32-vtanh_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_x64_standalone") { +- cflags = [] ++source_set("f16-maxpool_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -40088,112 +41528,30 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- source_set("f32-vtanh_x64") { -- cflags = [] +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + public_configs = [ ":xnnpack_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_x64_standalone") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -40204,129 +41562,32 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" -+ ] - -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("f16-gemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} - - source_set("f32-vunary_avx512f") { - cflags = [ "-mavx512f" ] -+# This is a target that cannot depend on //base. -+source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -40335,13 +41596,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vunary/gen/f32-vneg-avx512f.c", - "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -40353,24 +41609,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] -+ -+ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" ++ ] - # This is a target that cannot depend on //base. - source_set("f32-vunary_avx512f_standalone") { @@ -40382,105 +41632,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vunary/gen/f32-vneg-avx512f.c", - "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", - ] -+source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vunary_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -40513,22 +41664,20 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("f32-vunary_x64") { -- cflags = [] -+source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { +- source_set("f32-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("f16-qs8-vcvt_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -40541,12 +41690,23 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] -- } +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -40554,15 +41714,11 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_x64_standalone") { -- cflags = [] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -40578,15 +41734,83 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-qs8-vcvt_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] + +- source_set("f32-vunary_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("f16-qu8-vcvt_arm64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] + ] - if (!(is_android && use_order_profiling)) { @@ -40621,9 +41845,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/operators/unary-elementwise-nc.c", - "src/src/operators/unpooling-nhwc.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -40635,20 +41860,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - # This is a target that cannot depend on //base. - source_set("operators_x64_standalone") { @@ -40678,10 +41901,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/operators/unary-elementwise-nc.c", - "src/src/operators/unpooling-nhwc.c", - ] -+source_set("f16-ibilinear_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -40693,25 +41914,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" -+ ] ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { @@ -40720,18 +41936,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -40744,16 +41962,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { @@ -40762,20 +41977,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -40786,13 +41994,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-igemm_arch=armv8.2-a+fp16") { ++source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -40803,10 +42007,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" + ] - source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { @@ -40848,7 +42049,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -40863,10 +42064,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" + ] - sources = [ @@ -40912,17 +42110,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", - ] -+ asmflags = cflags ++source_set("f16-rdminmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -40936,12 +42133,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -40983,13 +42176,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ "-march=armv8.2-a+fp16" + ] - public_configs = [ ":xnnpack_config" ] -+ asmflags = cflags ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -41007,24 +42204,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41036,16 +42230,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -41063,19 +42250,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-maxpool_arch=armv8.2-a+fp16") { ++source_set("f16-rdminmax_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -41088,18 +42270,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -41117,19 +42298,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41141,16 +42323,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" -+ ] ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - # This is a target that cannot depend on //base. - source_set( @@ -41165,11 +42344,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] - sources = [ @@ -41177,100 +42355,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", - ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- public_configs = [ ":xnnpack_config" ] -+source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" -+ ] - -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -41303,20 +42387,119 @@ File regenerated by running 'python3 generate_build_gn.py' } +} +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-rminmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ ] + - source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+source_set("f16-qs8-vcvt_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -41329,16 +42512,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { @@ -41347,20 +42527,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++source_set("f16-rminmax_arm64") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41372,12 +42547,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_arm64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] - public_configs = [ ":xnnpack_config" ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -41395,9 +42575,56 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -41417,7 +42644,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] + deps = [ + "//third_party/cpuinfo", @@ -41427,52 +42654,8 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - public_configs = [ ":xnnpack_config" ] -- } + public_configs = [ ":xnnpack_config" ] -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -+source_set("f16-qu8-vcvt_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -41490,20 +42673,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++source_set("f16-spmm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -41516,14 +42698,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_arm64_standalone") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set( @@ -41538,6 +42722,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -41545,10 +42734,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41560,16 +42747,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" + ] - if (!(is_android && use_order_profiling)) { @@ -41592,56 +42779,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -41655,58 +42792,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" -+ ] - -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] @@ -41729,24 +42814,36 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ -- "-mavx2", -- "-mavxvnni", +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -+source_set("f16-rdminmax_arch=armv8.2-a+fp16") { ++source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -41757,21 +42854,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -41779,26 +42866,36 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + public_configs = [ ":xnnpack_config" ] +} -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", - ] +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -41809,25 +42906,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] +- public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -41835,13 +42919,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", - ] + public_configs = [ ":xnnpack_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -41852,15 +42949,103 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++source_set("f16-vapproxgelu_arm64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-rdminmax_arm64") { +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_arm64_standalone") { + cflags = [ +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -41877,18 +43062,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41900,17 +43084,37 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("f16-vbinary_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" + ] - # This is a target that cannot depend on //base. @@ -41925,17 +43129,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_arm64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41947,13 +43155,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++# This is a target that cannot depend on //base. ++source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -41973,21 +43182,40 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -41999,6 +43227,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ + public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] @@ -42020,13 +43255,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -- ++source_set("f16-vclamp_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", - ] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -42037,17 +43280,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f16-rminmax_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - if (!(is_android && use_order_profiling)) { @@ -42070,20 +43312,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++# This is a target that cannot depend on //base. ++source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -42096,16 +43336,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set( @@ -42123,11 +43363,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - sources = [ @@ -42135,290 +43375,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("f16-rminmax_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("f16-spmm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] + public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -42437,11 +43393,290 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { ++source_set("f16-vcmul_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ ] + +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] ++source_set("f16-vcos_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vcos_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -42460,9 +43695,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -42470,9 +43707,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -42484,17 +43720,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ public_configs = [ ":xnnpack_config" ] -+} ++ ] - # This is a target that cannot depend on //base. - source_set( @@ -42510,10 +43742,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - sources = [ @@ -42521,10 +43752,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -42536,18 +43766,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -42563,16 +43789,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("f16-vapproxgelu_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -42583,16 +43806,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++source_set("f16-velu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { @@ -42600,20 +43824,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -42625,11 +43850,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_arm64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -42638,7 +43866,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" + ] - source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { @@ -42686,42 +43914,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f16-vbinary_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -42732,67 +43931,39 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++source_set("f16-vexp_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" + ] - source_set("qd8-f32-qb4w-gemm_x64") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -42804,22 +43975,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} -+ -+source_set("f16-vclamp_arch=armv8.2-a+fp16") { +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -42829,7 +43991,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" + ] - sources = [ @@ -42855,22 +44017,19 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -+} - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -+# This is a target that cannot depend on //base. -+source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { - cflags = [ @@ -42879,19 +44038,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" -+ ] ++source_set("f16-vexp_arm64") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -42903,20 +44058,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -+ -+ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { @@ -42926,9 +44077,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-vcmul_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -42936,10 +44089,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -42951,24 +44102,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] - source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { - cflags = [ @@ -42976,20 +44124,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43002,17 +44150,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] @@ -43028,7 +44165,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-vcos_arch=armv8.2-a+fp16") { ++source_set("f16-vgelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -43040,7 +44177,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43092,7 +44229,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -43109,7 +44246,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -43162,7 +44299,7 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vcos_arm64") { ++source_set("f16-vgelu_arm64") { + cflags = [ - if (!(is_android && use_order_profiling)) { @@ -43191,7 +44328,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43239,7 +44376,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vcos_arm64_standalone") { ++source_set("f16-vgelu_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43257,7 +44394,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - if (!(is_android && use_order_profiling)) { @@ -43326,7 +44463,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+source_set("f16-velu_arch=armv8.2-a+fp16") { ++source_set("f16-vhswish_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -43338,7 +44475,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43392,7 +44529,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -43409,7 +44546,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -43464,7 +44601,7 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vexp_arch=armv8.2-a+fp16") { ++source_set("f16-vlrelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -43475,7 +44612,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" + ] - source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { @@ -43515,7 +44652,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -43528,7 +44665,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" + ] - sources = [ @@ -43573,14 +44710,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.1", - "-mssse3", - ] -+source_set("f16-vexp_arm64") { ++source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { + cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43593,23 +44735,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] +- public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -43617,13 +44748,25 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -43635,24 +44778,69 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vexp_arm64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" ++ ] - public_configs = [ ":xnnpack_config" ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - source_set("qd8-f32-qc4w-gemm_x64") { - cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("f16-vrnd_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -43666,6 +44854,61 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ ] + +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] @@ -43688,21 +44931,26 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_x64_standalone") { -- cflags = [] -+source_set("f16-vgelu_arch=armv8.2-a+fp16") { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43734,27 +44982,26 @@ File regenerated by running 'python3 generate_build_gn.py' + public_configs = [ ":xnnpack_config" ] +} -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", -- "-mavxvnni", - "-mf16c", - "-mfma", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -43781,10 +45028,9 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", - "-mf16c", - "-mfma", - ] @@ -43792,8 +45038,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] @@ -43810,101 +45056,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f16-vgelu_arm64") { ++source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ "-march=armv8.2-a+fp16" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f16-vgelu_arm64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" + ] - if (!(is_android && use_order_profiling)) { @@ -43923,54 +45084,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("f16-vhswish_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -43997,18 +45110,68 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + public_configs = [ ":xnnpack_config" ] +} - public_configs = [ ":xnnpack_config" ] +- } +# This is a target that cannot depend on //base. -+source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -44026,19 +45189,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("f16-vsin_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44050,20 +45214,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" + ] -+ -+ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set( @@ -44078,9 +45238,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-vlrelu_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -44088,10 +45250,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44103,16 +45263,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" + ] - if (!(is_android && use_order_profiling)) { @@ -44135,18 +45295,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -44159,16 +45321,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set( @@ -44186,19 +45345,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", - ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("f16-vsin_arm64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44210,40 +45364,27 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ ] - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44251,6 +45392,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -44261,15 +45410,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" + ] - # This is a target that cannot depend on //base. @@ -44280,7 +45426,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - sources = [ @@ -44325,7 +45471,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f16-vrnd_arch=armv8.2-a+fp16") { ++source_set("f16-vsqrt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -44337,10 +45483,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -44381,7 +45525,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { ++source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] @@ -44398,10 +45542,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -44413,17 +45555,6 @@ File regenerated by running 'python3 generate_build_gn.py' - assert_no_deps = [ "//base" ] - } - } -- -- source_set("qd8-f32-qc8w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44431,6 +45562,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- source_set("qd8-f32-qc8w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -44441,13 +45587,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("f16-vtanh_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-gemm_x64_standalone") { @@ -44457,13 +45608,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44475,20 +45624,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44496,6 +45631,20 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + - source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { - cflags = [ - "-mavx2", @@ -44503,19 +45652,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44527,29 +45677,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ public_configs = [ ":xnnpack_config" ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { @@ -44559,20 +45696,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" ++source_set("f16-vunary_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -44585,29 +45721,27 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" + ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+# This is a target that cannot depend on //base. -+source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { @@ -44616,20 +45750,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44641,20 +45774,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" + ] -+ -+ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { @@ -44663,108 +45794,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f16-vsin_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44774,10 +45803,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -44797,7 +45824,7 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vsin_arm64") { ++source_set("f32-argmaxpool_arm64") { + cflags = [ - if (!(is_android && use_order_profiling)) { @@ -44806,14 +45833,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } - - source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { - cflags = [ - "-mavx512bw", - "-mavx512cd", - "-mavx512dq", - "-mavx512f", - "-mavx512vl", -- "-mavx512vnni", - "-mf16c", - "-mfma", - ] @@ -44821,12 +45847,15 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -44854,14 +45883,13 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", - "-mavx512cd", - "-mavx512dq", - "-mavx512f", - "-mavx512vl", -- "-mavx512vnni", - "-mf16c", - "-mfma", - ] @@ -44870,11 +45898,13 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vsin_arm64_standalone") { ++source_set("f32-argmaxpool_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -44892,9 +45922,105 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-avgpool_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -44915,21 +46041,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44941,13 +46066,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - # This is a target that cannot depend on //base. - source_set( @@ -44965,9 +46090,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+source_set("f16-vsqrt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -44975,11 +46101,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -44991,23 +46115,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -+ public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } +} - source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { @@ -45015,21 +46138,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { ++source_set("f32-conv-hwc2chw_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -45042,34 +46158,30 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f16-vtanh_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -45077,11 +46189,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -+ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -45093,45 +46202,43 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] - source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -+ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -45144,20 +46251,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -45169,21 +46265,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f16-vunary_arch=armv8.2-a+fp16") { ++source_set("f32-dwconv2d-chw_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -45196,11 +46285,35 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -45208,23 +46321,20 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- - source_set("qd8-f32-qc8w-igemm_x64") { - cflags = [] -- ++ public_configs = [ ":xnnpack_config" ] ++} + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_arm64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -45236,19 +46346,28 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" + ] - public_configs = [ ":xnnpack_config" ] - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - # This is a target that cannot depend on //base. @@ -45259,7 +46378,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] @@ -45301,15 +46419,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-argmaxpool_arm64") { ++source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", - ] -+ ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -45323,8 +46443,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" + ] - public_configs = [ ":xnnpack_config" ] @@ -45367,11 +46486,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_arm64_standalone") { ++source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - public_configs = [ ":xnnpack_config" ] -+ ] ++ asmflags = cflags - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -45379,8 +46500,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" + ] - source_set("qs8-dwconv_f16c-fma-avx2") { @@ -45430,7 +46550,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-avgpool_arm64") { ++source_set("f32-dwconv_arm64") { + cflags = [ - sources = [ @@ -45452,8 +46572,24 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -45503,7 +46639,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_arm64_standalone") { ++source_set("f32-dwconv_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -45524,8 +46660,24 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" + ] - sources = [ @@ -45570,7 +46722,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("f32-conv-hwc2chw_arm64") { ++source_set("f32-f16-vcvt_arm64") { + cflags = [ - sources = [ @@ -45592,9 +46744,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -45635,7 +46787,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_arm64_standalone") { ++source_set("f32-f16-vcvt_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -45647,9 +46799,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - source_set("qs8-dwconv_sse4.1-no-sse4.2") { @@ -45697,15 +46849,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f32-dwconv2d-chw_arm64") { ++source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", - ] -+ ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -45719,22 +46873,25 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - public_configs = [ ":xnnpack_config" ] @@ -45753,10 +46910,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] + deps = [ @@ -45782,8 +46937,10 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_arm64_standalone") { ++source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-dwconv_x64_standalone") { @@ -45792,13 +46949,11 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+ ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -45812,36 +46967,39 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -45858,16 +47016,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { ++source_set("f32-gemm_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", - ] -+ asmflags = cflags ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -45881,7 +47037,23 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -45922,13 +47094,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("f32-gemm_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - public_configs = [ ":xnnpack_config" ] -+ asmflags = cflags ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -45936,7 +47106,23 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" + ] - source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { @@ -45987,7 +47173,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-dwconv_arm64") { ++source_set("f32-ibilinear-chw_arm64") { + cflags = [ - sources = [ @@ -46008,24 +47194,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -46058,7 +47229,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_arm64_standalone") { ++source_set("f32-ibilinear-chw_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -46077,24 +47248,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - # This is a target that cannot depend on //base. @@ -46153,7 +47309,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-f16-vcvt_arm64") { ++source_set("f32-ibilinear_arm64") { + cflags = [ - sources = [ @@ -46174,9 +47330,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -46222,7 +47378,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_arm64_standalone") { ++source_set("f32-ibilinear_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -46234,9 +47390,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] - source_set("qs8-f32-vcvt_sse2-no-sse3") { @@ -46288,7 +47444,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", - ] -+source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -46308,25 +47464,24 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - if (!(is_android && use_order_profiling)) { @@ -46367,7 +47522,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -46384,25 +47539,24 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - sources = [ @@ -46443,12 +47597,11 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qs8-f32-vcvt_x64") { - cflags = [] -+source_set("f32-gemm_arm64") { ++source_set("f32-igemm_arm64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] + ] @@ -46465,26 +47618,23 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -46505,7 +47655,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -46522,7 +47671,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-gemm_arm64_standalone") { ++source_set("f32-igemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -46534,26 +47683,23 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" + ] - source_set("qs8-packw_avx2-avxvnni-f16c-fma") { @@ -46605,7 +47751,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-ibilinear-chw_arm64") { ++source_set("f32-maxpool_arm64") { + cflags = [ - sources = [ @@ -46627,9 +47773,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -46681,7 +47826,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_arm64_standalone") { ++source_set("f32-maxpool_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -46703,9 +47848,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -46748,7 +47892,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qs8-packw_x64") { - cflags = [] -+source_set("f32-ibilinear_arm64") { ++source_set("f32-qc4w-gemm_arm64") { + cflags = [ - sources = [ @@ -46769,9 +47913,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -46808,7 +47956,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_arm64_standalone") { ++source_set("f32-qc4w-gemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -46820,9 +47968,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" + ] - source_set("qs8-qc4w-gemm_x64") { @@ -46868,7 +48020,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", - ] -+source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -46888,24 +48040,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - if (!(is_android && use_order_profiling)) { @@ -46950,7 +48087,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -46969,24 +48106,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - sources = [ @@ -47033,7 +48155,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-igemm_arm64") { ++source_set("f32-qc8w-gemm_arm64") { + cflags = [ - sources = [ @@ -47056,26 +48178,12 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -47118,7 +48226,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-igemm_arm64_standalone") { ++source_set("f32-qc8w-gemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -47142,26 +48250,12 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" + ] - sources = [ @@ -47218,7 +48312,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", - ] -+source_set("f32-maxpool_arm64") { ++source_set("f32-qs8-vcvt_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -47236,8 +48330,10 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -47280,7 +48376,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_arm64_standalone") { ++source_set("f32-qs8-vcvt_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -47295,8 +48391,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - sources = [ @@ -47342,7 +48440,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f32-qc4w-gemm_arm64") { ++source_set("f32-qu8-vcvt_arm64") { + cflags = [ - sources = [ @@ -47365,13 +48463,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -47413,10 +48508,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_arm64_standalone") { ++source_set("f32-qu8-vcvt_arm64_standalone") { + cflags = [ ++ ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -47430,25 +48533,15 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -47460,20 +48553,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] ++ ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -47486,19 +48575,14 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("f32-raddstoreexpminusmax_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -47510,14 +48594,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ asmflags = cflags ++ ] - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -47561,14 +48644,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("f32-raddstoreexpminusmax_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - public_configs = [ ":xnnpack_config" ] - } -+ asmflags = cflags ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -47580,9 +48661,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - sources = [ @@ -47629,7 +48709,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-qc8w-gemm_arm64") { ++source_set("f32-rdminmax_arm64") { + cflags = [ - sources = [ @@ -47651,12 +48731,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -47699,7 +48777,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_arm64_standalone") { ++source_set("f32-rdminmax_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -47711,12 +48789,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { @@ -47768,7 +48844,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-qs8-vcvt_arm64") { ++source_set("f32-rdsum_arm64") { + cflags = [ - sources = [ @@ -47790,22 +48866,15 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -47813,23 +48882,29 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + - source_set("qs8-qc8w-gemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_arm64_standalone") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_arm64_standalone") { -+ cflags = [ ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -47841,18 +48916,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { @@ -47861,15 +48935,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -47877,6 +48942,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -47887,14 +48959,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} +- public_configs = [ ":xnnpack_config" ] ++source_set("f32-rminmax_arm64") { ++ cflags = [ + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -47911,8 +48984,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-qu8-vcvt_arm64") { -+ cflags = [ ++ ] - sources = [ - "src/include/xnnpack.h", @@ -47921,6 +48993,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -47933,21 +49013,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - source_set( - "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -47960,12 +49038,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", @@ -47974,8 +49048,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_arm64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -47987,11 +49062,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_arm64_standalone") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -48011,23 +49092,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -48039,16 +49118,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -48067,7 +49139,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-raddstoreexpminusmax_arm64") { ++source_set("f32-rsum_arm64") { + cflags = [ - sources = [ @@ -48089,8 +49161,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -48144,7 +49216,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_arm64_standalone") { ++source_set("f32-rsum_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -48169,8 +49241,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - sources = [ @@ -48215,7 +49287,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("f32-rdminmax_arm64") { ++source_set("f32-spmm_arm64") { + cflags = [ - sources = [ @@ -48237,10 +49309,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -48281,7 +49356,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_arm64_standalone") { ++source_set("f32-spmm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -48293,10 +49368,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { @@ -48344,15 +49422,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f32-rdsum_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", - ] -+ ] ++source_set("f32-vapproxgelu_arm64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -48364,32 +49441,25 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - source_set("qs8-qc8w-gemm_x64") { - cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -48397,6 +49467,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -48407,27 +49485,31 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-rdsum_arm64_standalone") { -+ cflags = [ ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-qc8w-gemm_x64_standalone") { - cflags = [] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -48439,16 +49521,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -48474,7 +49546,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-rminmax_arm64") { ++source_set("f32-vbinary_arm64") { + cflags = [ - sources = [ @@ -48496,12 +49568,44 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -48544,7 +49648,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_arm64_standalone") { ++source_set("f32-vbinary_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -48556,12 +49660,44 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { @@ -48619,7 +49755,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", - ] -+source_set("f32-rsum_arm64") { ++source_set("f32-vclamp_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -48637,8 +49773,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - if (!(is_android && use_order_profiling)) { @@ -48682,7 +49818,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-rsum_arm64_standalone") { ++source_set("f32-vclamp_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -48699,8 +49835,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - sources = [ @@ -48746,7 +49882,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-spmm_arm64") { ++source_set("f32-vcmul_arm64") { + cflags = [ - sources = [ @@ -48768,13 +49904,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -48816,7 +49947,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-spmm_arm64_standalone") { ++source_set("f32-vcmul_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -48840,13 +49971,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - sources = [ @@ -48897,7 +50023,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-vapproxgelu_arm64") { ++source_set("f32-vcopysign_arm64") { + cflags = [ - sources = [ @@ -48921,8 +50047,12 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -48973,35 +50103,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_arm64_standalone") { ++source_set("f32-vcopysign_arm64_standalone") { + cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - # This is a target that cannot depend on //base. - source_set( @@ -49016,15 +50123,24 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-vbinary_arm64") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49036,52 +50152,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -49103,20 +50182,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++source_set("f32-vcos_arm64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49128,12 +50205,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-vbinary_arm64_standalone") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] - } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - # This is a target that cannot depend on //base. @@ -49152,56 +50231,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mfma", - "-mgfni", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49213,38 +50257,39 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_arm64_standalone") { ++ cflags = [ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - source_set("qs8-qc8w-igemm_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f32-vclamp_arm64") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49256,17 +50301,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] - # This is a target that cannot depend on //base. - source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { @@ -49274,20 +50318,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++source_set("f32-velu_arm64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49299,43 +50341,44 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-vclamp_arm64_standalone") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49347,13 +50390,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("f32-velu_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { @@ -49361,15 +50404,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f32-vcmul_arm64") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49381,502 +50431,33 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + - source_set("qs8-qc8w-igemm_x64") { - cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f32-vcmul_arm64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-vcopysign_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-vcos_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vcos_arm64_standalone") { -+ cflags = [ - -- source_set("qs8-qu8-packw_x64") { -- cflags = [] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_x64_standalone") { -- cflags = [] -+source_set("f32-velu_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-rdsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-velu_arm64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] +source_set("f32-vexp_arm64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] + ] @@ -49903,17 +50484,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set( -- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] +- source_set("qs8-qc8w-igemm_x64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -49923,7 +50495,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -49955,10 +50528,12 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] -- source_set("qs8-rdsum_sse4.1-no-sse4.2") { +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { - cflags = [ -- "-mno-sse4.2", -- "-msse4.1", +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -49966,7 +50541,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -49994,19 +50569,22 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", - ] +source_set("f32-vgelu_arm64") { + cflags = [ +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -50017,25 +50595,34 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - -- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("qs8-rdsum_x64") { -- cflags = [] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -50045,7 +50632,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -50069,8 +50656,18 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_x64_standalone") { -- cflags = [] +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", @@ -50079,7 +50676,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -50113,19 +50710,14 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] +- source_set("qs8-qu8-packw_x64") { +- cflags = [] +source_set("f32-vhswish_arm64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", - ] + ] @@ -50141,8 +50733,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-neon.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -50152,13 +50744,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] +- source_set("qs8-qu8-packw_x64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -50168,7 +50755,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -50196,11 +50783,11 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-neon.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] -- source_set("qs8-rsum_f16c-fma-avx2") { +- source_set("qs8-rdsum_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", @@ -50212,7 +50799,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -50240,7 +50827,7 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qs8-rsum_f16c-fma-avx2_standalone") { +- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", - "-mf16c", @@ -50251,7 +50838,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", - ] + ] @@ -50281,7 +50868,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } - } - -- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { - cflags = [ - "-mavx512bw", - "-mavx512cd", @@ -50300,8 +50887,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -50326,7 +50912,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", - "-mavx512cd", @@ -50344,8 +50930,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -50374,32 +50959,25 @@ File regenerated by running 'python3 generate_build_gn.py' - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- source_set("qs8-rdsum_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", - ] +source_set("f32-vlrelu_arm64") { + cflags = [ +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -50410,36 +50988,23 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", - ] + deps = [ + "//third_party/cpuinfo", @@ -50448,6 +51013,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -50458,39 +51030,40 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. +source_set("f32-vlrelu_arm64_standalone") { + cflags = [ +- public_configs = [ ":xnnpack_config" ] ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ ] - -- source_set("qs8-rsum_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", -- ] +- source_set("qs8-rdsum_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -50501,31 +51074,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + public_configs = [ ":xnnpack_config" ] -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } +} +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_x64_standalone") { +- cflags = [] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", - ] +source_set("f32-vmulcaddc_arm64") { + cflags = [ @@ -50558,6 +51121,460 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vmulcaddc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } ++source_set("f32-vrelu_arm64") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-neon.c", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrelu_arm64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrelu/gen/f32-vrelu-neon.c", ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++source_set("f32-vrnd_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] + +- source_set("qs8-rsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] ++source_set("f32-vrsqrt_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - source_set("qs8-rsum_x64") { - cflags = [] + deps = [ @@ -50585,7 +51602,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_arm64_standalone") { ++source_set("f32-vrsqrt_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -50597,9 +51614,9 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - sources = [ @@ -50645,7 +51662,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-vrelu_arm64") { ++source_set("f32-vsigmoid_arm64") { + cflags = [ - sources = [ @@ -50666,7 +51683,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -50708,7 +51727,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vrelu_arm64_standalone") { ++source_set("f32-vsigmoid_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -50720,7 +51739,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - source_set("qs8-vadd_f16c-fma-avx2") { @@ -50769,7 +51790,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-vrnd_arm64") { ++source_set("f32-vsin_arm64") { + cflags = [ - sources = [ @@ -50790,22 +51811,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -50853,7 +51860,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_arm64_standalone") { ++source_set("f32-vsin_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -50874,22 +51881,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - sources = [ @@ -50933,7 +51926,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("f32-vrsqrt_arm64") { ++source_set("f32-vsqrt_arm64") { + cflags = [ - sources = [ @@ -50954,9 +51947,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -50996,7 +51988,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_arm64_standalone") { ++source_set("f32-vsqrt_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -51008,9 +52000,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - source_set("qs8-vadd_sse4.1-no-sse4.2") { @@ -51062,7 +52053,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", - ] -+source_set("f32-vsigmoid_arm64") { ++source_set("f32-vtanh_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -51080,9 +52071,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - if (!(is_android && use_order_profiling)) { @@ -51121,7 +52111,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_arm64_standalone") { ++source_set("f32-vtanh_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -51133,9 +52123,8 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - sources = [ @@ -51182,7 +52171,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-vsin_arm64") { ++source_set("f32-vunary_arm64") { + cflags = [ - sources = [ @@ -51203,8 +52192,12 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -51246,7 +52239,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vsin_arm64_standalone") { ++source_set("f32-vunary_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -51258,8 +52251,12 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - source_set("qs8-vaddc_f16c-fma-avx2") { @@ -51308,7 +52305,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("f32-vsqrt_arm64") { ++source_set("operators_arm64") { + cflags = [ - sources = [ @@ -51329,8 +52326,27 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -51378,7 +52394,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_arm64_standalone") { ++source_set("operators_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -51399,8 +52415,27 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - sources = [ @@ -51444,15 +52479,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("f32-vtanh_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -51463,17 +52495,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" + ] - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", ++ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-vaddc_sse2-no-sse3_standalone") { @@ -51481,6 +52514,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -51488,13 +52529,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -51505,11 +52539,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-vtanh_arm64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" + ] - if (!(is_android && use_order_profiling)) { @@ -51518,8 +52555,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", ++ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" + ] - source_set("qs8-vaddc_sse4.1-no-sse4.2") { @@ -51571,8 +52608,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", - ] -+source_set("f32-vunary_arm64") { ++source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -51584,29 +52623,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" + ] - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-neon.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-neon.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-neon.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-vaddc_x64") { -- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -51614,13 +52645,21 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- source_set("qs8-vaddc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -51632,25 +52671,26 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-vunary_arm64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qs8-vaddc_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-neon.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-neon.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-neon.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - sources = [ @@ -51658,308 +52698,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("operators_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("operators_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] - -- source_set("qs8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -- ] -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -- ] + public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -51978,11 +52716,290 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] ++source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ ] + +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qs8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -52010,7 +53027,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -52024,15 +53041,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] + public_configs = [ ":xnnpack_config" ] -+} - public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { @@ -52040,19 +53054,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52064,59 +53074,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vcvt_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", -- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + deps = [ + "//third_party/cpuinfo", @@ -52125,8 +53096,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { +- source_set("qs8-vcvt_ssse3-no-sse4.1") { - cflags = [ - "-mno-sse4.1", - "-mssse3", @@ -52152,7 +53122,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + sources = [ + "src/include/xnnpack.h", @@ -52161,14 +53131,17 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -52176,19 +53149,11 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- source_set("qs8-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52198,14 +53163,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + sources = [ + "src/include/xnnpack.h", @@ -52213,8 +53186,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_x64_standalone") { +- source_set("qs8-vcvt_x64") { - cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52222,7 +53194,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", - "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", - ] + deps = [ @@ -52240,28 +53211,64 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + public_configs = [ ":xnnpack_config" ] +} - public_configs = [ ":xnnpack_config" ] +- } +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_x64_standalone") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + - source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -52269,19 +53276,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -52294,13 +53301,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -52310,60 +53322,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", -- ] -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vlrelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", - ] +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { @@ -52379,7 +53343,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] + sources = [ + "src/include/xnnpack.h", @@ -52388,11 +53352,61 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qs8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + - # This is a target that cannot depend on //base. - source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { - cflags = [ @@ -52400,18 +53414,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", - ] -+ public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52423,13 +53439,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_config" ] +} - public_configs = [ ":xnnpack_config" ] -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -52461,7 +53476,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -52475,15 +53490,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] + public_configs = [ ":xnnpack_config" ] -+} - public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("qs8-vlrelu_sse2-no-sse3_standalone") { @@ -52491,19 +53503,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52515,38 +53523,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", -- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", @@ -52555,21 +53531,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + deps = [ + "//third_party/cpuinfo", @@ -52578,8 +53547,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { +- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", @@ -52605,7 +53573,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + sources = [ + "src/include/xnnpack.h", @@ -52616,14 +53584,17 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -52631,21 +53602,11 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- source_set("qs8-vlrelu_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -+ public_configs = [ ":xnnpack_config" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52655,14 +53616,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + sources = [ + "src/include/xnnpack.h", @@ -52670,8 +53639,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" + ] -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { +- source_set("qs8-vlrelu_ssse3-no-sse4.1") { - cflags = [ - "-mno-sse4.1", - "-mssse3", @@ -52699,38 +53667,162 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + public_configs = [ ":xnnpack_config" ] +} - public_configs = [ ":xnnpack_config" ] +- } +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vlrelu_x64") { +- cflags = [] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] ++ asmflags = cflags + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ asmflags = cflags + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" + ] -- source_set("qs8-vlrelu_x64") { -- cflags = [] +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -52757,88 +53849,6 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", -- ] -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ asmflags = cflags - - # This is a target that cannot depend on //base. - source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -52847,15 +53857,95 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- source_set("qs8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -52889,24 +53979,26 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qs8-vmul_sse2-no-sse3") { +- source_set("qs8-vmul_sse4.1-no-sse4.2") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mno-sse4.2", +- "-msse4.1", - ] -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+dotprod+fp16" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -52933,22 +54025,22 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qs8-vmul_sse2-no-sse3_standalone") { +- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mno-sse4.2", +- "-msse4.1", - ] + public_configs = [ ":xnnpack_config" ] +} - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+dotprod+fp16" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -52963,8 +54055,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -52983,16 +54077,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- source_set("qs8-vmul_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] +- source_set("qs8-vmul_x64") { +- cflags = [] + public_configs = [ ":xnnpack_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", - ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] @@ -53009,34 +54100,29 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { + cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" ++ "-march=armv8.2-a+fp16" + ] - public_configs = [ ":xnnpack_config" ] - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" + ] - # This is a target that cannot depend on //base. -- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] +- source_set("qs8-vmul_x64_standalone") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -53060,9 +54146,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" ++ "-march=armv8.2-a+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -53071,21 +54157,24 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" + ] -- source_set("qs8-vmul_x64") { -- cflags = [] +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -53112,99 +54201,6 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_x64_standalone") { -- cflags = [] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} - -- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - - # This is a target that cannot depend on //base. - source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -53213,16 +54209,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -53234,36 +54229,27 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- public_configs = [ ":xnnpack_config" ] + asmflags = cflags -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] -- source_set("qs8-vmulc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- source_set("qs8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", - ] + deps = [ + "//third_party/cpuinfo", @@ -53272,6 +54258,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -53282,35 +54275,36 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] +- public_configs = [ ":xnnpack_config" ] +- } ++ asmflags = cflags + - # This is a target that cannot depend on //base. - source_set("qs8-vmulc_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ asmflags = cflags - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -53321,18 +54315,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -53348,21 +54338,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -53373,17 +54354,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - # This is a target that cannot depend on //base. @@ -53392,98 +54373,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- source_set("qs8-vmulc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_x64_standalone") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -53506,9 +54403,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ "-march=armv8.2-a+i8mm+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -53517,25 +54414,19 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] +- source_set("qs8-vmulc_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -53563,27 +54454,16 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - +- source_set("qs8-vmulc_x64_standalone") { +- cflags = [] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -53596,11 +54476,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -53608,34 +54498,23 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} - -- source_set("qu8-dwconv_f16c-fma-avx2") { +- source_set("qs8-vprelu_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -53648,12 +54527,25 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] -- } +- # This is a target that cannot depend on //base. +- source_set("qs8-vprelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -53661,23 +54553,184 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- source_set("qs8-vprelu_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + - # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { +- source_set("qs8-vprelu_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vpreluc_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f32-qb4w-gemm_arm64") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] +} - configs -= [ "//build/config/compiler:chromium_code" ] @@ -53690,12 +54743,451 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qd8-f32-qb4w-gemm_arm64") { ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- source_set("qs8-vpreluc_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-vrpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- source_set("qs8-vrpreluc_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qd8-f32-qc4w-gemm_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] + +- source_set("qu8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -53712,22 +55204,21 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -53739,17 +55230,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] - } -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] - # This is a target that cannot depend on //base. - source_set( @@ -53763,16 +55253,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_arm64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -53784,23 +55280,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -53808,22 +55287,33 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + - source_set("qu8-dwconv_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -53835,18 +55325,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qu8-dwconv_sse2-no-sse3_standalone") { @@ -53854,15 +55343,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -53870,6 +55350,14 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -53880,15 +55368,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] ++ asmflags = cflags - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -53896,8 +55383,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - source_set("qu8-dwconv_sse4.1-no-sse4.2") { @@ -53945,7 +55432,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -53957,8 +55444,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -53994,10 +55481,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -54014,7 +55499,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -54023,8 +55508,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - # This is a target that cannot depend on //base. @@ -54034,10 +55519,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] @@ -54079,7 +55562,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("qd8-f32-qc4w-gemm_arm64") { ++source_set("qd8-f32-qc8w-gemm_arm64") { + cflags = [ - sources = [ @@ -54100,10 +55583,11 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -54145,7 +55629,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arm64_standalone") { ++source_set("qd8-f32-qc8w-gemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -54157,10 +55641,11 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - source_set("qu8-f32-vcvt_f16c-fma-avx2") { @@ -54225,7 +55710,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] @@ -54233,10 +55718,10 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" + ] - if (!(is_android && use_order_profiling)) { @@ -54286,7 +55771,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] @@ -54305,10 +55790,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" + ] - sources = [ @@ -54352,7 +55837,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -54375,8 +55860,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - public_configs = [ ":xnnpack_config" ] @@ -54416,7 +55901,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -54430,8 +55915,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { @@ -54496,7 +55981,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -54507,8 +55992,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - source_set("qu8-f32-vcvt_x64") { @@ -54519,7 +56004,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] + deps = [ @@ -54545,7 +56029,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -54555,13 +56039,12 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] @@ -54603,7 +56086,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("qd8-f32-qc8w-gemm_arm64") { ++source_set("qd8-f32-qc8w-igemm_arm64") { + cflags = [ - sources = [ @@ -54625,12 +56108,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -54673,7 +56157,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arm64_standalone") { ++source_set("qd8-f32-qc8w-igemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -54685,12 +56169,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" + ] - source_set("qu8-gemm_f16c-fma-avx2") { @@ -54740,551 +56225,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -+ asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ asmflags = cflags - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] - -- source_set("qu8-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("qd8-f32-qc8w-igemm_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" -+ ] - -- source_set("qu8-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" @@ -55292,8 +56232,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -55328,7 +56268,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } - } - -- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { - cflags = [ - "-mavx512bw", - "-mavx512cd", @@ -55343,8 +56283,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", - ] +# This is a target that cannot depend on //base. +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { @@ -55376,7 +56316,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set( -- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", - "-mavx512cd", @@ -55395,8 +56335,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -55430,7 +56370,7 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" + ] -- source_set("qu8-igemm_sse2-no-sse3") { +- source_set("qu8-gemm_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", @@ -55441,8 +56381,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -55473,7 +56413,7 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qu8-igemm_sse2-no-sse3_standalone") { +- source_set("qu8-gemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", @@ -55485,8 +56425,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -55520,7 +56460,7 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qu8-igemm_sse4.1-no-sse4.2") { +- source_set("qu8-gemm_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", @@ -55532,8 +56472,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", - ] + sources = [ + "src/include/xnnpack.h", @@ -55566,7 +56506,7 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { +- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", @@ -55576,8 +56516,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", - ] +# This is a target that cannot depend on //base. +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { @@ -55611,15 +56551,591 @@ File regenerated by running 'python3 generate_build_gn.py' - assert_no_deps = [ "//base" ] - } - } -- -- source_set("qu8-igemm_x64") { ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- source_set("qu8-gemm_x64") { - cflags = [] -- ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_x64_standalone") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ ] + +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qu8-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +- } ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++source_set("qs8-dwconv_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- source_set("qu8-igemm_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] + deps = [ @@ -55650,15 +57166,21 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("qu8-igemm_x64_standalone") { - cflags = [] -- ++source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -55669,11 +57191,99 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - public_configs = [ ":xnnpack_config" ] -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- source_set("qu8-rdsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+fp16" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qs8-f32-vcvt_arm64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] + ] - if (!(is_android && use_order_profiling)) { @@ -55682,21 +57292,19 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] -- source_set("qu8-rdsum_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] +- source_set("qu8-rdsum_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -55721,29 +57329,23 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++source_set("qs8-f32-vcvt_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" +- source_set("qu8-rdsum_x64_standalone") { +- cflags = [] + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -55755,6 +57357,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -55773,112 +57379,20 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qu8-rdsum_x64") { -- cflags = [] -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_x64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - - source_set("qu8-rsum_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("qs8-packw_arm64") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -55890,17 +57404,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qu8-rsum_f16c-fma-avx2_standalone") { @@ -55909,14 +57422,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -55924,6 +57429,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -55934,14 +57446,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -55950,7 +57459,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" + ] - source_set("qu8-rsum_sse2-no-sse3") { @@ -56002,8 +57511,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", - ] -+source_set("qs8-dwconv_arm64") { ++source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -56015,20 +57526,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] ++ asmflags = cflags - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - if (!(is_android && use_order_profiling)) { @@ -56066,27 +57570,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_arm64_standalone") { ++source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ ] ++ asmflags = cflags - # This is a target that cannot depend on //base. - source_set("qu8-rsum_x64_standalone") { - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - sources = [ @@ -56132,12 +57631,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -- ++source_set("qs8-qc4w-gemm_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", - ] -- ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -56148,17 +57650,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -56168,14 +57669,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -56183,6 +57676,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -56193,14 +57693,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("qs8-qc4w-gemm_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -56209,7 +57706,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] - source_set("qu8-vadd_f16c-fma-avx2") { @@ -56258,7 +57755,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("qs8-f32-vcvt_arm64") { ++source_set("qs8-qc8w-dwconv_arm64") { + cflags = [ - sources = [ @@ -56279,9 +57776,20 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -56329,7 +57837,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_arm64_standalone") { ++source_set("qs8-qc8w-dwconv_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -56350,9 +57858,20 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -56396,15 +57915,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("qs8-packw_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -56415,16 +57931,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" + ] - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qu8-vadd_sse2-no-sse3_standalone") { @@ -56432,6 +57952,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -56439,13 +57967,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -56456,11 +57977,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("qs8-packw_arm64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" + ] - if (!(is_android && use_order_profiling)) { @@ -56469,7 +57993,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" + ] - source_set("qu8-vadd_sse4.1-no-sse4.2") { @@ -56521,7 +58048,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", - ] -+source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -56541,8 +58068,16 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - if (!(is_android && use_order_profiling)) { @@ -56581,7 +58116,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -56595,8 +58130,16 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - sources = [ @@ -56643,15 +58186,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("qs8-qc4w-gemm_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -56662,16 +58202,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" + ] - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -56681,6 +58223,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -56688,13 +58238,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -56705,11 +58248,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_arm64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" + ] - if (!(is_android && use_order_profiling)) { @@ -56718,7 +58264,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - source_set("qu8-vaddc_f16c-fma-avx2") { @@ -56767,7 +58314,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("qs8-qc8w-dwconv_arm64") { ++source_set("qs8-qc8w-gemm_arm64") { + cflags = [ - sources = [ @@ -56788,23 +58335,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -56852,7 +58389,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_arm64_standalone") { ++source_set("qs8-qc8w-gemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -56873,23 +58410,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -56949,7 +58476,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] @@ -56958,10 +58485,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" + ] - # This is a target that cannot depend on //base. @@ -57000,7 +58527,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] @@ -57011,10 +58538,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" + ] - source_set("qu8-vaddc_sse4.1-no-sse4.2") { @@ -57066,7 +58593,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", - ] -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -57086,16 +58613,16 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - if (!(is_android && use_order_profiling)) { @@ -57134,7 +58661,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] @@ -57148,16 +58675,16 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - sources = [ @@ -57220,7 +58747,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -57229,8 +58756,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - # This is a target that cannot depend on //base. @@ -57271,7 +58798,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] @@ -57282,8 +58809,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - source_set("qu8-vcvt_f16c-fma-avx2") { @@ -57337,7 +58864,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", - ] -+source_set("qs8-qc8w-gemm_arm64") { ++source_set("qs8-qc8w-igemm_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -57355,15 +58882,13 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - if (!(is_android && use_order_profiling)) { @@ -57404,7 +58929,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arm64_standalone") { ++source_set("qs8-qc8w-igemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -57419,15 +58944,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -57471,12 +58994,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -- ++source_set("qs8-qu8-packw_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", - ] -- ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -57487,20 +59013,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { @@ -57508,14 +59030,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -57523,6 +59037,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -57533,14 +59054,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" + ] - if (!(is_android && use_order_profiling)) { @@ -57549,10 +59067,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - source_set("qu8-vcvt_ssse3-no-sse4.1") { @@ -57604,10 +59119,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", - ] -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("qs8-rdsum_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -57619,21 +59132,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ asmflags = cflags ++ ] - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - if (!(is_android && use_order_profiling)) { @@ -57655,7 +59160,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] + public_configs = [ ":xnnpack_config" ] @@ -57672,35 +59176,24 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("qs8-rdsum_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - public_configs = [ ":xnnpack_config" ] - } -+ asmflags = cflags ++ ] - # This is a target that cannot depend on //base. - source_set("qu8-vcvt_x64_standalone") { - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] @@ -57758,17 +59251,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++source_set("qs8-rsum_arch=armv8.2-a+dotprod") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+dotprod" + ] - public_configs = [ ":xnnpack_config" ] - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" + ] - # This is a target that cannot depend on //base. @@ -57809,9 +59301,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+dotprod" + ] - if (!(is_android && use_order_profiling)) { @@ -57820,8 +59312,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" + ] - source_set("qu8-vlrelu_f16c-fma-avx2") { @@ -57875,7 +59366,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", - ] -+source_set("qs8-qc8w-igemm_arm64") { ++source_set("qs8-rsum_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -57893,15 +59384,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -57942,7 +59426,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arm64_standalone") { ++source_set("qs8-rsum_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -57957,15 +59441,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - sources = [ @@ -58009,7 +59486,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qs8-qu8-packw_arm64") { ++source_set("qs8-vadd_arm64") { + cflags = [ - sources = [ @@ -58030,7 +59507,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -58070,7 +59550,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_arm64_standalone") { ++source_set("qs8-vadd_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -58082,7 +59562,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - source_set("qu8-vlrelu_ssse3-no-sse4.1") { @@ -58134,7 +59617,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", - ] -+source_set("qs8-rdsum_arm64") { ++source_set("qs8-vaddc_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -58152,8 +59635,10 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -58176,7 +59661,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -58192,7 +59676,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_arm64_standalone") { ++source_set("qs8-vaddc_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -58204,14 +59688,15 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -58252,12 +59737,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -- ++source_set("qs8-vcvt_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", - ] -- ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -58268,17 +59756,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("qs8-rsum_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -58288,14 +59776,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -58303,6 +59783,13 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -58313,14 +59800,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" + ] - if (!(is_android && use_order_profiling)) { @@ -58329,7 +59813,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - source_set("qu8-vmul_sse2-no-sse3") { @@ -58381,7 +59866,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", - ] -+source_set("qs8-rsum_arm64") { ++source_set("qs8-vlrelu_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -58399,8 +59884,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -58441,7 +59926,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_arm64_standalone") { ++source_set("qs8-vlrelu_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -58456,8 +59941,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - sources = [ @@ -58498,7 +59983,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qu8-vmul_x64") { - cflags = [] -+source_set("qs8-vadd_arm64") { ++source_set("qs8-vmul_arm64") { + cflags = [ - sources = [ @@ -58519,10 +60004,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -58559,7 +60042,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_arm64_standalone") { ++source_set("qs8-vmul_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -58571,10 +60054,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { @@ -58630,7 +60111,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", - ] -+source_set("qs8-vaddc_arm64") { ++source_set("qs8-vmulc_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -58648,10 +60129,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - if (!(is_android && use_order_profiling)) { @@ -58692,7 +60171,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_arm64_standalone") { ++source_set("qs8-vmulc_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -58707,10 +60186,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - sources = [ @@ -58754,7 +60231,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qs8-vcvt_arm64") { ++source_set("qs8-vprelu_arm64") { + cflags = [ - sources = [ @@ -58775,9 +60252,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -58817,7 +60292,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_arm64_standalone") { ++source_set("qs8-vprelu_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -58829,9 +60304,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - source_set("qu8-vmulc_x64") { @@ -58872,15 +60345,503 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("qu8-vmulc_x64_standalone") { - cflags = [] -+source_set("qs8-vlrelu_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", - ] ++source_set("qs8-vpreluc_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + ] +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vprelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vpreluc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vprelu_x64") { +- cflags = [] ++source_set("qs8-vrpreluc_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vrpreluc_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] + +- source_set("qu8-vpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", +- ] ++source_set("qu8-dwconv_arm64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vpreluc_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_x64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vrpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++source_set("qu8-f32-vcvt_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- source_set("qu8-vrpreluc_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_x64_standalone") { +- cflags = [] ++source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] ++ asmflags = cflags + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -58893,9 +60854,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - public_configs = [ ":xnnpack_config" ] @@ -58926,8 +60888,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/reference/unary-elementwise.cc", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_arm64_standalone") { ++source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -58939,15 +60903,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++ asmflags = cflags - public_configs = [ ":xnnpack_config" ] - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - # This is a target that cannot depend on //base. @@ -58997,7 +60962,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("qs8-vmul_arm64") { ++source_set("qu8-gemm_arm64") { + cflags = [ - sources = [ @@ -59018,8 +60983,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -59059,7 +61029,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_arm64_standalone") { ++source_set("qu8-gemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -59071,8 +61041,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - source_set("s8-ibilinear_sse4.1-no-sse4.2") { @@ -59124,8 +61099,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", - ] -+source_set("qs8-vmulc_arm64") { ++source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -59137,13 +61114,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] ++ asmflags = cflags - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - if (!(is_android && use_order_profiling)) { @@ -59181,20 +61160,24 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_arm64_standalone") { ++source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ ] ++ asmflags = cflags - # This is a target that cannot depend on //base. - source_set("s8-ibilinear_x64_standalone") { - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - sources = [ @@ -59238,7 +61221,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qu8-dwconv_arm64") { ++source_set("qu8-igemm_arm64") { + cflags = [ - sources = [ @@ -59259,14 +61242,13 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -59306,7 +61288,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_arm64_standalone") { ++source_set("qu8-igemm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -59318,14 +61300,13 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - source_set("s8-maxpool_x64") { @@ -59371,7 +61352,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("qu8-f32-vcvt_arm64") { ++source_set("qu8-rdsum_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -59389,9 +61370,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - if (!(is_android && use_order_profiling)) { @@ -59433,7 +61414,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_arm64_standalone") { ++source_set("qu8-rdsum_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -59448,9 +61429,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - sources = [ @@ -59492,17 +61473,15 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("s8-rdminmax_x64") { - cflags = [] -+source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("qu8-rsum_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", - "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", - ] -+ asmflags = cflags ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -59516,10 +61495,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -59557,13 +61534,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("qu8-rsum_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - public_configs = [ ":xnnpack_config" ] -+ asmflags = cflags ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -59571,10 +61546,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - source_set("s8-rminmax_sse4.1-no-sse4.2") { @@ -59623,7 +61596,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qu8-gemm_arm64") { ++source_set("qu8-vadd_arm64") { + cflags = [ - sources = [ @@ -59646,15 +61619,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -59685,7 +61653,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_arm64_standalone") { ++source_set("qu8-vadd_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -59704,15 +61672,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - # This is a target that cannot depend on //base. @@ -59763,16 +61726,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { ++source_set("qu8-vaddc_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", - ] -+ asmflags = cflags ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -59786,10 +61747,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -59830,13 +61791,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++source_set("qu8-vaddc_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ + ] - public_configs = [ ":xnnpack_config" ] -+ asmflags = cflags ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -59853,21 +61820,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -59879,16 +61845,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set( @@ -59902,16 +61865,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", - ] -+source_set("qu8-igemm_arm64") { ++source_set("qu8-vcvt_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -59929,15 +61888,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -59978,7 +61930,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_arm64_standalone") { ++source_set("qu8-vcvt_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -59993,15 +61945,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - sources = [ @@ -60045,7 +61990,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qu8-rdsum_arm64") { ++source_set("qu8-vlrelu_arm64") { + cflags = [ - sources = [ @@ -60066,9 +62011,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -60108,7 +62052,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_arm64_standalone") { ++source_set("qu8-vlrelu_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -60120,9 +62064,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - source_set("s8-vclamp_x64") { @@ -60163,7 +62106,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("s8-vclamp_x64_standalone") { - cflags = [] -+source_set("qu8-rsum_arm64") { ++source_set("qu8-vmul_arm64") { + cflags = [ - sources = [ @@ -60184,8 +62127,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -60228,6 +62171,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/subgraph/static-resize-bilinear-2d.c", - "src/src/subgraph/static-slice.c", - "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", - "src/src/subgraph/unary.c", - "src/src/subgraph/unpooling-2d.c", - "src/src/subgraph/validation.c", @@ -60255,7 +62199,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_arm64_standalone") { ++source_set("qu8-vmul_arm64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -60289,6 +62233,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/subgraph/static-resize-bilinear-2d.c", - "src/src/subgraph/static-slice.c", - "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", - "src/src/subgraph/unary.c", - "src/src/subgraph/unpooling-2d.c", - "src/src/subgraph/validation.c", @@ -60307,8 +62252,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -60377,7 +62322,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/tables/exp2minus-k-over-8.c", - "src/src/tables/vlog.c", - ] -+source_set("qu8-vadd_arm64") { ++source_set("qu8-vmulc_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -60395,10 +62340,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - if (!(is_android && use_order_profiling)) { @@ -60439,7 +62382,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_arm64_standalone") { ++source_set("qu8-vmulc_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -60454,10 +62397,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - sources = [ @@ -60501,7 +62442,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("qu8-vaddc_arm64") { ++source_set("qu8-vprelu_arm64") { + cflags = [ - sources = [ @@ -60522,10 +62463,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -60565,7 +62503,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_arm64_standalone") { ++source_set("qu8-vprelu_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -60577,10 +62515,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - source_set("u8-ibilinear_x64") { @@ -60626,7 +62561,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", - ] -+source_set("qu8-vcvt_arm64") { ++source_set("qu8-vpreluc_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -60644,9 +62579,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - if (!(is_android && use_order_profiling)) { @@ -60684,7 +62617,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_arm64_standalone") { ++source_set("qu8-vpreluc_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -60696,9 +62629,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - sources = [ @@ -60742,7 +62673,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("qu8-vlrelu_arm64") { ++source_set("qu8-vrpreluc_arm64") { + cflags = [ - sources = [ @@ -60763,9 +62694,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -60805,7 +62734,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_arm64_standalone") { ++source_set("qu8-vrpreluc_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -60817,9 +62746,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - source_set("u8-maxpool_x64") { @@ -60865,7 +62792,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("qu8-vmul_arm64") { ++source_set("reference_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -60883,8 +62810,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - if (!(is_android && use_order_profiling)) { @@ -60926,7 +62854,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_arm64_standalone") { ++source_set("reference_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -60941,8 +62869,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - sources = [ @@ -60984,7 +62913,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("u8-rdminmax_x64") { - cflags = [] -+source_set("qu8-vmulc_arm64") { ++source_set("s8-ibilinear_arm64") { + cflags = [ - sources = [ @@ -61006,8 +62935,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -61045,7 +62975,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_arm64_standalone") { ++source_set("s8-ibilinear_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61057,8 +62987,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] - source_set("u8-rminmax_sse2-no-sse3") { @@ -61107,7 +63038,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("reference_arm64") { ++source_set("s8-maxpool_arm64") { + cflags = [ - sources = [ @@ -61130,9 +63061,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -61163,7 +63093,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", - ] +# This is a target that cannot depend on //base. -+source_set("reference_arm64_standalone") { ++source_set("s8-maxpool_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -61182,9 +63112,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - # This is a target that cannot depend on //base. @@ -61235,7 +63164,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("s8-ibilinear_arm64") { ++source_set("s8-rdminmax_arm64") { + cflags = [ - sources = [ @@ -61256,9 +63185,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -61299,7 +63229,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_arm64_standalone") { ++source_set("s8-rdminmax_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61322,9 +63252,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] - sources = [ @@ -61377,7 +63308,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", - ] -+source_set("s8-maxpool_arm64") { ++source_set("s8-rminmax_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -61395,8 +63326,12 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -61437,7 +63372,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("s8-maxpool_arm64_standalone") { ++source_set("s8-rminmax_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61452,8 +63387,12 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -61494,7 +63433,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("u8-vclamp_x64") { - cflags = [] -+source_set("s8-rdminmax_arm64") { ++source_set("s8-vclamp_arm64") { + cflags = [ - sources = [ @@ -61515,10 +63454,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -61555,7 +63492,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_arm64_standalone") { ++source_set("s8-vclamp_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61567,10 +63504,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - source_set("x16-packw_f16c-fma-avx2") { @@ -61624,7 +63559,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", - ] -+source_set("s8-rminmax_arm64") { ++source_set("subgraph_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -61642,12 +63577,35 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" + ] - if (!(is_android && use_order_profiling)) { @@ -61689,7 +63647,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("s8-rminmax_arm64_standalone") { ++source_set("subgraph_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61705,12 +63663,35 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" + ] - sources = [ @@ -61754,7 +63735,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("s8-vclamp_arm64") { ++source_set("tables_arm64") { + cflags = [ - sources = [ @@ -61775,8 +63756,15 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -61816,7 +63804,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_arm64_standalone") { ++source_set("tables_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61828,8 +63816,15 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" + ] - source_set("x16-transposec_x64") { @@ -61875,7 +63870,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", - ] -+source_set("subgraph_arm64") { ++source_set("u8-ibilinear_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -61893,34 +63888,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] - if (!(is_android && use_order_profiling)) { @@ -61959,7 +63929,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("subgraph_arm64_standalone") { ++source_set("u8-ibilinear_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -61971,34 +63941,9 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] - sources = [ @@ -62043,7 +63988,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse4.1", - "-mssse3", - ] -+source_set("tables_arm64") { ++source_set("u8-lut32norm_arm64") { + cflags = [ - sources = [ @@ -62064,15 +64009,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -62112,7 +64049,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("tables_arm64_standalone") { ++source_set("u8-lut32norm_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -62124,15 +64061,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - source_set("x24-transposec_x64") { @@ -62173,7 +64102,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("x24-transposec_x64_standalone") { - cflags = [] -+source_set("u8-ibilinear_arm64") { ++source_set("u8-maxpool_arm64") { + cflags = [ - sources = [ @@ -62194,9 +64123,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -62234,7 +64162,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", - ] +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_arm64_standalone") { ++source_set("u8-maxpool_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -62253,9 +64181,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - # This is a target that cannot depend on //base. @@ -62318,7 +64245,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", - "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", - ] -+source_set("u8-lut32norm_arm64") { ++source_set("u8-rdminmax_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -62337,7 +64264,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - # This is a target that cannot depend on //base. @@ -62381,7 +64311,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } - } +# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_arm64_standalone") { ++source_set("u8-rdminmax_arm64_standalone") { + cflags = [ - source_set("x32-packw_sse2-no-sse3") { @@ -62398,7 +64328,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -62414,21 +64347,15 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - # This is a target that cannot depend on //base. - source_set("x32-packw_sse2-no-sse3_standalone") { @@ -62436,15 +64363,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("u8-maxpool_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", - "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", - ] -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -62456,16 +64385,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] ++source_set("u8-rminmax_arm64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -62484,11 +64408,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", - "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -62501,14 +64428,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("u8-maxpool_arm64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - source_set("x32-packw_x64_standalone") { @@ -62523,7 +64454,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", - "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -62535,33 +64467,26 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++# This is a target that cannot depend on //base. ++source_set("u8-rminmax_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] - source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { - cflags = [ @@ -62570,13 +64495,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+source_set("u8-rdminmax_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -62589,19 +64520,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -62611,19 +64536,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-f16c", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++source_set("u8-vclamp_arm64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -62635,44 +64554,41 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_arm64_standalone") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("x32-transposec_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x32-transposec/x32-transposec-4x4-sse.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -62684,13 +64600,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - # This is a target that cannot depend on //base. - source_set("x32-transposec_sse-no-sse2_standalone") { @@ -62698,96 +64614,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse2", - "-msse", - ] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x32-transposec/x32-transposec-4x4-sse.c", - ] -+source_set("u8-rminmax_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x32-transposec_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("u8-rminmax_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_x64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -62820,12 +64656,104 @@ File regenerated by running 'python3 generate_build_gn.py' } +} +- source_set("x32-transposec_x64") { +- cflags = [] ++source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + - source_set("x32-unpool_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("u8-vclamp_arm64") { ++source_set("x16-packw_arm64") { + cflags = [ - sources = [ @@ -62846,8 +64774,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -62887,7 +64815,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_arm64_standalone") { ++source_set("x16-packw_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -62899,8 +64827,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] - source_set("x32-unpool_x64") { @@ -62946,7 +64874,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/x32-unpool/x32-unpool-scalar.c", - ] -+source_set("x16-packw_arm64") { ++source_set("x16-transposec_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -62964,8 +64892,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" + ] - if (!(is_android && use_order_profiling)) { @@ -63008,7 +64936,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("x16-packw_arm64_standalone") { ++source_set("x16-transposec_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -63025,8 +64953,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" + ] - sources = [ @@ -63070,7 +64998,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("x16-transposec_arm64") { ++source_set("x16-x32-packw_arm64") { + cflags = [ - sources = [ @@ -63091,8 +65019,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -63132,7 +65060,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("x16-transposec_arm64_standalone") { ++source_set("x16-x32-packw_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -63144,8 +65072,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - source_set("x64-transposec_x64") { @@ -63191,7 +65119,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", - ] -+source_set("x16-x32-packw_arm64") { ++source_set("x24-transposec_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -63209,8 +65137,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] - if (!(is_android && use_order_profiling)) { @@ -63253,7 +65182,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_arm64_standalone") { ++source_set("x24-transposec_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -63270,8 +65199,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] - sources = [ @@ -63316,13 +65246,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("x24-transposec_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x8-lut/gen/x8-lut-avx2-u128.c", - ] ++source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -63337,9 +65268,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -63380,10 +65309,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("x24-transposec_arm64_standalone") { ++source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] - public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -63401,20 +65335,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -63426,13 +65360,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] @@ -63718,15 +65645,12 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("x8-packq_x64_standalone") { - cflags = [] -+source_set("x32-unpool_arm64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -63737,16 +65661,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-neon.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] ++source_set("x32-unpool_arm64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -63763,11 +65682,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", - "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -63780,14 +65698,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("x32-unpool_arm64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - source_set("x8-packw_x64_standalone") { @@ -63800,7 +65722,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", - "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -63812,33 +65735,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_arm64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-neon.c", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - source_set("x8-transposec_f16c-fma-avx2") { - cflags = [ @@ -63846,13 +65758,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+source_set("x64-transposec_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -63865,18 +65783,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("x8-transposec_f16c-fma-avx2_standalone") { @@ -63885,19 +65798,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++source_set("x64-transposec_arm64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -63909,17 +65816,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("x64-transposec_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", @@ -63927,25 +65826,32 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - source_set("x8-transposec_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -63957,13 +65863,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_arm64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - # This is a target that cannot depend on //base. - source_set("x8-transposec_sse2-no-sse3_standalone") { @@ -63971,13 +65877,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", - ] -+source_set("x8-lut_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -63989,24 +65902,59 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x8-transposec_x64") { +- cflags = [] ++source_set("x8-lut_arm64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_config" ] - } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("x8-transposec_x64") { +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_x64_standalone") { - cflags = [] + deps = [ + "//third_party/cpuinfo", @@ -64030,42 +65978,34 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. +source_set("x8-lut_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] -- } + ] -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_x64_standalone") { -- cflags = [] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] +- source_set("xx-copy_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -64074,28 +66014,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("xx-copy_x64") { -- cflags = [] -+source_set("x8-packq_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -64106,21 +66024,46 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("xx-copy_x64_standalone") { - cflags = [] ++source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-pack-lh/x8--packlh-neonsme2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -64128,58 +66071,31 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-packq_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - source_set("xx-fill_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-fill/xx-fill-sse2-u64.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-pack-lh/x8--packlh-neonsme2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -64192,13 +66108,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - source_set("xx-fill_sse2-no-sse3_standalone") { @@ -64206,13 +66127,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -- ++ public_configs = [ ":xnnpack_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/xx-fill/xx-fill-sse2-u64.c", - ] -+source_set("x8-packw_arm64") { -+ cflags = [ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -64224,27 +66148,32 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] ++source_set("x8-packq_arm64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- source_set("xx-fill_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("xx-fill_x64") { -- cflags = [] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -64252,13 +66181,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -64269,32 +66191,29 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("x8-packw_arm64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] - } -+ ] ++# This is a target that cannot depend on //base. ++source_set("x8-packq_arm64_standalone") { ++ cflags = [ - # This is a target that cannot depend on //base. - source_set("xx-fill_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-fill/xx-fill-scalar-u16.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -64306,6 +66225,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -64329,7 +66252,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "-mno-sse3", - "-msse2", - ] -+source_set("x8-transposec_arm64") { ++source_set("x8-packw_arm64") { + cflags = [ - sources = [ @@ -64350,8 +66273,10 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -64391,7 +66316,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("x8-transposec_arm64_standalone") { ++source_set("x8-packw_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -64403,8 +66328,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - source_set("xx-pad_x64") { @@ -64450,7 +66377,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/xx-pad/xx-pad-p4-scalar-u16.c", - ] -+source_set("xx-copy_arm64") { ++source_set("x8-transposec_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -64468,7 +66395,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - if (!(is_android && use_order_profiling)) { @@ -64506,7 +66434,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("xx-copy_arm64_standalone") { ++source_set("x8-transposec_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -64518,7 +66446,8 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - sources = [ @@ -64588,7 +66517,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/configs/xx-fill-config.c", - "src/src/configs/xx-pad-config.c", - ] -+source_set("xx-fill_arm64") { ++source_set("xx-copy_arm64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -64607,8 +66536,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - # This is a target that cannot depend on //base. @@ -64684,7 +66612,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/enums/operator-type.c", - ] +# This is a target that cannot depend on //base. -+source_set("xx-fill_arm64_standalone") { ++source_set("xx-copy_arm64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -64703,8 +66631,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - # This is a target that cannot depend on //base. @@ -64753,7 +66680,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-avgpool_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("xx-pad_arm64") { ++source_set("xx-fill_arm64") { + cflags = [ - sources = [ @@ -64774,8 +66701,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -64812,7 +66739,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("xx-pad_arm64_standalone") { ++source_set("xx-fill_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -64824,8 +66751,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { @@ -64866,7 +66793,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("xx-transposev_arm64") { ++source_set("xx-pad_arm64") { + cflags = [ - sources = [ @@ -64887,7 +66814,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -64933,7 +66861,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("xx-transposev_arm64_standalone") { ++source_set("xx-pad_arm64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -64961,7 +66889,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -65035,14 +66964,12 @@ File regenerated by running 'python3 generate_build_gn.py' - ] - - public_configs = [ ":xnnpack_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+if (current_cpu == "ppc64") { -+source_set("configs_ppc64") { ++source_set("xx-transposev_arm64") { + cflags = [ - source_set("f16-f32-vcvt_arm64") { @@ -65057,30 +66984,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -65130,7 +67034,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("configs_ppc64_standalone") { ++source_set("xx-transposev_arm64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -65142,30 +67046,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { @@ -65206,14 +67087,15 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("enums_ppc64") { -+ cflags = [ ++} - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", - ] -+ ] ++if (current_cpu == "ppc64") { ++source_set("configs_ppc64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65225,24 +67107,47 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -65250,18 +67155,12 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_config" ] -+} - - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("enums_ppc64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65273,36 +67172,52 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++# This is a target that cannot depend on //base. ++source_set("configs_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" + ] - # This is a target that cannot depend on //base. - source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65314,13 +67229,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -65337,8 +67254,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", - "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", - ] -+source_set("f16-f32-vcvt_ppc64") { -+ cflags = [ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65350,13 +67269,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++source_set("enums_ppc64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - # This is a target that cannot depend on //base. @@ -65370,9 +67287,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", - "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65384,6 +67306,11 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -65391,10 +67318,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -65414,9 +67337,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_ppc64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65428,13 +67350,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++# This is a target that cannot depend on //base. ++source_set("enums_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - # This is a target that cannot depend on //base. @@ -65452,9 +67373,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65466,14 +67392,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -65486,7 +67416,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-qs8-vcvt_ppc64") { ++source_set("f16-f32-vcvt_ppc64") { + cflags = [ - sources = [ @@ -65507,7 +67437,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -65544,7 +67474,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_ppc64_standalone") { ++source_set("f16-f32-vcvt_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -65556,7 +67486,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - source_set("f16-ibilinear_arch=armv8.2-a+fp16") { @@ -65597,7 +67527,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-qu8-vcvt_ppc64") { ++source_set("f16-qs8-vcvt_ppc64") { + cflags = [ - sources = [ @@ -65618,7 +67548,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -65664,7 +67594,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_ppc64_standalone") { ++source_set("f16-qs8-vcvt_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -65692,7 +67622,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -65759,7 +67689,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", - "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", - ] -+source_set("f16-rdminmax_ppc64") { ++source_set("f16-qu8-vcvt_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -65777,8 +67707,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -65816,7 +67745,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_ppc64_standalone") { ++source_set("f16-qu8-vcvt_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -65828,8 +67757,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - sources = [ @@ -65870,7 +67798,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-rminmax_ppc64") { ++source_set("f16-rdminmax_ppc64") { + cflags = [ - sources = [ @@ -65891,9 +67819,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -65930,7 +67857,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_ppc64_standalone") { ++source_set("f16-rdminmax_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -65942,9 +67869,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] - source_set("f16-qs8-vcvt_arm64") { @@ -65990,7 +67916,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", - ] -+source_set("f16-vapproxgelu_ppc64") { ++source_set("f16-rminmax_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -66008,7 +67934,9 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -66046,7 +67974,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_ppc64_standalone") { ++source_set("f16-rminmax_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66058,7 +67986,9 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -66099,7 +68029,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-vcos_ppc64") { ++source_set("f16-vapproxgelu_ppc64") { + cflags = [ - sources = [ @@ -66120,7 +68050,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -66157,7 +68087,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vcos_ppc64_standalone") { ++source_set("f16-vapproxgelu_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66169,7 +68099,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] - source_set("f16-rdminmax_arch=armv8.2-a+fp16") { @@ -66217,7 +68147,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", - "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", - ] -+source_set("f16-vexp_ppc64") { ++source_set("f16-vcos_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -66235,7 +68165,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - if (!(is_android && use_order_profiling)) { @@ -66274,7 +68204,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vexp_ppc64_standalone") { ++source_set("f16-vcos_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66286,7 +68216,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - sources = [ @@ -66328,7 +68258,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-rminmax_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-vgelu_ppc64") { ++source_set("f16-vexp_ppc64") { + cflags = [ - sources = [ @@ -66351,7 +68281,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -66392,7 +68322,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_ppc64_standalone") { ++source_set("f16-vexp_ppc64_standalone") { + cflags = [ - if (!(is_android && use_order_profiling)) { @@ -66405,7 +68335,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - sources = [ @@ -66453,7 +68383,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", - ] -+source_set("f16-vsin_ppc64") { ++source_set("f16-vgelu_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -66471,7 +68401,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - if (!(is_android && use_order_profiling)) { @@ -66509,7 +68439,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f16-vsin_ppc64_standalone") { ++source_set("f16-vgelu_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66521,7 +68451,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - sources = [ @@ -66562,7 +68492,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f32-argmaxpool_ppc64") { ++source_set("f16-vsin_ppc64") { + cflags = [ - sources = [ @@ -66583,7 +68513,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -66620,7 +68550,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_ppc64_standalone") { ++source_set("f16-vsin_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66632,7 +68562,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - source_set("f16-vapproxgelu_arm64") { @@ -66689,7 +68619,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-avgpool_ppc64") { ++source_set("f32-argmaxpool_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66730,7 +68660,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -66799,7 +68729,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_ppc64_standalone") { ++source_set("f32-argmaxpool_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66811,7 +68741,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - source_set("f16-vclamp_arch=armv8.2-a+fp16") { @@ -66857,7 +68787,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", - ] -+source_set("f32-conv-hwc2chw_ppc64") { ++source_set("f32-avgpool_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -66875,7 +68805,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - if (!(is_android && use_order_profiling)) { @@ -66913,7 +68843,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_ppc64_standalone") { ++source_set("f32-avgpool_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -66925,7 +68855,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -66966,7 +68896,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-vcos_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f32-dwconv2d-chw_ppc64") { ++source_set("f32-conv-hwc2chw_ppc64") { + cflags = [ - sources = [ @@ -66987,14 +68917,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -67031,7 +68954,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_ppc64_standalone") { ++source_set("f32-conv-hwc2chw_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67043,14 +68966,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - source_set("f16-vcos_arm64") { @@ -67096,7 +69012,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", - ] -+source_set("f32-dwconv_ppc64") { ++source_set("f32-dwconv2d-chw_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -67114,16 +69030,14 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -67161,7 +69075,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_ppc64_standalone") { ++source_set("f32-dwconv2d-chw_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67173,16 +69087,14 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - sources = [ @@ -67223,7 +69135,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-vexp_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f32-f16-vcvt_ppc64") { ++source_set("f32-dwconv_ppc64") { + cflags = [ - sources = [ @@ -67244,7 +69156,16 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -67281,7 +69202,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_ppc64_standalone") { ++source_set("f32-dwconv_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67293,7 +69214,16 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - source_set("f16-vexp_arm64") { @@ -67339,7 +69269,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", - ] -+source_set("f32-gemm_ppc64") { ++source_set("f32-f16-vcvt_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -67357,17 +69287,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -67405,7 +69325,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-gemm_ppc64_standalone") { ++source_set("f32-f16-vcvt_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67417,17 +69337,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - sources = [ @@ -67468,7 +69378,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-vgelu_arm64") { - cflags = [] -+source_set("f32-ibilinear-chw_ppc64") { ++source_set("f32-gemm_ppc64") { + cflags = [ - sources = [ @@ -67489,7 +69399,14 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -67526,7 +69443,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_ppc64_standalone") { ++source_set("f32-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67538,7 +69455,14 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - source_set("f16-vhswish_arch=armv8.2-a+fp16") { @@ -67584,7 +69508,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", - ] -+source_set("f32-ibilinear_ppc64") { ++source_set("f32-ibilinear-chw_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -67602,7 +69526,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -67640,7 +69564,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_ppc64_standalone") { ++source_set("f32-ibilinear-chw_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67652,7 +69576,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - sources = [ @@ -67709,7 +69633,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-igemm_ppc64") { ++source_set("f32-ibilinear_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67721,17 +69645,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] - sources = [ @@ -67779,7 +69693,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-igemm_ppc64_standalone") { ++source_set("f32-ibilinear_ppc64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -67798,17 +69712,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] - # This is a target that cannot depend on //base. @@ -67856,7 +69760,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f32-maxpool_ppc64") { ++source_set("f32-igemm_ppc64") { + cflags = [ - sources = [ @@ -67877,7 +69781,14 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -67914,7 +69825,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_ppc64_standalone") { ++source_set("f32-igemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -67926,7 +69837,14 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { @@ -67974,7 +69892,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", - ] -+source_set("f32-qc4w-gemm_ppc64") { ++source_set("f32-maxpool_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -67992,8 +69910,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - if (!(is_android && use_order_profiling)) { @@ -68031,7 +69948,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_ppc64_standalone") { ++source_set("f32-maxpool_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -68043,8 +69960,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -68085,7 +70001,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f16-vsin_arm64") { - cflags = [] -+source_set("f32-qc8w-gemm_ppc64") { ++source_set("f32-qc4w-gemm_ppc64") { + cflags = [ - sources = [ @@ -68106,8 +70022,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -68144,7 +70060,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_ppc64_standalone") { ++source_set("f32-qc4w-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -68156,8 +70072,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - source_set("f16-vsqrt_arch=armv8.2-a+fp16") { @@ -68205,7 +70121,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", - "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", - ] -+source_set("f32-qs8-vcvt_ppc64") { ++source_set("f32-qc8w-gemm_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68223,9 +70139,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - if (!(is_android && use_order_profiling)) { @@ -68264,7 +70179,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_ppc64_standalone") { ++source_set("f32-qc8w-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -68276,9 +70191,8 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -68317,11 +70231,13 @@ File regenerated by running 'python3 generate_build_gn.py' + assert_no_deps = [ "//base" ] } +} ++ ++source_set("f32-qs8-vcvt_ppc64") { ++ cflags = [ - source_set("f16-vunary_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f32-qu8-vcvt_ppc64") { -+ cflags = [ ++ ] - sources = [ - "src/include/xnnpack.h", @@ -68329,6 +70245,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", - "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68341,19 +70261,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] @@ -68364,12 +70284,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", - "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -68381,11 +70297,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} -+ +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_ppc64_standalone") { ++source_set("f32-qs8-vcvt_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -68397,9 +70310,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - source_set("f32-argmaxpool_arm64") { @@ -68447,7 +70359,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+source_set("f32-raddstoreexpminusmax_ppc64") { ++source_set("f32-qu8-vcvt_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68465,7 +70377,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -68504,7 +70417,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_ppc64_standalone") { ++source_set("f32-qu8-vcvt_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -68516,7 +70429,8 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - sources = [ @@ -68565,7 +70479,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] -+source_set("f32-rdminmax_ppc64") { ++source_set("f32-raddstoreexpminusmax_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68584,8 +70498,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - # This is a target that cannot depend on //base. @@ -68651,7 +70564,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_ppc64_standalone") { ++source_set("f32-raddstoreexpminusmax_ppc64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68670,8 +70583,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - # This is a target that cannot depend on //base. @@ -68731,7 +70643,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("f32-rdsum_ppc64") { ++source_set("f32-rdminmax_ppc64") { + cflags = [ - asmflags = cflags @@ -68743,7 +70655,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68777,7 +70690,7 @@ File regenerated by running 'python3 generate_build_gn.py' - asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_ppc64_standalone") { ++source_set("f32-rdminmax_ppc64_standalone") { + cflags = [ - sources = [ @@ -68798,7 +70711,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -68896,7 +70810,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-rminmax_ppc64") { ++source_set("f32-rdsum_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -68908,9 +70822,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - source_set("f32-f16-vcvt_arm64") { @@ -68948,7 +70860,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_ppc64_standalone") { ++source_set("f32-rdsum_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -68975,9 +70887,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -69081,7 +70991,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-rsum_ppc64") { ++source_set("f32-rminmax_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -69103,9 +71013,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", - "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", @@ -69120,7 +71027,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -69158,9 +71067,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", - "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-2x4-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", @@ -69187,7 +71093,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-rsum_ppc64_standalone") { ++source_set("f32-rminmax_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -69199,7 +71105,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - source_set("f32-ibilinear-chw_arm64") { @@ -69260,7 +71168,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-spmm_ppc64") { ++source_set("f32-rsum_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -69272,9 +71180,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - source_set("f32-ibilinear_arm64") { @@ -69312,7 +71218,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-spmm_ppc64_standalone") { ++source_set("f32-rsum_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -69339,9 +71245,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -69443,7 +71347,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-vapproxgelu_ppc64") { ++source_set("f32-spmm_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -69465,9 +71369,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", - "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -69482,7 +71383,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -69520,9 +71423,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", - "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-2x4-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", - "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -69549,7 +71449,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_ppc64_standalone") { ++source_set("f32-spmm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -69561,7 +71461,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - source_set("f32-maxpool_arm64") { @@ -69622,7 +71524,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("f32-vbinary_ppc64") { ++source_set("f32-vapproxgelu_ppc64") { + cflags = [ - if (!(is_android && use_order_profiling)) { @@ -69657,25 +71559,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -69720,7 +71604,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_ppc64_standalone") { ++source_set("f32-vapproxgelu_ppc64_standalone") { + cflags = [ - if (!(is_android && use_order_profiling)) { @@ -69733,25 +71617,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - asmflags = cflags @@ -69795,7 +71661,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] - - asmflags = cflags -+source_set("f32-vclamp_ppc64") { ++source_set("f32-vbinary_ppc64") { + cflags = [ - sources = [ @@ -69818,7 +71684,25 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -69866,7 +71750,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_ppc64_standalone") { ++source_set("f32-vbinary_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -69896,7 +71780,25 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c" ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -69916,7 +71818,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] @@ -69953,7 +71854,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] @@ -69968,7 +71868,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-vcmul_ppc64") { ++source_set("f32-vclamp_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -69986,13 +71886,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70026,7 +71925,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u1.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] @@ -70044,7 +71942,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_ppc64_standalone") { ++source_set("f32-vclamp_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70056,7 +71954,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - source_set("f32-raddstoreexpminusmax_arm64") { @@ -70115,7 +72013,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-vcopysign_ppc64") { ++source_set("f32-vcmul_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70138,9 +72036,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70191,7 +72087,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_ppc64_standalone") { ++source_set("f32-vcmul_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70203,9 +72099,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - source_set("f32-rdsum_arm64") { @@ -70264,7 +72158,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-vcos_ppc64") { ++source_set("f32-vcopysign_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70289,7 +72183,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70342,7 +72238,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vcos_ppc64_standalone") { ++source_set("f32-vcopysign_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70354,7 +72250,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - source_set("f32-rsum_arm64") { @@ -70396,7 +72294,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f32-rsum_arm64_standalone") { - cflags = [] -+source_set("f32-velu_ppc64") { ++source_set("f32-vcos_ppc64") { + cflags = [ - sources = [ @@ -70418,8 +72316,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -70468,7 +72365,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-velu_ppc64_standalone") { ++source_set("f32-vcos_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -70499,8 +72396,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -70543,7 +72439,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-vexp_ppc64") { ++source_set("f32-velu_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70555,7 +72451,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - sources = [ @@ -70638,7 +72534,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vexp_ppc64_standalone") { ++source_set("f32-velu_ppc64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70657,7 +72553,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - # This is a target that cannot depend on //base. @@ -70739,13 +72635,13 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-vclamp_arm64") { - cflags = [] -+source_set("f32-vgelu_ppc64") { ++source_set("f32-vexp_ppc64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] + ] @@ -70761,7 +72657,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -70782,8 +72678,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-neon-u16.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar-u4.c", +- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -70799,7 +72695,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_ppc64_standalone") { ++source_set("f32-vexp_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -70811,7 +72707,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - source_set("f32-vcmul_arm64") { @@ -70853,7 +72749,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f32-vcmul_arm64_standalone") { - cflags = [] -+source_set("f32-vhswish_ppc64") { ++source_set("f32-vgelu_ppc64") { + cflags = [ - sources = [ @@ -70875,7 +72771,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -70923,7 +72819,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_ppc64_standalone") { ++source_set("f32-vgelu_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -70953,7 +72849,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -70996,7 +72892,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-vlog_ppc64") { ++source_set("f32-vhswish_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -71008,7 +72904,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - sources = [ @@ -71054,11 +72950,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", - "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", - "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", - "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vlog_ppc64_standalone") { ++source_set("f32-vhswish_ppc64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71077,7 +72972,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - # This is a target that cannot depend on //base. @@ -71089,7 +72984,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", - "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", - "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u2.c", - "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] @@ -71126,7 +73020,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-vexp_arm64") { - cflags = [] -+source_set("f32-vlrelu_ppc64") { ++source_set("f32-vlog_ppc64") { + cflags = [ - sources = [ @@ -71148,7 +73042,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -71186,7 +73080,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_ppc64_standalone") { ++source_set("f32-vlog_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -71198,7 +73092,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - source_set("f32-vgelu_arm64") { @@ -71246,7 +73140,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", - "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", - ] -+source_set("f32-vmulcaddc_ppc64") { ++source_set("f32-vlrelu_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71264,7 +73158,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -71286,8 +73180,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -71303,7 +73197,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_ppc64_standalone") { ++source_set("f32-vlrelu_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -71315,13 +73209,13 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-neon-u16.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar-u4.c", +- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -71357,7 +73251,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-vlog_arm64") { - cflags = [] -+source_set("f32-vrelu_ppc64") { ++source_set("f32-vmulcaddc_ppc64") { + cflags = [ - sources = [ @@ -71379,7 +73273,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -71417,7 +73311,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vrelu_ppc64_standalone") { ++source_set("f32-vmulcaddc_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -71429,7 +73323,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c" ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - source_set("f32-vlrelu_arm64") { @@ -71471,7 +73365,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f32-vlrelu_arm64_standalone") { - cflags = [] -+source_set("f32-vrnd_ppc64") { ++source_set("f32-vrelu_ppc64") { + cflags = [ - sources = [ @@ -71493,14 +73387,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -71531,7 +73418,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_ppc64_standalone") { ++source_set("f32-vrelu_ppc64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71550,14 +73437,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c" ++ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" + ] - # This is a target that cannot depend on //base. @@ -71607,7 +73487,8 @@ File regenerated by running 'python3 generate_build_gn.py' - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", +- "src/src/f32-vrelu/gen/f32-vrelu-neon.c", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71620,7 +73501,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-vrsqrt_ppc64") { ++source_set("f32-vrnd_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -71632,13 +73513,16 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar-u8.c", +- "src/src/f32-vrelu/gen/f32-vrelu-neon.c", +- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -71678,22 +73562,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", - "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", - "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", - "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_ppc64_standalone") { ++source_set("f32-vrnd_ppc64_standalone") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71712,8 +73592,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - # This is a target that cannot depend on //base. @@ -71725,19 +73607,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u4.c", - "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u4.c", - "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u4.c", - "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", - "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", - "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u4.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -71770,23 +73648,18 @@ File regenerated by running 'python3 generate_build_gn.py' + assert_no_deps = [ "//base" ] } +} -+ -+source_set("f32-vsigmoid_ppc64") { -+ cflags = [ - source_set("f32-vrsqrt_arm64") { - cflags = [] -+ ] ++source_set("f32-vrsqrt_ppc64") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71799,18 +73672,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. - source_set("f32-vrsqrt_arm64_standalone") { @@ -71818,12 +73690,16 @@ File regenerated by running 'python3 generate_build_gn.py' - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt-u16.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u4.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -71835,27 +73711,27 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_ppc64_standalone") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] -+ ] ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_ppc64_standalone") { ++ cflags = [ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - source_set("f32-vsigmoid_arm64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -71863,12 +73739,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -71880,9 +73753,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -71898,7 +73778,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", - ] -+source_set("f32-vsin_ppc64") { ++source_set("f32-vsigmoid_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71916,7 +73796,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - if (!(is_android && use_order_profiling)) { @@ -71955,7 +73835,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vsin_ppc64_standalone") { ++source_set("f32-vsigmoid_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -71967,7 +73847,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - sources = [ @@ -72009,13 +73889,13 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("f32-vsqrt_arm64") { - cflags = [] -+source_set("f32-vsqrt_ppc64") { ++source_set("f32-vsin_ppc64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] + ] @@ -72031,7 +73911,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -72052,8 +73932,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt-u4.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -72069,7 +73949,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_ppc64_standalone") { ++source_set("f32-vsin_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72081,7 +73961,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt-u1.c" ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - source_set("f32-vtanh_arm64") { @@ -72123,7 +74003,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("f32-vtanh_arm64_standalone") { - cflags = [] -+source_set("f32-vtanh_ppc64") { ++source_set("f32-vsqrt_ppc64") { + cflags = [ - sources = [ @@ -72145,7 +74025,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -72193,7 +74073,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_ppc64_standalone") { ++source_set("f32-vsqrt_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -72223,7 +74103,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -72316,7 +74196,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/operators/unary-elementwise-nc.c", - "src/src/operators/unpooling-nhwc.c", - ] -+source_set("f32-vunary_ppc64") { ++source_set("f32-vtanh_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -72334,11 +74214,264 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++source_set("f32-vunary_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] + +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- ] ++source_set("operators_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -72375,7 +74508,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("f32-vunary_ppc64_standalone") { ++source_set("operators_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72387,9 +74520,27 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - sources = [ @@ -72431,7 +74582,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("operators_ppc64") { ++source_set("qd8-f32-qb4w-gemm_ppc64") { + cflags = [ - sources = [ @@ -72453,27 +74604,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -72511,7 +74643,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("operators_ppc64_standalone") { ++source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72523,27 +74655,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" + ] - source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { @@ -72591,7 +74704,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+source_set("qd8-f32-qb4w-gemm_ppc64") { ++source_set("qd8-f32-qc4w-gemm_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -72609,8 +74722,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - if (!(is_android && use_order_profiling)) { @@ -72649,7 +74762,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { ++source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72661,8 +74774,8 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -72704,7 +74817,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("qd8-f32-qc4w-gemm_ppc64") { ++source_set("qd8-f32-qc8w-gemm_ppc64") { + cflags = [ - sources = [ @@ -72726,8 +74839,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -72765,7 +74879,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { ++source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72777,8 +74891,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { @@ -72837,7 +74952,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qd8-f32-qc8w-gemm_ppc64") { ++source_set("qd8-f32-qc8w-igemm_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72860,10 +74975,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -72914,7 +75028,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { ++source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -72926,10 +75040,9 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] - source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { @@ -72977,9 +75090,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", - ] -+source_set("qd8-f32-qc8w-igemm_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -72990,106 +75101,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- asmflags = cflags -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] -+# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- asmflags = cflags -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - - public_configs = [ ":xnnpack_config" ] +source_set("qs8-dwconv_ppc64") { + cflags = [ @@ -73100,27 +75112,33 @@ File regenerated by running 'python3 generate_build_gn.py' - } + ] -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] +- asmflags = cflags + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -73131,31 +75149,37 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + public_configs = [ ":xnnpack_config" ] +} -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- public_configs = [ ":xnnpack_config" ] +- } +# This is a target that cannot depend on //base. +source_set("qs8-dwconv_ppc64_standalone") { + cflags = [ +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ ] + +- asmflags = cflags ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -73167,21 +75191,88 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++source_set("qs8-f32-vcvt_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -73197,12 +75288,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_ppc64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -73214,13 +75302,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++ ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { @@ -73233,85 +75322,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", - ] -+source_set("qs8-f32-vcvt_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -73344,15 +75354,13 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", - ] +source_set("qs8-packw_ppc64") { + cflags = [ @@ -73377,13 +75385,17 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- asmflags = cflags +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -73391,14 +75403,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -73409,32 +75413,36 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- public_configs = [ ":xnnpack_config" ] +# This is a target that cannot depend on //base. +source_set("qs8-packw_ppc64_standalone") { + cflags = [ -- public_configs = [ ":xnnpack_config" ] -+ ] - - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } ++ ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" + ] -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- asmflags = cflags + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", - ] + deps = [ + "//third_party/cpuinfo", @@ -73462,13 +75470,15 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags - - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", - ] +source_set("qs8-qc4w-gemm_ppc64") { + cflags = [ @@ -73499,8 +75509,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -73510,8 +75520,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -73535,8 +75545,8 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" @@ -73544,8 +75554,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -73579,15 +75589,15 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +source_set("qs8-qc8w-dwconv_ppc64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", - ] + ] @@ -73604,13 +75614,10 @@ File regenerated by running 'python3 generate_build_gn.py' + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] @@ -73621,8 +75628,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -73632,8 +75639,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -73655,6 +75662,82 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("qs8-qc8w-gemm_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -73672,15 +75755,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -73696,21 +75772,15 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + +- public_configs = [ ":xnnpack_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - # This is a target that cannot depend on //base. - source_set("qd8-f32-qb4w-gemm_arm64_standalone") { @@ -73723,52 +75793,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", - ] -+source_set("qs8-qc8w-gemm_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", -- ] + public_configs = [ ":xnnpack_config" ] +} @@ -73780,46 +75804,36 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] -- } + ] -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -73827,29 +75841,6 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-qc8w-igemm_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -+ ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -73860,37 +75851,26 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++source_set("qs8-qc8w-igemm_ppc64") { ++ cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -73902,13 +75882,99 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-igemm_ppc64_standalone") { + cflags = [ -- public_configs = [ ":xnnpack_config" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + ] +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -73924,13 +75990,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] ++source_set("qs8-qu8-packw_ppc64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -73942,17 +76003,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - # This is a target that cannot depend on //base. @@ -73966,7 +76023,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", - ] -+ public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -73978,14 +76037,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - public_configs = [ ":xnnpack_config" ] -+source_set("qs8-qu8-packw_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] ++} - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -74002,7 +76063,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", - ] -+ ] ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_ppc64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -74014,16 +76077,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { @@ -74036,12 +76097,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -74053,37 +76111,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_ppc64_standalone") { -+ cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ ] - -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] - -- asmflags = cflags -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74091,6 +76118,30 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++source_set("qs8-rdsum_ppc64") { ++ cflags = [ + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -74101,21 +76152,28 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++ ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("qs8-rdsum_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -74123,10 +76181,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -74138,41 +76194,38 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_ppc64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] - source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -74185,17 +76238,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] @@ -74250,7 +76292,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", - ] @@ -74289,7 +76330,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", - ] @@ -74366,9 +76406,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", - ] -+source_set("qs8-vadd_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -74379,44 +76417,41 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("qs8-vadd_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + ] -- public_configs = [ ":xnnpack_config" ] +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } +- asmflags = cflags + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- asmflags = cflags -+ public_configs = [ ":xnnpack_config" ] -+} - - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", - ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vadd_ppc64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -74428,24 +76463,46 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - public_configs = [ ":xnnpack_config" ] - } ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_ppc64_standalone") { ++ cflags = [ + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ ] + +- asmflags = cflags + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- asmflags = cflags +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74453,55 +76510,26 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - - public_configs = [ ":xnnpack_config" ] -+source_set("qs8-vaddc_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -74512,31 +76540,30 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++source_set("qs8-vaddc_ppc64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ public_configs = [ ":xnnpack_config" ] -+} ++ ] - # This is a target that cannot depend on //base. - source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_ppc64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -74548,16 +76575,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -74573,11 +76600,62 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", - ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74585,6 +76663,29 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++source_set("qs8-vcvt_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -74595,60 +76696,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", -- ] -+source_set("qs8-vcvt_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_config" ] - } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", @@ -74673,34 +76733,41 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. +source_set("qs8-vcvt_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] -- } + ] -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -74709,27 +76776,18 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } +} -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +source_set("qs8-vlrelu_ppc64") { + cflags = [ @@ -74748,23 +76806,22 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74772,45 +76829,10 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c" -+ ] - - source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { - cflags = [ "-march=armv8.2-a+dotprod" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - sources = [ - "src/include/xnnpack.h", @@ -74818,12 +76840,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_ppc64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -74835,13 +76854,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++ ] - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { @@ -74853,81 +76873,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", - ] -+source_set("qs8-vmul_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vmul_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -74960,16 +76905,14 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qs8-vmulc_ppc64") { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++source_set("qs8-vmul_ppc64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", - ] + ] @@ -74985,7 +76928,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -74994,6 +76937,163 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++source_set("qs8-vmulc_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_ppc64_standalone") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + - # This is a target that cannot depend on //base. - source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] @@ -75004,12 +77104,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -75021,35 +77118,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -75057,6 +77125,25 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -75067,25 +77154,28 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] ++source_set("qs8-vprelu_ppc64") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ ] - # This is a target that cannot depend on //base. - source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qu8-dwconv_ppc64") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -75097,20 +77187,16 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_config" ] ++} - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] @@ -75124,20 +77210,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++# This is a target that cannot depend on //base. ++source_set("qs8-vprelu_ppc64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -75149,14 +77230,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ ] - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_ppc64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] - # This is a target that cannot depend on //base. - source_set("qs8-dwconv_arm64_standalone") { @@ -75166,15 +77247,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -75186,28 +77267,14 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -75220,7 +77287,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("qu8-f32-vcvt_ppc64") { ++source_set("qs8-vpreluc_ppc64") { + cflags = [ - sources = [ @@ -75241,8 +77308,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -75279,7 +77345,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_ppc64_standalone") { ++source_set("qs8-vpreluc_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -75291,8 +77357,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - source_set("qs8-f32-vcvt_arm64") { @@ -75304,7 +77369,6 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] + deps = [ @@ -75339,10 +77403,9 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u1.c", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] -+source_set("qu8-gemm_ppc64") { ++source_set("qs8-vrpreluc_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -75360,10 +77423,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] - if (!(is_android && use_order_profiling)) { @@ -75401,7 +77461,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_ppc64_standalone") { ++source_set("qs8-vrpreluc_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -75413,10 +77473,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] - sources = [ @@ -75465,7 +77522,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", - ] -+source_set("qu8-igemm_ppc64") { ++source_set("qu8-dwconv_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -75484,10 +77541,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - # This is a target that cannot depend on //base. @@ -75524,7 +77581,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_ppc64_standalone") { ++source_set("qu8-dwconv_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -75536,10 +77593,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - source_set("qs8-qc4w-gemm_arm64") { @@ -75580,7 +77637,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("qs8-qc4w-gemm_arm64_standalone") { - cflags = [] -+source_set("qu8-rdsum_ppc64") { ++source_set("qu8-f32-vcvt_ppc64") { + cflags = [ - sources = [ @@ -75601,7 +77658,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -75621,7 +77678,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", @@ -75629,12 +77685,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] + deps = [ @@ -75660,7 +77714,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_ppc64_standalone") { ++source_set("qu8-f32-vcvt_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -75671,7 +77725,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", @@ -75679,12 +77732,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] + ] @@ -75701,7 +77752,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -75771,7 +77822,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qu8-rsum_ppc64") { ++source_set("qu8-gemm_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -75802,7 +77853,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -75861,7 +77913,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_ppc64_standalone") { ++source_set("qu8-gemm_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -75873,7 +77925,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { @@ -75915,7 +77968,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qu8-vadd_ppc64") { ++source_set("qu8-igemm_ppc64") { + cflags = [ - sources = [ @@ -75937,8 +77990,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -75957,11 +78010,9 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", @@ -75989,7 +78040,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_ppc64_standalone") { ++source_set("qu8-igemm_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -75999,11 +78050,9 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", @@ -76022,8 +78071,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -76093,7 +78142,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qu8-vaddc_ppc64") { ++source_set("qu8-rdsum_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -76124,8 +78173,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -76184,7 +78232,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_ppc64_standalone") { ++source_set("qu8-rdsum_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -76196,8 +78244,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { @@ -76256,7 +78303,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qu8-vcvt_ppc64") { ++source_set("qu8-rsum_ppc64") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -76273,19 +78320,16 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -76318,11 +78362,9 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", @@ -76341,7 +78383,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_ppc64_standalone") { ++source_set("qu8-rsum_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -76353,8 +78395,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - source_set("qs8-qu8-packw_arm64") { @@ -76400,7 +78441,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", - ] -+source_set("qu8-vlrelu_ppc64") { ++source_set("qu8-vadd_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -76418,8 +78459,8 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -76458,7 +78499,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_ppc64_standalone") { ++source_set("qu8-vadd_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -76470,8 +78511,8 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - sources = [ @@ -76513,7 +78554,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qs8-rsum_arch=armv8.2-a+dotprod") { - cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qu8-vmul_ppc64") { ++source_set("qu8-vaddc_ppc64") { + cflags = [ - sources = [ @@ -76534,7 +78575,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -76571,7 +78613,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_ppc64_standalone") { ++source_set("qu8-vaddc_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -76583,7 +78625,8 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - source_set("qs8-rsum_arm64") { @@ -76625,7 +78668,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("qs8-rsum_arm64_standalone") { - cflags = [] -+source_set("qu8-vmulc_ppc64") { ++source_set("qu8-vcvt_ppc64") { + cflags = [ - sources = [ @@ -76647,7 +78690,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -76693,7 +78736,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_ppc64_standalone") { ++source_set("qu8-vcvt_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -76721,7 +78764,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -76780,7 +78823,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", - ] -- ++source_set("qu8-vlrelu_ppc64") { ++ cflags = [ + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -76791,32 +78836,38 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -- ++ ] + - public_configs = [ ":xnnpack_config" ] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+source_set("reference_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("qs8-vcvt_arm64") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", - "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -76828,31 +78879,30 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", + ] - # This is a target that cannot depend on //base. - source_set("qs8-vcvt_arm64_standalone") { - cflags = [] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u1.c", - "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -76864,36 +78914,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("reference_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] - -- source_set("qs8-vlrelu_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -76901,6 +78921,29 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qs8-vlrelu_arm64") { +- cflags = [] ++source_set("qu8-vmul_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] ++ ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -76911,54 +78954,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-select-u4.c", -- ] -+source_set("s8-ibilinear_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_config" ] - } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- source_set("qs8-vmul_arm64") { +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_arm64_standalone") { - cflags = [] + deps = [ + "//third_party/cpuinfo", @@ -76967,11 +78975,128 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- source_set("qs8-vmul_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", - "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", - ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++source_set("qu8-vmulc_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qs8-vmulc_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] + public_configs = [ ":xnnpack_config" ] +} @@ -76986,78 +79111,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vmulc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("s8-maxpool_ppc64") { ++source_set("qu8-vmulc_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -77069,7 +79123,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -77095,13 +79149,230 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } +} +- source_set("qs8-vprelu_arm64") { +- cflags = [] ++source_set("qu8-vprelu_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qs8-vprelu_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vprelu_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] + +- source_set("qs8-vpreluc_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("qu8-vpreluc_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("qs8-vrpreluc_arm64") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_arm64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++source_set("qu8-vpreluc_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -77113,17 +79384,18 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+# This is a target that cannot depend on //base. -+source_set("s8-maxpool_ppc64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77135,14 +79407,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("qu8-dwconv_arm64_standalone") { @@ -77151,17 +79422,14 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-imagic.c", - "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("qu8-vrpreluc_ppc64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77173,36 +79441,38 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("qu8-f32-vcvt_arm64") { - cflags = [] -+source_set("s8-rdminmax_ppc64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77214,34 +79484,30 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] ++# This is a target that cannot depend on //base. ++source_set("qu8-vrpreluc_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - # This is a target that cannot depend on //base. - source_set("qu8-f32-vcvt_arm64_standalone") { - cflags = [] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u1.c", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77253,40 +79519,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_ppc64_standalone") { -+ cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ ] - -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] - -- asmflags = cflags -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -77294,6 +79526,30 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -77304,21 +79560,23 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++source_set("reference_ppc64") { ++ cflags = [ - # This is a target that cannot depend on //base. - source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("s8-rminmax_ppc64") { -+ cflags = [ ++ ] - asmflags = cflags ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - sources = [ @@ -77328,12 +79586,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", - "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77345,11 +79600,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -77357,6 +79607,10 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] ++} + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -77369,16 +79623,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("reference_ppc64_standalone") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77390,12 +79643,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("s8-rminmax_ppc64_standalone") { -+ cflags = [ ++ ] - public_configs = [ ":xnnpack_config" ] - } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - # This is a target that cannot depend on //base. @@ -77406,20 +79662,15 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -77431,10 +79682,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -77455,7 +79702,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("s8-vclamp_ppc64") { ++source_set("s8-ibilinear_ppc64") { + cflags = [ - asmflags = cflags @@ -77470,7 +79717,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -77504,7 +79751,7 @@ File regenerated by running 'python3 generate_build_gn.py' - asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_ppc64_standalone") { ++source_set("s8-ibilinear_ppc64_standalone") { + cflags = [ - sources = [ @@ -77528,7 +79775,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -77548,10 +79795,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", @@ -77589,10 +79834,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x2-minmax-fp32-scalar-imagic.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", - "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", @@ -77615,7 +79858,7 @@ File regenerated by running 'python3 generate_build_gn.py' - assert_no_deps = [ "//base" ] - } - } -+source_set("subgraph_ppc64") { ++source_set("s8-maxpool_ppc64") { + cflags = [ - source_set("qu8-rdsum_arm64") { @@ -77630,34 +79873,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -77707,7 +79923,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("subgraph_ppc64_standalone") { ++source_set("s8-maxpool_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -77719,34 +79935,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - source_set("qu8-rsum_arm64") { @@ -77788,7 +79977,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("qu8-rsum_arm64_standalone") { - cflags = [] -+source_set("tables_ppc64") { ++source_set("s8-rdminmax_ppc64") { + cflags = [ - sources = [ @@ -77810,15 +79999,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -77864,7 +80046,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("tables_ppc64_standalone") { ++source_set("s8-rdminmax_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -77892,15 +80074,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -77959,7 +80134,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", - ] -- ++source_set("s8-rminmax_ppc64") { ++ cflags = [ + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -77970,29 +80147,116 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -- ++ ] + - public_configs = [ ":xnnpack_config" ] -- ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+source_set("u8-ibilinear_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("qu8-vcvt_arm64") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_arm64_standalone") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vlrelu_arm64") { +- cflags = [] ++source_set("s8-vclamp_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -78005,12 +80269,20 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- public_configs = [ ":xnnpack_config" ] -- } +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_arm64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -78018,15 +80290,10 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_arm64_standalone") { -- cflags = [] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u1.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -78042,7 +80309,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_ppc64_standalone") { ++source_set("s8-vclamp_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -78054,10 +80321,10 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] -- source_set("qu8-vlrelu_arm64") { +- source_set("qu8-vmul_arm64") { - cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -78065,9 +80332,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -78095,14 +80361,428 @@ File regenerated by running 'python3 generate_build_gn.py' +} - # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_arm64_standalone") { +- source_set("qu8-vmul_arm64_standalone") { - cflags = [] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-select-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++source_set("subgraph_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vmulc_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("subgraph_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("qu8-vprelu_arm64") { +- cflags = [] ++source_set("tables_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("tables_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- source_set("qu8-vpreluc_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] ++source_set("u8-ibilinear_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("qu8-vrpreluc_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("reference_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", - ] +source_set("u8-lut32norm_ppc64") { + cflags = [ @@ -78115,218 +80795,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + ] - public_configs = [ ":xnnpack_config" ] +- } + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vmul_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-vmulc_arm64") { -- cflags = [] -+source_set("u8-maxpool_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("u8-maxpool_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] - -- source_set("reference_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - - # This is a target that cannot depend on //base. - source_set("reference_arm64_standalone") { - cflags = [] @@ -78337,8 +80816,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/reference/packing.cc", - "src/src/reference/unary-elementwise.cc", - ] -+source_set("u8-rdminmax_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -78350,23 +80830,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -78374,20 +80837,32 @@ File regenerated by running 'python3 generate_build_gn.py' + "//third_party/pthreadpool", + ] -- source_set("s8-ibilinear_arm64") { -- cflags = [] +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] +} +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++# This is a target that cannot depend on //base. ++source_set("u8-lut32norm_ppc64_standalone") { ++ cflags = [ + +- source_set("s8-ibilinear_arm64") { +- cflags = [] ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", - "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", - "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", - ] -+# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_ppc64_standalone") { -+ cflags = [ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -78399,14 +80874,17 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - # This is a target that cannot depend on //base. @@ -78419,164 +80897,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", - "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("s8-maxpool_arm64") { -- cflags = [] -+source_set("u8-rminmax_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("u8-rminmax_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] + public_configs = [ ":xnnpack_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -78595,9 +80915,155 @@ File regenerated by running 'python3 generate_build_gn.py' +} - public_configs = [ ":xnnpack_config" ] -+source_set("u8-vclamp_ppc64") { ++source_set("u8-maxpool_ppc64") { + cflags = [ +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("s8-maxpool_arm64") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_arm64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++source_set("u8-maxpool_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++source_set("u8-rdminmax_ppc64") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -78615,6 +81081,10 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", - "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -78627,17 +81097,19 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- public_configs = [ ":xnnpack_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - source_set("s8-rminmax_arm64_standalone") { - cflags = [] @@ -78651,12 +81123,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", - "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -78668,35 +81136,40 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++# This is a target that cannot depend on //base. ++source_set("u8-rdminmax_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("u8-vclamp_ppc64_standalone") { -+ cflags = [ ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - source_set("s8-vclamp_arm64") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-neon-u64.c", - "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -78708,13 +81181,6 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] @@ -78726,7 +81192,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("s8-vclamp_arm64_standalone") { - cflags = [] -+source_set("x16-transposec_ppc64") { ++source_set("u8-rminmax_ppc64") { + cflags = [ - sources = [ @@ -78748,7 +81214,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -78791,6 +81259,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/subgraph/static-resize-bilinear-2d.c", - "src/src/subgraph/static-slice.c", - "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", - "src/src/subgraph/unary.c", - "src/src/subgraph/unpooling-2d.c", - "src/src/subgraph/validation.c", @@ -78818,7 +81287,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("x16-transposec_ppc64_standalone") { ++source_set("u8-rminmax_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -78852,6 +81321,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/subgraph/static-resize-bilinear-2d.c", - "src/src/subgraph/static-slice.c", - "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", - "src/src/subgraph/unary.c", - "src/src/subgraph/unpooling-2d.c", - "src/src/subgraph/validation.c", @@ -78870,7 +81340,9 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -78939,7 +81411,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/tables/exp2minus-k-over-8.c", - "src/src/tables/vlog.c", - ] -+source_set("x16-x32-packw_ppc64") { ++source_set("u8-vclamp_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -78957,8 +81429,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - if (!(is_android && use_order_profiling)) { @@ -78998,7 +81469,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_ppc64_standalone") { ++source_set("u8-vclamp_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -79017,8 +81488,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -79034,15 +81504,15 @@ File regenerated by running 'python3 generate_build_gn.py' + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { @@ -79055,7 +81525,7 @@ File regenerated by running 'python3 generate_build_gn.py' - source_set("u8-lut32norm_arm64") { - cflags = [] -+source_set("x24-transposec_ppc64") { ++source_set("x16-transposec_ppc64") { + cflags = [ - sources = [ @@ -79076,7 +81546,7 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -79113,7 +81583,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool:pthreadpool_standalone", - ] +# This is a target that cannot depend on //base. -+source_set("x24-transposec_ppc64_standalone") { ++source_set("x16-transposec_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -79125,7 +81595,7 @@ File regenerated by running 'python3 generate_build_gn.py' - } + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - source_set("u8-maxpool_arm64") { @@ -79167,7 +81637,7 @@ File regenerated by running 'python3 generate_build_gn.py' - # This is a target that cannot depend on //base. - source_set("u8-maxpool_arm64_standalone") { - cflags = [] -+source_set("x32-packw_ppc64") { ++source_set("x16-x32-packw_ppc64") { + cflags = [ - sources = [ @@ -79189,12 +81659,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -79240,7 +81706,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] - } +# This is a target that cannot depend on //base. -+source_set("x32-packw_ppc64_standalone") { ++source_set("x16-x32-packw_ppc64_standalone") { + cflags = [ - # This is a target that cannot depend on //base. @@ -79268,12 +81734,8 @@ File regenerated by running 'python3 generate_build_gn.py' - ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_config" ] @@ -79336,7 +81798,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", - "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", - ] -+source_set("x32-transposec_ppc64") { ++source_set("x24-transposec_ppc64") { + cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] @@ -79354,7 +81816,7 @@ File regenerated by running 'python3 generate_build_gn.py' - public_configs = [ ":xnnpack_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] - if (!(is_android && use_order_profiling)) { @@ -79393,7 +81855,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. -+source_set("x32-transposec_ppc64_standalone") { ++source_set("x24-transposec_ppc64_standalone") { + cflags = [ - public_configs = [ ":xnnpack_config" ] @@ -79405,7 +81867,7 @@ File regenerated by running 'python3 generate_build_gn.py' - cflags = [] + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] - sources = [ @@ -79445,15 +81907,254 @@ File regenerated by running 'python3 generate_build_gn.py' } +} +- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++source_set("x32-packw_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-packw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] + - source_set("x16-packw_arm64") { - cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- # This is a target that cannot depend on //base. +- source_set("x16-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] ++source_set("x32-transposec_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x16-transposec_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x16-x32-packw_arm64") { +- cflags = [] +source_set("x32-unpool_ppc64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", - ] + ] @@ -79479,7 +82180,7 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("x16-packw_arm64_standalone") { +- source_set("x16-x32-packw_arm64_standalone") { - cflags = [] + deps = [ + "//third_party/cpuinfo", @@ -79490,8 +82191,8 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", - ] + public_configs = [ ":xnnpack_config" ] +} @@ -79522,171 +82223,24 @@ File regenerated by running 'python3 generate_build_gn.py' + "src/src/x32-unpool/x32-unpool-scalar.c" + ] -- source_set("x16-transposec_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -- ] -+source_set("x64-transposec_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x16-x32-packw_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("x64-transposec_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("x16-x32-packw_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - - source_set("x24-transposec_arm64") { - cflags = [] -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", - "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", - "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", - ] -+source_set("x8-lut_ppc64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -79698,14 +82252,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("x24-transposec_arm64_standalone") { @@ -79717,6 +82270,39 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", - "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", - ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] ++source_set("x64-transposec_ppc64") { ++ cflags = [ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ ] + +- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -79729,7 +82315,7 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + deps = [ + "//third_party/cpuinfo", @@ -79739,9 +82325,43 @@ File regenerated by running 'python3 generate_build_gn.py' + ] - public_configs = [ ":xnnpack_config" ] +- } + public_configs = [ ":xnnpack_config" ] +} +- # This is a target that cannot depend on //base. +- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_ppc64_standalone") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", +- ] ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -79762,9 +82382,12 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", - "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", - ] -+# This is a target that cannot depend on //base. -+source_set("x8-lut_ppc64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -79776,14 +82399,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] - public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} - # This is a target that cannot depend on //base. - source_set("x32-packw_arm64_standalone") { @@ -79801,9 +82423,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", - "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++source_set("x8-lut_ppc64") { ++ cflags = [ - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -79815,28 +82436,30 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - source_set("x32-transposec_arm64") { - cflags = [] -+source_set("x8-packq_ppc64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -79844,7 +82467,8 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", - "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", - ] -+ ] ++ public_configs = [ ":xnnpack_config" ] ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -79856,16 +82480,13 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] ++# This is a target that cannot depend on //base. ++source_set("x8-lut_ppc64_standalone") { ++ cflags = [ - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ] - # This is a target that cannot depend on //base. - source_set("x32-transposec_arm64_standalone") { @@ -79877,11 +82498,9 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", - "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -79894,26 +82513,106 @@ File regenerated by running 'python3 generate_build_gn.py' - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("x8-packq_ppc64_standalone") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } ++} + +- source_set("x32-unpool_arm64") { +- cflags = [] ++source_set("x8-packq_ppc64") { ++ cflags = [ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] -- source_set("x32-unpool_arm64") { +- public_configs = [ ":xnnpack_config" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packq_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- source_set("x64-transposec_arm64") { - cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -79921,8 +82620,9 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", - ] + deps = [ + "//third_party/cpuinfo", @@ -79949,90 +82649,6 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_arm64_standalone") { -- cflags = [] -+source_set("x8-packw_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x64-transposec_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-packw_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - - # This is a target that cannot depend on //base. - source_set("x64-transposec_arm64_standalone") { - cflags = [] @@ -80043,6 +82659,89 @@ File regenerated by running 'python3 generate_build_gn.py' - "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", - "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", - ] ++source_set("x8-packw_ppc64") { ++ cflags = [ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ ] + +- public_configs = [ ":xnnpack_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + +- source_set("x8-lut_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_config" ] ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++source_set("x8-packw_ppc64_standalone") { ++ cflags = [ + +- public_configs = [ ":xnnpack_config" ] +- } ++ ] + +- # This is a target that cannot depend on //base. +- source_set("x8-lut_arm64_standalone") { +- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -80075,15 +82774,14 @@ File regenerated by running 'python3 generate_build_gn.py' } +} -- source_set("x8-lut_arm64") { -- cflags = [] +- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +source_set("x8-transposec_ppc64") { + cflags = [ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- "src/src/x8-pack-lh/x8--packlh-neonsme2.c", - ] + ] @@ -80109,8 +82807,8 @@ File regenerated by running 'python3 generate_build_gn.py' + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - # This is a target that cannot depend on //base. -- source_set("x8-lut_arm64_standalone") { -- cflags = [] +- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -80120,8 +82818,7 @@ File regenerated by running 'python3 generate_build_gn.py' - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- "src/src/x8-pack-lh/x8--packlh-neonsme2.c", - ] + public_configs = [ ":xnnpack_config" ] +} diff --git a/chromium-137-pdfium-png_decoder-build-error.patch b/chromium-137-pdfium-png_decoder-build-error.patch deleted file mode 100644 index f45c757..0000000 --- a/chromium-137-pdfium-png_decoder-build-error.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -up chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp.me chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp ---- chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp.me 2025-05-10 23:12:58.189339791 +0200 -+++ chromium-137.0.7151.15/third_party/pdfium/core/fxcodec/png/png_decoder.cpp 2025-05-10 23:13:54.931224351 +0200 -@@ -52,8 +52,8 @@ void _png_load_bmp_attribute(png_structp - CFX_DIBAttribute* pAttribute) { - if (pAttribute) { - #if defined(PNG_pHYs_SUPPORTED) -- pAttribute->xdpi_ = png_get_x_pixels_per_meter(png_ptr, info_ptr); -- pAttribute->ydpi_ = png_get_y_pixels_per_meter(png_ptr, info_ptr); -+ pAttribute->x_dpi_ = png_get_x_pixels_per_meter(png_ptr, info_ptr); -+ pAttribute->y_dpi_ = png_get_y_pixels_per_meter(png_ptr, info_ptr); - png_uint_32 res_x, res_y; - int unit_type; - png_get_pHYs(png_ptr, info_ptr, &res_x, &res_y, &unit_type); diff --git a/chromium-137-simdutf-7.x-build-error.patch b/chromium-137-simdutf-7.x-build-error.patch deleted file mode 100644 index 5e33d54..0000000 --- a/chromium-137-simdutf-7.x-build-error.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.simdutf-7.x chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc ---- chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.simdutf-7.x 2025-05-21 00:14:25.000000000 +0200 -+++ chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc 2025-05-23 23:31:59.961068931 +0200 -@@ -493,7 +493,7 @@ Maybe ArrayBufferFromBa - std::unique_ptr output = std::make_unique(output_length); - simdutf::result simd_result = simdutf::base64_to_binary_safe( - reinterpret_cast(input_vector), input_length, output.get(), -- output_length, alphabet, last_chunk_handling); -+ output_length, alphabet, last_chunk_handling, false); - - { - AllowGarbageCollection gc; -@@ -526,7 +526,7 @@ simdutf::result ArrayBufferSetFromBase64 - simdutf::result simd_result = simdutf::base64_to_binary_safe( - reinterpret_cast(input_vector), input_length, - reinterpret_cast(typed_array->DataPtr()), output_length, alphabet, -- last_chunk_handling); -+ last_chunk_handling, false); - - return simd_result; - } diff --git a/chromium-137-simdutf-build-error.patch b/chromium-137-simdutf-build-error.patch deleted file mode 100644 index 50441b7..0000000 --- a/chromium-137-simdutf-build-error.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.me chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc ---- chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc.me 2025-05-21 00:14:25.000000000 +0200 -+++ chromium-137.0.7151.40/v8/src/builtins/builtins-typed-array.cc 2025-05-23 23:31:59.961068931 +0200 -@@ -820,7 +820,7 @@ BUILTIN(Uint8ArrayPrototypeToBase64) { - - size_t simd_result_size; - if (uint8array->buffer()->is_shared()) { -- simd_result_size = simdutf::atomic_binary_to_base64( -+ simd_result_size = simdutf::binary_to_base64( - std::bit_cast(uint8array->GetBuffer()->backing_store()), - length, reinterpret_cast(output->GetChars(no_gc)), alphabet); - } else { diff --git a/chromium-138-checkversion-nodejs.patch b/chromium-138-checkversion-nodejs.patch new file mode 100644 index 0000000..db389a7 --- /dev/null +++ b/chromium-138-checkversion-nodejs.patch @@ -0,0 +1,23 @@ +diff -up chromium-138.0.7204.15/third_party/node/node.gni.me chromium-138.0.7204.15/third_party/node/node.gni +--- chromium-138.0.7204.15/third_party/node/node.gni.me 2025-06-03 23:20:09.000000000 +0200 ++++ chromium-138.0.7204.15/third_party/node/node.gni 2025-06-09 09:59:21.788545159 +0200 +@@ -44,7 +44,6 @@ template("node") { + if (!defined(deps)) { + deps = [] + } +- deps += [ "//third_party/node:check_version" ] + } + } + } +diff -up chromium-138.0.7204.15/third_party/node/BUILD.gn.me chromium-138.0.7204.15/third_party/node/BUILD.gn +diff -up chromium-138.0.7204.15/third_party/protobuf/proto_library.gni.me chromium-138.0.7204.15/third_party/protobuf/proto_library.gni +--- chromium-138.0.7204.15/third_party/protobuf/proto_library.gni.me 2025-06-09 11:33:08.279645775 +0200 ++++ chromium-138.0.7204.15/third_party/protobuf/proto_library.gni 2025-06-09 12:10:07.040045476 +0200 +@@ -562,7 +562,6 @@ template("proto_library") { + _protoc_gen_ts_path, + "//tools/protoc_wrapper/protoc-gen-ts_proto.py", + ] + _protoc_gen_ts_runtime_deps +- deps += [ "//third_party/node:check_version" ] + } + + if (_generate_with_plugin) { diff --git a/chromium.spec b/chromium.spec index 3e00d74..63953e2 100644 --- a/chromium.spec +++ b/chromium.spec @@ -201,7 +201,6 @@ %endif %if 0%{?fedora} %global bundlecrc32c 0 -%global bundlesimdutf 0 %endif %if 0%{?fedora} || 0%{?rhel} > 9 %global bundlelibopenjpeg2 0 @@ -245,7 +244,7 @@ %endif Name: chromium -Version: 137.0.7151.119 +Version: 138.0.7204.49 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -276,12 +275,7 @@ Patch90: chromium-121-system-libxml.patch Patch91: chromium-108-system-opus.patch # patch for Failed NodeJS version check -Patch92: chromium-136-checkversion-nodejs.patch - -# Fix FTBFS -Patch93: chromium-137-pdfium-png_decoder-build-error.patch -Patch94: chromium-137-simdutf-build-error.patch -Patch95: chromium-137-simdutf-7.x-build-error.patch +Patch92: chromium-138-checkversion-nodejs.patch # system ffmpeg # need for old ffmpeg 5.x on epel9 @@ -801,7 +795,7 @@ Provides: bundled(boringssl) Provides: bundled(brotli) = 222564a95d9ab58865a096b8d9f7324ea5f2e03e %endif %if %{bundlesimdutf} -Provides: bundled(simdutf) = 6.4.0 +Provides: bundled(simdutf) = 7.0.0 %endif Provides: bundled(bspatch) = 465265d0d473d107b76e74d969199eaf2cdc8750 Provides: bundled(colorama) = 0.4.6 @@ -981,13 +975,6 @@ Qt6 UI for chromium. %endif %patch -P92 -p1 -b .nodejs-checkversion -%patch -P93 -p1 -b .pdfium-png_decoder-build-error -%if ! %{bundlesimdutf} -%patch -P94 -p1 -b .simdutf-build-error -%if 0%{?fedora} > 42 -%patch -P95 -p1 -b .simdutf-7.x-build-error -%endif -%endif %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 @@ -1752,6 +1739,12 @@ fi %endif %changelog +* Tue Jun 24 2025 Than Ngo - 138.0.7204.49-1 +- Update to 138.0.7204.49 + * CVE-2025-6555: Use after free in Animation + * CVE-2025-6556: Insufficient policy enforcement in Loader + * CVE-2025-6557: Insufficient data validation in DevTools + * Wed Jun 18 2025 Than Ngo - 137.0.7151.119-1 - Update to 137.0.7151.119 * CVE-2025-6191: Integer overflow in V8 diff --git a/sources b/sources index 07b5732..7f1da8b 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-137.0.7151.119-clean.tar.xz) = f30a176b8ff99b07b6c7743e3c4c72b2c176eb59ee60d827cd595ee473a42a0c2fafd02fb4c4f5d7332730df477564b2fbe35142a552422fabd7c1dc54a458ba +SHA512 (chromium-138.0.7204.49-clean.tar.xz) = f96049dcb77dca50d005b22528064fb7a33673b70f2ccc1466acda9f34b41d88dc028e48ecfe0296a576d0535d0470fbc2ff064e57121e9a3e9d967ee5010a38 From 30e01f66d04db8663adad277991a9439a534083a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 25 Jun 2025 09:11:52 +0200 Subject: [PATCH 162/244] - FTBFS, Refreshed chromium-clang++-unknown-argument.patch - FTBFS, Refreshed memory-allocator-dcheck-assert-fix.patch --- ... => chromium-138-clang++-unknown-argument.patch | 14 -------------- chromium.spec | 4 ++-- memory-allocator-dcheck-assert-fix.patch | 4 ++-- 3 files changed, 4 insertions(+), 18 deletions(-) rename chromium-137-clang++-unknown-argument.patch => chromium-138-clang++-unknown-argument.patch (54%) diff --git a/chromium-137-clang++-unknown-argument.patch b/chromium-138-clang++-unknown-argument.patch similarity index 54% rename from chromium-137-clang++-unknown-argument.patch rename to chromium-138-clang++-unknown-argument.patch index 6255729..00209fd 100644 --- a/chromium-137-clang++-unknown-argument.patch +++ b/chromium-138-clang++-unknown-argument.patch @@ -1,20 +1,6 @@ diff -up chromium-137.0.7151.55/build/config/compiler/BUILD.gn.me chromium-137.0.7151.55/build/config/compiler/BUILD.gn --- chromium-137.0.7151.55/build/config/compiler/BUILD.gn.me 2025-05-28 11:19:37.795916619 +0200 +++ chromium-137.0.7151.55/build/config/compiler/BUILD.gn 2025-05-28 11:22:56.845410531 +0200 -@@ -623,13 +623,6 @@ config("compiler") { - default_toolchain != "//build/toolchain/cros:target") { - cflags += [ "-Wa,--crel,--allow-experimental-crel" ] - } -- -- # TODO(crbug.com/413427035): Remove once -- # https://github.com/llvm/llvm-project/pull/136867/ is landed. -- if (!is_win && !llvm_android_mainline && -- default_toolchain != "//build/toolchain/cros:target") { -- cflags += [ "-fextend-variable-liveness=none" ] -- } - } - - # C11/C++11 compiler flags setup. @@ -2053,9 +2046,6 @@ config("default_warnings") { # TODO(crbug.com/40284799): Fix and re-enable. diff --git a/chromium.spec b/chromium.spec index 63953e2..88e310c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -326,8 +326,8 @@ Patch315: chromium-134-rust-libadler2.patch # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch -# Fix FTBFS, clang++: error: unknown argument: '-fextend-variable-liveness=none' -Patch317: chromium-137-clang++-unknown-argument.patch +# unknown warning option -Wno-nontrivial-memcall +Patch317: chromium-138-clang++-unknown-argument.patch # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 diff --git a/memory-allocator-dcheck-assert-fix.patch b/memory-allocator-dcheck-assert-fix.patch index 002f5db..5b02e1d 100644 --- a/memory-allocator-dcheck-assert-fix.patch +++ b/memory-allocator-dcheck-assert-fix.patch @@ -6,7 +6,7 @@ Index: chromium-127.0.6533.88/base/allocator/partition_allocator/src/partition_a partition_page_count <= kMaxPartitionPagesPerRegularSlotSpan; partition_page_count++) { size_t candidate_size = partition_page_count * PartitionPageSize(); -+ if (candidate_size > kMaxBucketed) { ++ if (candidate_size > BucketIndexLookup::kMaxBucketSize) { + break; + } size_t waste = candidate_size % slot_size; @@ -16,7 +16,7 @@ Index: chromium-127.0.6533.88/base/allocator/partition_allocator/src/partition_a size_t system_page_count = partition_page_count * NumSystemPagesPerPartitionPage() - slack; size_t candidate_size = system_page_count * SystemPageSize(); -+ if (candidate_size > kMaxBucketed) { ++ if (candidate_size > BucketIndexLookup::kMaxBucketSize) { + continue; + } size_t waste = candidate_size % slot_size; From 4174ac0359b0915e26630ba14ec2a90199a171da Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 25 Jun 2025 18:27:36 +0200 Subject: [PATCH 163/244] Fix FTBFS due to old ffmpeg version on EL9 --- chromium-138-el9-ffmpeg-deprecated-apis.patch | 158 ++++++++++++++++++ chromium.spec | 2 + 2 files changed, 160 insertions(+) create mode 100644 chromium-138-el9-ffmpeg-deprecated-apis.patch diff --git a/chromium-138-el9-ffmpeg-deprecated-apis.patch b/chromium-138-el9-ffmpeg-deprecated-apis.patch new file mode 100644 index 0000000..b8d0a85 --- /dev/null +++ b/chromium-138-el9-ffmpeg-deprecated-apis.patch @@ -0,0 +1,158 @@ +https://chromium-review.googlesource.com/c/chromium/src/+/6506529 + +Revert CL rolls ffmpeg for M138 as it breaks the build due to old ffmpeg version on EL9 + +diff -up chromium-138.0.7204.49/media/ffmpeg/ffmpeg_common.cc.me chromium-138.0.7204.49/media/ffmpeg/ffmpeg_common.cc +--- chromium-138.0.7204.49/media/ffmpeg/ffmpeg_common.cc.me 2025-06-23 23:34:26.000000000 +0200 ++++ chromium-138.0.7204.49/media/ffmpeg/ffmpeg_common.cc 2025-06-25 15:13:17.958054182 +0200 +@@ -263,22 +263,22 @@ AVCodecID VideoCodecToCodecID(VideoCodec + static VideoCodecProfile ProfileIDToVideoCodecProfile(int profile) { + // Clear out the CONSTRAINED & INTRA flags which are strict subsets of the + // corresponding profiles with which they're used. +- profile &= ~AV_PROFILE_H264_CONSTRAINED; +- profile &= ~AV_PROFILE_H264_INTRA; ++ profile &= ~FF_PROFILE_H264_CONSTRAINED; ++ profile &= ~FF_PROFILE_H264_INTRA; + switch (profile) { +- case AV_PROFILE_H264_BASELINE: ++ case FF_PROFILE_H264_BASELINE: + return H264PROFILE_BASELINE; +- case AV_PROFILE_H264_MAIN: ++ case FF_PROFILE_H264_MAIN: + return H264PROFILE_MAIN; +- case AV_PROFILE_H264_EXTENDED: ++ case FF_PROFILE_H264_EXTENDED: + return H264PROFILE_EXTENDED; +- case AV_PROFILE_H264_HIGH: ++ case FF_PROFILE_H264_HIGH: + return H264PROFILE_HIGH; +- case AV_PROFILE_H264_HIGH_10: ++ case FF_PROFILE_H264_HIGH_10: + return H264PROFILE_HIGH10PROFILE; +- case AV_PROFILE_H264_HIGH_422: ++ case FF_PROFILE_H264_HIGH_422: + return H264PROFILE_HIGH422PROFILE; +- case AV_PROFILE_H264_HIGH_444_PREDICTIVE: ++ case FF_PROFILE_H264_HIGH_444_PREDICTIVE: + return H264PROFILE_HIGH444PREDICTIVEPROFILE; + default: + DVLOG(1) << "Unknown profile id: " << profile; +@@ -289,23 +289,23 @@ static VideoCodecProfile ProfileIDToVide + static int VideoCodecProfileToProfileID(VideoCodecProfile profile) { + switch (profile) { + case H264PROFILE_BASELINE: +- return AV_PROFILE_H264_BASELINE; ++ return FF_PROFILE_H264_BASELINE; + case H264PROFILE_MAIN: +- return AV_PROFILE_H264_MAIN; ++ return FF_PROFILE_H264_MAIN; + case H264PROFILE_EXTENDED: +- return AV_PROFILE_H264_EXTENDED; ++ return FF_PROFILE_H264_EXTENDED; + case H264PROFILE_HIGH: +- return AV_PROFILE_H264_HIGH; ++ return FF_PROFILE_H264_HIGH; + case H264PROFILE_HIGH10PROFILE: +- return AV_PROFILE_H264_HIGH_10; ++ return FF_PROFILE_H264_HIGH_10; + case H264PROFILE_HIGH422PROFILE: +- return AV_PROFILE_H264_HIGH_422; ++ return FF_PROFILE_H264_HIGH_422; + case H264PROFILE_HIGH444PREDICTIVEPROFILE: +- return AV_PROFILE_H264_HIGH_444_PREDICTIVE; ++ return FF_PROFILE_H264_HIGH_444_PREDICTIVE; + default: + DVLOG(1) << "Unknown VideoCodecProfile: " << profile; + } +- return AV_PROFILE_UNKNOWN; ++ return FF_PROFILE_UNKNOWN; + } + + SampleFormat AVSampleFormatToSampleFormat(AVSampleFormat sample_format, +@@ -441,7 +441,7 @@ bool AVCodecContextToAudioDecoderConfig( + // TODO(dalecurtis): Just use the profile from the codec context if ffmpeg + // ever starts supporting xHE-AAC. + // FFmpeg provides the (defined_profile - 1) for AVCodecContext::profile +- if (codec_context->profile == AV_PROFILE_UNKNOWN || ++ if (codec_context->profile == FF_PROFILE_UNKNOWN || + codec_context->profile == mp4::AAC::kXHeAAcType - 1) { + // Errors aren't fatal here, so just drop any MediaLog messages. + NullMediaLog media_log; +@@ -659,16 +659,16 @@ bool AVStreamToVideoDecoderConfig(const + break; + case VideoCodec::kVP9: + switch (codec_context->profile) { +- case AV_PROFILE_VP9_0: ++ case FF_PROFILE_VP9_0: + profile = VP9PROFILE_PROFILE0; + break; +- case AV_PROFILE_VP9_1: ++ case FF_PROFILE_VP9_1: + profile = VP9PROFILE_PROFILE1; + break; +- case AV_PROFILE_VP9_2: ++ case FF_PROFILE_VP9_2: + profile = VP9PROFILE_PROFILE2; + break; +- case AV_PROFILE_VP9_3: ++ case FF_PROFILE_VP9_3: + profile = VP9PROFILE_PROFILE3; + break; + default: +diff -up chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter.cc.me chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter.cc +--- chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter.cc.me 2025-06-23 23:34:26.000000000 +0200 ++++ chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter.cc 2025-06-25 15:13:17.958541707 +0200 +@@ -68,17 +68,17 @@ bool GenerateAdtsHeader(int codec, + hdr[1] |= 1; + + switch (audio_profile) { +- case AV_PROFILE_AAC_MAIN: ++ case FF_PROFILE_AAC_MAIN: + break; +- case AV_PROFILE_AAC_HE: +- case AV_PROFILE_AAC_HE_V2: +- case AV_PROFILE_AAC_LOW: ++ case FF_PROFILE_AAC_HE: ++ case FF_PROFILE_AAC_HE_V2: ++ case FF_PROFILE_AAC_LOW: + hdr[2] |= (1 << 6); + break; +- case AV_PROFILE_AAC_SSR: ++ case FF_PROFILE_AAC_SSR: + hdr[2] |= (2 << 6); + break; +- case AV_PROFILE_AAC_LTP: ++ case FF_PROFILE_AAC_LTP: + hdr[2] |= (3 << 6); + break; + default: +diff -up chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter_unittest.cc.me chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter_unittest.cc +--- chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter_unittest.cc.me 2025-06-23 23:34:26.000000000 +0200 ++++ chromium-138.0.7204.49/media/filters/ffmpeg_aac_bitstream_converter_unittest.cc 2025-06-25 15:13:17.958839001 +0200 +@@ -41,7 +41,7 @@ class FFmpegAACBitstreamConverterTest : + // Set up reasonable aac parameters + memset(&test_parameters_, 0, sizeof(AVCodecParameters)); + test_parameters_.codec_id = AV_CODEC_ID_AAC; +- test_parameters_.profile = AV_PROFILE_AAC_MAIN; ++ test_parameters_.profile = FF_PROFILE_AAC_MAIN; + test_parameters_.ch_layout.nb_channels = 2; + test_parameters_.extradata = extradata_header_; + test_parameters_.extradata_size = sizeof(extradata_header_); +@@ -131,7 +131,7 @@ TEST_F(FFmpegAACBitstreamConverterTest, + + EXPECT_EQ(profile, kAacMainProfile); + +- test_parameters_.profile = AV_PROFILE_AAC_HE; ++ test_parameters_.profile = FF_PROFILE_AAC_HE; + FFmpegAACBitstreamConverter converter_he(&test_parameters_); + + test_packet = ScopedAVPacket::Allocate(); +@@ -143,7 +143,7 @@ TEST_F(FFmpegAACBitstreamConverterTest, + + EXPECT_EQ(profile, kAacLowComplexityProfile); + +- test_parameters_.profile = AV_PROFILE_AAC_ELD; ++ test_parameters_.profile = FF_PROFILE_AAC_ELD; + FFmpegAACBitstreamConverter converter_eld(&test_parameters_); + + test_packet = ScopedAVPacket::Allocate(); diff --git a/chromium.spec b/chromium.spec index 88e310c..e39b364 100644 --- a/chromium.spec +++ b/chromium.spec @@ -279,6 +279,7 @@ Patch92: chromium-138-checkversion-nodejs.patch # system ffmpeg # need for old ffmpeg 5.x on epel9 +Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch Patch130: chromium-107-ffmpeg-5.x-duration.patch # disable the check @@ -978,6 +979,7 @@ Qt6 UI for chromium. %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 +%patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis %patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque %patch -P130 -p1 -b .ffmpeg-5.x-duration %endif From cb92bca9341dc6b5c921ace27462efc65814f839 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 3 Jul 2025 11:43:10 +0200 Subject: [PATCH 164/244] - Update to 138.0.7204.92 * High CVE-2025-6554: Type Confusion in V8 --- chromium.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index e39b364..5f84175 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 138.0.7204.49 +Version: 138.0.7204.92 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1741,6 +1741,10 @@ fi %endif %changelog +* Thu Jul 01 2025 Than Ngo - 138.0.7204.92-1 +- Update to 138.0.7204.96 + * High CVE-2025-6554: Type Confusion in V8 + * Tue Jun 24 2025 Than Ngo - 138.0.7204.49-1 - Update to 138.0.7204.49 * CVE-2025-6555: Use after free in Animation diff --git a/sources b/sources index 7f1da8b..8808880 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-138.0.7204.49-clean.tar.xz) = f96049dcb77dca50d005b22528064fb7a33673b70f2ccc1466acda9f34b41d88dc028e48ecfe0296a576d0535d0470fbc2ff064e57121e9a3e9d967ee5010a38 +SHA512 (chromium-138.0.7204.92-clean.tar.xz) = 65b3be8184f925104059c77fd4570ff9ffd4ab77e72af0861bddf5209a697a9d898f48a39b5ea3715e997488c4a9d8d4f7ff0a963d68221914e8533a30818734 From 82fc3999902edab0e7f2e8e50c33668b9395f3f6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 3 Jul 2025 12:07:43 +0200 Subject: [PATCH 165/244] Fix typo in changelog --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 5f84175..b8f9cde 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1742,7 +1742,7 @@ fi %changelog * Thu Jul 01 2025 Than Ngo - 138.0.7204.92-1 -- Update to 138.0.7204.96 +- Update to 138.0.7204.92 * High CVE-2025-6554: Type Confusion in V8 * Tue Jun 24 2025 Than Ngo - 138.0.7204.49-1 From fe4935a440d6ebc6d654f462eebfac5d4d4b62be Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 9 Jul 2025 12:04:58 +0200 Subject: [PATCH 166/244] Update to 138.0.7204.100 --- chromium.conf | 2 +- chromium.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chromium.conf b/chromium.conf index 5abc259..58ed89e 100644 --- a/chromium.conf +++ b/chromium.conf @@ -28,7 +28,7 @@ case "$GRAPHIC_DRIVER" in # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode" - FEATURES+="Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo" + FEATURES+="Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo,AcceleratedVideoDecodeLinuxZeroCopyGL" ;; nvidia) # The NVIDIA VaAPI drivers are known to not support Chromium diff --git a/chromium.spec b/chromium.spec index b8f9cde..044e5f1 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 138.0.7204.92 +Version: 138.0.7204.100 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1741,7 +1741,10 @@ fi %endif %changelog -* Thu Jul 01 2025 Than Ngo - 138.0.7204.92-1 +* Wed Jul 09 2025 Than Ngo - 138.0.7204.100-1 +- Update to 138.0.7204.100 + +* Tue Jul 01 2025 Than Ngo - 138.0.7204.92-1 - Update to 138.0.7204.92 * High CVE-2025-6554: Type Confusion in V8 diff --git a/sources b/sources index 8808880..ae4b866 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-138.0.7204.92-clean.tar.xz) = 65b3be8184f925104059c77fd4570ff9ffd4ab77e72af0861bddf5209a697a9d898f48a39b5ea3715e997488c4a9d8d4f7ff0a963d68221914e8533a30818734 +SHA512 (chromium-138.0.7204.100-clean.tar.xz) = c5381b42dbfa87e2390a64a1ef8699f444edbefd8b79b8ce98eeb340d891cf243e2efa8718810fdf6e1cc04e1dff788bd6285d51a78e4bd46bb6047afa664f22 From 19700ea3b0b983b1792e84f01cc6b2bb211bfa9c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 30 Jun 2025 18:50:53 +0000 Subject: [PATCH 167/244] Update rust-clanglib patch for clang 21 --- chromium-135-rust-clanglib.patch | 2 +- chromium.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/chromium-135-rust-clanglib.patch b/chromium-135-rust-clanglib.patch index b212606..d19cfd2 100644 --- a/chromium-135-rust-clanglib.patch +++ b/chromium-135-rust-clanglib.patch @@ -36,7 +36,7 @@ diff -up chromium-135.0.7049.84/build/config/clang/BUILD.gn.than chromium-135.0. + assert(false) # Unhandled cpu type + } + # different clang lib dir in fedora/epel -+ if (clang_version == "17" || clang_version == "18" || clang_version == "19" || clang_version == "20") { ++ if (clang_version >= 17) { + _suffix = "" + } else if (clang_version == "14" || clang_version == "15" || clang_version == "16") { + _libprefix = "64" diff --git a/chromium.spec b/chromium.spec index 044e5f1..0d2420c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 138.0.7204.100 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1248,7 +1248,7 @@ CHROMIUM_CORE_GN_DEFINES+=' google_default_client_secret="%{default_client_secre CHROMIUM_CORE_GN_DEFINES+=' is_clang=true' CHROMIUM_CORE_GN_DEFINES+=" clang_base_path=\"$clang_base_path\"" -CHROMIUM_CORE_GN_DEFINES+=" clang_version=\"$clang_version\"" +CHROMIUM_CORE_GN_DEFINES+=" clang_version=$clang_version" CHROMIUM_CORE_GN_DEFINES+=' clang_use_chrome_plugins=false' CHROMIUM_CORE_GN_DEFINES+=' use_lld=true' @@ -1741,6 +1741,9 @@ fi %endif %changelog +* Fri Jul 11 2025 Tom Stellard -138.0.7204.100-2 +- Update rust-clanglib patch for clang 21 + * Wed Jul 09 2025 Than Ngo - 138.0.7204.100-1 - Update to 138.0.7204.100 From 51301170d444b32e21e5c306796cdc697af0d7bf Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 11 Jul 2025 22:39:59 +0000 Subject: [PATCH 168/244] More cleanups for the rust-clanglib patch This is probably deadcode already but simplify the condition and make sure it's comparing with an integer and not a string. --- chromium-135-rust-clanglib.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium-135-rust-clanglib.patch b/chromium-135-rust-clanglib.patch index d19cfd2..d758fa3 100644 --- a/chromium-135-rust-clanglib.patch +++ b/chromium-135-rust-clanglib.patch @@ -38,7 +38,7 @@ diff -up chromium-135.0.7049.84/build/config/clang/BUILD.gn.than chromium-135.0. + # different clang lib dir in fedora/epel + if (clang_version >= 17) { + _suffix = "" -+ } else if (clang_version == "14" || clang_version == "15" || clang_version == "16") { ++ } else if (clang_version >= 14) { + _libprefix = "64" + _dir = "" + } From f3139ecb557b81a10db2ebd2371f47226689561b Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 16 Jul 2025 11:50:20 +0200 Subject: [PATCH 169/244] - Update to 138.0.7204.157 * CVE-2025-7656: Integer overflow in V8 * CVE-2025-7657: Use after free in WebRTC * CVE-2025-6558: Incorrect validation of untrusted input in ANGLE and GPU --- chromium.spec | 12 +++++++++--- fix-page-allocator-overflow.patch | 22 ++++++++++++++++++++++ sources | 2 +- use-sysconf-page-size-on-ppc64.patch | 16 ---------------- 4 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 fix-page-allocator-overflow.patch delete mode 100644 use-sysconf-page-size-on-ppc64.patch diff --git a/chromium.spec b/chromium.spec index 0d2420c..f0189e0 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 138.0.7204.100 -Release: 2%{?dist} +Version: 138.0.7204.157 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -415,7 +415,7 @@ Patch406: fix-different-data-layouts.patch Patch407: 0002-Add-ppc64-trap-instructions.patch Patch408: fix-ppc64-linux-syscalls-headers.patch -Patch409: use-sysconf-page-size-on-ppc64.patch +Patch409: fix-page-allocator-overflow.patch Patch410: 0001-Enable-ppc64-pointer-compression.patch Patch411: dawn-fix-ppc64le-detection.patch @@ -1741,6 +1741,12 @@ fi %endif %changelog +* Wed Jul 16 2025 Than Ngo - 138.0.7204.157-1 +- Update to 138.0.7204.157 + * CVE-2025-7656: Integer overflow in V8 + * CVE-2025-7657: Use after free in WebRTC + * CVE-2025-6558: Incorrect validation of untrusted input in ANGLE and GPU + * Fri Jul 11 2025 Tom Stellard -138.0.7204.100-2 - Update rust-clanglib patch for clang 21 diff --git a/fix-page-allocator-overflow.patch b/fix-page-allocator-overflow.patch new file mode 100644 index 0000000..85edd60 --- /dev/null +++ b/fix-page-allocator-overflow.patch @@ -0,0 +1,22 @@ +--- a/base/allocator/dispatcher/tls.h ++++ b/base/allocator/dispatcher/tls.h +@@ -83,6 +83,8 @@ + constexpr static size_t AllocationChunkSize = 16384; + #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) + constexpr static size_t AllocationChunkSize = 16384; ++#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_PPC64) ++ constexpr static size_t AllocationChunkSize = 16384; + #else + constexpr static size_t AllocationChunkSize = 4096; + #endif +--- a/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h ++++ b/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +@@ -392,7 +400,7 @@ + // TODO(casey.smalley@arm.com): under 64k pages we can end up in a situation + // where a normal slot span will be large enough to contain multiple items, + // but the address will go over the final partition page after being aligned. +-#if PA_BUILDFLAG(IS_LINUX) && PA_BUILDFLAG(PA_ARCH_CPU_ARM64) ++#if PA_BUILDFLAG(IS_LINUX) && (PA_BUILDFLAG(PA_ARCH_CPU_ARM64) || PA_BUILDFLAG(PA_ARCH_CPU_PPC64)) + constexpr size_t kMaxSupportedAlignment = kSuperPageSize / 4; + #else + constexpr size_t kMaxSupportedAlignment = kSuperPageSize / 2; diff --git a/sources b/sources index ae4b866..1332c42 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-138.0.7204.100-clean.tar.xz) = c5381b42dbfa87e2390a64a1ef8699f444edbefd8b79b8ce98eeb340d891cf243e2efa8718810fdf6e1cc04e1dff788bd6285d51a78e4bd46bb6047afa664f22 +SHA512 (chromium-138.0.7204.157-clean.tar.xz) = 5351130d8395a661376eebc27835ff8169c3a5aaefc003fd43b4262c1307f0313ba1c4d3c67465119356951797ec09fa902cbf61681a43d4b6403d213f135d5d diff --git a/use-sysconf-page-size-on-ppc64.patch b/use-sysconf-page-size-on-ppc64.patch deleted file mode 100644 index 838bff5..0000000 --- a/use-sysconf-page-size-on-ppc64.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: chromium-128.0.6613.113/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -=================================================================== ---- chromium-128.0.6613.113.orig/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -+++ chromium-128.0.6613.113/base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h -@@ -187,7 +187,11 @@ SystemPageBaseMask() { - return ~SystemPageOffsetMask(); - } - -+#if PA_BUILDFLAG(PA_ARCH_CPU_PPC64_FAMILY) -+constexpr size_t kPageMetadataShift = 6; // 64 bytes per partition page. -+#else - constexpr size_t kPageMetadataShift = 5; // 32 bytes per partition page. -+#endif - constexpr size_t kPageMetadataSize = 1 << kPageMetadataShift; - - } // namespace internal From 3f3a74de58e5d068176798485b1c4775f374d8ec Mon Sep 17 00:00:00 2001 From: Luan Oliveira Date: Tue, 22 Jul 2025 12:54:37 +0000 Subject: [PATCH 170/244] fix localizations on chromium-browser.desktop https://specifications.freedesktop.org/desktop-entry-spec/latest/localized-keys.html fix RHBZ#2361244 --- chromium-browser.desktop | 94 ++++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/chromium-browser.desktop b/chromium-browser.desktop index 23d3257..e88b5af 100644 --- a/chromium-browser.desktop +++ b/chromium-browser.desktop @@ -150,8 +150,8 @@ Name[ast]=Ventana nueva Name[az]=Yeni Pəncərə Name[be]=Новае акно Name[bg]=Нов прозорец -Name[bn-BD]=নতুন উইন্ডো (N) -Name[bn-IN]=নতুন উইন্ডো +Name[bn_BD]=নতুন উইন্ডো (N) +Name[bn_IN]=নতুন উইন্ডো Name[br]=Prenestr nevez Name[brx]=गोदान उइन्ड'(N) Name[bs]=Novi prozor @@ -163,37 +163,37 @@ Name[da]=Nyt vindue Name[de]=Neues Fenster Name[dsb]=Nowe wokno Name[el]=Νέο παράθυρο -Name[en-GB]=New Window -Name[en-US]=New Window -Name[en-ZA]=New Window +Name[en_GB]=New Window +Name[en_US]=New Window +Name[en_ZA]=New Window Name[eo]=Nova fenestro -Name[es-AR]=Nueva ventana -Name[es-CL]=Nueva ventana -Name[es-ES]=Nueva ventana -Name[es-MX]=Nueva ventana +Name[es_AR]=Nueva ventana +Name[es_CL]=Nueva ventana +Name[es_ES]=Nueva ventana +Name[es_MX]=Nueva ventana Name[et]=Uus aken Name[eu]=Leiho berria Name[fa]=پنجره جدید‌ Name[ff]=Henorde Hesere Name[fi]=Uusi ikkuna Name[fr]=Nouvelle fenêtre -Name[fy-NL]=Nij finster -Name[ga-IE]=Fuinneog Nua +Name[fy_NL]=Nij finster +Name[ga_IE]=Fuinneog Nua Name[gd]=Uinneag ùr Name[gl]=Nova xanela Name[gn]=Ovetã pyahu -Name[gu-IN]=નવી વિન્ડો +Name[gu_IN]=નવી વિન્ડો Name[he]=חלון חדש -Name[hi-IN]=नया विंडो +Name[hi_IN]=नया विंडो Name[hr]=Novi prozor Name[hsb]=Nowe wokno Name[hu]=Új ablak -Name[hy-AM]=Նոր Պատուհան +Name[hy_AM]=Նոր Պատուհան Name[id]=Jendela Baru Name[is]=Nýr gluggi Name[it]=Nuova finestra Name[ja]=新しいウィンドウ -Name[ja-JP-mac]=新規ウインドウ +Name[ja_JP@mac]=新規ウインドウ Name[ka]=ახალი ფანჯარა Name[kk]=Жаңа терезе Name[km]=បង្អួច​​​ថ្មី @@ -212,15 +212,15 @@ Name[ml]=പുതിയ ജാലകം Name[mr]=नवीन पटल Name[ms]=Tetingkap Baru Name[my]=ဝင်းဒိုးအသစ် -Name[nb-NO]=Nytt vindu -Name[ne-NP]=नयाँ सञ्झ्याल +Name[nb_NO]=Nytt vindu +Name[ne_NP]=नयाँ सञ्झ्याल Name[nl]=Nieuw venster -Name[nn-NO]=Nytt vindauge +Name[nn_NO]=Nytt vindauge Name[or]=ନୂତନ ୱିଣ୍ଡୋ -Name[pa-IN]=ਨਵੀਂ ਵਿੰਡੋ +Name[pa_IN]=ਨਵੀਂ ਵਿੰਡੋ Name[pl]=Nowe okno -Name[pt-BR]=Nova janela -Name[pt-PT]=Nova janela +Name[pt_BR]=Nova janela +Name[pt_PT]=Nova janela Name[rm]=Nova fanestra Name[ro]=Fereastră nouă Name[ru]=Новое окно @@ -231,7 +231,7 @@ Name[sl]=Novo okno Name[son]=Zanfun taaga Name[sq]=Dritare e Re Name[sr]=Нови прозор -Name[sv-SE]=Nytt fönster +Name[sv_SE]=Nytt fönster Name[ta]=புதிய சாளரம் Name[te]=కొత్త విండో Name[th]=หน้าต่างใหม่ @@ -243,8 +243,8 @@ Name[uz]=Yangi oyna Name[vi]=Cửa sổ mới Name[wo]=Palanteer bu bees Name[xh]=Ifestile entsha -Name[zh-CN]=新建窗口 -Name[zh-TW]=開新視窗 +Name[zh_CN]=新建窗口 +Name[zh_TW]=開新視窗 Exec=chromium-browser %U [Desktop Action new-private-window] @@ -258,8 +258,8 @@ Name[ast]=Ventana privada nueva Name[az]=Yeni Məxfi Pəncərə Name[be]=Новае акно адасаблення Name[bg]=Нов прозорец за поверително сърфиране -Name[bn-BD]=নতুন ব্যক্তিগত উইন্ডো -Name[bn-IN]=নতুন ব্যক্তিগত উইন্ডো +Name[bn_BD]=নতুন ব্যক্তিগত উইন্ডো +Name[bn_IN]=নতুন ব্যক্তিগত উইন্ডো Name[br]=Prenestr merdeiñ prevez nevez Name[brx]=गोदान प्राइभेट उइन्ड' Name[bs]=Novi privatni prozor @@ -271,37 +271,37 @@ Name[da]=Nyt privat vindue Name[de]=Neues privates Fenster Name[dsb]=Nowe priwatne wokno Name[el]=Νέο παράθυρο ιδιωτικής περιήγησης -Name[en-GB]=New Private Window -Name[en-US]=New Private Window -Name[en-ZA]=New Private Window +Name[en_GB]=New Private Window +Name[en_US]=New Private Window +Name[en_ZA]=New Private Window Name[eo]=Nova privata fenestro -Name[es-AR]=Nueva ventana privada -Name[es-CL]=Nueva ventana privada -Name[es-ES]=Nueva ventana privada -Name[es-MX]=Nueva ventana privada +Name[es_AR]=Nueva ventana privada +Name[es_CL]=Nueva ventana privada +Name[es_ES]=Nueva ventana privada +Name[es_MX]=Nueva ventana privada Name[et]=Uus privaatne aken Name[eu]=Leiho pribatu berria Name[fa]=پنجره ناشناس جدید Name[ff]=Henorde Suturo Hesere Name[fi]=Uusi yksityinen ikkuna Name[fr]=Nouvelle fenêtre de navigation privée -Name[fy-NL]=Nij priveefinster -Name[ga-IE]=Fuinneog Nua Phríobháideach +Name[fy_NL]=Nij priveefinster +Name[ga_IE]=Fuinneog Nua Phríobháideach Name[gd]=Uinneag phrìobhaideach ùr Name[gl]=Nova xanela privada Name[gn]=Ovetã ñemi pyahu -Name[gu-IN]=નવી ખાનગી વિન્ડો +Name[gu_IN]=નવી ખાનગી વિન્ડો Name[he]=חלון פרטי חדש Name[hi-IN]=नयी निजी विंडो Name[hr]=Novi privatni prozor Name[hsb]=Nowe priwatne wokno Name[hu]=Új privát ablak -Name[hy-AM]=Սկսել Գաղտնի դիտարկում +Name[hy_AM]=Սկսել Գաղտնի դիտարկում Name[id]=Jendela Mode Pribadi Baru Name[is]=Nýr huliðsgluggi Name[it]=Nuova finestra anonima Name[ja]=新しいプライベートウィンドウ -Name[ja-JP-mac]=新規プライベートウインドウ +Name[ja_JP@mac]=新規プライベートウインドウ Name[ka]=ახალი პირადი ფანჯარა Name[kk]=Жаңа жекелік терезе Name[km]=បង្អួច​ឯកជន​ថ្មី @@ -320,15 +320,15 @@ Name[ml]=പുതിയ സ്വകാര്യ ജാലകം Name[mr]=नवीन वैयक्तिक पटल Name[ms]=Tetingkap Persendirian Baharu Name[my]=New Private Window -Name[nb-NO]=Nytt privat vindu -Name[ne-NP]=नयाँ निजी सञ्झ्याल +Name[nb_NO]=Nytt privat vindu +Name[ne_NP]=नयाँ निजी सञ्झ्याल Name[nl]=Nieuw privévenster -Name[nn-NO]=Nytt privat vindauge +Name[nn_NO]=Nytt privat vindauge Name[or]=ନୂତନ ବ୍ୟକ୍ତିଗତ ୱିଣ୍ଡୋ -Name[pa-IN]=ਨਵੀਂ ਪ੍ਰਾਈਵੇਟ ਵਿੰਡੋ +Name[pa_IN]=ਨਵੀਂ ਪ੍ਰਾਈਵੇਟ ਵਿੰਡੋ Name[pl]=Nowe okno prywatne -Name[pt-BR]=Nova janela privativa -Name[pt-PT]=Nova janela privada +Name[pt_BR]=Nova janela privativa +Name[pt_PT]=Nova janela privada Name[rm]=Nova fanestra privata Name[ro]=Fereastră privată nouă Name[ru]=Новое приватное окно @@ -339,7 +339,7 @@ Name[sl]=Novo zasebno okno Name[son]=Sutura zanfun taaga Name[sq]=Dritare e Re Private Name[sr]=Нови приватан прозор -Name[sv-SE]=Nytt privat fönster +Name[sv_SE]=Nytt privat fönster Name[ta]=புதிய தனிப்பட்ட சாளரம் Name[te]=కొత్త ఆంతరంగిక విండో Name[th]=หน้าต่างส่วนตัวใหม่ @@ -351,6 +351,6 @@ Name[uz]=Yangi maxfiy oyna Name[vi]=Cửa sổ riêng tư mới Name[wo]=Panlanteeru biir bu bees Name[xh]=Ifestile yangasese entsha -Name[zh-CN]=新建隐私浏览窗口 -Name[zh-TW]=新增隱私視窗 +Name[zh_CN]=新建隐私浏览窗口 +Name[zh_TW]=新增隱私視窗 Exec=chromium-browser --incognito %U From bba35291041b168c4ae06c895e7d680611f559d5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 23 Jul 2025 13:18:58 +0200 Subject: [PATCH 171/244] - Update to 138.0.7204.168 * CVE-2025-8010: Type Confusion in V8 * CVE-2025-8011: Type Confusion in V8 --- ...date-syscall-helpers-lists-for-ppc64.patch | 107 ++++++++---------- chromium.spec | 7 +- sources | 2 +- 3 files changed, 52 insertions(+), 64 deletions(-) diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index 3a74920..f725173 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -12,10 +12,8 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 sandbox/linux/services/syscall_wrappers.cc | 2 +- 6 files changed, 73 insertions(+), 55 deletions(-) -Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -=================================================================== ---- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -26,7 +24,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. SyscallSets::IsSocketCall(sysno) || #endif #if defined(__arm__) -@@ -255,7 +256,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de +@@ -259,7 +260,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de } #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -35,7 +33,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (sysno == __NR_mmap) return RestrictMmapFlags(); #endif -@@ -276,7 +277,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de +@@ -280,7 +281,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de return RestrictPrctl(); #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ @@ -44,7 +42,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (sysno == __NR_socketpair) { // Only allow AF_UNIX, PF_UNIX. Crash if anything else is seen. static_assert(AF_UNIX == PF_UNIX, -@@ -340,7 +341,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de +@@ -344,7 +345,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de } #if defined(__i386__) || \ @@ -54,11 +52,9 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -=================================================================== ---- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -36,7 +36,7 @@ +--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -38,7 +38,7 @@ #include "sandbox/linux/system_headers/linux_syscalls.h" #include "sandbox/linux/system_headers/linux_time.h" @@ -67,7 +63,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -45,6 +45,11 @@ +@@ -47,6 +47,11 @@ #include #endif @@ -79,7 +75,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete #if BUILDFLAG(IS_ANDROID) #if !defined(F_DUPFD_CLOEXEC) -@@ -102,6 +107,15 @@ inline bool IsArchitectureMips() { +@@ -104,6 +109,15 @@ inline bool IsArchitectureMips() { #endif } @@ -95,7 +91,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Ubuntu's version of glibc has a race condition in sem_post that can cause // it to call futex(2) with bogus op arguments. To workaround this, we need // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -269,9 +283,11 @@ ResultExpr RestrictFcntlCommands() { +@@ -271,9 +285,11 @@ ResultExpr RestrictFcntlCommands() { // operator. // Glibc overrides the kernel's O_LARGEFILE value. Account for this. uint64_t kOLargeFileFlag = O_LARGEFILE; @@ -108,7 +104,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete const Arg cmd(1); const Arg long_arg(2); -@@ -294,8 +310,17 @@ ResultExpr RestrictFcntlCommands() { +@@ -296,8 +312,17 @@ ResultExpr RestrictFcntlCommands() { F_SETLKW, F_GETLK, F_DUPFD, @@ -128,7 +124,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete .Case(F_SETFL, If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) .Case(F_ADD_SEALS, -@@ -304,7 +329,7 @@ ResultExpr RestrictFcntlCommands() { +@@ -306,7 +331,7 @@ ResultExpr RestrictFcntlCommands() { // clang-format on } @@ -137,7 +133,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -470,7 +495,7 @@ ResultExpr RestrictPtrace() { +@@ -475,7 +500,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -146,10 +142,8 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -=================================================================== ---- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -159,10 +153,8 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -=================================================================== ---- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -319,15 +311,6 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_waitpid: #endif return true; -@@ -452,7 +464,7 @@ bool SyscallSets::IsAllowedProcessStartO - #endif - case __NR_set_tid_address: - case __NR_unshare: --#if !defined(__mips__) && !defined(__aarch64__) -+#if !defined(__mips__) && !defined(__aarch64__) || defined(__powerpc64__) - case __NR_vfork: - #endif - default: @@ -499,7 +511,7 @@ bool SyscallSets::IsAllowedEpoll(int sys bool SyscallSets::IsDeniedGetOrModifySocket(int sysno) { switch (sysno) { @@ -376,7 +359,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR__llseek: #endif #if !defined(__aarch64__) -@@ -604,26 +619,28 @@ bool SyscallSets::IsAllowedGeneralIo(int +@@ -604,18 +619,19 @@ bool SyscallSets::IsAllowedGeneralIo(int case __NR_readv: case __NR_pread64: #if defined(__arm__) || \ @@ -399,19 +382,23 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +#if defined(__i386__) || defined(__arm__) || defined(__mips__) || defined(__powerpc64__) case __NR__newselect: #endif + case __NR_write: +@@ -635,11 +651,12 @@ bool SyscallSets::IsAllowedGeneralIo(int + case __NR_vmsplice: + // send* syscalls need their flags filtered. #if defined(__arm__) || \ - (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) + (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ + defined(__powerpc64__) case __NR_send: #endif - #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__mips__) || defined(__aarch64__) ++ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) case __NR_sendmsg: // Could specify destination. case __NR_sendto: // Could specify destination. #endif -@@ -679,7 +696,8 @@ bool SyscallSets::IsAllowedBasicSchedule +@@ -697,7 +714,8 @@ bool SyscallSets::IsAllowedBasicSchedule return true; case __NR_getpriority: #if defined(__i386__) || defined(__arm__) || \ @@ -421,7 +408,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_nice: #endif case __NR_setpriority: -@@ -691,7 +709,8 @@ bool SyscallSets::IsAllowedBasicSchedule +@@ -709,7 +727,8 @@ bool SyscallSets::IsAllowedBasicSchedule bool SyscallSets::IsAdminOperation(int sysno) { switch (sysno) { #if defined(__i386__) || defined(__arm__) || \ @@ -431,7 +418,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_bdflush: #endif case __NR_kexec_load: -@@ -707,7 +726,8 @@ bool SyscallSets::IsAdminOperation(int s +@@ -725,7 +744,8 @@ bool SyscallSets::IsAdminOperation(int s bool SyscallSets::IsKernelModule(int sysno) { switch (sysno) { @@ -441,7 +428,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_create_module: case __NR_get_kernel_syms: // Should ENOSYS. case __NR_query_module: -@@ -740,7 +760,8 @@ bool SyscallSets::IsFsControl(int sysno) +@@ -758,7 +778,8 @@ bool SyscallSets::IsFsControl(int sysno) case __NR_swapoff: case __NR_swapon: #if defined(__i386__) || \ @@ -451,7 +438,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_umount: #endif case __NR_umount2: -@@ -756,7 +777,7 @@ bool SyscallSets::IsNuma(int sysno) { +@@ -774,7 +795,7 @@ bool SyscallSets::IsNuma(int sysno) { case __NR_getcpu: case __NR_mbind: #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -460,7 +447,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_migrate_pages: #endif case __NR_move_pages: -@@ -791,14 +812,15 @@ bool SyscallSets::IsGlobalProcessEnviron +@@ -809,14 +830,15 @@ bool SyscallSets::IsGlobalProcessEnviron switch (sysno) { case __NR_acct: // Privileged. #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -479,7 +466,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_ulimit: #endif case __NR_getrusage: -@@ -832,7 +854,7 @@ bool SyscallSets::IsGlobalSystemStatus(i +@@ -850,7 +872,7 @@ bool SyscallSets::IsGlobalSystemStatus(i #endif case __NR_sysinfo: case __NR_uname: @@ -488,7 +475,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_olduname: case __NR_oldolduname: #endif -@@ -916,7 +938,8 @@ bool SyscallSets::IsSystemVSemaphores(in +@@ -934,7 +956,8 @@ bool SyscallSets::IsSystemVSemaphores(in #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ defined(__aarch64__) || \ @@ -498,7 +485,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc // These give a lot of ambient authority and bypass the setuid sandbox. bool SyscallSets::IsSystemVSharedMemory(int sysno) { switch (sysno) { -@@ -947,7 +970,8 @@ bool SyscallSets::IsSystemVMessageQueue( +@@ -965,7 +988,8 @@ bool SyscallSets::IsSystemVMessageQueue( #endif #if defined(__i386__) || \ @@ -508,7 +495,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc // Big system V multiplexing system call. bool SyscallSets::IsSystemVIpc(int sysno) { switch (sysno) { -@@ -967,7 +991,8 @@ bool SyscallSets::IsAnySystemV(int sysno +@@ -985,7 +1009,8 @@ bool SyscallSets::IsAnySystemV(int sysno return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || IsSystemVSharedMemory(sysno); #elif defined(__i386__) || \ @@ -518,7 +505,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc return IsSystemVIpc(sysno); #endif } -@@ -1024,7 +1049,8 @@ bool SyscallSets::IsFaNotify(int sysno) +@@ -1042,7 +1067,8 @@ bool SyscallSets::IsFaNotify(int sysno) bool SyscallSets::IsTimer(int sysno) { switch (sysno) { case __NR_getitimer: @@ -528,7 +515,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_alarm: #endif case __NR_setitimer: -@@ -1103,18 +1129,22 @@ bool SyscallSets::IsMisc(int sysno) { +@@ -1121,18 +1147,22 @@ bool SyscallSets::IsMisc(int sysno) { case __NR_syncfs: case __NR_vhangup: // The system calls below are not implemented. @@ -555,7 +542,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_gtty: case __NR_idle: case __NR_lock: -@@ -1122,20 +1152,22 @@ bool SyscallSets::IsMisc(int sysno) { +@@ -1140,20 +1170,22 @@ bool SyscallSets::IsMisc(int sysno) { case __NR_prof: case __NR_profil: #endif @@ -582,10 +569,8 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -=================================================================== ---- chromium-136.0.7103.48.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -603,7 +588,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h static bool IsNetworkSocketInformation(int sysno); #endif -@@ -84,7 +85,8 @@ class SANDBOX_EXPORT SyscallSets { +@@ -85,7 +86,8 @@ class SANDBOX_EXPORT SyscallSets { #endif #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ defined(__aarch64__) || \ @@ -613,7 +598,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // These give a lot of ambient authority and bypass the setuid sandbox. static bool IsSystemVSharedMemory(int sysno); #endif -@@ -95,7 +97,8 @@ class SANDBOX_EXPORT SyscallSets { +@@ -96,7 +98,8 @@ class SANDBOX_EXPORT SyscallSets { #endif #if defined(__i386__) || \ @@ -623,10 +608,8 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-136.0.7103.48/sandbox/linux/services/syscall_wrappers.cc -=================================================================== ---- chromium-136.0.7103.48.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-136.0.7103.48/sandbox/linux/services/syscall_wrappers.cc +--- a/sandbox/linux/services/syscall_wrappers.cc ++++ b/sandbox/linux/services/syscall_wrappers.cc @@ -66,7 +66,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/chromium.spec b/chromium.spec index f0189e0..53b02ea 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 138.0.7204.157 +Version: 138.0.7204.168 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1741,6 +1741,11 @@ fi %endif %changelog +* Wed Jul 23 2025 Than Ngo - 138.0.7204.168-1 +- Update to 138.0.7204.168 + * CVE-2025-8010: Type Confusion in V8 + * CVE-2025-8011: Type Confusion in V8 + * Wed Jul 16 2025 Than Ngo - 138.0.7204.157-1 - Update to 138.0.7204.157 * CVE-2025-7656: Integer overflow in V8 diff --git a/sources b/sources index 1332c42..5162e2e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-138.0.7204.157-clean.tar.xz) = 5351130d8395a661376eebc27835ff8169c3a5aaefc003fd43b4262c1307f0313ba1c4d3c67465119356951797ec09fa902cbf61681a43d4b6403d213f135d5d +SHA512 (chromium-138.0.7204.168-clean.tar.xz) = 69f610c88e641ae4ca403a73496f46d02813cb79fa917f6a9a096449b8b40a65dd0210a616df12d15a42db8c035594416838cc0da0473db6e5e45ef33b32f4b6 From 1c3963b17508fec654508318c3fd6a783dd10201 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 18:17:32 +0000 Subject: [PATCH 172/244] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 53b02ea..1676b4a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 138.0.7204.168 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1741,6 +1741,9 @@ fi %endif %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 138.0.7204.168-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Wed Jul 23 2025 Than Ngo - 138.0.7204.168-1 - Update to 138.0.7204.168 * CVE-2025-8010: Type Confusion in V8 From ae6fa6df3d8abc4a3c73b7f971f454cae6331f2e Mon Sep 17 00:00:00 2001 From: Luan Oliveira Date: Fri, 25 Jul 2025 15:10:02 +0000 Subject: [PATCH 173/244] Update chromium.conf - rename vaapi flags some vaapi flags were renamed to accelerated video in chromium 131 --- chromium.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromium.conf b/chromium.conf index 58ed89e..2546104 100644 --- a/chromium.conf +++ b/chromium.conf @@ -35,11 +35,11 @@ case "$GRAPHIC_DRIVER" in # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" - FEATURES+="VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs" + FEATURES+="AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" ;; *) CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" - FEATURES+="VaapiVideoEncoder,VaapiVideoDecodeLinuxGL" + FEATURES+="AcceleratedVideoEncoder,AcceleratedVideoDecodeLinuxGL" ;; esac From c438ab8fe6a9e9d6c7a986a129a84f067635a77b Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 31 Jul 2025 09:36:43 +0200 Subject: [PATCH 174/244] - Update to 138.0.7204.183 * CVE-2025-8292: Use after free in Media Stream --- chromium.spec | 8 ++++++-- sources | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 1676b4a..17189ff 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 138.0.7204.168 -Release: 2%{?dist} +Version: 138.0.7204.183 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1741,6 +1741,10 @@ fi %endif %changelog +* Wed Jul 30 2025 Than Ngo - 138.0.7204.183-1 +- Update to 138.0.7204.183 + * CVE-2025-8292: Use after free in Media Stream + * Wed Jul 23 2025 Fedora Release Engineering - 138.0.7204.168-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild diff --git a/sources b/sources index 5162e2e..69ae6c7 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-138.0.7204.168-clean.tar.xz) = 69f610c88e641ae4ca403a73496f46d02813cb79fa917f6a9a096449b8b40a65dd0210a616df12d15a42db8c035594416838cc0da0473db6e5e45ef33b32f4b6 +SHA512 (chromium-138.0.7204.183-clean.tar.xz) = 397e201cb0b9bb8104df2dc4ea0be21c24be4567470716c95c842fe4bcf7be137aeddb19c7c80dc101a18b2a273f8e0a1d968fc1c0e796e3a99bf259b4a70fe7 From 81b49fd649dbebe3f7de3e7ff2126fc9b64b50ea Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 4 Aug 2025 23:03:46 +0000 Subject: [PATCH 175/244] Backport fix for build failure with clang-21 --- ...8c3b258a8816c05bdebf472dbba719d3c491.patch | 45 +++++++++++++++++++ chromium.spec | 8 +++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch diff --git a/b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch b/b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch new file mode 100644 index 0000000..e19b0f6 --- /dev/null +++ b/b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch @@ -0,0 +1,45 @@ +From b0ff8c3b258a8816c05bdebf472dbba719d3c491 Mon Sep 17 00:00:00 2001 +From: Hans Wennborg +Date: Tue, 10 Jun 2025 09:51:47 -0700 +Subject: [PATCH] Don't return an enum from EnumSizeTraits::Count + +`Enum::kMaxValue + 1` may be outside the representable range of the +enum, which Clang will treat as an error in constexpr contexts (see +bug). + +Bug: 423841920 +Change-Id: I629402cf93bd8419a71f94ff9ed9340d4f88a706 +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6633292 +Auto-Submit: Hans Wennborg +Commit-Queue: Nico Weber +Reviewed-by: Nico Weber +Commit-Queue: Hans Wennborg +Cr-Commit-Position: refs/heads/main@{#1471871} +--- + base/metrics/histogram_macros_internal.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/base/metrics/histogram_macros_internal.h b/base/metrics/histogram_macros_internal.h +index 39b232bc1023b8..daa5515c2ab357 100644 +--- a/base/metrics/histogram_macros_internal.h ++++ b/base/metrics/histogram_macros_internal.h +@@ -28,16 +28,16 @@ namespace base::internal { + template + requires(std::is_enum_v) + struct EnumSizeTraits { +- static constexpr Enum Count() { ++ static constexpr uintmax_t Count() { + if constexpr (requires { Enum::kMaxValue; }) { + // Since the UMA histogram macros expect a value one larger than the max + // defined enumerator value, add one. +- return static_cast(base::to_underlying(Enum::kMaxValue) + 1); ++ return static_cast(base::to_underlying(Enum::kMaxValue) + 1); + } else { + static_assert( + sizeof(Enum) == 0, + "enumerator must define kMaxValue enumerator to use this macro!"); +- return Enum(); ++ return 0; + } + } + }; diff --git a/chromium.spec b/chromium.spec index 17189ff..e6f98cf 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 138.0.7204.183 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -442,6 +442,9 @@ Patch510: 0001-Remove-unused-OpenSSL-config.patch Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch %endif +# https://github.com/chromium/chromium/commit/b0ff8c3b258a8816c05bdebf472dbba719d3c491 +Patch512: b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch + # upstream patches # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: @@ -1741,6 +1744,9 @@ fi %endif %changelog +* Mon Aug 04 2025 Tom Stellard - 138.0.7204.183-2 +- Backport fix for build failure with clang-21 + * Wed Jul 30 2025 Than Ngo - 138.0.7204.183-1 - Update to 138.0.7204.183 * CVE-2025-8292: Use after free in Media Stream From 853abbb66283efbfcc41a9a5d11cede13b143d37 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 5 Aug 2025 23:30:32 +0200 Subject: [PATCH 176/244] - Updated to 139.0.7258.66 * CVE-2025-8576: Use after free in Extensions * CVE-2025-8578: Use after free in Cast * CVE-2025-8579: Inappropriate implementation in Gemini Live in Chrome * CVE-2025-8580: Inappropriate implementation in Filesystems * CVE-2025-8581: Inappropriate implementation in Extensions * CVE-2025-8582: Insufficient validation of untrusted input in DOM * CVE-2025-8583: Inappropriate implementation in Permissions --- 0001-add-xnn-ppc64el-support.patch | 26 +- ...date-syscall-helpers-lists-for-ppc64.patch | 65 +- 0002-regenerate-xnn-buildgn.patch | 107429 +++++++++------ 0009-sandbox-updates-138.patch | 105 + ...8c3b258a8816c05bdebf472dbba719d3c491.patch | 45 - chromium-121-system-old-ffmpeg.patch | 34 - chromium-139-el9-ffmpeg-5.1.x.patch | 138 + chromium-latest.py | 7 +- chromium.spec | 25 +- fix-partition-alloc-compile.patch | 18 +- skia-vsx-instructions.patch | 134 +- sources | 2 +- 12 files changed, 65858 insertions(+), 42170 deletions(-) create mode 100644 0009-sandbox-updates-138.patch delete mode 100644 b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch delete mode 100644 chromium-121-system-old-ffmpeg.patch create mode 100644 chromium-139-el9-ffmpeg-5.1.x.patch diff --git a/0001-add-xnn-ppc64el-support.patch b/0001-add-xnn-ppc64el-support.patch index 4285096..71dedfc 100644 --- a/0001-add-xnn-ppc64el-support.patch +++ b/0001-add-xnn-ppc64el-support.patch @@ -1,20 +1,24 @@ ---- a/third_party/xnnpack/generate_build_gn.py -+++ b/third_party/xnnpack/generate_build_gn.py -@@ -236,7 +236,10 @@ - _Platform(gn_cpu='x64', bazel_cpu='k8', bazel_platform='//:linux_x64'), - _Platform(gn_cpu='arm64', - bazel_cpu='aarch64', -- bazel_platform='//:linux_aarch64') -+ bazel_platform='//:linux_aarch64'), +Index: chromium-139.0.7258.66/third_party/xnnpack/generate_build_gn.py +=================================================================== +--- chromium-139.0.7258.66.orig/third_party/xnnpack/generate_build_gn.py ++++ chromium-139.0.7258.66/third_party/xnnpack/generate_build_gn.py +@@ -221,7 +221,10 @@ _PLATFORMS = [ + bazel_platform='//:linux_aarch64'), + _Platform(gn_cpu='riscv64', + bazel_cpu='riscv64', +- bazel_platform='//:linux_riscv64') ++ bazel_platform='//:linux_riscv64'), + _Platform(gn_cpu='ppc64', + bazel_cpu='ppc64le', + bazel_platform='//:linux_ppc64le') ] ---- a/third_party/xnnpack/bazelroot/BUILD -+++ b/third_party/xnnpack/bazelroot/BUILD -@@ -21,6 +21,14 @@ +Index: chromium-139.0.7258.66/third_party/xnnpack/bazelroot/BUILD +=================================================================== +--- chromium-139.0.7258.66.orig/third_party/xnnpack/bazelroot/BUILD ++++ chromium-139.0.7258.66/third_party/xnnpack/bazelroot/BUILD +@@ -29,6 +29,14 @@ platform( ], ) diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index f725173..ac20b0c 100644 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -12,8 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 sandbox/linux/services/syscall_wrappers.cc | 2 +- 6 files changed, 73 insertions(+), 55 deletions(-) ---- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -24,25 +26,16 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 SyscallSets::IsSocketCall(sysno) || #endif #if defined(__arm__) -@@ -259,7 +260,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de - } +@@ -258,7 +259,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de + // TODO(crbug.com/40528912): should i386 really be in this list? #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ - defined(__aarch64__) + defined(__aarch64__) || defined(__powerpc64__) if (sysno == __NR_mmap) return RestrictMmapFlags(); #endif -@@ -280,7 +281,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de - return RestrictPrctl(); - - #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - if (sysno == __NR_socketpair) { - // Only allow AF_UNIX, PF_UNIX. Crash if anything else is seen. - static_assert(AF_UNIX == PF_UNIX, -@@ -344,7 +345,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de +@@ -340,7 +341,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de } #if defined(__i386__) || \ @@ -52,9 +45,11 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif ---- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -38,7 +38,7 @@ +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -39,7 +39,7 @@ #include "sandbox/linux/system_headers/linux_syscalls.h" #include "sandbox/linux/system_headers/linux_time.h" @@ -63,7 +58,7 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -47,6 +47,11 @@ +@@ -48,6 +48,11 @@ #include #endif @@ -75,7 +70,7 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 #if BUILDFLAG(IS_ANDROID) #if !defined(F_DUPFD_CLOEXEC) -@@ -104,6 +109,15 @@ inline bool IsArchitectureMips() { +@@ -105,6 +110,15 @@ inline bool IsArchitectureMips() { #endif } @@ -91,7 +86,7 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 // Ubuntu's version of glibc has a race condition in sem_post that can cause // it to call futex(2) with bogus op arguments. To workaround this, we need // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -271,9 +285,11 @@ ResultExpr RestrictFcntlCommands() { +@@ -272,9 +286,11 @@ ResultExpr RestrictFcntlCommands() { // operator. // Glibc overrides the kernel's O_LARGEFILE value. Account for this. uint64_t kOLargeFileFlag = O_LARGEFILE; @@ -104,7 +99,7 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 const Arg cmd(1); const Arg long_arg(2); -@@ -296,8 +312,17 @@ ResultExpr RestrictFcntlCommands() { +@@ -297,8 +313,17 @@ ResultExpr RestrictFcntlCommands() { F_SETLKW, F_GETLK, F_DUPFD, @@ -124,7 +119,7 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 .Case(F_SETFL, If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) .Case(F_ADD_SEALS, -@@ -306,7 +331,7 @@ ResultExpr RestrictFcntlCommands() { +@@ -307,7 +332,7 @@ ResultExpr RestrictFcntlCommands() { // clang-format on } @@ -133,7 +128,7 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -475,7 +500,7 @@ ResultExpr RestrictPtrace() { +@@ -473,7 +498,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -142,8 +137,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif ---- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -153,8 +150,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); ---- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -569,8 +568,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 case __NR_vserver: #endif return true; ---- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -608,8 +609,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif ---- a/sandbox/linux/services/syscall_wrappers.cc -+++ b/sandbox/linux/services/syscall_wrappers.cc +Index: chromium-139.0.7258.66/sandbox/linux/services/syscall_wrappers.cc +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-139.0.7258.66/sandbox/linux/services/syscall_wrappers.cc @@ -66,7 +66,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch index dd44958..4900154 100644 --- a/0002-regenerate-xnn-buildgn.patch +++ b/0002-regenerate-xnn-buildgn.patch @@ -1,10 +1,10 @@ File regenerated by running 'python3 generate_build_gn.py' -Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn +Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn =================================================================== ---- chromium-138.0.7204.35.orig/third_party/xnnpack/BUILD.gn -+++ chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn -@@ -25,7 +25,7 @@ config("xnnpack_config") { +--- chromium-139.0.7258.66.orig/third_party/xnnpack/BUILD.gn ++++ chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn +@@ -26,7 +26,7 @@ config("xnnpack_config") { "src", ] @@ -13,15 +13,18 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn "-Wno-unused-function", "-Wno-deprecated-comma-subscript", ] -@@ -54,11 +54,15 @@ config("xnnpack_config") { +@@ -36,13 +36,15 @@ config("xnnpack_config") { } - if (current_cpu == "x86" || current_cpu == "x64") { -- defines += [ "XNN_ENABLE_AVXVNNI=1" ] -+ defines += [ -+ "XNN_ENABLE_AVXVNNI=1", -+ ] - } + defines = [ +- "CHROMIUM", +- "XNN_LOG_LEVEL=0", +- "XNN_LOG_TO_STDIO=0", +- ] + xnn_defines ++ "CHROMIUM", ++ "XNN_LOG_LEVEL=0", ++ "XNN_LOG_TO_STDIO=0", ++ ] + xnn_defines } + @@ -30,7 +33,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn xnnpack_deps = [ ":configs_x64", ":enums_x64", -@@ -560,7 +564,7 @@ if (current_cpu == "x64" || current_cpu +@@ -540,7 +542,7 @@ if (current_cpu == "x64" || current_cpu ":xx-fill_x64", ":xx-pad_sse2-no-sse3", ":xx-pad_x64", @@ -39,7 +42,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ] xnnpack_standalone_deps = [ -@@ -587,8 +591,8 @@ if (current_cpu == "x64" || current_cpu +@@ -567,8 +569,8 @@ if (current_cpu == "x64" || current_cpu ":f16-qu8-vcvt_x64_standalone", ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", ":f16-rdminmax_x64_standalone", @@ -49,7 +52,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":f16-rminmax_f16c-no-avx2-no-fma_standalone", ":f16-rminmax_x64_standalone", ":f16-vapproxgelu_x64_standalone", -@@ -794,47 +798,47 @@ if (current_cpu == "x64" || current_cpu +@@ -770,47 +772,47 @@ if (current_cpu == "x64" || current_cpu ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", @@ -110,7 +113,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", ":qd8-f32-qc8w-igemm_x64_standalone", -@@ -865,9 +869,9 @@ if (current_cpu == "x64" || current_cpu +@@ -841,9 +843,9 @@ if (current_cpu == "x64" || current_cpu ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", @@ -122,7 +125,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":qs8-qc8w-gemm_sse2-no-sse3_standalone", ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", ":qs8-qc8w-gemm_x64_standalone", -@@ -875,9 +879,9 @@ if (current_cpu == "x64" || current_cpu +@@ -851,9 +853,9 @@ if (current_cpu == "x64" || current_cpu ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", @@ -134,7 +137,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":qs8-qc8w-igemm_sse2-no-sse3_standalone", ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", ":qs8-qc8w-igemm_x64_standalone", -@@ -890,8 +894,8 @@ if (current_cpu == "x64" || current_cpu +@@ -866,8 +868,8 @@ if (current_cpu == "x64" || current_cpu ":qs8-rdsum_x64_standalone", ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", ":qs8-rsum_f16c-fma-avx2_standalone", @@ -144,7 +147,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":qs8-rsum_ssse3-no-sse4.1_standalone", ":qs8-rsum_x64_standalone", ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", -@@ -1051,8 +1055,8 @@ if (current_cpu == "x64" || current_cpu +@@ -1027,8 +1029,8 @@ if (current_cpu == "x64" || current_cpu ":x64-transposec_x64_standalone", ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", ":x8-lut_f16c-fma-avx2_standalone", @@ -154,7 +157,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":x8-lut_x64_standalone", ":x8-packq_x64_standalone", ":x8-packw_x64_standalone", -@@ -1064,9 +1068,11 @@ if (current_cpu == "x64" || current_cpu +@@ -1040,9 +1042,11 @@ if (current_cpu == "x64" || current_cpu ":xx-fill_x64_standalone", ":xx-pad_sse2-no-sse3_standalone", ":xx-pad_x64_standalone", @@ -168,7 +171,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn xnnpack_deps = [ ":configs_arm64", ":enums_arm64", -@@ -1278,7 +1284,7 @@ if (current_cpu == "x64" || current_cpu +@@ -1246,7 +1250,7 @@ if (current_cpu == "x64" || current_cpu ":xx-copy_arm64", ":xx-fill_arm64", ":xx-pad_arm64", @@ -177,7 +180,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ] xnnpack_standalone_deps = [ -@@ -1291,12 +1297,12 @@ if (current_cpu == "x64" || current_cpu +@@ -1259,12 +1263,12 @@ if (current_cpu == "x64" || current_cpu ":f16-f32-vcvt_arm64_standalone", ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", @@ -192,7 +195,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":f16-maxpool_arch=armv8.2-a+fp16_standalone", ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", ":f16-qs8-vcvt_arm64_standalone", -@@ -1387,12 +1393,12 @@ if (current_cpu == "x64" || current_cpu +@@ -1351,12 +1355,12 @@ if (current_cpu == "x64" || current_cpu ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", @@ -207,12 +210,35 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -@@ -1492,7 +1498,259 @@ if (current_cpu == "x64" || current_cpu +@@ -1452,9 +1456,11 @@ if (current_cpu == "x64" || current_cpu ":xx-copy_arm64_standalone", ":xx-fill_arm64_standalone", ":xx-pad_arm64_standalone", - ":xx-transposev_arm64_standalone", + ":xx-transposev_arm64_standalone" + ] +-} else if (current_cpu == "riscv64") { ++} else ++if (current_cpu == "riscv64") { ++ + xnnpack_deps = [ + ":configs_riscv64", + ":enums_riscv64", +@@ -1623,7 +1629,7 @@ if (current_cpu == "x64" || current_cpu + ":xx-copy_riscv64", + ":xx-fill_riscv64", + ":xx-pad_riscv64", +- ":xx-transposev_riscv64", ++ ":xx-transposev_riscv64" + ] + + xnnpack_standalone_deps = [ +@@ -1794,7 +1800,257 @@ if (current_cpu == "x64" || current_cpu + ":xx-copy_riscv64_standalone", + ":xx-fill_riscv64_standalone", + ":xx-pad_riscv64_standalone", +- ":xx-transposev_riscv64_standalone", ++ ":xx-transposev_riscv64_standalone" + ] +} else +if (current_cpu == "ppc64") { @@ -264,7 +290,6 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ":f32-vlog_ppc64", + ":f32-vlrelu_ppc64", + ":f32-vmulcaddc_ppc64", -+ ":f32-vrelu_ppc64", + ":f32-vrnd_ppc64", + ":f32-vrsqrt_ppc64", + ":f32-vsigmoid_ppc64", @@ -389,7 +414,6 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ":f32-vlog_ppc64_standalone", + ":f32-vlrelu_ppc64_standalone", + ":f32-vmulcaddc_ppc64_standalone", -+ ":f32-vrelu_ppc64_standalone", + ":f32-vrnd_ppc64_standalone", + ":f32-vrsqrt_ppc64_standalone", + ":f32-vsigmoid_ppc64_standalone", @@ -468,7 +492,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn ] } else { xnnpack_deps = [] -@@ -1507,8 +1765,8 @@ source_set("xnnpack") { +@@ -1809,8 +2065,8 @@ source_set("xnnpack") { configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] sources = [ @@ -479,7 +503,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn "src/src/allocator.c", "src/src/cache.c", "src/src/datatype.c", -@@ -1528,15 +1786,15 @@ source_set("xnnpack") { +@@ -1831,15 +2087,15 @@ source_set("xnnpack") { "src/src/runtime.c", "src/src/sanitizers.c", "src/src/subgraph.c", @@ -501,7 +525,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn public_configs = [ ":xnnpack_config" ] } -@@ -1550,8 +1808,8 @@ source_set("xnnpack_standalone") { +@@ -1853,8 +2109,8 @@ source_set("xnnpack_standalone") { configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] sources = [ @@ -512,7 +536,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn "src/src/allocator.c", "src/src/cache.c", "src/src/datatype.c", -@@ -1571,15 +1829,15 @@ source_set("xnnpack_standalone") { +@@ -1875,15 +2131,15 @@ source_set("xnnpack_standalone") { "src/src/runtime.c", "src/src/sanitizers.c", "src/src/subgraph.c", @@ -534,57 +558,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn public_configs = [ ":xnnpack_config" ] -@@ -1589,40466 +1847,48672 @@ source_set("xnnpack_standalone") { +@@ -1893,48874 +2149,57472 @@ source_set("xnnpack_standalone") { } if (current_cpu == "x64" || current_cpu == "x86") { - source_set("configs_x64") { - cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] +source_set("configs_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/configs/argmaxpool-config.c", @@ -612,7 +596,108 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" + ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("configs_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- - # This is a target that cannot depend on //base. - source_set("configs_x64_standalone") { - cflags = [] @@ -644,10 +729,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/configs/xx-fill-config.c", - "src/src/configs/xx-pad-config.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -658,17 +740,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -685,10 +759,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/enums/node-type.c", - "src/src/enums/operator-type.c", - ] -+# This is a target that cannot depend on //base. -+source_set("configs_x64_standalone") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -699,38 +770,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("enums_x64_standalone") { - cflags = [] @@ -743,10 +786,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/enums/node-type.c", - "src/src/enums/operator-type.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -757,39 +797,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-avgpool_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+source_set("enums_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -800,21 +827,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -822,20 +838,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -846,36 +854,21 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("enums_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" -+ ] - +- - source_set("f16-dwconv_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", @@ -883,13 +876,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", - "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -900,14 +887,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -915,13 +898,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+source_set("f16-avgpool_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", @@ -929,11 +906,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", - "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -944,25 +917,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -970,23 +932,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -997,19 +948,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -1018,17 +960,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1039,22 +976,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f16-dwconv_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -1071,21 +995,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1096,19 +1011,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - # This is a target that cannot depend on //base. - source_set( - "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -1121,22 +1027,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1147,24 +1043,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", @@ -1187,21 +1073,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -1209,21 +1084,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1234,48 +1100,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" -+ ] - +- - source_set("f16-f32-vcvt_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1286,14 +1129,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { - cflags = [ @@ -1318,46 +1157,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" -+ ] - +- - source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1368,42 +1184,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1414,24 +1210,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-f32-vcvt_x64") { - cflags = [] - @@ -1450,38 +1236,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32-vcvt_x64_standalone") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1492,49 +1259,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" -+ ] - +- - source_set("f16-f32acc-gemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", - "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1545,14 +1290,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { - cflags = [ @@ -1560,22 +1301,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+source_set("f16-f32-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", - "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1586,48 +1318,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f16-f32acc-igemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", - "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1638,19 +1349,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { - cflags = [ @@ -1658,18 +1360,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", - "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1680,18 +1377,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -1708,21 +1396,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1733,18 +1412,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - # This is a target that cannot depend on //base. - source_set( - "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -1757,19 +1428,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1780,39 +1444,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+source_set("f16-f32-vcvt_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1823,17 +1474,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -1841,20 +1485,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1865,13 +1501,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -1888,19 +1520,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1911,17 +1536,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ public_configs = [ ":xnnpack_config" ] - +- - # This is a target that cannot depend on //base. - source_set( - "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -1934,22 +1552,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", - ] -+source_set("f16-f32acc-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -1960,49 +1568,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2013,18 +1598,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -2032,19 +1609,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2055,50 +1625,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-f32acc-igemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" -+ ] - +- - source_set("f16-ibilinear_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2109,19 +1655,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -2129,20 +1666,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2153,50 +1682,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-maxpool_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2207,19 +1712,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-maxpool_f16c-fma-avx2_standalone") { - cflags = [ @@ -2227,25 +1723,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2256,43 +1739,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f16-maxpool_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2303,41 +1768,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2348,44 +1794,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" -+ ] - +- - source_set("f16-qs8-vcvt_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2396,14 +1820,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-qs8-vcvt_x64_standalone") { - cflags = [] @@ -2412,17 +1832,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", - ] -+source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2433,48 +1843,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f16-qu8-vcvt_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2485,33 +1869,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-qu8-vcvt_x64_standalone") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2522,49 +1892,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" -+ ] - +- - source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2575,19 +1922,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { - cflags = [ @@ -2595,19 +1933,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2618,24 +1949,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-rdminmax_x64") { - cflags = [] - @@ -2644,13 +1965,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", - "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", - ] -+source_set("f16-ibilinear_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2661,35 +1976,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-rdminmax_x64_standalone") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", - "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2700,20 +2000,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -2730,23 +2019,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", - "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", - "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2757,14 +2037,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set( - "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -2777,24 +2053,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+source_set("f16-maxpool_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", - "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", - "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2805,18 +2071,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -2836,23 +2093,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mgfni", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", - "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", - "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-maxpool_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2863,17 +2111,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set( - "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { @@ -2889,21 +2130,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mgfni", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", - "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", - "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2914,48 +2148,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-maxpool_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" -+ ] - +- - source_set("f16-rminmax_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/f16-rmax-f16c-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -2966,18 +2178,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -2985,19 +2189,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/f16-rmax-f16c-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3008,42 +2205,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} -+ -+source_set("f16-qs8-vcvt_x64") { -+ cflags = [ - +- } +- - source_set("f16-rminmax_x64") { - cflags = [] -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3054,19 +2233,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-rminmax_x64_standalone") { - cflags = [] @@ -3077,9 +2247,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3090,39 +2258,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - +- - source_set("f16-vapproxgelu_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3133,26 +2284,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-vapproxgelu_x64_standalone") { - cflags = [] -+source_set("f16-qu8-vcvt_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3163,16 +2307,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -3192,13 +2329,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mgfni", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", @@ -3221,9 +2352,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", - "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3234,14 +2363,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set( - "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { @@ -3257,11 +2382,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mgfni", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", @@ -3284,10 +2405,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", - "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3298,24 +2416,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-vbinary_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", @@ -3356,20 +2464,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -3377,10 +2475,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", @@ -3403,13 +2498,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", - "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3420,48 +2509,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" -+ ] - +- - source_set("f16-vclamp_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3472,14 +2539,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -3492,9 +2555,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", - ] -+source_set("f16-rdminmax_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3505,39 +2566,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f16-vcos_x64") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3548,31 +2592,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vcos_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3583,52 +2615,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-velu_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3639,19 +2645,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-velu_f16c-fma-avx2_standalone") { - cflags = [ @@ -3659,25 +2656,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3688,42 +2672,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f16-vexp_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3734,47 +2698,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vexp_x64_standalone") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3785,53 +2721,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" -+ ] - +- - source_set("f16-vgelu_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3842,33 +2747,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-vgelu_x64_standalone") { - cflags = [] -+source_set("f16-rminmax_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3879,48 +2770,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f16-vhswish_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3931,19 +2800,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -3951,17 +2811,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -3972,44 +2827,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f16-rminmax_x64") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - +- - source_set("f16-vlrelu_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4020,15 +2857,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_x64_standalone") { -+ cflags = [ - +- - # This is a target that cannot depend on //base. - source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -4036,19 +2868,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4059,43 +2884,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-vmulcaddc_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+source_set("f16-vapproxgelu_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4106,17 +2914,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -4124,20 +2925,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4148,32 +2941,21 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - +- - source_set("f16-vrnd_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", @@ -4181,13 +2963,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", - "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4198,14 +2974,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -4221,20 +2993,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", - "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", - ] -+source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4245,73 +3004,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4322,35 +3034,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -4358,19 +3045,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4381,67 +3061,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vbinary_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" -+ ] - +- - source_set("f16-vsigmoid_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4452,19 +3091,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { - cflags = [ @@ -4472,37 +3102,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4513,42 +3118,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-vsin_x64") { - cflags = [] -+source_set("f16-vclamp_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4559,37 +3144,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vsin_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4600,48 +3167,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-vsqrt_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+source_set("f16-vcos_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4652,17 +3197,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -4670,20 +3208,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4694,43 +3224,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vcos_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - +- - source_set("f16-vtanh_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4741,14 +3254,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -4756,22 +3265,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+source_set("f16-velu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4782,48 +3281,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f16-vtanh_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-velu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4834,19 +3311,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -4854,17 +3322,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4875,42 +3338,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f16-vexp_x64") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - +- - source_set("f16-vunary_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4921,15 +3368,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-vexp_x64_standalone") { -+ cflags = [ - +- - # This is a target that cannot depend on //base. - source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -4937,17 +3379,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -4958,43 +3395,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f16-vunary_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f16-vgelu_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", - "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5005,38 +3425,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f16-vunary_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", - "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5047,42 +3452,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vgelu_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - +- - source_set("f32-argmaxpool_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5093,14 +3481,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-argmaxpool_sse2-no-sse3_standalone") { - cflags = [ @@ -5112,13 +3496,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", - ] -+source_set("f16-vhswish_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5129,44 +3507,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-argmaxpool_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5177,33 +3533,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-argmaxpool_x64_standalone") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5214,28 +3556,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vlrelu_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" -+ ] - +- - source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -5243,21 +3571,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5268,19 +3587,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -5289,19 +3599,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5312,42 +3615,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-avgpool_avx512f") { - cflags = [ "-mavx512f" ] -+source_set("f16-vmulcaddc_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5358,37 +3641,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-avgpool_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5399,43 +3664,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-avgpool_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5446,44 +3693,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f16-vrnd_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-avgpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5494,47 +3719,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" -+ ] - +- - source_set("f32-avgpool_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5545,14 +3745,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-avgpool_x64_standalone") { - cflags = [] @@ -5561,13 +3757,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] -+source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5578,47 +3768,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-conv-hwc2chw_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5629,36 +3797,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5669,45 +3823,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vsigmoid_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" -+ ] - +- - source_set("f32-conv-hwc2chw_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5718,35 +3849,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-conv-hwc2chw_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5757,32 +3872,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-dwconv2d-chw_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+source_set("f16-vsin_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", @@ -5790,8 +3893,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5802,30 +3904,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", @@ -5833,9 +3922,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5846,42 +3933,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vsin_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] - +- - source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { - cflags = [ - "-mno-sse4.1", - "-mssse3", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5892,36 +3962,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", - "-mssse3", - ] -+source_set("f16-vsqrt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5932,18 +3988,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -5963,9 +4010,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -5976,21 +4021,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv2d-chw_x64_standalone") { - cflags = [] @@ -6006,10 +4040,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6020,24 +4051,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -6045,13 +4066,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+source_set("f16-vtanh_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", @@ -6059,11 +4074,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6074,19 +4085,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -6095,9 +4097,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", @@ -6105,14 +4105,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6123,16 +4116,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -6148,13 +4134,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6165,14 +4145,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv_avx512f_standalone") { - cflags = [ "-mavx512f" ] @@ -6197,32 +4173,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("f16-vtanh_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" -+ ] - +- - source_set("f32-dwconv_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", @@ -6230,13 +4193,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6247,19 +4204,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -6267,11 +4215,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", @@ -6279,10 +4223,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6293,36 +4234,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-dwconv_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+source_set("f16-vunary_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", @@ -6330,11 +4255,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6345,28 +4266,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", @@ -6374,14 +4284,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6392,16 +4295,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -6423,13 +4319,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6440,14 +4330,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-dwconv_x64_standalone") { - cflags = [] @@ -6465,12 +4351,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", - ] -+source_set("f16-vunary_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6481,28 +4362,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -6510,20 +4377,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f16-vunary_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6534,18 +4393,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -6554,19 +4405,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6577,18 +4421,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-argmaxpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -6605,19 +4440,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6628,18 +4456,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - # This is a target that cannot depend on //base. - source_set( - "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -6652,22 +4472,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6678,43 +4488,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { - cflags = [ - "-mf16c", - "-mno-avx2", - "-mno-fma", - ] -+source_set("f32-argmaxpool_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6725,17 +4518,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { - cflags = [ @@ -6743,20 +4529,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6767,42 +4545,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] - +- - source_set("f32-f16-vcvt_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6813,14 +4574,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { - cflags = [ @@ -6832,14 +4589,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", - ] -+source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6850,48 +4600,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6902,36 +4629,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6942,43 +4655,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-avgpool_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" -+ ] - +- - source_set("f32-f16-vcvt_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -6989,33 +4681,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-avgpool_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-f16-vcvt_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7026,24 +4704,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -7051,12 +4719,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-avgpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", @@ -7064,11 +4727,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", - "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7079,19 +4738,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -7100,9 +4750,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", @@ -7110,13 +4758,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", - "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-avgpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7127,16 +4769,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -7152,13 +4787,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", - "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7169,14 +4798,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-gemm_avx512f_standalone") { - cflags = [ "-mavx512f" ] @@ -7188,9 +4813,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", - "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", - ] -+source_set("f32-avgpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7201,35 +4824,21 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-gemm_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", @@ -7241,9 +4850,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", - "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7254,14 +4861,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-avgpool_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-gemm_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -7269,11 +4872,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", @@ -7285,10 +4884,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", - "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7299,46 +4895,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-gemm_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+source_set("f32-conv-hwc2chw_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", - "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", - "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7349,41 +4926,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-gemm_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", - "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", - "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7394,16 +4954,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -7423,13 +4976,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7440,14 +4987,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-gemm_x64_standalone") { - cflags = [] @@ -7463,9 +5006,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", - ] -+source_set("f32-conv-hwc2chw_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7476,41 +5017,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-ibilinear-chw_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7521,33 +5046,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7558,44 +5072,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-ibilinear-chw_x64") { - cflags = [] -+source_set("f32-dwconv2d-chw_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7606,36 +5098,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-ibilinear-chw_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7646,46 +5121,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-ibilinear_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7696,40 +5150,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-ibilinear_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7740,43 +5176,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" -+ ] - +- - source_set("f32-ibilinear_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7787,26 +5202,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-ibilinear_x64_standalone") { - cflags = [] -+source_set("f32-dwconv2d-chw_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7817,34 +5225,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -7852,9 +5240,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", @@ -7862,10 +5248,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", - "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_x64_standalone") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7876,22 +5259,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -7900,10 +5271,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", @@ -7911,13 +5279,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", - "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7928,14 +5290,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -7951,14 +5308,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", - "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", - ] -+source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -7969,20 +5319,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-igemm_avx512f_standalone") { - cflags = [ "-mavx512f" ] @@ -7994,13 +5334,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", - "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8011,41 +5345,21 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" -+ ] - +- - source_set("f32-igemm_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", @@ -8057,13 +5371,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", - "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8074,14 +5382,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-igemm_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -8089,11 +5393,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+source_set("f32-dwconv_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", @@ -8105,14 +5405,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", - "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8123,50 +5416,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f32-igemm_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", - "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", - "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8177,38 +5447,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-igemm_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", - "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", - "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8219,22 +5475,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-dwconv_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -8254,10 +5497,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8268,18 +5508,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - # This is a target that cannot depend on //base. - source_set("f32-igemm_x64_standalone") { - cflags = [] @@ -8295,14 +5527,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", - "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8313,46 +5538,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-maxpool_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8363,43 +5567,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-dwconv_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-maxpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8410,46 +5593,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" -+ ] - +- - source_set("f32-maxpool_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8460,14 +5619,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-maxpool_x64_standalone") { - cflags = [] @@ -8476,9 +5631,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("f32-dwconv_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8489,31 +5642,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -8521,21 +5657,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8546,14 +5674,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-dwconv_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -8562,29 +5686,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8595,48 +5703,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-qc4w-gemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8647,19 +5734,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ @@ -8667,23 +5745,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8694,45 +5762,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8743,24 +5793,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -8768,22 +5804,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8794,52 +5821,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" -+ ] - +- - source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8850,14 +5851,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ @@ -8870,13 +5867,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", - ] -+source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8887,45 +5878,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-qc4w-gemm_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8936,34 +5905,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc4w-gemm_x64_standalone") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -8974,27 +5929,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-f16-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" -+ ] - +- - source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -9002,22 +5944,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9028,18 +5961,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -9048,20 +5973,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9072,24 +5990,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-qc8w-gemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", @@ -9102,12 +6010,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", - ] -+source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9118,17 +6021,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { - cflags = [ @@ -9136,21 +6032,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9161,19 +6049,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -9190,10 +6068,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", @@ -9201,13 +6076,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9218,14 +6087,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set( - "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -9246,9 +6111,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", - ] -+source_set("f32-f16-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9259,43 +6122,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9306,14 +6153,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -9321,20 +6164,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9345,50 +6181,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9399,42 +6211,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9445,44 +6238,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-qc8w-gemm_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9493,40 +6265,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-gemm_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qc8w-gemm_x64_standalone") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9537,28 +6289,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-gemm_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" -+ ] - +- - source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -9566,21 +6304,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9591,14 +6320,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -9607,29 +6332,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-gemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9640,55 +6348,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f32-qs8-vcvt_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-gemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9699,19 +6378,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { - cflags = [ @@ -9719,17 +6389,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9740,20 +6405,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-gemm_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -9770,21 +6424,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9795,18 +6440,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-gemm_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - # This is a target that cannot depend on //base. - source_set( - "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -9819,21 +6456,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9844,38 +6472,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-qs8-vcvt_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f32-gemm_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9886,44 +6501,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9934,49 +6527,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-gemm_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] - +- - source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -9987,35 +6556,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", - "-msse4.1", - ] -+source_set("f32-ibilinear-chw_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10026,44 +6582,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f32-qs8-vcvt_x64") { - cflags = [] -+# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10074,34 +6609,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qs8-vcvt_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10112,21 +6633,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-ibilinear-chw_x64") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - +- - source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -10134,21 +6648,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10159,15 +6664,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_x64_standalone") { -+ cflags = [ - +- - # This is a target that cannot depend on //base. - source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -10176,17 +6676,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10197,45 +6692,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] - +- - source_set("f32-qu8-vcvt_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", - ] -+source_set("f32-ibilinear_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10246,17 +6722,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { - cflags = [ @@ -10264,20 +6733,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10288,19 +6749,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -10317,21 +6768,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10342,14 +6784,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set( - "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -10367,9 +6805,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", - ] -+source_set("f32-ibilinear_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10380,41 +6816,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-qu8-vcvt_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10425,33 +6845,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10462,47 +6871,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-qu8-vcvt_x64") { - cflags = [] -+source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10513,39 +6898,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-qu8-vcvt_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10556,43 +6922,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-raddstoreexpminusmax_avx512f") { - cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10603,39 +6948,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-igemm_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-raddstoreexpminusmax_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10646,49 +6971,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" -+ ] - +- - source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", - "-mfma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10699,14 +7001,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { - cflags = [ @@ -10714,29 +7012,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+source_set("f32-igemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10747,18 +7028,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -10775,21 +7047,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10800,24 +7063,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set( - "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -10830,19 +7079,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10853,49 +7095,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-igemm_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" -+ ] - +- - source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10906,39 +7124,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10949,35 +7150,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-raddstoreexpminusmax_x64") { - cflags = [] -+source_set("f32-igemm_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -10988,41 +7176,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-raddstoreexpminusmax_x64_standalone") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11033,29 +7199,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-igemm_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] - +- - source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -11063,22 +7214,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11089,14 +7231,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -11124,39 +7262,21 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("f32-maxpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" -+ ] - +- - source_set("f32-rdminmax_avx512f") { - cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11167,35 +7287,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-maxpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rdminmax_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11206,39 +7311,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-rdminmax_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f32-maxpool_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11249,38 +7341,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rdminmax_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11291,40 +7368,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-maxpool_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - source_set("f32-rdminmax_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11335,14 +7395,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-rdminmax_x64_standalone") { - cflags = [] @@ -11352,14 +7408,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", - "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", - ] -+source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11370,28 +7419,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -11399,22 +7434,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11425,18 +7450,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -11445,19 +7462,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11468,46 +7478,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-qc4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" -+ ] - +- - source_set("f32-rdsum_avx512f") { - cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11518,36 +7504,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rdsum_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11558,46 +7527,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-rdsum_sse-no-sse2") { +- } +- +- source_set("f32-rdsum_sse2-no-sse3") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] -+source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11608,40 +7556,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. -- source_set("f32-rdsum_sse-no-sse2_standalone") { +- source_set("f32-rdsum_sse2-no-sse3_standalone") { - cflags = [ -- "-mno-sse2", -- "-msse", +- "-mno-sse3", +- "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11652,41 +7582,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-rdsum_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11697,38 +7608,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rdsum_x64_standalone") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11739,27 +7631,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" -+ ] - +- - source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -11767,23 +7646,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", - "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11794,14 +7664,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -11810,17 +7676,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-qc4w-gemm_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", - "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11831,43 +7694,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-rminmax_avx512f") { - cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", - "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_x64_standalone") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11878,16 +7722,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rminmax_avx512f_standalone") { - cflags = [ "-mavx512f" ] @@ -11898,10 +7736,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -11912,24 +7747,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-rminmax_sse-no-sse2") { - cflags = [ - "-mno-sse2", @@ -11953,45 +7778,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rminmax_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", - "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12002,48 +7806,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" -+ ] - +- - source_set("f32-rminmax_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", - "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12054,14 +7834,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-rminmax_x64_standalone") { - cflags = [] @@ -12072,13 +7848,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", - ] -+source_set("f32-qc8w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12089,28 +7859,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -12118,21 +7874,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12143,18 +7890,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -12163,19 +7902,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12186,52 +7918,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" -+ ] - +- - source_set("f32-rsum_avx512f") { - cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12242,42 +7944,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rsum_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12288,46 +7967,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-rsum_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12338,40 +7996,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rsum_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12382,41 +8022,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-rsum_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12427,38 +8048,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-rsum_x64_standalone") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12469,47 +8071,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" -+ ] - +- - source_set("f32-spmm_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12520,29 +8100,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-spmm_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+source_set("f32-qc8w-gemm_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12553,43 +8126,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-spmm_x64") { - cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", - "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", - "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_x64_standalone") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12600,16 +8154,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-spmm_x64_standalone") { - cflags = [] @@ -12620,10 +8168,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", - "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12634,24 +8179,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -12659,23 +8194,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12686,19 +8210,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -12707,22 +8222,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12733,40 +8238,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-vapproxgelu_avx512f") { - cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12777,38 +8264,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-qs8-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vapproxgelu_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12819,48 +8287,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" -+ ] - +- - source_set("f32-vapproxgelu_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12871,14 +8317,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -12891,17 +8333,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", - ] -+source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12912,51 +8344,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - source_set("f32-vapproxgelu_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -12967,36 +8374,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13007,44 +8401,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - public_configs = [ ":xnnpack_config" ] -+source_set("f32-qs8-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" -+ ] - +- - source_set("f32-vapproxgelu_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13055,34 +8427,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vapproxgelu_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13093,24 +8450,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -13118,12 +8465,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", @@ -13146,11 +8488,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", - "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13161,19 +8499,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -13182,9 +8511,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", @@ -13207,13 +8534,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", - "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13224,16 +8545,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -13264,13 +8578,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", - "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13281,14 +8589,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vbinary_avx512f_standalone") { - cflags = [ "-mavx512f" ] @@ -13315,9 +8619,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", - "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", - ] -+source_set("f32-qs8-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13328,35 +8630,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-vbinary_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", @@ -13376,9 +8663,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", - "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13389,26 +8674,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vbinary_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", @@ -13428,10 +8704,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", - "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13442,48 +8715,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vbinary_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", - "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", - "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13494,43 +8746,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vbinary_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", - "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", - "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13541,16 +8774,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -13581,13 +8807,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", - "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13598,14 +8818,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vbinary_x64_standalone") { - cflags = [] @@ -13645,22 +8861,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("f32-qu8-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" -+ ] - +- - source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -13668,21 +8874,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-avx.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13693,19 +8890,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -13714,19 +8902,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-avx.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13737,46 +8918,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vclamp_avx512f") { - cflags = [ "-mavx512f" ] -+source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13787,41 +8944,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vclamp_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13832,43 +8967,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-vclamp_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13879,40 +8996,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-qu8-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vclamp_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13923,43 +9022,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" -+ ] - +- - source_set("f32-vclamp_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13970,14 +9048,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vclamp_x64_standalone") { - cflags = [] @@ -13986,9 +9060,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] -+source_set("f32-qu8-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -13999,39 +9071,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-vcmul_avx512f") { - cflags = [ "-mavx512f" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14042,31 +9097,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcmul_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14077,44 +9120,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vcmul_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+source_set("f32-raddstoreexpminusmax_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14125,19 +9150,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -14145,19 +9161,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14168,43 +9177,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-vcmul_sse-no-sse2") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14215,41 +9206,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcmul_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", - "-msse", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14260,44 +9232,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" -+ ] - +- - source_set("f32-vcmul_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14308,37 +9258,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vcmul_x64_standalone") { - cflags = [] -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14349,25 +9281,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_config" ] -+} - +- - source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -14375,29 +9296,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", - "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14408,19 +9314,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -14429,19 +9326,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", - "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14452,44 +9344,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-vcopysign_avx512f") { - cflags = [ "-mavx512f" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", - "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14500,20 +9372,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcopysign_avx512f_standalone") { - cflags = [ "-mavx512f" ] @@ -14524,10 +9386,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14538,40 +9397,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vcopysign_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+source_set("f32-raddstoreexpminusmax_x64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", - "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14582,39 +9428,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcopysign_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", - "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14625,41 +9456,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] - +- - source_set("f32-vcopysign_x64") { - cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", - "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14670,14 +9484,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vcopysign_x64_standalone") { - cflags = [] @@ -14701,24 +9511,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - ] - - public_configs = [ ":xnnpack_config" ] -+source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" -+ ] - +- - source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -14726,21 +9524,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14751,20 +9540,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] - } -+# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ @@ -14773,20 +9552,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14797,41 +9568,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-vcos_avx512f") { - cflags = [ "-mavx512f" ] -+source_set("f32-rdminmax_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14842,35 +9594,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcos_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14881,45 +9617,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - source_set("f32-vcos_f16c-fma-no-avx2") { - cflags = [ - "-mf16c", - "-mfma", - "-mno-avx2", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14930,20 +9647,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+source_set("f32-rdminmax_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - public_configs = [ ":xnnpack_config" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcos_f16c-fma-no-avx2_standalone") { - cflags = [ @@ -14951,21 +9658,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mfma", - "-mno-avx2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -14976,47 +9674,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" -+ ] - +- - source_set("f32-vcos_sse2-no-sse3") { - cflags = [ - "-mno-sse3", - "-msse2", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -15027,14 +9704,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_config" ] - +- - public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - # This is a target that cannot depend on //base. - source_set("f32-vcos_sse2-no-sse3_standalone") { - cflags = [ @@ -15045,10 +9718,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", - ] -+source_set("f32-rdminmax_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -15059,39 +9731,22 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - source_set("f32-vcos_x64") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", - ] -+ public_configs = [ ":xnnpack_config" ] -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -15102,31 +9757,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_x64_standalone") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_config" ] - } -+ ] - +- - # This is a target that cannot depend on //base. - source_set("f32-vcos_x64_standalone") { - cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -15137,24 +9780,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - +- } +- - source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { - cflags = [ - "-mavx", @@ -15162,6 +9795,46525 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vmulcaddc_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vmulcaddc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsqrt_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsqrt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsqrt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("operators_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("operators_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc4w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qu8-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vprelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vprelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vprelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vprelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vpreluc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vrpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vrpreluc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rdsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rdsum_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rsum_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rsum_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vprelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vprelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vpreluc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vrpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vrpreluc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("reference_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("reference_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-ibilinear_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-ibilinear_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-ibilinear_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-maxpool_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-maxpool_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rdminmax_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rdminmax_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rminmax_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rminmax_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("subgraph_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("subgraph_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("tables_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("tables_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-ibilinear_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-ibilinear_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-ibilinear_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-lut32norm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-lut32norm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-maxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-maxpool_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rdminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rdminmax_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rminmax_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-packw_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-packw_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-transposec_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-transposec_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-x32-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-x32-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x24-transposec_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x24-transposec_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-transposec_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-transposec_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-unpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-unpool_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x64-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x64-transposec_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-lut_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-lut_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packq_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-packq_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-transposec_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-transposec_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-copy_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-copy_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-fill_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-fill_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-fill_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-fill_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-pad_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-pad_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-pad_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-pad_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-transposev_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-transposev_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } + +-if (current_cpu == "arm64") { +- source_set("configs_arm64") { +- cflags = [] ++source_set("enums_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("enums_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("configs_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("enums_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("enums_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-avgpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-dwconv_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-f32-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-maxpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-qs8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-qu8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-qu8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-rminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-spmm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vapproxgelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vapproxgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vbinary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vclamp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vcmul_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vcos_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vcos_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vcos_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-velu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vexp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vexp_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vgelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vhswish_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vrnd_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vsin_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vsin_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vtanh_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vunary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-argmaxpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-argmaxpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-avgpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-avgpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-conv-hwc2chw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv2d-chw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-f16-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-ibilinear-chw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear-chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-ibilinear_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-maxpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-maxpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc8w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qs8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qu8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-raddstoreexpminusmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rdsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-spmm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-spmm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vapproxgelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vbinary_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vclamp_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcmul_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcopysign_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcos_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vmulcaddc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsqrt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("operators_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("operators_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qu8-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vprelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vprelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vpreluc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vrpreluc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rdsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vprelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vpreluc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vrpreluc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("reference_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("reference_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-ibilinear_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-maxpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("subgraph_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("subgraph_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("tables_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("tables_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-ibilinear_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-lut32norm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-lut32norm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-maxpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-x32-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-x32-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x24-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-unpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x64-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-lut_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packq_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-packq_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-packw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-copy_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-copy_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-fill_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-fill_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-pad_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-pad_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-transposev_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-transposev_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } + +-if (current_cpu == "riscv64") { +- source_set("configs_riscv64") { +- cflags = [] ++source_set("f16-avgpool_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-dwconv_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32acc-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32acc-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-ibilinear_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-maxpool_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-maxpool_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-maxpool_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-qs8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-qu8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rminmax_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vapproxgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vbinary_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vclamp_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vcos_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-velu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-velu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vexp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vhswish_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vlrelu_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vmulcaddc_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vrnd_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vsigmoid_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vsin_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vsqrt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vtanh_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vtanh_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vunary_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vunary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vunary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-argmaxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-argmaxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-avgpool_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-avgpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-avgpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-conv-hwc2chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-conv-hwc2chw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv2d-chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv2d-chw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear-chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear-chw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-maxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-maxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("configs_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("enums_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("enums_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-f32-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-f32-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-qs8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-qs8-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-qu8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-qu8-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-rdminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-rdminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-rminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-rminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vapproxgelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vapproxgelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vcos_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vcos_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vexp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vexp_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vgelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vgelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f16-vsin_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f16-vsin_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-argmaxpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-argmaxpool_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-avgpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-avgpool_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-conv-hwc2chw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-conv-hwc2chw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv2d-chw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv2d-chw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-dwconv_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-dwconv_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-f16-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-f16-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", +- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", +- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-ibilinear-chw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear-chw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-ibilinear_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-ibilinear_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", +- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", +- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-igemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-igemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-maxpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-maxpool_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc4w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qc4w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qc8w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qc8w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qs8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qs8-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-qu8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-qu8-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-raddstoreexpminusmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-raddstoreexpminusmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rdminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rdminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rdsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rdsum_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-rsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-rsum_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-spmm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-spmm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vapproxgelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vapproxgelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vbinary_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vbinary_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vclamp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vclamp_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcmul_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcmul_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcopysign_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcopysign_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vcos_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vcos_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-velu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-velu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vexp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vexp_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vgelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vgelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vhswish_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vhswish_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlog_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlog_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vlrelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vlrelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vmulcaddc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vmulcaddc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrnd_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrnd_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vrsqrt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vrsqrt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsigmoid_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsigmoid_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsin_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsin_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vsqrt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vsqrt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vtanh_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vtanh_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("f32-vunary_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("f32-vunary_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("operators_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("operators_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qb4w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc4w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qd8-f32-qc8w-igemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-dwconv_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-dwconv_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-f32-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-f32-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-packw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc4w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc4w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-dwconv_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-dwconv_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qc8w-igemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qc8w-igemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-qu8-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-qu8-packw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rdsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rdsum_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-rsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-rsum_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vadd_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vadd_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vaddc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vaddc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vlrelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vlrelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmul_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmul_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vmulc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vmulc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vprelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vprelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vpreluc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vpreluc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qs8-vrpreluc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qs8-vrpreluc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-dwconv_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-dwconv_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-f32-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-f32-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-gemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-igemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-igemm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rdsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rdsum_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-rsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-rsum_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vadd_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vadd_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vaddc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vaddc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vcvt_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vlrelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vlrelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmul_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmul_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vmulc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vmulc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vprelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vprelu_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vpreluc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vpreluc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("qu8-vrpreluc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("qu8-vrpreluc_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("reference_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("reference_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-ibilinear_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-ibilinear_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-maxpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-maxpool_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rdminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rdminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-rminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-rminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("s8-vclamp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("s8-vclamp_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("subgraph_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("subgraph_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("tables_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("tables_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-ibilinear_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-ibilinear_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-lut32norm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-lut32norm_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-maxpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-maxpool_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rdminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rdminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-rminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-rminmax_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("u8-vclamp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("u8-vclamp_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-transposec_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-transposec_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x16-x32-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x16-x32-packw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x24-transposec_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x24-transposec_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-packw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-transposec_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-transposec_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x32-unpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x32-unpool_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x64-transposec_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x64-transposec_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-lut_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-lut_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packq_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-packq_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-packw_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("x8-transposec_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("x8-transposec_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-copy_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-copy_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-fill_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-fill_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-pad_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-pad_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- +- source_set("xx-transposev_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- } +- +- # This is a target that cannot depend on //base. +- source_set("xx-transposev_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc8w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++ ++source_set("f32-raddstoreexpminusmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-raddstoreexpminusmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdminmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -15274,15 +56426,15 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + } +} + -+source_set("f32-rdsum_sse-no-sse2") { ++source_set("f32-rdsum_sse2-no-sse3") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -15300,15 +56452,15 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn +} + +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_sse-no-sse2_standalone") { ++source_set("f32-rdsum_sse2-no-sse3_standalone") { + cflags = [ -+ "-mno-sse2", -+ "-msse" ++ "-mno-sse3", ++ "-msse2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse-c16.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16127,7 +57279,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -16153,7 +57306,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -17495,7 +58649,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c" ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -17521,7 +58676,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c" ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18049,7 +59205,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c" ++ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18075,7 +59232,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c" ++ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18326,7 +59484,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18352,7 +59511,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18603,7 +59763,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18629,7 +59790,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18878,7 +60040,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c" ++ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -18904,7 +60067,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c" ++ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -19361,226 +60525,6 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + } +} + -+source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} -+ -+source_set("f32-vrelu_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vrelu_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} -+ -+source_set("f32-vrelu_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vrelu_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} -+ -+source_set("f32-vrelu_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+source_set("f32-vrelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} -+ +source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -20010,6 +60954,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" + ] + @@ -20036,6 +60981,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" + ] + @@ -20621,7 +61567,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c" ++ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20647,7 +61594,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c" ++ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -20843,6 +61791,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" + ] + @@ -20869,6 +61818,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" + ] + @@ -21120,7 +62070,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -21146,7 +62097,8 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -30293,74 +71245,37 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-dwconv_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30398,29 +71313,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} + +source_set("qu8-dwconv_x64") { + cflags = [ - -- source_set("f32-velu_avx512f") { -- cflags = [ "-mavx512f" ] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -30428,17 +71333,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30479,16 +71374,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ +source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -30496,26 +71387,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30554,50 +71431,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-velu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qu8-f32-vcvt_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30628,8 +71481,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -30641,16 +71493,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -30661,26 +71506,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30722,48 +71553,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-velu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-f32-vcvt_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30802,44 +71610,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -30860,8 +71647,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-sse4.2", + "-msse4.1" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" @@ -30879,36 +71665,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-velu_x64") { -- cflags = [] ++ +source_set("qu8-f32-vcvt_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" @@ -30951,16 +71718,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_x64_standalone") { -- cflags = [] ++ +source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -30968,27 +71731,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31028,52 +71777,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-gemm_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31114,21 +71838,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -31139,27 +71854,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31202,46 +71903,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("qu8-gemm_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31281,42 +71962,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ +source_set("qu8-gemm_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31354,43 +72017,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("qu8-gemm_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", @@ -31435,20 +72074,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -31456,27 +72087,13 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31490,8 +72107,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ @@ -31519,47 +72135,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-igemm_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31598,21 +72192,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -31623,32 +72210,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31680,10 +72252,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31695,37 +72264,21 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_x64") { -- cflags = [] ++ +source_set("qu8-igemm_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31763,44 +72316,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_x64_standalone") { -- cflags = [] ++ +source_set("qu8-igemm_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31827,8 +72362,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31841,41 +72375,17 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-igemm_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", @@ -31901,8 +72411,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + cflags = [ + + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", @@ -31924,42 +72433,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-rdsum_ssse3-no-sse4.1") { + cflags = [ + "-mno-sse4.1", + "-mssse3" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31996,39 +72483,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vgelu_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("qu8-rdsum_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" @@ -32069,44 +72536,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ +source_set("qu8-rsum_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32137,8 +72586,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -32147,46 +72595,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vgelu_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("qu8-rsum_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32223,41 +72648,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("qu8-rsum_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" @@ -32298,23 +72701,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vgelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -32322,26 +72716,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32382,45 +72762,24 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-vadd_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32434,8 +72793,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vadd_f16c-fma-avx2_standalone") { + cflags = [ @@ -32461,17 +72819,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vgelu_x64") { -- cflags = [] ++ +source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -32482,26 +72835,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32545,41 +72884,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_x64_standalone") { -- cflags = [] ++ +source_set("qu8-vadd_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32590,8 +72911,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} + @@ -32617,54 +72937,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-vadd_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -32702,43 +72997,20 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qu8-vadd_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32777,17 +73049,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vhswish_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -32795,26 +73062,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32855,11 +73108,10 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} + +source_set("qu8-vaddc_f16c-fma-avx2") { @@ -32868,33 +73120,16 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -32928,24 +73163,14 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vhswish_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -32956,26 +73181,12 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -33019,45 +73230,23 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ +source_set("qu8-vaddc_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -33094,48 +73283,25 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vhswish_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-vaddc_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -33165,8 +73331,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -33178,15 +73343,9 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-vaddc_x64") { + cflags = [ + @@ -37464,204 +77623,100 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("x64-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" + ] - -- source_set("f32-vhswish_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] ++ +source_set("x64-transposec_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vlog_avx512f") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x64-transposec_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vlog_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -37669,53 +77724,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx-u64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ @@ -37724,115 +77752,56 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx-u64.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-vlog_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("x8-lut_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx2-u128.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_f16c-fma-avx2_standalone") { + cflags = [ @@ -37840,65 +77809,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx2-u128.c" + ] - -- source_set("f32-vlog_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", -- ] ++ +source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -37909,47 +77843,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("f32-vlog_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ @@ -37961,60 +77874,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { + cflags = [ + "-mavx512bw", @@ -38026,53 +77909,26 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" + ] - -- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { + cflags = [ @@ -38085,314 +77941,141 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vlrelu_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("x8-lut_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - -- source_set("f32-vlrelu_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", -- ] ++ +source_set("x8-packq_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-packq_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vlrelu_x64") { -- cflags = [] ++ +source_set("x8-packw_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -38400,51 +78083,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-packw_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -38452,103 +78111,51 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - -- source_set("f32-vmulcaddc_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", -- ] ++ +source_set("x8-transposec_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("f32-vmulcaddc_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-transposec_f16c-fma-avx2_standalone") { + cflags = [ @@ -38556,1065 +78163,468 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("x8-transposec_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" + ] - -- source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-avx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("x8-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-avx.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vrelu_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("x8-transposec_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-avx512f.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-transposec_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - -- source_set("f32-vrelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-sse2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-sse2.c", -- ] ++ +source_set("xx-copy_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vrelu_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-copy_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrelu_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("xx-fill_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-sse2-u64.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-fill_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-sse2-u64.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -- ] ++ +source_set("xx-fill_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vrnd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-fill_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vrnd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("xx-pad_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p16-sse2-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-pad_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", + "-msse2" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p16-sse2-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] ++ +source_set("xx-pad_x64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-pad_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vrsqrt_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("xx-transposev_x64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-transposev_x64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - -- source_set("f32-vrsqrt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", -- ] ++ +if (current_cpu == "arm64") { +source_set("configs_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/configs/argmaxpool-config.c", @@ -39642,53 +78652,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vrsqrt_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("configs_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/configs/argmaxpool-config.c", @@ -39716,70 +78700,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("enums_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/enums/allocation-type.c", @@ -39788,56 +78732,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("enums_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/enums/allocation-type.c", @@ -39846,314 +78761,136 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" + ] - -- source_set("f32-vsigmoid_avx512f") { -- cflags = [ "-mavx512f" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-avgpool_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" + ] - -- source_set("f32-vsigmoid_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vsigmoid_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" + ] - -- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", -- ] ++ +source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", @@ -40161,48 +78898,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("f32-vsigmoid_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", @@ -40210,54 +78926,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-dwconv_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", @@ -40266,58 +78958,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", + "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" + ] - -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", @@ -40326,410 +78987,193 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", + "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vsin_avx512f") { -- cflags = [ "-mavx512f" ] ++ +source_set("f16-f32-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-f32-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - -- source_set("f32-vsin_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" + ] - -- source_set("f32-vsin_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vsin_x64") { -- cflags = [] ++ +source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_x64_standalone") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", @@ -40737,55 +79181,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", @@ -40793,68 +79209,32 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" + ] - -- source_set("f32-vsqrt_avx512f") { -- cflags = [ "-mavx512f" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", -- ] ++ +source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -40864,60 +79244,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vsqrt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -40927,286 +79276,136 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vsqrt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_x64_standalone") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] - -- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", -- ] ++ +source_set("f16-ibilinear_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("f32-vtanh_avx512f") { -- cflags = [ "-mavx512f" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-igemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", @@ -41214,56 +79413,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" + ] - -- source_set("f32-vtanh_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", @@ -41271,69 +79441,32 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vtanh_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -41343,56 +79476,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + asmflags = cflags - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -41402,1695 +79508,678 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] - -- source_set("f32-vtanh_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_x64_standalone") { -- cflags = [] ++ +source_set("f16-maxpool_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vunary_avx512f") { -- cflags = [ "-mavx512f" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vunary_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("f16-qs8-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-qs8-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - -- source_set("f32-vunary_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f16-qu8-vcvt_arm64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("operators_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("operators_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-qu8-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" + ] - -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] ++ +source_set("f16-rdminmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f16-rdminmax_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-rdminmax_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-rminmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" + ] - -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("f16-rminmax_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -+source_set("f16-spmm_arch=armv8.2-a+fp16") { ++ ++source_set("f16-rminmax_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-spmm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ +# This is a target that cannot depend on //base. +source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ +source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f16-vapproxgelu_arm64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] - -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-vapproxgelu_arm64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-vbinary_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", @@ -43116,72 +80205,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", @@ -43207,26 +80251,11 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -43235,1601 +80264,653 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f16-vclamp_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-vcmul_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" + ] - -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] ++ +source_set("f16-vcos_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f16-vcos_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vcos_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-velu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" + ] - -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-vexp_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" + ] - -- source_set("qd8-f32-qb4w-gemm_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f16-vexp_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vexp_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f16-vgelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-vgelu_arm64") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vgelu_arm64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ +source_set("f16-vhswish_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f16-vlrelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" + ] - -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ +source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("qd8-f32-qc4w-gemm_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-vrnd_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", @@ -44837,50 +80918,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", + "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_x64_standalone") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", @@ -44888,1403 +80946,578 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", + "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" + ] - -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] ++ +source_set("f16-vsin_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] ++ +source_set("f16-vsin_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vsin_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("f16-vsqrt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", + "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", + "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("qd8-f32-qc8w-gemm_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f16-vtanh_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", + "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +# This is a target that cannot depend on //base. +source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", + "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + public_configs = [ ":xnnpack_config" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] ++ +source_set("f16-vunary_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f32-argmaxpool_arm64") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-argmaxpool_arm64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-avgpool_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-avgpool_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("f32-conv-hwc2chw_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-conv-hwc2chw_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - -- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("f32-dwconv2d-chw_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", @@ -46304,52 +81537,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qd8-f32-qc8w-igemm_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-dwconv2d-chw_arm64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", @@ -46369,207 +81577,87 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + asmflags = cflags - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" + ] - -- source_set("qs8-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-dwconv_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", @@ -46591,73 +81679,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-dwconv_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", @@ -46679,198 +81721,89 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("f32-f16-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-f16-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - -- source_set("qs8-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", @@ -46893,78 +81826,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", @@ -46991,8 +81875,7 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -47001,467 +81884,222 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-f16-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-gemm_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-gemm_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" -+ ] - -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("f32-ibilinear-chw_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-f32-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_arm64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-ibilinear_arm64") { ++ ++source_set("f32-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_arm64_standalone") { ++source_set("f32-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" + ] - -- source_set("qs8-f32-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -- ] ++ ++source_set("f32-ibilinear-chw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", @@ -47483,60 +82121,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", @@ -47558,72 +82165,40 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-f32-vcvt_x64") { -- cflags = [] ++ +source_set("f32-igemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", + "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -47636,59 +82211,37 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-igemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", + "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -47701,216 +82254,85 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" + ] - -- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-maxpool_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-maxpool_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-packw_x64") { -- cflags = [] ++ +source_set("f32-qc4w-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", @@ -47921,51 +82343,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qc4w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", @@ -47976,419 +82374,154 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" + ] - -- source_set("qs8-qc4w-gemm_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] ++ +source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-qc8w-gemm_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ public_configs = [ ":xnnpack_config" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -+source_set("f32-qs8-vcvt_arm64") { ++ ++source_set("f32-qc8w-gemm_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_arm64_standalone") { ++source_set("f32-qc8w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", @@ -48396,71 +82529,58 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("f32-qu8-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", @@ -48468,52 +82588,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qu8-vcvt_arm64_standalone") { + cflags = [ + + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", @@ -48521,38 +82616,11 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -48561,174 +82629,72 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] ++ +source_set("f32-raddstoreexpminusmax_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-raddstoreexpminusmax_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-rdminmax_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", @@ -48736,57 +82702,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-rdminmax_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", @@ -48794,76 +82730,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-rdsum_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", @@ -48873,1129 +82763,33 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-rdsum_arm64_standalone") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- public_configs = [ ":xnnpack_config" ] -+source_set("f32-rminmax_arm64") { -+ cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-rminmax_arm64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-rsum_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-rsum_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-qc8w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+source_set("f32-spmm_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-spmm_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] - -- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -+source_set("f32-vapproxgelu_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-qc8w-gemm_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_x64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("f32-vbinary_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vbinary_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] - -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -+source_set("f32-vclamp_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vclamp_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-vcmul_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vcmul_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -50004,47 +82798,492 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ ++source_set("f32-rminmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-spmm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vclamp_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("f32-vcopysign_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", @@ -50054,75 +83293,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vcopysign_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", @@ -50132,218 +83323,85 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", -- ] ++ +source_set("f32-vcos_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vcos_arm64_standalone") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("qs8-qc8w-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + public_configs = [ ":xnnpack_config" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] ++ +source_set("f32-velu_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", @@ -50351,59 +83409,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-velu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", @@ -50411,1004 +83437,362 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-qc8w-igemm_x64") { -- cflags = [] ++ +source_set("f32-vexp_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vexp_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-vgelu_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vgelu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-qu8-packw_x64") { -- cflags = [] ++ +source_set("f32-vhswish_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-neon.c", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vhswish_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-neon.c", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - -- source_set("qs8-rdsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-vlog_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vlog_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-rdsum_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("f32-vlrelu_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vlrelu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - -- source_set("qs8-rdsum_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] ++ +source_set("f32-vmulcaddc_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vmulcaddc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-rsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -+source_set("f32-vrelu_arm64") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-neon.c", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vrelu_arm64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-neon.c", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("f32-vrnd_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", @@ -51424,61 +83808,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vrnd_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", @@ -51494,2035 +83844,795 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - -- source_set("qs8-rsum_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", -- ] -+source_set("f32-vrsqrt_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-rsum_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_x64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("f32-vsigmoid_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] - -- source_set("qs8-vadd_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("f32-vsin_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vsin_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vadd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+source_set("f32-vsqrt_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] - -- source_set("qs8-vadd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] -+source_set("f32-vtanh_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-vadd_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vtanh_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_x64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("f32-vunary_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-neon.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-neon.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-neon.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vunary_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-neon.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-neon.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-neon.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] - -- source_set("qs8-vaddc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("operators_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("operators_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vaddc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -+ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -+ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" -+ ] - -- source_set("qs8-vaddc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] -+source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -+ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vaddc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -+ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_x64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] -+source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { ++ ++source_set("f32-vrsqrt_arm64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. -+source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++source_set("f32-vrsqrt_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ ++source_set("f32-vsigmoid_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vunary_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("operators_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("operators_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("qs8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] - -- source_set("qs8-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", -- ] ++ +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qs8-vcvt_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] - -- source_set("qs8-vcvt_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("qs8-vlrelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- source_set("qs8-vlrelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", -- ] ++ +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", @@ -53530,51 +84640,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", @@ -53582,417 +84668,199 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" + ] - -- source_set("qs8-vlrelu_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-vlrelu_x64") { -- cflags = [] ++ +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + asmflags = cflags - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" + ] - -- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- source_set("qs8-vmul_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-vmul_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", @@ -54000,59 +84868,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", @@ -54060,644 +84896,309 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("qs8-vmul_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_x64_standalone") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" + ] - -- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-vmulc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-vmulc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - -- source_set("qs8-vmulc_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] ++ +source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qs8-vprelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- source_set("qs8-vprelu_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qs8-vpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qd8-f32-qb4w-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -54705,55 +85206,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qb4w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -54761,289 +85234,140 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" + ] - -- source_set("qs8-vpreluc_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] ++ +source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qs8-vrpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- source_set("qs8-vrpreluc_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qd8-f32-qc4w-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -55051,57 +85375,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc4w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -55109,77 +85403,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" + ] - -- source_set("qu8-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", @@ -55187,72 +85434,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", @@ -55260,327 +85462,144 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + asmflags = cflags - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - -- source_set("qu8-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qd8-f32-qc8w-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", @@ -55589,56 +85608,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", @@ -55647,75 +85637,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - -- source_set("qu8-f32-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", @@ -55723,71 +85668,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", @@ -55795,317 +85696,144 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-f32-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + asmflags = cflags - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] - -- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - -- source_set("qu8-f32-vcvt_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qd8-f32-qc8w-igemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", @@ -56116,57 +85844,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-igemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", @@ -56177,834 +85875,330 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" + ] - -- source_set("qu8-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" + ] - -- source_set("qu8-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("qu8-gemm_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_x64_standalone") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" + ] - -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} - -- source_set("qu8-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" @@ -57020,43 +86214,19 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qs8-dwconv_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", @@ -57067,55 +86237,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-dwconv_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", @@ -57126,237 +86268,60 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- source_set("qu8-igemm_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_x64_standalone") { -- cflags = [] ++ +source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- source_set("qu8-rdsum_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+fp16" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("qs8-f32-vcvt_arm64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - -- source_set("qu8-rdsum_x64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_arm64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_x64_standalone") { -- cflags = [] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -57367,413 +86332,239 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-rsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+source_set("qs8-packw_arm64") { ++ ++source_set("qs8-f32-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. -+source_set("qs8-packw_arm64_standalone") { ++source_set("qs8-f32-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - -- source_set("qu8-rsum_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", -- ] -+source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ ++source_set("qs8-packw_arm64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-rsum_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qs8-qc4w-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc4w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] - -- source_set("qu8-vadd_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qs8-qc8w-dwconv_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", @@ -57791,71 +86582,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-dwconv_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", @@ -57873,71 +86620,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vadd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", @@ -57945,52 +86651,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", @@ -57998,74 +86679,32 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" + ] - -- source_set("qu8-vadd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] ++ +source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", @@ -58079,55 +86718,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vadd_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", @@ -58141,198 +86754,85 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - -- source_set("qu8-vaddc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qs8-qc8w-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", @@ -58343,71 +86843,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", @@ -58418,71 +86874,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vaddc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", @@ -58490,52 +86905,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", @@ -58543,74 +86933,32 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" + ] - -- source_set("qu8-vaddc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] ++ +source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", @@ -58624,55 +86972,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vaddc_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", @@ -58686,200 +87008,85 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" + ] - -- source_set("qu8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", -- ] ++ +source_set("qs8-qc8w-igemm_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", @@ -58890,58 +87097,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-igemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", @@ -58952,559 +87128,246 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qs8-qu8-packw_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qu8-packw_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - -- source_set("qu8-vcvt_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", -- ] ++ +source_set("qs8-rdsum_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", + "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vcvt_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-rdsum_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", + "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qs8-rsum_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" + ] - -- source_set("qu8-vlrelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", -- ] ++ +source_set("qs8-rsum_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", + "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vlrelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-rsum_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", + "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qs8-vadd_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", @@ -59512,54 +87375,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vadd_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", @@ -59567,72 +87403,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - -- source_set("qu8-vlrelu_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", -- ] ++ +source_set("qs8-vaddc_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", @@ -59640,52 +87434,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vlrelu_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vaddc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", @@ -59693,920 +87462,409 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ +source_set("qs8-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - -- source_set("qu8-vmul_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ +source_set("qs8-vlrelu_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vmul_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vlrelu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vmul_x64") { -- cflags = [] ++ +source_set("qs8-vmul_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vmul_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - -- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] ++ +source_set("qs8-vmulc_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vmulc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vmulc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vmulc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qs8-vprelu_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vprelu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - -- source_set("qu8-vmulc_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- ] ++ +source_set("qs8-vpreluc_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vprelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vpreluc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vprelu_x64") { -- cflags = [] ++ +source_set("qs8-vrpreluc_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-vrpreluc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] - -- source_set("qu8-vpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", -- ] ++ +source_set("qu8-dwconv_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -60616,52 +87874,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vpreluc_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-dwconv_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -60671,187 +87904,87 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qu8-vrpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qu8-f32-vcvt_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-f32-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - -- source_set("qu8-vrpreluc_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_x64_standalone") { -- cflags = [] ++ +source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] ++ + asmflags = cflags - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -60859,54 +87992,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("reference_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -60914,73 +88022,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - -- # This is a target that cannot depend on //base. -- source_set("reference_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("s8-ibilinear_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-gemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", @@ -60991,54 +88056,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-gemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", @@ -61049,74 +88087,32 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - -- source_set("s8-ibilinear_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", -- ] ++ +source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + asmflags = cflags - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -61124,54 +88120,29 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("s8-ibilinear_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + asmflags = cflags - -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -61179,67 +88150,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("s8-maxpool_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qu8-igemm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", @@ -61250,54 +88184,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-igemm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", @@ -61308,315 +88215,142 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - -- source_set("s8-maxpool_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ +source_set("qu8-rdsum_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("s8-rdminmax_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-rdsum_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("s8-rdminmax_x64") { -- cflags = [] ++ +source_set("qu8-rsum_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", + "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-rsum_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", + "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - -- source_set("s8-rminmax_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qu8-vadd_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", @@ -61624,52 +88358,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("s8-rminmax_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vadd_arm64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", @@ -61677,74 +88386,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("s8-vclamp_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("qu8-vaddc_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", @@ -61752,51 +88417,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vaddc_arm64_standalone") { + cflags = [ + + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", @@ -61804,1385 +88445,578 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set( -- "s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", -- ] ++ +source_set("qu8-vcvt_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("s8-vclamp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vcvt_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("s8-vclamp_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qu8-vlrelu_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vlrelu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - -- source_set("s8-vclamp_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_x64_standalone") { -- cflags = [] ++ +source_set("qu8-vmul_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("subgraph_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qu8-vmul_arm64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("subgraph_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("tables_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("tables_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] ++ +source_set("qu8-vmulc_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("u8-ibilinear_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vmulc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("u8-ibilinear_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ +source_set("qu8-vprelu_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vprelu_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - -- source_set("u8-ibilinear_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] ++ +source_set("qu8-vpreluc_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("u8-lut32norm_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vpreluc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-lut32norm_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("u8-maxpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("qu8-vrpreluc_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qu8-vrpreluc_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - -- source_set("u8-maxpool_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ +source_set("reference_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("u8-rdminmax_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("reference_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("u8-rdminmax_x64") { -- cflags = [] ++ +source_set("s8-ibilinear_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("s8-ibilinear_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] - -- source_set("u8-rminmax_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("s8-maxpool_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("u8-rminmax_x64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("s8-maxpool_arm64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("u8-vclamp_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("s8-rdminmax_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", @@ -63190,66 +89024,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("s8-rdminmax_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", @@ -63257,73 +89052,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + public_configs = [ ":xnnpack_config" ] - -- # This is a target that cannot depend on //base. -- source_set( -- "u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", -- ] ++ +source_set("s8-rminmax_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", @@ -63333,58 +89085,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("u8-vclamp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("s8-rminmax_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", @@ -63394,187 +89115,85 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("u8-vclamp_x64") { -- cflags = [] ++ +source_set("s8-vclamp_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-vclamp/s8-vclamp-neon-u64.c", + "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("s8-vclamp_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-vclamp/s8-vclamp-neon-u64.c", + "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - -- source_set("x16-packw_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x16-packw_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", -- ] ++ +source_set("subgraph_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/subgraph/argmax-pooling-2d.c", @@ -63607,60 +89226,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x16-transposec_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("subgraph_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/subgraph/argmax-pooling-2d.c", @@ -63693,67 +89279,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x16-transposec_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("tables_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/tables/exp2-k-over-2048.c", @@ -63766,54 +89315,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("tables_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/tables/exp2-k-over-2048.c", @@ -63826,442 +89348,195 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" + ] - -- source_set("x16-transposec_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- ] ++ +source_set("u8-ibilinear_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", + "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", + "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x16-x32-packw_x64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-ibilinear_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x16-x32-packw_x64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", + "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", + "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x24-transposec_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ +source_set("u8-lut32norm_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-lut32norm_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - -- source_set("x24-transposec_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_x64_standalone") { -- cflags = [] ++ +source_set("u8-maxpool_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-maxpool_arm64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", -- ] ++ +source_set("u8-rdminmax_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", @@ -64269,63 +89544,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("x32-packw_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +# This is a target that cannot depend on //base. +source_set("u8-rdminmax_arm64_standalone") { + cflags = [ - -- source_set("x32-packw_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", @@ -64333,81 +89572,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- # This is a target that cannot depend on //base. -- source_set("x32-packw_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("u8-rminmax_arm64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", @@ -64417,67 +89605,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("x32-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-rminmax_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", @@ -64487,250 +89635,66 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - -- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", -- ] ++ +source_set("u8-vclamp_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-neon-u64.c", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x32-transposec_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/x32-transposec-4x4-sse.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-vclamp_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-neon-u64.c", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/x32-transposec-4x4-sse.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("x32-transposec_x64") { -- cflags = [] -+source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_x64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" -+ ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -64739,668 +89703,243 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x32-unpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("x16-packw_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-sse2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", + "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-sse2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x16-packw_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", + "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] - -- source_set("x32-unpool_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] ++ +source_set("x16-transposec_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", + "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x16-transposec_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", + "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x64-transposec_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ +source_set("x16-x32-packw_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x16-x32-packw_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - -- source_set("x64-transposec_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] ++ +source_set("x24-transposec_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", + "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", + "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx-u64.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x24-transposec_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", + "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", + "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx-u64.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x8-lut_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", -- ] -+source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x8-lut_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ +source_set("x32-packw_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", @@ -65411,76 +89950,31 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vbmi", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-packw_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vbmi", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] ++ + sources = [ + "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", @@ -65491,740 +89985,286 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x8-lut_x64") { -- cflags = [] ++ +source_set("x32-transposec_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", + "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", + "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x8-lut_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-transposec_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", + "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", + "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" + ] - -- source_set("x8-packq_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x8-packq_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("x32-unpool_arm64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-neon.c", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("x8-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-unpool_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-neon.c", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] - -- source_set("x8-transposec_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", -- ] ++ +source_set("x64-transposec_arm64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", + "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x8-transposec_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x64-transposec_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", + "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x8-transposec_x64") { -- cflags = [] ++ +source_set("x8-lut_arm64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_x64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_arm64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - -- source_set("xx-copy_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("xx-copy_x64_standalone") { -- cflags = [] -+source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-pack-lh/x8--packlh-neonsme2.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_config" ] -+} - -- source_set("xx-fill_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-sse2-u64.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-pack-lh/x8--packlh-neonsme2.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("xx-fill_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-sse2-u64.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("x8-packq_arm64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - -- source_set("xx-fill_x64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("x8-packq_arm64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("xx-fill_x64_standalone") { -- cflags = [] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -66235,1058 +90275,451 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("xx-pad_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+source_set("x8-packw_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("xx-pad_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-packw_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - -- source_set("xx-pad_x64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("xx-pad_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -+source_set("x8-transposec_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("xx-transposev_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("x8-transposec_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("xx-transposev_x64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } - --if (current_cpu == "arm64") { -- source_set("configs_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -+source_set("xx-copy_arm64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("configs_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("enums_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("xx-copy_arm64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("enums_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f16-avgpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("xx-fill_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("xx-fill_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] - -- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("xx-pad_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("xx-pad_arm64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-dwconv_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+source_set("xx-transposev_arm64") { -+ cflags = [ - -- source_set("f16-f32-vcvt_arm64") { -- cflags = [] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("xx-transposev_arm64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] - -- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", -- ] -+if (current_cpu == "ppc64") { -+source_set("configs_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("configs_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("enums_ppc64") { ++ ++source_set("x8-packw_arm64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", -- ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x8-transposec_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-copy_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-copy_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-fill_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-fill_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-pad_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-pad_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-transposev_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-transposev_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++} ++ ++if (current_cpu == "riscv64") { ++source_set("configs_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("configs_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("enums_riscv64") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/enums/allocation-type.c", @@ -67295,84 +90728,9502 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ ++# This is a target that cannot depend on //base. ++source_set("enums_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-f32-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-qs8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-qu8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rdminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vapproxgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vcos_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vexp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vsin_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vsin_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-argmaxpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-argmaxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-avgpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-avgpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-conv-hwc2chw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-conv-hwc2chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv2d-chw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv2d-chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-f16-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-f16-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear-chw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear-chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-ibilinear_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-ibilinear_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-igemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-maxpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qc8w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qs8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-qu8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-raddstoreexpminusmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-raddstoreexpminusmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rdsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-rsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-spmm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-spmm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vapproxgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vapproxgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vbinary_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vbinary_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vclamp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcmul_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcopysign_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcopysign_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vcos_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vcos_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-velu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-velu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vexp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vexp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vhswish_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vhswish_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlog_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlog_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vlrelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vmulcaddc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vmulcaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrnd_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrnd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vrsqrt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vrsqrt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsigmoid_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsigmoid_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsin_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsin_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vsqrt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vsqrt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vtanh_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vtanh_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f32-vunary_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f32-vunary_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("operators_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("operators_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qb4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qd8-f32-qc8w-igemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-f32-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qc8w-igemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qc8w-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-qu8-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-qu8-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rdsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vprelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vprelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vpreluc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vrpreluc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rdsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vprelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vprelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vpreluc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vrpreluc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("reference_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("reference_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-ibilinear_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-maxpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rdminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("subgraph_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("subgraph_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("tables_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("tables_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-ibilinear_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-lut32norm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-lut32norm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-maxpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-rdminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-rminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-vclamp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x16-transposec_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x16-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x16-x32-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x16-x32-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x24-transposec_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x24-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-packw_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-transposec_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x32-unpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x32-unpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x64-transposec_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x64-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x8-lut_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x8-lut_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x8-packq_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x8-packq_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x8-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x8-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("x8-transposec_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("x8-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-copy_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-copy_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-fill_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-fill_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-pad_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-pad_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("xx-transposev_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("xx-transposev_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++} ++ ++if (current_cpu == "ppc64") { ++source_set("configs_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("configs_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("enums_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ +# This is a target that cannot depend on //base. +source_set("enums_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/enums/allocation-type.c", @@ -67381,22 +100232,11 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -67405,959 +100245,51 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("f16-f32-vcvt_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-f32-vcvt_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - -- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-qs8-vcvt_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] -+source_set("f16-qu8-vcvt_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-maxpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-rdminmax_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] - -- source_set("f16-qs8-vcvt_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-qs8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -+source_set("f16-rminmax_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-qu8-vcvt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-rminmax_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-qu8-vcvt_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-vapproxgelu_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - -- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", -- ] -+source_set("f16-vcos_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-rdminmax_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("f16-vcos_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f16-rdminmax_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f16-rminmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("f16-vexp_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -+# This is a target that cannot depend on //base. -+source_set("f16-vexp_ppc64_standalone") { -+ cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ ] - -- source_set("f16-rminmax_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -68366,668 +100298,659 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -+source_set("f16-vgelu_ppc64") { ++ ++source_set("f16-qs8-vcvt_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-spmm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ ++# This is a target that cannot depend on //base. ++source_set("f16-qs8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-qu8-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rdminmax_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-rminmax_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-rminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vapproxgelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vapproxgelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vcos_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vcos_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vexp_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("f16-vexp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("f16-vgelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ +# This is a target that cannot depend on //base. +source_set("f16-vgelu_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("f16-vsin_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f16-vsin_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - -- source_set("f16-vapproxgelu_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vapproxgelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-argmaxpool_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vbinary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-argmaxpool_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - -- source_set("f16-vclamp_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", -- ] ++ +source_set("f32-avgpool_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-vcmul_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-avgpool_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vcos_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("f32-conv-hwc2chw_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-conv-hwc2chw_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - -- source_set("f16-vcos_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vcos_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] ++ +source_set("f32-dwconv2d-chw_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", @@ -69039,52 +100962,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-velu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-dwconv2d-chw_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", @@ -69096,64 +100994,30 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vexp_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("f32-dwconv_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", @@ -69167,51 +101031,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-dwconv_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", @@ -69225,178 +101065,83 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - -- source_set("f16-vexp_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vexp_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] ++ +source_set("f32-f16-vcvt_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-vgelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-f16-vcvt_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vgelu_arm64") { -- cflags = [] ++ +source_set("f32-gemm_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", @@ -69408,51 +101153,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vgelu_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", @@ -69464,321 +101185,136 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - -- source_set("f16-vhswish_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", -- ] ++ +source_set("f32-ibilinear-chw_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-ibilinear-chw_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f32-ibilinear_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vrnd_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-ibilinear_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("f32-igemm_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", @@ -69790,51 +101326,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-igemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", @@ -69846,1842 +101358,684 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", -- ] ++ +source_set("f32-maxpool_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-vsin_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-maxpool_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f16-vsin_arm64") { -- cflags = [] ++ +source_set("f32-qc4w-gemm_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qc4w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - -- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", -- ] ++ +source_set("f32-qc8w-gemm_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f16-vtanh_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qc8w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} + +source_set("f32-qs8-vcvt_ppc64") { + cflags = [ - -- source_set("f16-vunary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qs8-vcvt_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - -- source_set("f32-argmaxpool_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] ++ +source_set("f32-qu8-vcvt_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-avgpool_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-qu8-vcvt_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-conv-hwc2chw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] ++ +source_set("f32-raddstoreexpminusmax_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-raddstoreexpminusmax_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ +source_set("f32-rdminmax_ppc64") { + cflags = [ - -- asmflags = cflags ++ + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- asmflags = cflags ++ +# This is a target that cannot depend on //base. +source_set("f32-rdminmax_ppc64_standalone") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-rdsum_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - -- source_set("f32-f16-vcvt_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-rdsum_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-rminmax_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-rminmax_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - -- source_set("f32-ibilinear-chw_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear-chw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-rsum_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - -- source_set("f32-ibilinear_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-rsum_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-spmm_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-spmm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - -- source_set("f32-maxpool_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-maxpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("f32-vapproxgelu_ppc64") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vapproxgelu_ppc64_standalone") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags ++ +source_set("f32-vbinary_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", @@ -71704,80 +102058,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-vbinary_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", @@ -71800,1717 +102101,617 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-vclamp_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vclamp_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - -- source_set("f32-raddstoreexpminusmax_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-vcmul_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vcmul_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - -- source_set("f32-rdsum_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("f32-vcopysign_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vcopysign_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - -- source_set("f32-rsum_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_arm64_standalone") { -- cflags = [] ++ +source_set("f32-vcos_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-spmm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-vcos_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-spmm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-vapproxgelu_arm64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f32-velu_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-velu_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vclamp_arm64") { -- cflags = [] ++ +source_set("f32-vexp_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vexp_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - -- source_set("f32-vcmul_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_arm64_standalone") { -- cflags = [] ++ +source_set("f32-vgelu_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-vgelu_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- source_set("f32-vcos_arm64") { -- cflags = [] ++ + public_configs = [ ":xnnpack_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f32-vhswish_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vhswish_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-velu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vexp_arm64") { -- cflags = [] ++ +source_set("f32-vlog_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vlog_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - -- source_set("f32-vgelu_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] ++ +source_set("f32-vlrelu_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vhswish_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vlrelu_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vlog_arm64") { -- cflags = [] ++ +source_set("f32-vmulcaddc_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vmulcaddc_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - -- source_set("f32-vlrelu_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_arm64_standalone") { -- cflags = [] -+source_set("f32-vrelu_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vmulcaddc_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("f32-vrelu_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrelu/gen/f32-vrelu-scalar.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("f32-vrelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-neon.c", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("f32-vrnd_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrelu_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", @@ -73518,78 +102719,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrelu/gen/f32-vrelu-neon.c", -- "src/src/f32-vrelu/gen/f32-vrelu-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vrnd_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", @@ -73597,856 +102747,354 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vrsqrt_arm64") { -- cflags = [] ++ +source_set("f32-vrsqrt_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vrsqrt_ppc64_standalone") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("f32-vsigmoid_arm64") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] ++ +source_set("f32-vsigmoid_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("f32-vsin_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vsigmoid_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("f32-vsqrt_arm64") { -- cflags = [] ++ +source_set("f32-vsin_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vsin_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - -- source_set("f32-vtanh_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_arm64_standalone") { -- cflags = [] ++ +source_set("f32-vsqrt_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("f32-vsqrt_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("operators_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("operators_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] ++ +source_set("f32-vtanh_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vtanh_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ +source_set("f32-vunary_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("f32-vunary_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - -- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", -- ] ++ +source_set("operators_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/operators/argmax-pooling-nhwc.c", @@ -74471,53 +103119,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("operators_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/operators/argmax-pooling-nhwc.c", @@ -74542,578 +103164,254 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("qd8-f32-qb4w-gemm_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" + ] - -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ +source_set("qd8-f32-qc4w-gemm_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ +source_set("qd8-f32-qc8w-gemm_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("qd8-f32-qc8w-igemm_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("qs8-dwconv_ppc64") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -75121,49 +103419,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("qs8-dwconv_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ + ] - -- asmflags = cflags ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -75171,446 +103447,189 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +source_set("qs8-f32-vcvt_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-f32-vcvt_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -- ] ++ +source_set("qs8-packw_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-packw_ppc64_standalone") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] ++ +source_set("qs8-qc4w-gemm_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc4w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ +source_set("qs8-qc8w-dwconv_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -75620,52 +103639,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-dwconv_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -75675,5832 +103669,2396 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("qs8-qc8w-gemm_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-gemm_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ +source_set("qs8-qc8w-igemm_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qc8w-igemm_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] ++ +source_set("qs8-qu8-packw_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", -- ] ++ +# This is a target that cannot depend on //base. +source_set("qs8-qu8-packw_ppc64_standalone") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+source_set("qs8-rdsum_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- asmflags = cflags -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] - -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-rsum_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qs8-rsum_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -+source_set("qs8-vadd_ppc64") { -+ cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ ] - -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] - -- asmflags = cflags -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qs8-vadd_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ ] - -- asmflags = cflags -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("qs8-vaddc_ppc64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qs8-vcvt_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] - -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-vlrelu_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-vmul_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vmul_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] - -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+source_set("qs8-vmulc_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x128c4-neonsme2.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-32x128c4-neonsme2.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+source_set("qs8-vprelu_ppc64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vprelu_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+source_set("qs8-vpreluc_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vpreluc_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] - -- source_set("qs8-f32-vcvt_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -+source_set("qs8-vrpreluc_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-packw_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qs8-vrpreluc_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -+source_set("qu8-dwconv_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- asmflags = cflags -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] - -- source_set("qs8-qc4w-gemm_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_arm64_standalone") { -- cflags = [] -+source_set("qu8-f32-vcvt_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("qu8-gemm_ppc64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-gemm_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qu8-igemm_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qu8-igemm_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("qu8-rdsum_ppc64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] - -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+source_set("qu8-rsum_ppc64") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-rsum_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] - -- source_set("qs8-qu8-packw_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -+source_set("qu8-vadd_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-rdsum_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vadd_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qu8-vaddc_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] - -- source_set("qs8-rsum_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_arm64_standalone") { -- cflags = [] -+source_set("qu8-vcvt_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -+source_set("qu8-vlrelu_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-vcvt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vlrelu_arm64") { -- cflags = [] -+source_set("qu8-vmul_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vmul_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] - -- source_set("qs8-vmul_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+source_set("qu8-vmulc_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qs8-vmulc_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qs8-vprelu_arm64") { -- cflags = [] -+source_set("qu8-vprelu_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vprelu_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] - -- source_set("qs8-vpreluc_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -+source_set("qu8-vpreluc_ppc64") { -+ cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ ] - -- source_set("qs8-vrpreluc_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ public_configs = [ ":xnnpack_config" ] -+} - -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_arm64_standalone") { -- cflags = [] -+# This is a target that cannot depend on //base. -+source_set("qu8-vpreluc_ppc64_standalone") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -+source_set("qu8-vrpreluc_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-f32-vcvt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("qu8-vrpreluc_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -+source_set("reference_ppc64") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ ] - -- asmflags = cflags -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -+# This is a target that cannot depend on //base. -+source_set("reference_ppc64_standalone") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("s8-ibilinear_ppc64") { -+ cflags = [ - -- asmflags = cflags -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_ppc64_standalone") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+source_set("s8-maxpool_ppc64") { -+ cflags = [ - -- source_set("qu8-rdsum_arm64") { -- cflags = [] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("s8-maxpool_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] - -- source_set("qu8-rsum_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_arm64_standalone") { -- cflags = [] -+source_set("s8-rdminmax_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- public_configs = [ ":xnnpack_config" ] -- } -+# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_ppc64_standalone") { -+ cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -+source_set("s8-rminmax_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vcvt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("s8-rminmax_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-vlrelu_arm64") { -- cflags = [] -+source_set("s8-vclamp_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("s8-vclamp_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] - -- source_set("qu8-vmul_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+source_set("subgraph_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vmulc_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("subgraph_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("qu8-vprelu_arm64") { -- cflags = [] -+source_set("tables_ppc64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+source_set("tables_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] - -- source_set("qu8-vpreluc_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -+source_set("u8-ibilinear_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("qu8-vrpreluc_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_ppc64_standalone") { -+ cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } -+ ] - -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_arm64_standalone") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } -+} - -- source_set("reference_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -+source_set("u8-lut32norm_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - -- # This is a target that cannot depend on //base. -- source_set("reference_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_config" ] -+ public_configs = [ ":xnnpack_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_ppc64_standalone") { -+ cflags = [ - -- source_set("s8-ibilinear_arm64") { -- cflags = [] -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -+ public_configs = [ ":xnnpack_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] + } +} - -- public_configs = [ ":xnnpack_config" ] -+source_set("u8-maxpool_ppc64") { ++ ++source_set("qs8-rdsum_ppc64") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("s8-maxpool_arm64") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_arm64_standalone") { -- cflags = [] ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rdsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-rsum_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-rsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vadd_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vadd_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vaddc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vaddc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vlrelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmul_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmul_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vmulc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vmulc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vprelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vprelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vpreluc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qs8-vrpreluc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qs8-vrpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-dwconv_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-dwconv_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-f32-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-f32-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-gemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-igemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-igemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rdsum_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rdsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-rsum_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-rsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vadd_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vadd_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vaddc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vaddc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vlrelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmul_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmul_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vmulc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vmulc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vprelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vprelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vpreluc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("qu8-vrpreluc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("qu8-vrpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("reference_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("reference_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-ibilinear_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-ibilinear_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-maxpool_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-maxpool_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rdminmax_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-rminmax_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-rminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("s8-vclamp_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("s8-vclamp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("subgraph_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("subgraph_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("tables_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("tables_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-ibilinear_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-ibilinear_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-lut32norm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++source_set("u8-lut32norm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++} ++ ++source_set("u8-maxpool_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_config" ] ++} ++ +# This is a target that cannot depend on //base. +source_set("u8-maxpool_ppc64_standalone") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("u8-rdminmax_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-rdminmax_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] - -- source_set("s8-vclamp_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_arm64_standalone") { -- cflags = [] ++ +source_set("u8-rminmax_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("subgraph_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("u8-rminmax_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("subgraph_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("tables_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("tables_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] ++ +source_set("u8-vclamp_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("u8-ibilinear_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("u8-vclamp_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -81511,423 +106069,180 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("u8-lut32norm_arm64") { -- cflags = [] ++ +source_set("x16-transposec_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("u8-lut32norm_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x16-transposec_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - -- source_set("u8-maxpool_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_arm64_standalone") { -- cflags = [] ++ +source_set("x16-x32-packw_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- public_configs = [ ":xnnpack_config" ] -- } ++ +# This is a target that cannot depend on //base. +source_set("x16-x32-packw_ppc64_standalone") { + cflags = [ - -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] ++ +source_set("x24-transposec_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("u8-vclamp_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x24-transposec_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ +source_set("x32-packw_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", @@ -81937,51 +106252,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-packw_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", @@ -81991,533 +106282,223 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" + ] - -- source_set("x16-packw_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x16-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", -- ] ++ +source_set("x32-transposec_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x16-transposec_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-transposec_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x16-x32-packw_arm64") { -- cflags = [] ++ +source_set("x32-unpool_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x16-x32-packw_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x32-unpool_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] - -- source_set("x24-transposec_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] ++ +source_set("x64-transposec_ppc64") { + cflags = [ - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + ] - -- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + public_configs = [ ":xnnpack_config" ] +} - -- # This is a target that cannot depend on //base. -- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ +# This is a target that cannot depend on //base. +source_set("x64-transposec_ppc64_standalone") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - -- public_configs = [ ":xnnpack_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x32-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", -- ] ++ +source_set("x8-lut_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x32-transposec_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-lut_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -82526,155 +106507,70 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x32-unpool_arm64") { -- cflags = [] ++ +source_set("x8-packq_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-packq_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - -- source_set("x64-transposec_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] ++ +source_set("x8-packw_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -82682,53 +106578,27 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("x8-lut_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-packw_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("x8-lut_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -82736,643 +106606,288 @@ Index: chromium-138.0.7204.35/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ +source_set("x8-transposec_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-pack-lh/x8--packlh-neonsme2.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-pack-lh/x8--packlh-neonsme2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("x8-transposec_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - -- source_set("x8-packq_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x8-packq_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +source_set("xx-copy_ppc64") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- # This is a target that cannot depend on //base. -- source_set("x8-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-copy_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - -- source_set("x8-transposec_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] ++ +source_set("xx-fill_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("xx-copy_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-fill_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("xx-copy_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- source_set("xx-fill_arm64") { -- cflags = [] ++ +source_set("xx-pad_ppc64") { + cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-neon-u64.c", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] ++ + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - -- public_configs = [ ":xnnpack_config" ] -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- # This is a target that cannot depend on //base. -- source_set("xx-fill_arm64_standalone") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-neon-u64.c", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-pad_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] ++ + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - -- source_set("xx-pad_arm64") { -- cflags = [] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-neon-u16.c", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_config" ] - -- public_configs = [ ":xnnpack_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } ++ } +} - -- # This is a target that cannot depend on //base. -- source_set("xx-pad_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-neon-u16.c", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] ++ +source_set("xx-transposev_ppc64") { + cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + ] - -- public_configs = [ ":xnnpack_config" ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- source_set("xx-transposev_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] ++ + public_configs = [ ":xnnpack_config" ] +} - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +source_set("xx-transposev_ppc64_standalone") { + cflags = [ - -- public_configs = [ ":xnnpack_config" ] -- } ++ + ] - -- # This is a target that cannot depend on //base. -- source_set("xx-transposev_arm64_standalone") { -- cflags = [] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_config" ] ++ + public_configs = [ ":xnnpack_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++} + +} diff --git a/0009-sandbox-updates-138.patch b/0009-sandbox-updates-138.patch new file mode 100644 index 0000000..dba5d48 --- /dev/null +++ b/0009-sandbox-updates-138.patch @@ -0,0 +1,105 @@ +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -538,13 +538,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr + size_t argIndex; + switch (sysno) { + #if defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_send: + argIndex = 3; + break; + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__mips__) || defined(__aarch64__) ++ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_sendto: // Could specify destination. + argIndex = 3; + break; +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +@@ -671,11 +671,12 @@ bool SyscallSets::IsAllowedGeneralIo(int + bool SyscallSets::IsSockSendOneMsg(int sysno) { + switch (sysno) { + #if defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_send: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__mips__) || defined(__aarch64__) ++ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_sendmsg: // Could specify destination. + case __NR_sendto: // Could specify destination. + #endif +@@ -938,12 +939,15 @@ bool SyscallSets::IsKeyManagement(int sy + } + + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + bool SyscallSets::IsSystemVSemaphores(int sysno) { + switch (sysno) { + case __NR_semctl: + case __NR_semget: ++#if !defined(__powerpc64__) + case __NR_semop: ++#endif + case __NR_semtimedop: + #if defined(__i386__) || defined(__arm__) || \ + (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) +@@ -975,7 +979,8 @@ bool SyscallSets::IsSystemVSharedMemory( + #endif + + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + bool SyscallSets::IsSystemVMessageQueue(int sysno) { + switch (sysno) { + case __NR_msgctl: +@@ -1011,9 +1016,11 @@ bool SyscallSets::IsAnySystemV(int sysno + return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || + IsSystemVSharedMemory(sysno); + #elif defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ +- defined(__powerpc64__) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) + return IsSystemVIpc(sysno); ++#elif defined(__powerpc64__) ++ return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || ++ IsSystemVSharedMemory(sysno) || IsSystemVIpc(sysno); + #endif + } + +Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +=================================================================== +--- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +@@ -81,7 +81,8 @@ class SANDBOX_EXPORT SyscallSets { + static bool IsAsyncIo(int sysno); + static bool IsKeyManagement(int sysno); + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + static bool IsSystemVSemaphores(int sysno); + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +@@ -93,7 +94,8 @@ class SANDBOX_EXPORT SyscallSets { + #endif + + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + static bool IsSystemVMessageQueue(int sysno); + #endif + diff --git a/b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch b/b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch deleted file mode 100644 index e19b0f6..0000000 --- a/b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch +++ /dev/null @@ -1,45 +0,0 @@ -From b0ff8c3b258a8816c05bdebf472dbba719d3c491 Mon Sep 17 00:00:00 2001 -From: Hans Wennborg -Date: Tue, 10 Jun 2025 09:51:47 -0700 -Subject: [PATCH] Don't return an enum from EnumSizeTraits::Count - -`Enum::kMaxValue + 1` may be outside the representable range of the -enum, which Clang will treat as an error in constexpr contexts (see -bug). - -Bug: 423841920 -Change-Id: I629402cf93bd8419a71f94ff9ed9340d4f88a706 -Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6633292 -Auto-Submit: Hans Wennborg -Commit-Queue: Nico Weber -Reviewed-by: Nico Weber -Commit-Queue: Hans Wennborg -Cr-Commit-Position: refs/heads/main@{#1471871} ---- - base/metrics/histogram_macros_internal.h | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/base/metrics/histogram_macros_internal.h b/base/metrics/histogram_macros_internal.h -index 39b232bc1023b8..daa5515c2ab357 100644 ---- a/base/metrics/histogram_macros_internal.h -+++ b/base/metrics/histogram_macros_internal.h -@@ -28,16 +28,16 @@ namespace base::internal { - template - requires(std::is_enum_v) - struct EnumSizeTraits { -- static constexpr Enum Count() { -+ static constexpr uintmax_t Count() { - if constexpr (requires { Enum::kMaxValue; }) { - // Since the UMA histogram macros expect a value one larger than the max - // defined enumerator value, add one. -- return static_cast(base::to_underlying(Enum::kMaxValue) + 1); -+ return static_cast(base::to_underlying(Enum::kMaxValue) + 1); - } else { - static_assert( - sizeof(Enum) == 0, - "enumerator must define kMaxValue enumerator to use this macro!"); -- return Enum(); -+ return 0; - } - } - }; diff --git a/chromium-121-system-old-ffmpeg.patch b/chromium-121-system-old-ffmpeg.patch deleted file mode 100644 index 0398e5b..0000000 --- a/chromium-121-system-old-ffmpeg.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -up chromium-121.0.6167.57/media/ffmpeg/ffmpeg_common.cc.me chromium-121.0.6167.57/media/ffmpeg/ffmpeg_common.cc ---- chromium-121.0.6167.57/media/ffmpeg/ffmpeg_common.cc.me 2024-01-16 10:54:38.994173911 +0100 -+++ chromium-121.0.6167.57/media/ffmpeg/ffmpeg_common.cc 2024-01-16 11:06:20.974160612 +0100 -@@ -710,8 +710,13 @@ bool AVStreamToVideoDecoderConfig(const - } - - VideoTransformation video_transformation = VideoTransformation(); -+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) -+ for (int i = 0; i < stream->nb_side_data; i++) { -+ const auto& side_data = stream->side_data[i]; -+#else - for (int i = 0; i < stream->codecpar->nb_coded_side_data; ++i) { - const auto& side_data = stream->codecpar->coded_side_data[i]; -+#endif - switch (side_data.type) { - case AV_PKT_DATA_DISPLAYMATRIX: { - CHECK_EQ(side_data.size, sizeof(int32_t) * 3 * 3); -diff -up chromium-121.0.6167.57/media/filters/audio_video_metadata_extractor.cc.me chromium-121.0.6167.57/media/filters/audio_video_metadata_extractor.cc ---- chromium-121.0.6167.57/media/filters/audio_video_metadata_extractor.cc.me 2024-01-16 11:12:27.521534151 +0100 -+++ chromium-121.0.6167.57/media/filters/audio_video_metadata_extractor.cc 2024-01-16 11:15:08.717337026 +0100 -@@ -113,8 +113,13 @@ bool AudioVideoMetadataExtractor::Extrac - if (!stream) - continue; - -+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) -+ for (int j = 0; j < stream->nb_side_data; j++) { -+ const AVPacketSideData& sd = stream->side_data[j]; -+#else - for (int j = 0; j < stream->codecpar->nb_coded_side_data; j++) { - const AVPacketSideData& sd = stream->codecpar->coded_side_data[j]; -+#endif - if (sd.type == AV_PKT_DATA_DISPLAYMATRIX) { - CHECK_EQ(sd.size, sizeof(int32_t) * 3 * 3); - rotation_ = VideoTransformation::FromFFmpegDisplayMatrix( diff --git a/chromium-139-el9-ffmpeg-5.1.x.patch b/chromium-139-el9-ffmpeg-5.1.x.patch new file mode 100644 index 0000000..992197c --- /dev/null +++ b/chromium-139-el9-ffmpeg-5.1.x.patch @@ -0,0 +1,138 @@ +diff -up chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc +--- chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x 2025-07-06 20:30:36.125746197 +0200 ++++ chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc 2025-07-06 20:36:47.648896691 +0200 +@@ -784,8 +784,13 @@ bool AVStreamToVideoDecoderConfig(const + } + + VideoTransformation video_transformation = VideoTransformation(); ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ for (int i = 0; i < stream->nb_side_data; i++) { ++ const auto& side_data = stream->side_data[i]; ++#else + for (const auto& side_data : + AVCodecParametersCodedSideToSpan(stream->codecpar)) { ++#endif + switch (side_data.type) { + case AV_PKT_DATA_DISPLAYMATRIX: { + CHECK_EQ(side_data.size, sizeof(int32_t) * 3 * 3); +diff -up chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h +--- chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h.el9-ffmpeg-5.1.x 2025-06-25 00:02:26.000000000 +0200 ++++ chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h 2025-07-06 20:30:36.131085710 +0200 +@@ -93,6 +93,7 @@ inline base::span AVPacke + base::span(packet.data, base::checked_cast(packet.size))); + } + ++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 31, 102) + inline base::span AVFormatContextToSpan( + const AVFormatContext* codec_context) { + // SAFETY: +@@ -114,6 +115,7 @@ inline base::span AVCo + base::span(codecpar->coded_side_data, + base::checked_cast(codecpar->nb_coded_side_data))); + } ++#endif + + // Converts an int64_t timestamp in |time_base| units to a base::TimeDelta. + // For example if |timestamp| equals 11025 and |time_base| equals {1, 44100} +diff -up chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc +--- chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc.el9-ffmpeg-5.1.x 2025-06-25 00:02:26.000000000 +0200 ++++ chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc 2025-07-06 20:30:36.131372795 +0200 +@@ -109,17 +109,33 @@ bool AudioVideoMetadataExtractor::Extrac + container_info.type = format_context->iformat->name; + ExtractDictionary(format_context->metadata, &container_info.tags); + ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ for (unsigned int i = 0; i < format_context->nb_streams; ++i) { ++ stream_infos_.push_back(StreamInfo()); ++#else + base::span format_context_span = + AVFormatContextToSpan(format_context); + std::ranges::for_each(format_context_span, [&](AVStream* stream) { + stream_infos_.emplace_back(); ++#endif + StreamInfo& info = stream_infos_.back(); + ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ AVStream* stream = format_context->streams[i]; ++ if (!stream) ++ continue; ++#else + if (!stream) { + return; + } ++#endif + ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ for (int j = 0; j < stream->nb_side_data; j++) { ++ const AVPacketSideData& sd = stream->side_data[j]; ++#else + for (const auto& sd : AVCodecParametersCodedSideToSpan(stream->codecpar)) { ++#endif + if (sd.type == AV_PKT_DATA_DISPLAYMATRIX) { + CHECK_EQ(sd.size, sizeof(int32_t) * 3 * 3); + rotation_ = VideoTransformation::FromFFmpegDisplayMatrix( +@@ -135,7 +151,11 @@ bool AudioVideoMetadataExtractor::Extrac + ExtractDictionary(stream->metadata, &info.tags); + + if (!stream->codecpar) { ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ continue; ++#else + return; ++#endif + } + + info.type = avcodec_get_name(stream->codecpar->codec_id); +@@ -158,7 +178,11 @@ bool AudioVideoMetadataExtractor::Extrac + reinterpret_cast(stream->attached_pic.data), + stream->attached_pic.size); + } ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ } ++#else + }); ++#endif + + extracted_ = true; + return true; +diff -up chromium-139.0.7258.5/media/filters/media_file_checker.cc.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/filters/media_file_checker.cc +--- chromium-139.0.7258.5/media/filters/media_file_checker.cc.el9-ffmpeg-5.1.x 2025-06-25 00:02:26.000000000 +0200 ++++ chromium-139.0.7258.5/media/filters/media_file_checker.cc 2025-07-06 20:30:36.131615487 +0200 +@@ -64,6 +64,10 @@ bool MediaFileChecker::Start(base::TimeD + // Remember the codec context for any decodable audio or video streams. + bool found_streams = false; + std::vector stream_contexts(format_context->nb_streams); ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ for (size_t i = 0; i < format_context->nb_streams; ++i) { ++ AVCodecParameters* cp = format_context->streams[i]->codecpar; ++#else + base::span format_context_span = + AVFormatContextToSpan(format_context); + std::ranges::transform( +@@ -85,9 +89,26 @@ bool MediaFileChecker::Start(base::TimeD + } + } + ++#endif ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(60, 31, 102) ++ if (cp->codec_type == AVMEDIA_TYPE_AUDIO || ++ cp->codec_type == AVMEDIA_TYPE_VIDEO) { ++ auto context = AVStreamToAVCodecContext(format_context->streams[i]); ++ if (!context) ++ continue; ++ const AVCodec* codec = avcodec_find_decoder(cp->codec_id); ++ if (codec && avcodec_open2(context.get(), codec, nullptr) >= 0) { ++ auto loop = std::make_unique(context.get()); ++ stream_contexts[i] = {std::move(context), std::move(loop)}; ++ found_streams = true; ++ } ++ } ++ } ++#else + return Decoder{}; + }); + ++#endif + if (!found_streams) + return false; + diff --git a/chromium-latest.py b/chromium-latest.py index 118509a..269c1d0 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -324,7 +324,12 @@ if __name__ == '__main__': 'third_party/node/linux/node-linux-x64', 'third_party/rust-toolchain', 'third_party/rust-src', - 'third_party/devtools-frontend/src/third_party/esbuild'] + 'third_party/devtools-frontend/src/third_party/esbuild', + 'third_party/enterprise_companion/chromium_linux64', + 'third_party/enterprise_companion/chromium_mac_amd64', + 'third_party/enterprise_companion/chromium_mac_arm64', + 'third_party/enterprise_companion/chromium_win_x86', + 'third_party/enterprise_companion/chromium_win_x86_64'] junk_files = ['third_party/node/linux/node-linux-x64.tar.gz', 'buildtools/third_party/eu-strip/bin/eu-strip', 'buildtools/linux64/gn'] diff --git a/chromium.spec b/chromium.spec index e6f98cf..e1fabb9 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 138.0.7204.183 -Release: 2%{?dist} +Version: 139.0.7258.66 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -287,7 +287,7 @@ Patch131: chromium-107-proprietary-codecs.patch # fix tab crash with SIGTRAP error when using system ffmpeg Patch132: chromium-118-sigtrap_system_ffmpeg.patch # need for old ffmpeg 6.0/5.x on epel9 and fedora < 40 -Patch133: chromium-121-system-old-ffmpeg.patch +Patch133: chromium-139-el9-ffmpeg-5.1.x.patch # revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' Patch135: chromium-133-disable-H.264-video-parser-during-demuxing.patch # Workaround for youtube stop working @@ -374,6 +374,7 @@ Patch375: 0008-sandbox-fix-ppc64le-glibc234.patch Patch376: 0001-third_party-angle-Include-missing-header-cstddef-in-.patch Patch377: 0001-Add-PPC64-support-for-boringssl.patch Patch378: 0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch +Patch379: 0009-sandbox-updates-138.patch Patch380: 0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch Patch381: 0002-Add-PPC64-generated-files-for-boringssl.patch Patch382: 0002-third_party-lss-kernel-structs.patch @@ -442,9 +443,6 @@ Patch510: 0001-Remove-unused-OpenSSL-config.patch Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch %endif -# https://github.com/chromium/chromium/commit/b0ff8c3b258a8816c05bdebf472dbba719d3c491 -Patch512: b0ff8c3b258a8816c05bdebf472dbba719d3c491.patch - # upstream patches # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: @@ -985,10 +983,10 @@ Qt6 UI for chromium. %patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis %patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque %patch -P130 -p1 -b .ffmpeg-5.x-duration +%patch -P133 -p1 -b .el9-ffmpeg-5.1.x %endif %patch -P131 -p1 -b .prop-codecs %patch -P132 -p1 -b .sigtrap_system_ffmpeg -%patch -P133 -p1 -b .system-old-ffmpeg %patch -P135 -p1 -b .disable-H.264-video-parser-during-demuxing %patch -P136 -p1 -b .workaround-system-ffmpeg-whitelist %endif @@ -1061,6 +1059,7 @@ Qt6 UI for chromium. %patch -P376 -p1 -b .0001-third_party-angle-Include-missing-header-cstddef-in- %patch -P377 -p1 -b .0001-Add-PPC64-support-for-boringssl %patch -P378 -p1 -b .0001-third_party-libvpx-Properly-generate-gni-on-ppc64 +%patch -P379 -p1 -b .0009-sandbox-updates-138 %patch -P380 -p1 -b .0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI %patch -P381 -p1 -b .002-Add-PPC64-generated-files-for-boringssl %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs @@ -1226,7 +1225,7 @@ CHROMIUM_CORE_GN_DEFINES="" CHROMIUM_CORE_GN_DEFINES+=' custom_toolchain="//build/toolchain/linux/unbundle:default"' CHROMIUM_CORE_GN_DEFINES+=' host_toolchain="//build/toolchain/linux/unbundle:default"' CHROMIUM_CORE_GN_DEFINES+=' is_debug=false dcheck_always_on=false dcheck_is_configurable=false' -CHROMIUM_CORE_GN_DEFINES+=' enable_nacl=false' +CHROMIUM_CORE_GN_DEFINES+=' enable_enterprise_companion=false' CHROMIUM_CORE_GN_DEFINES+=' system_libdir="%{_lib}"' %if %{official_build} @@ -1744,6 +1743,16 @@ fi %endif %changelog +* Tue Aug 05 2025 Than Ngo - 139.0.7258.66-1 +- Updated to 139.0.7258.66 + * CVE-2025-8576: Use after free in Extensions + * CVE-2025-8578: Use after free in Cast + * CVE-2025-8579: Inappropriate implementation in Gemini Live in Chrome + * CVE-2025-8580: Inappropriate implementation in Filesystems + * CVE-2025-8581: Inappropriate implementation in Extensions + * CVE-2025-8582: Insufficient validation of untrusted input in DOM + * CVE-2025-8583: Inappropriate implementation in Permissions + * Mon Aug 04 2025 Tom Stellard - 138.0.7204.183-2 - Backport fix for build failure with clang-21 diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index 16f8f33..5948587 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,15 +1,15 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-137.0.7151.40/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-139.0.7258.66/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-137.0.7151.40.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-137.0.7151.40/base/allocator/partition_allocator/partition_alloc.gni -@@ -70,7 +70,7 @@ if (is_nacl) { - has_64_bit_pointers = false - } else if (current_cpu == "x64" || current_cpu == "arm64" || - current_cpu == "arm64e" || current_cpu == "loong64" || -- current_cpu == "riscv64") { -+ current_cpu == "riscv64" || current_cpu == "ppc64") { +--- chromium-139.0.7258.66.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-139.0.7258.66/base/allocator/partition_allocator/partition_alloc.gni +@@ -66,7 +66,7 @@ is_clang_or_gcc = is_clang || !is_win + # Whether 64-bit pointers are used. + # A static_assert in partition_alloc_config.h verifies that. + if (current_cpu == "x64" || current_cpu == "arm64" || current_cpu == "arm64e" || +- current_cpu == "loong64" || current_cpu == "riscv64") { ++ current_cpu == "loong64" || current_cpu == "riscv64" || current_cpu == "ppc64") { assert(current_cpu != "arm64e" || (is_ios && target_environment == "device")) has_64_bit_pointers = true } else if (current_cpu == "x86" || current_cpu == "arm" || diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index 74268c6..6061267 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-137.0.7151.40/third_party/skia/BUILD.gn +Index: chromium-139.0.7258.66/third_party/skia/BUILD.gn =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/BUILD.gn -+++ chromium-137.0.7151.40/third_party/skia/BUILD.gn +--- chromium-139.0.7258.66.orig/third_party/skia/BUILD.gn ++++ chromium-139.0.7258.66/third_party/skia/BUILD.gn @@ -193,6 +193,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-137.0.7151.40/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1648,6 +1654,7 @@ skia_component("skia") { +@@ -1693,6 +1699,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,22 +23,10 @@ Index: chromium-137.0.7151.40/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -@@ -1819,7 +1826,10 @@ skia_static_library("pathkit") { - public_configs = [ ":skia_public" ] - configs = skia_library_configs - -- deps = [ ":hsw" ] -+ deps = [ -+ ":hsw", -+ ":vsx", -+ ] - - sources = [] - sources += skia_pathops_sources -Index: chromium-137.0.7151.40/third_party/skia/gn/skia/BUILD.gn +Index: chromium-139.0.7258.66/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-137.0.7151.40/third_party/skia/gn/skia/BUILD.gn +--- chromium-139.0.7258.66.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-139.0.7258.66/third_party/skia/gn/skia/BUILD.gn @@ -175,6 +175,8 @@ config("default") { "-mfpmath=sse", ] @@ -48,10 +36,10 @@ Index: chromium-137.0.7151.40/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-137.0.7151.40/third_party/skia/include/core/SkTypes.h +Index: chromium-139.0.7258.66/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-137.0.7151.40/third_party/skia/include/core/SkTypes.h +--- chromium-139.0.7258.66.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-139.0.7258.66/third_party/skia/include/core/SkTypes.h @@ -194,4 +194,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -96,10 +84,10 @@ Index: chromium-137.0.7151.40/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-137.0.7151.40/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-139.0.7258.66.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -110,10 +98,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-137.0.7151.40/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-139.0.7258.66/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -129,10 +117,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-137.0.7151.40/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-139.0.7258.66/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -142,10 +130,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-139.0.7258.66/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -406,7 +394,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define SKRP_NARROW_STAGES 0 -@@ -5539,6 +5749,10 @@ SI F sqrt_(F x) { +@@ -5563,6 +5773,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -417,7 +405,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5570,6 +5784,10 @@ SI F floor_(F x) { +@@ -5594,6 +5808,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -428,7 +416,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5589,6 +5807,7 @@ SI F floor_(F x) { +@@ -5613,6 +5831,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -436,7 +424,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5600,6 +5819,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5624,6 +5843,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); @@ -459,7 +447,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5627,7 +5862,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5651,7 +5886,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -486,7 +474,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6683,8 +6937,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6707,8 +6961,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -501,7 +489,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6696,7 +6956,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6720,7 +6980,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -514,7 +502,7 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6730,9 +6995,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6754,9 +7019,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -531,10 +519,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-137.0.7151.40/third_party/skia/src/base/SkVx.h +Index: chromium-139.0.7258.66/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/base/SkVx.h -+++ chromium-137.0.7151.40/third_party/skia/src/base/SkVx.h +--- chromium-139.0.7258.66.orig/third_party/skia/src/base/SkVx.h ++++ chromium-139.0.7258.66/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -549,10 +537,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -562,10 +550,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -575,10 +563,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -588,10 +576,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -601,10 +589,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkCpu.h +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkCpu.h +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -614,10 +602,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -627,10 +615,10 @@ Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-137.0.7151.40/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-139.0.7258.66/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-137.0.7151.40/third_party/skia/include/private/base/SkFeatures.h +--- chromium-139.0.7258.66.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-139.0.7258.66/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -640,10 +628,10 @@ Index: chromium-137.0.7151.40/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-137.0.7151.40/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-139.0.7258.66/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -690,11 +678,11 @@ Index: chromium-137.0.7151.40/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-137.0.7151.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-137.0.7151.40.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-137.0.7151.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp -@@ -127,6 +127,16 @@ static inline SkPMColor blend_lcd16_opaq +--- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-139.0.7258.66/third_party/skia/src/core/SkBlitter_ARGB32.cpp +@@ -129,6 +129,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index 69ae6c7..c44c6ca 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-138.0.7204.183-clean.tar.xz) = 397e201cb0b9bb8104df2dc4ea0be21c24be4567470716c95c842fe4bcf7be137aeddb19c7c80dc101a18b2a273f8e0a1d968fc1c0e796e3a99bf259b4a70fe7 +SHA512 (chromium-139.0.7258.66-clean.tar.xz) = 24b908c74694011bd968abc7da0e4d2048dfe8b252ed38beda7b56eafea3b23f7b568dd3035ae9ccaee1d0733b265588a6c5ac41b3707c43539dfa9118218f2d From bdab54f04795416cd86010411bcc88b695141962 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 13 Aug 2025 12:07:03 +0200 Subject: [PATCH 177/244] - Updated to 139.0.7258.127 * CVE-2025-8879: Heap buffer overflow in libaom * CVE-2025-8880: Race in V8 * CVE-2025-8901: Out of bounds write in ANGLE * CVE-2025-8881: Inappropriate implementation in File Picker * CVE-2025-8882: Use after free in Aura --- chromium.spec | 10 +++++++++- sources | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index e1fabb9..e7c8a42 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 139.0.7258.66 +Version: 139.0.7258.127 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1743,6 +1743,14 @@ fi %endif %changelog +* Wed Aug 13 2025 Than Ngo - 139.0.7258.127-1 +- Updated to 139.0.7258.127 + * CVE-2025-8879: Heap buffer overflow in libaom + * CVE-2025-8880: Race in V8 + * CVE-2025-8901: Out of bounds write in ANGLE + * CVE-2025-8881: Inappropriate implementation in File Picker + * CVE-2025-8882: Use after free in Aura + * Tue Aug 05 2025 Than Ngo - 139.0.7258.66-1 - Updated to 139.0.7258.66 * CVE-2025-8576: Use after free in Extensions diff --git a/sources b/sources index c44c6ca..3e72dca 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-139.0.7258.66-clean.tar.xz) = 24b908c74694011bd968abc7da0e4d2048dfe8b252ed38beda7b56eafea3b23f7b568dd3035ae9ccaee1d0733b265588a6c5ac41b3707c43539dfa9118218f2d +SHA512 (chromium-139.0.7258.127-clean.tar.xz) = 2b990abb4e1ab05bc187511552261bdf225191934e4a5d19224f7e4f1178148bd3e758cfe11c74c324bd8f51cac25925ade29b3da39e7c92e87eceb06aa6879e From 9a0191f60e56b662ac98927bd4788dfa0cd60b0f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 14 Aug 2025 10:04:53 +0200 Subject: [PATCH 178/244] Fix rhbz#2387446, FTBFS with rust-1.89.0 --- chromium-139-rust-FTBFS-suppress-warnings.patch | 13 +++++++++++++ chromium.spec | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 chromium-139-rust-FTBFS-suppress-warnings.patch diff --git a/chromium-139-rust-FTBFS-suppress-warnings.patch b/chromium-139-rust-FTBFS-suppress-warnings.patch new file mode 100644 index 0000000..dc12ce7 --- /dev/null +++ b/chromium-139-rust-FTBFS-suppress-warnings.patch @@ -0,0 +1,13 @@ +diff -up chromium-139.0.7258.127/build/rust/cargo_crate.gni.than chromium-139.0.7258.127/build/rust/cargo_crate.gni +--- chromium-139.0.7258.127/build/rust/cargo_crate.gni.than 2025-08-14 09:44:51.783560032 +0200 ++++ chromium-139.0.7258.127/build/rust/cargo_crate.gni 2025-08-14 09:48:37.407051268 +0200 +@@ -310,6 +310,9 @@ template("cargo_crate") { + rustflags += + [ "-Awarnings" ] # Suppress other warnings in 3rd-party crates. + ++ rustflags += ++ [ "--cap-lints=warn" ] # Suppress other warnings, causes FTBFS in Fedora build rhbz#2387446 ++ + if (!defined(build_native_rust_unit_tests)) { + build_native_rust_unit_tests = _crate_type != "proc-macro" + } diff --git a/chromium.spec b/chromium.spec index e7c8a42..0c02eda 100644 --- a/chromium.spec +++ b/chromium.spec @@ -313,6 +313,9 @@ Patch307: chromium-134-el8-atk-compiler-error.patch Patch308: chromium-136-unsupport-clang-flags.patch Patch309: chromium-132-el8-unsupport-rustc-flags.patch +# Fix rhbz#2387446, FTBFS with rust-1.89.0 +Patch310: chromium-139-rust-FTBFS-suppress-warnings.patch + # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -1012,6 +1015,7 @@ Qt6 UI for chromium. %patch -P314 -p1 -b .rust-skrifa-build-error %endif +%patch -P310 -p1 -b .rust-FTBFS-suppress-warnings %patch -P312 -p1 -b .fstack-protector-strong %if 0%{?rhel} && 0%{?rhel} < 10 From a23570200edeaa94f4397b67f0d9fafc9ab81fd6 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Wed, 20 Aug 2025 22:43:54 +0200 Subject: [PATCH 179/244] Drop unused nasm build dependency see https://fedoraproject.org/wiki/Changes/DeprecateYASM --- chromium.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 0c02eda..c862126 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 139.0.7258.127 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -749,7 +749,6 @@ BuildRequires: brotli-devel %endif BuildRequires: speech-dispatcher-devel -BuildRequires: yasm BuildRequires: zlib-devel # remote desktop needs this @@ -1747,6 +1746,10 @@ fi %endif %changelog +* Wed Aug 20 2025 Dominik Mierzejewski - 139.0.7258.127-2 +- Drop unused yasm build dependency + see https://fedoraproject.org/wiki/Changes/DeprecateYASM + * Wed Aug 13 2025 Than Ngo - 139.0.7258.127-1 - Updated to 139.0.7258.127 * CVE-2025-8879: Heap buffer overflow in libaom From ca5e61c71c6fbc1ee14fa12190046c6001f61948 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 22 Aug 2025 14:23:28 +0200 Subject: [PATCH 180/244] - Updated to 139.0.7258.138 * CVE-2025-9132: Out of bounds write in V8 --- chromium.spec | 8 ++++++-- sources | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index c862126..71cc3e8 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 139.0.7258.127 -Release: 2%{?dist} +Version: 139.0.7258.138 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1746,6 +1746,10 @@ fi %endif %changelog +* Fri Aug 22 2025 Than Ngo - 139.0.7258.138-1 +- Updated to 139.0.7258.138 + * CVE-2025-9132: Out of bounds write in V8 + * Wed Aug 20 2025 Dominik Mierzejewski - 139.0.7258.127-2 - Drop unused yasm build dependency see https://fedoraproject.org/wiki/Changes/DeprecateYASM diff --git a/sources b/sources index 3e72dca..1c2dc40 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-139.0.7258.127-clean.tar.xz) = 2b990abb4e1ab05bc187511552261bdf225191934e4a5d19224f7e4f1178148bd3e758cfe11c74c324bd8f51cac25925ade29b3da39e7c92e87eceb06aa6879e +SHA512 (chromium-139.0.7258.138-clean.tar.xz) = 449c8f93886b97c4f5fd862055b7f96858964192243ce18ac64d480a33c6f00014985f9a096007fd30f48016e9e771e887bf978a77c270ac1169745aee4f53bd From 27a55d3303b6fd29ee8469a76ca7cf56906ba984 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 28 Aug 2025 12:45:04 +0200 Subject: [PATCH 181/244] - Update to 139.0.7258.154 * CVE-2025-9478: Use after free in ANGLE --- chromium.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 71cc3e8..44aea20 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 139.0.7258.138 +Version: 139.0.7258.154 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1746,6 +1746,10 @@ fi %endif %changelog +* Thu Aug 28 2025 Than Ngo - 139.0.7258.154-1 +- Update to 139.0.7258.154 + * CVE-2025-9478: Use after free in ANGLE + * Fri Aug 22 2025 Than Ngo - 139.0.7258.138-1 - Updated to 139.0.7258.138 * CVE-2025-9132: Out of bounds write in V8 diff --git a/sources b/sources index 1c2dc40..222d315 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-139.0.7258.138-clean.tar.xz) = 449c8f93886b97c4f5fd862055b7f96858964192243ce18ac64d480a33c6f00014985f9a096007fd30f48016e9e771e887bf978a77c270ac1169745aee4f53bd +SHA512 (chromium-139.0.7258.154-clean.tar.xz) = 9702b449fce69c1fbb149f545649f4c7c7c0fe80b71a4bba07f9063372f81ad19b7cdb0561ccaea097465f7212bf77277ce79598f28580d96a2f8df570099b52 From 227ba3dee4188bbabf41d4b0c2ad719f58501497 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 3 Sep 2025 12:39:44 +0200 Subject: [PATCH 182/244] - Update to 140.0.7339.80 * CVE-2025-9864: Use after free in V8 * CVE-2025-9865: Inappropriate implementation in Toolbar * CVE-2025-9866: Inappropriate implementation in Extensions * CVE-2025-9867: Inappropriate implementation in Downloads --- 0001-Add-PPC64-support-for-boringssl.patch | 206 +- 0001-Add-ppc64-target-to-libaom.patch | 26 +- ...generated-config-for-libaom-on-ppc64.patch | 425 +- 0001-Enable-ppc64-pointer-compression.patch | 8 +- ...OWER8-AltiVec-VSX-CPU-features-when-.patch | 8 +- ...Implement-support-for-PPC64-on-Linux.patch | 198 +- ...Implement-support-for-ppc64-on-Linux.patch | 152 +- 0001-add-xnn-ppc64el-support.patch | 14 +- ...f-ppc64-glibc-workaround-in-SIGSYS-h.patch | 37 - ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 1176 +- ...plement-partial-support-for-ppc64-sy.patch | 80 - ...date-IsSyscallAllowed-in-broker_proc.patch | 22 - ...date-syscall-helpers-lists-for-ppc64.patch | 624 - ...f_dsl-Update-syscall-ranges-for-ppc6.patch | 27 - ..._manager-sandbox-linux-Fix-TCGETS-de.patch | 26 - 0001-swiftshader-fix-build.patch | 15 +- 0001-third-party-hwy-wrong-include.patch | 6 +- ...e-Include-missing-header-cstddef-in-.patch | 6 +- ...ibvpx-Properly-generate-gni-on-ppc64.patch | 8 +- ...t-Include-altivec.h-on-ppc64-with-SI.patch | 6 +- ...-PPC64-generated-files-for-boringssl.patch | 32 +- 0002-Add-ppc64-trap-instructions.patch | 6 +- 0002-regenerate-xnn-buildgn.patch | 142983 +++++++-------- ...f_dsl-Modify-seccomp_macros-to-add-s.patch | 76 - ...party-libvpx-Remove-bad-ppc64-config.patch | 42 +- 0002-third_party-lss-kernel-structs.patch | 6 +- ...stem_headers-Update-linux-seccomp-he.patch | 37 - ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- ...stem_headers-Update-linux-signal-hea.patch | 23 - ...y-crashpad-port-curl-transport-ppc64.patch | 6 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- ...x-seccomp-bpf-Add-ppc64-syscall-stub.patch | 107 - ...box-linux-update-unit-test-for-ppc64.patch | 24 - ...linux-disable-timedwait-time64-ppc64.patch | 14 - 0007-sandbox-linux-add-ppc64-stat.patch | 33 - 0008-sandbox-fix-ppc64le-glibc234.patch | 74 - 0009-sandbox-updates-138.patch | 105 - HACK-debian-clang-disable-base-musttail.patch | 21 +- HACK-debian-clang-disable-pa-musttail.patch | 13 + HACK-third_party-libvpx-use-generic-gnu.patch | 22 +- Rtc_base-system-arch.h-PPC.patch | 6 +- ...ox-linux-services-credentials.cc-PPC.patch | 11 - add-ppc64-architecture-string.patch | 8 +- add-ppc64-architecture-to-extensions.diff | 41 +- add-ppc64-pthread-stack-size.patch | 10 +- chromium.spec | 126 +- dawn-fix-ppc64le-detection.patch | 8 +- fix-breakpad-compile.patch | 12 +- fix-clang-selection.patch | 6 +- fix-different-data-layouts.patch | 8 +- fix-page-allocator-overflow.patch | 16 +- fix-partition-alloc-compile.patch | 6 +- fix-ppc64-linux-syscalls-headers.patch | 23 - fix-rust-linking.patch | 10 +- fix-rustc.patch | 11 +- fix-study-crash.patch | 16 +- fix-unknown-warning-option-messages.diff | 19 +- skia-vsx-instructions.patch | 110 +- sources | 2 +- 59 files changed, 66324 insertions(+), 80865 deletions(-) delete mode 100644 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch delete mode 100644 0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch delete mode 100644 0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch delete mode 100644 0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch delete mode 100644 0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch delete mode 100644 0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch delete mode 100644 0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch delete mode 100644 0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch delete mode 100644 0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch delete mode 100644 0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch delete mode 100644 0005-sandbox-linux-update-unit-test-for-ppc64.patch delete mode 100644 0006-sandbox-linux-disable-timedwait-time64-ppc64.patch delete mode 100644 0007-sandbox-linux-add-ppc64-stat.patch delete mode 100644 0008-sandbox-fix-ppc64le-glibc234.patch delete mode 100644 0009-sandbox-updates-138.patch create mode 100644 HACK-debian-clang-disable-pa-musttail.patch delete mode 100644 Sandbox-linux-services-credentials.cc-PPC.patch delete mode 100644 fix-ppc64-linux-syscalls-headers.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index 248ad06..106c6f7 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/cpu_ppc64le.cc +} + +#endif // OPENSSL_PPC64LE -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/crypto.cc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/crypto.cc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/crypto.cc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/crypto.cc @@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -350,10 +350,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/crypto.cc #elif (defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) && \ !defined(OPENSSL_STATIC_ARMCAP) HIDDEN uint32_t OPENSSL_armcap_P = 0; -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,10 +4164,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -81,6 +81,12 @@ inline int vpaes_capable(void) { return inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4195,10 +4195,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // OPENSSL_NO_ASM -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bcm.cc @@ -104,6 +104,7 @@ #include "self_check/fips.cc.inc" #include "self_check/self_check.cc.inc" @@ -4207,10 +4207,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bcm.cc #include "sha/sha1.cc.inc" #include "sha/sha256.cc.inc" #include "sha/sha512.cc.inc" -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc @@ -330,6 +330,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4235,10 +4235,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc @@ -1229,6 +1229,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) @@ -4248,10 +4248,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4924,10 +4924,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc @@ -233,6 +233,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4942,10 +4942,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gc #endif gcm_init_nohw(out_table, H); -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc @@ -169,5 +169,15 @@ TEST(GCMTest, ABI) { } } @@ -4962,10 +4962,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/aes/gc +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/rand/getrandom_fillin.h =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4975,10 +4975,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/rand/getrandom_fi #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc @@ -431,6 +431,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -4991,10 +4991,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5012,10 +5012,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc @@ -0,0 +1,369 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. @@ -5386,11 +5386,11 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/internal.h +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/internal.h -@@ -59,8 +59,9 @@ extern "C" { +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/internal.h +@@ -62,8 +62,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) @@ -5402,7 +5402,7 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1394,6 +1395,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl +@@ -1412,6 +1413,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5419,10 +5419,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5744,10 +5744,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5854,10 +5854,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6121,10 +6121,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-138.0.7204.35/third_party/boringssl/src/include/openssl/target.h +Index: chromium-140.0.7339.41/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-138.0.7204.35/third_party/boringssl/src/include/openssl/target.h +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-140.0.7339.41/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6135,10 +6135,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -35,6 +35,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6148,10 +6148,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -56,7 +56,8 @@ type stringWriter interface { type processorType int @@ -6751,10 +6751,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. @@ -6768,10 +6768,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ # To regenerate delocate.peg.go: # -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6784,10 +6784,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6798,10 +6798,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6865,19 +6865,19 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6951,10 +6951,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.cc" + .abiversion 2 @@ -7117,10 +7117,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -7674,10 +7674,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.cc" + .abiversion 2 @@ -7905,10 +7905,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8587,10 +8587,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8615,10 +8615,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8798,10 +8798,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -+++ chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc @@ -377,6 +377,10 @@ static void sha1_block_data_order(uint32 return; } @@ -8813,10 +8813,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-138.0.7204.35/third_party/boringssl/src/build.json +Index: chromium-140.0.7339.41/third_party/boringssl/src/build.json =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/build.json -+++ chromium-138.0.7204.35/third_party/boringssl/src/build.json +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/build.json ++++ chromium-140.0.7339.41/third_party/boringssl/src/build.json @@ -128,6 +128,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} @@ -8836,7 +8836,7 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/build.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -798,6 +803,9 @@ +@@ -805,6 +810,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8846,10 +8846,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-138.0.7204.35/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-140.0.7339.41/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-138.0.7204.35/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-140.0.7339.41/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8868,10 +8868,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-138.0.7204.35/third_party/boringssl/README.ppc64le +Index: chromium-140.0.7339.41/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-138.0.7204.35/third_party/boringssl/README.ppc64le ++++ chromium-140.0.7339.41/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8881,10 +8881,10 @@ Index: chromium-138.0.7204.35/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-138.0.7204.35/third_party/boringssl/src/gen/sources.gni +Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-138.0.7204.35.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-138.0.7204.35/third_party/boringssl/src/gen/sources.gni +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.gni @@ -121,6 +121,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", diff --git a/0001-Add-ppc64-target-to-libaom.patch b/0001-Add-ppc64-target-to-libaom.patch index 554e282..5699f03 100644 --- a/0001-Add-ppc64-target-to-libaom.patch +++ b/0001-Add-ppc64-target-to-libaom.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Add ppc64 target to libaom third_party/libaom/cmake_update.sh | 3 +++ 2 files changed, 15 insertions(+) -Index: chromium-128.0.6613.113/third_party/libaom/BUILD.gn +Index: chromium-140.0.7339.41/third_party/libaom/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libaom/BUILD.gn -+++ chromium-128.0.6613.113/third_party/libaom/BUILD.gn -@@ -275,6 +275,18 @@ if (current_cpu == "arm64") { +--- chromium-140.0.7339.41.orig/third_party/libaom/BUILD.gn ++++ chromium-140.0.7339.41/third_party/libaom/BUILD.gn +@@ -299,6 +299,18 @@ if (current_cpu == "arm64" || current_cp } } @@ -31,7 +31,7 @@ Index: chromium-128.0.6613.113/third_party/libaom/BUILD.gn static_library("libaom") { check_includes = false if (!is_debug && is_win) { -@@ -338,6 +350,9 @@ static_library("libaom") { +@@ -368,6 +380,9 @@ static_library("libaom") { # This is needed by all arm boards due to aom_arm_cpu_caps() sources += [ "source/libaom/aom_ports/aarch32_cpudetect.c" ] } @@ -41,17 +41,17 @@ Index: chromium-128.0.6613.113/third_party/libaom/BUILD.gn if (is_android) { deps += [ "//third_party/cpu_features:ndk_compat" ] } -Index: chromium-128.0.6613.113/third_party/libaom/cmake_update.sh +Index: chromium-140.0.7339.41/third_party/libaom/cmake_update.sh =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libaom/cmake_update.sh -+++ chromium-128.0.6613.113/third_party/libaom/cmake_update.sh -@@ -190,6 +190,9 @@ reset_dirs linux/arm64-cpu-detect - gen_config_files linux/arm64-cpu-detect \ - "${toolchain}/arm64-linux-gcc.cmake ${all_platforms}" +--- chromium-140.0.7339.41.orig/third_party/libaom/cmake_update.sh ++++ chromium-140.0.7339.41/third_party/libaom/cmake_update.sh +@@ -167,6 +167,9 @@ egrep \ + "#define [A-Z0-9_]+[[:space:]]+[01]" "${CFG}/win/ia32/config/aom_config.h" \ + | awk '{print "%define " $2 " " $3}' > "${CFG}/win/ia32/config/aom_config.asm" +reset_dirs linux/ppc64 +gen_config_files linux/ppc64 "${toolchain}/ppc-linux-gcc.cmake ${all_platforms}" + # Copy linux configurations and modify for Windows. - reset_dirs win/arm64-cpu-detect - cp "${CFG}/linux/arm64-cpu-detect/config"/* \ + reset_dirs win/x64 + cp "${CFG}/linux/x64/config"/* "${CFG}/win/x64/config/" diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 2a77351..2766473 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,10 +1,10 @@ -Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm -@@ -0,0 +1,95 @@ ++++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +@@ -0,0 +1,100 @@ +; -+; Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++; Copyright (c) 2025, Alliance for Open Media. All rights reserved. +; +; This source code is subject to the terms of the BSD 2 Clause License and +; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -16,6 +16,7 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +AOM_ARCH_AARCH64 equ 0 +AOM_ARCH_ARM equ 0 +AOM_ARCH_PPC equ 1 ++AOM_ARCH_RISCV equ 0 +AOM_ARCH_X86 equ 0 +AOM_ARCH_X86_64 equ 0 +CONFIG_ACCOUNTING equ 0 @@ -33,6 +34,7 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +CONFIG_COLLECT_PARTITION_STATS equ 0 +CONFIG_COLLECT_RD_STATS equ 0 +CONFIG_CWG_C013 equ 0 ++CONFIG_CWG_E050 equ 0 +CONFIG_DEBUG equ 0 +CONFIG_DENOISE equ 1 +CONFIG_DISABLE_FULL_PIXEL_SPLIT_8X8 equ 1 @@ -42,11 +44,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +CONFIG_GCC equ 1 +CONFIG_GCOV equ 0 +CONFIG_GPROF equ 0 ++CONFIG_HIGHWAY equ 0 +CONFIG_INSPECTION equ 0 +CONFIG_INTERNAL_STATS equ 0 +CONFIG_INTER_STATS_ONLY equ 0 +CONFIG_LIBVMAF_PSNR_PEAK equ 1 -+CONFIG_LIBYUV equ 0 ++CONFIG_LIBYUV equ 1 +CONFIG_MAX_DECODE_PROFILE equ 2 +CONFIG_MISMATCH_DEBUG equ 0 +CONFIG_MULTITHREAD equ 1 @@ -80,12 +83,14 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +HAVE_ARM_CRC32 equ 0 +HAVE_AVX equ 0 +HAVE_AVX2 equ 0 ++HAVE_AVX512 equ 0 +HAVE_FEXCEPT equ 1 +HAVE_MMX equ 0 +HAVE_NEON equ 0 +HAVE_NEON_DOTPROD equ 0 +HAVE_NEON_I8MM equ 0 +HAVE_PTHREAD_H equ 1 ++HAVE_RVV equ 0 +HAVE_SSE equ 0 +HAVE_SSE2 equ 0 +HAVE_SSE3 equ 0 @@ -98,13 +103,13 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * Copyright (c) 2025, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -114,15 +119,15 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi + * PATENTS file, you can obtain it at www.aomedia.org/license/patent. + */ +#include "aom/aom_codec.h" -+static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; ++static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_config.h -@@ -0,0 +1,98 @@ ++++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +@@ -0,0 +1,103 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * Copyright (c) 2025, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -136,6 +141,7 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +#define AOM_ARCH_AARCH64 0 +#define AOM_ARCH_ARM 0 +#define AOM_ARCH_PPC 1 ++#define AOM_ARCH_RISCV 0 +#define AOM_ARCH_X86 0 +#define AOM_ARCH_X86_64 0 +#define CONFIG_ACCOUNTING 0 @@ -153,6 +159,7 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +#define CONFIG_COLLECT_PARTITION_STATS 0 +#define CONFIG_COLLECT_RD_STATS 0 +#define CONFIG_CWG_C013 0 ++#define CONFIG_CWG_E050 0 +#define CONFIG_DEBUG 0 +#define CONFIG_DENOISE 1 +#define CONFIG_DISABLE_FULL_PIXEL_SPLIT_8X8 1 @@ -162,11 +169,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +#define CONFIG_GCC 1 +#define CONFIG_GCOV 0 +#define CONFIG_GPROF 0 ++#define CONFIG_HIGHWAY 0 +#define CONFIG_INSPECTION 0 +#define CONFIG_INTERNAL_STATS 0 +#define CONFIG_INTER_STATS_ONLY 0 +#define CONFIG_LIBVMAF_PSNR_PEAK 1 -+#define CONFIG_LIBYUV 0 ++#define CONFIG_LIBYUV 1 +#define CONFIG_MAX_DECODE_PROFILE 2 +#define CONFIG_MISMATCH_DEBUG 0 +#define CONFIG_MULTITHREAD 1 @@ -200,12 +208,14 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +#define HAVE_ARM_CRC32 0 +#define HAVE_AVX 0 +#define HAVE_AVX2 0 ++#define HAVE_AVX512 0 +#define HAVE_FEXCEPT 1 +#define HAVE_MMX 0 +#define HAVE_NEON 0 +#define HAVE_NEON_DOTPROD 0 +#define HAVE_NEON_I8MM 0 +#define HAVE_PTHREAD_H 1 ++#define HAVE_RVV 0 +#define HAVE_SSE 0 +#define HAVE_SSE2 0 +#define HAVE_SSE3 0 @@ -219,13 +229,13 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +#define HAVE_WXWIDGETS 0 +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h -@@ -0,0 +1,1501 @@ ++++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +@@ -0,0 +1,1177 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * Copyright (c) 2025, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -298,12 +308,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_128_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_16x32 aom_dc_128_predictor_16x32_c + -+void aom_dc_128_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_128_predictor_16x4 aom_dc_128_predictor_16x4_c -+ -+void aom_dc_128_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_128_predictor_16x64 aom_dc_128_predictor_16x64_c -+ +void aom_dc_128_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_16x8 aom_dc_128_predictor_16x8_c + @@ -316,21 +320,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_128_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_32x64 aom_dc_128_predictor_32x64_c + -+void aom_dc_128_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_128_predictor_32x8 aom_dc_128_predictor_32x8_c -+ -+void aom_dc_128_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_128_predictor_4x16 aom_dc_128_predictor_4x16_c -+ +void aom_dc_128_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_4x4 aom_dc_128_predictor_4x4_c + +void aom_dc_128_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_4x8 aom_dc_128_predictor_4x8_c + -+void aom_dc_128_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_128_predictor_64x16 aom_dc_128_predictor_64x16_c -+ +void aom_dc_128_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_64x32 aom_dc_128_predictor_64x32_c + @@ -340,9 +335,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_128_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_8x16 aom_dc_128_predictor_8x16_c + -+void aom_dc_128_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_128_predictor_8x32 aom_dc_128_predictor_8x32_c -+ +void aom_dc_128_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_128_predictor_8x4 aom_dc_128_predictor_8x4_c + @@ -355,12 +347,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_left_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_16x32 aom_dc_left_predictor_16x32_c + -+void aom_dc_left_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_left_predictor_16x4 aom_dc_left_predictor_16x4_c -+ -+void aom_dc_left_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_left_predictor_16x64 aom_dc_left_predictor_16x64_c -+ +void aom_dc_left_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_16x8 aom_dc_left_predictor_16x8_c + @@ -373,21 +359,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_left_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_32x64 aom_dc_left_predictor_32x64_c + -+void aom_dc_left_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_left_predictor_32x8 aom_dc_left_predictor_32x8_c -+ -+void aom_dc_left_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_left_predictor_4x16 aom_dc_left_predictor_4x16_c -+ +void aom_dc_left_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_4x4 aom_dc_left_predictor_4x4_c + +void aom_dc_left_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_4x8 aom_dc_left_predictor_4x8_c + -+void aom_dc_left_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_left_predictor_64x16 aom_dc_left_predictor_64x16_c -+ +void aom_dc_left_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_64x32 aom_dc_left_predictor_64x32_c + @@ -397,9 +374,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_left_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_8x16 aom_dc_left_predictor_8x16_c + -+void aom_dc_left_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_left_predictor_8x32 aom_dc_left_predictor_8x32_c -+ +void aom_dc_left_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_left_predictor_8x4 aom_dc_left_predictor_8x4_c + @@ -412,12 +386,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_16x32 aom_dc_predictor_16x32_c + -+void aom_dc_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_predictor_16x4 aom_dc_predictor_16x4_c -+ -+void aom_dc_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_predictor_16x64 aom_dc_predictor_16x64_c -+ +void aom_dc_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_16x8 aom_dc_predictor_16x8_c + @@ -430,21 +398,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_32x64 aom_dc_predictor_32x64_c + -+void aom_dc_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_predictor_32x8 aom_dc_predictor_32x8_c -+ -+void aom_dc_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_predictor_4x16 aom_dc_predictor_4x16_c -+ +void aom_dc_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_4x4 aom_dc_predictor_4x4_c + +void aom_dc_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_4x8 aom_dc_predictor_4x8_c + -+void aom_dc_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_predictor_64x16 aom_dc_predictor_64x16_c -+ +void aom_dc_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_64x32 aom_dc_predictor_64x32_c + @@ -454,9 +413,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_8x16 aom_dc_predictor_8x16_c + -+void aom_dc_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_predictor_8x32 aom_dc_predictor_8x32_c -+ +void aom_dc_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_predictor_8x4 aom_dc_predictor_8x4_c + @@ -469,12 +425,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_top_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_16x32 aom_dc_top_predictor_16x32_c + -+void aom_dc_top_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_top_predictor_16x4 aom_dc_top_predictor_16x4_c -+ -+void aom_dc_top_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_top_predictor_16x64 aom_dc_top_predictor_16x64_c -+ +void aom_dc_top_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_16x8 aom_dc_top_predictor_16x8_c + @@ -487,21 +437,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_top_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_32x64 aom_dc_top_predictor_32x64_c + -+void aom_dc_top_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_top_predictor_32x8 aom_dc_top_predictor_32x8_c -+ -+void aom_dc_top_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_top_predictor_4x16 aom_dc_top_predictor_4x16_c -+ +void aom_dc_top_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_4x4 aom_dc_top_predictor_4x4_c + +void aom_dc_top_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_4x8 aom_dc_top_predictor_4x8_c + -+void aom_dc_top_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_top_predictor_64x16 aom_dc_top_predictor_64x16_c -+ +void aom_dc_top_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_64x32 aom_dc_top_predictor_64x32_c + @@ -511,114 +452,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_dc_top_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_8x16 aom_dc_top_predictor_8x16_c + -+void aom_dc_top_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_dc_top_predictor_8x32 aom_dc_top_predictor_8x32_c -+ +void aom_dc_top_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_8x4 aom_dc_top_predictor_8x4_c + +void aom_dc_top_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_dc_top_predictor_8x8 aom_dc_top_predictor_8x8_c + -+void aom_dist_wtd_comp_avg_pred_c(uint8_t *comp_pred, const uint8_t *pred, int width, int height, const uint8_t *ref, int ref_stride, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_comp_avg_pred aom_dist_wtd_comp_avg_pred_c -+ -+unsigned int aom_dist_wtd_sad128x128_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad128x128_avg aom_dist_wtd_sad128x128_avg_c -+ -+unsigned int aom_dist_wtd_sad128x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad128x64_avg aom_dist_wtd_sad128x64_avg_c -+ -+unsigned int aom_dist_wtd_sad16x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad16x16_avg aom_dist_wtd_sad16x16_avg_c -+ -+unsigned int aom_dist_wtd_sad16x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad16x32_avg aom_dist_wtd_sad16x32_avg_c -+ -+unsigned int aom_dist_wtd_sad16x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad16x8_avg aom_dist_wtd_sad16x8_avg_c -+ -+unsigned int aom_dist_wtd_sad32x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad32x16_avg aom_dist_wtd_sad32x16_avg_c -+ -+unsigned int aom_dist_wtd_sad32x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad32x32_avg aom_dist_wtd_sad32x32_avg_c -+ -+unsigned int aom_dist_wtd_sad32x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad32x64_avg aom_dist_wtd_sad32x64_avg_c -+ -+unsigned int aom_dist_wtd_sad4x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad4x4_avg aom_dist_wtd_sad4x4_avg_c -+ -+unsigned int aom_dist_wtd_sad4x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad4x8_avg aom_dist_wtd_sad4x8_avg_c -+ -+unsigned int aom_dist_wtd_sad64x128_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad64x128_avg aom_dist_wtd_sad64x128_avg_c -+ -+unsigned int aom_dist_wtd_sad64x32_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad64x32_avg aom_dist_wtd_sad64x32_avg_c -+ -+unsigned int aom_dist_wtd_sad64x64_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad64x64_avg aom_dist_wtd_sad64x64_avg_c -+ -+unsigned int aom_dist_wtd_sad8x16_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad8x16_avg aom_dist_wtd_sad8x16_avg_c -+ -+unsigned int aom_dist_wtd_sad8x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad8x4_avg aom_dist_wtd_sad8x4_avg_c -+ -+unsigned int aom_dist_wtd_sad8x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sad8x8_avg aom_dist_wtd_sad8x8_avg_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance128x128_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance128x128 aom_dist_wtd_sub_pixel_avg_variance128x128_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance128x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance128x64 aom_dist_wtd_sub_pixel_avg_variance128x64_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance16x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance16x16 aom_dist_wtd_sub_pixel_avg_variance16x16_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance16x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance16x32 aom_dist_wtd_sub_pixel_avg_variance16x32_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance16x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance16x8 aom_dist_wtd_sub_pixel_avg_variance16x8_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance32x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance32x16 aom_dist_wtd_sub_pixel_avg_variance32x16_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance32x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance32x32 aom_dist_wtd_sub_pixel_avg_variance32x32_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance32x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance32x64 aom_dist_wtd_sub_pixel_avg_variance32x64_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance4x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance4x4 aom_dist_wtd_sub_pixel_avg_variance4x4_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance4x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance4x8 aom_dist_wtd_sub_pixel_avg_variance4x8_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance64x128_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance64x128 aom_dist_wtd_sub_pixel_avg_variance64x128_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance64x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance64x32 aom_dist_wtd_sub_pixel_avg_variance64x32_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance64x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance64x64 aom_dist_wtd_sub_pixel_avg_variance64x64_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance8x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance8x16 aom_dist_wtd_sub_pixel_avg_variance8x16_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance8x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance8x4 aom_dist_wtd_sub_pixel_avg_variance8x4_c -+ -+uint32_t aom_dist_wtd_sub_pixel_avg_variance8x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse, const uint8_t *second_pred, const DIST_WTD_COMP_PARAMS *jcp_param); -+#define aom_dist_wtd_sub_pixel_avg_variance8x8 aom_dist_wtd_sub_pixel_avg_variance8x8_c -+ +void aom_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride); +#define aom_fdct4x4 aom_fdct4x4_c + @@ -643,9 +482,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_get_blk_sse_sum_c(const int16_t *data, int stride, int bw, int bh, int *x_sum, int64_t *x2_sum); +#define aom_get_blk_sse_sum aom_get_blk_sse_sum_c + -+unsigned int aom_get_mb_ss_c(const int16_t *); -+#define aom_get_mb_ss aom_get_mb_ss_c -+ +void aom_get_var_sse_sum_16x16_dual_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sse16x16, unsigned int *tot_sse, int *tot_sum, uint32_t *var16x16); +#define aom_get_var_sse_sum_16x16_dual aom_get_var_sse_sum_16x16_dual_c + @@ -658,12 +494,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_h_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_16x32 aom_h_predictor_16x32_c + -+void aom_h_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_h_predictor_16x4 aom_h_predictor_16x4_c -+ -+void aom_h_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_h_predictor_16x64 aom_h_predictor_16x64_c -+ +void aom_h_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_16x8 aom_h_predictor_16x8_c + @@ -676,21 +506,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_h_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_32x64 aom_h_predictor_32x64_c + -+void aom_h_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_h_predictor_32x8 aom_h_predictor_32x8_c -+ -+void aom_h_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_h_predictor_4x16 aom_h_predictor_4x16_c -+ +void aom_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_4x4 aom_h_predictor_4x4_c + +void aom_h_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_4x8 aom_h_predictor_4x8_c + -+void aom_h_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_h_predictor_64x16 aom_h_predictor_64x16_c -+ +void aom_h_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_64x32 aom_h_predictor_64x32_c + @@ -700,9 +521,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_h_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_8x16 aom_h_predictor_8x16_c + -+void aom_h_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_h_predictor_8x32 aom_h_predictor_8x32_c -+ +void aom_h_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_h_predictor_8x4 aom_h_predictor_8x4_c + @@ -949,12 +767,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_paeth_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_16x32 aom_paeth_predictor_16x32_c + -+void aom_paeth_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_paeth_predictor_16x4 aom_paeth_predictor_16x4_c -+ -+void aom_paeth_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_paeth_predictor_16x64 aom_paeth_predictor_16x64_c -+ +void aom_paeth_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_16x8 aom_paeth_predictor_16x8_c + @@ -967,21 +779,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_paeth_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_32x64 aom_paeth_predictor_32x64_c + -+void aom_paeth_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_paeth_predictor_32x8 aom_paeth_predictor_32x8_c -+ -+void aom_paeth_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_paeth_predictor_4x16 aom_paeth_predictor_4x16_c -+ +void aom_paeth_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_4x4 aom_paeth_predictor_4x4_c + +void aom_paeth_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_4x8 aom_paeth_predictor_4x8_c + -+void aom_paeth_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_paeth_predictor_64x16 aom_paeth_predictor_64x16_c -+ +void aom_paeth_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_64x32 aom_paeth_predictor_64x32_c + @@ -991,9 +794,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_paeth_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_8x16 aom_paeth_predictor_8x16_c + -+void aom_paeth_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_paeth_predictor_8x32 aom_paeth_predictor_8x32_c -+ +void aom_paeth_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_paeth_predictor_8x4 aom_paeth_predictor_8x4_c + @@ -1108,9 +908,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +unsigned int aom_sad4x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +#define aom_sad4x4 aom_sad4x4_c + -+unsigned int aom_sad4x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -+#define aom_sad4x4_avg aom_sad4x4_avg_c -+ +void aom_sad4x4x3d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); +#define aom_sad4x4x3d aom_sad4x4x3d_c + @@ -1120,9 +917,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +unsigned int aom_sad4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +#define aom_sad4x8 aom_sad4x8_c + -+unsigned int aom_sad4x8_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -+#define aom_sad4x8_avg aom_sad4x8_avg_c -+ +void aom_sad4x8x3d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); +#define aom_sad4x8x3d aom_sad4x8x3d_c + @@ -1180,9 +974,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +unsigned int aom_sad8x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +#define aom_sad8x4 aom_sad8x4_c + -+unsigned int aom_sad8x4_avg_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); -+#define aom_sad8x4_avg aom_sad8x4_avg_c -+ +void aom_sad8x4x3d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); +#define aom_sad8x4x3d aom_sad8x4x3d_c + @@ -1225,12 +1016,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_sad_skip_16x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); +#define aom_sad_skip_16x32x4d aom_sad_skip_16x32x4d_c + -+unsigned int aom_sad_skip_16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -+#define aom_sad_skip_16x8 aom_sad_skip_16x8_c -+ -+void aom_sad_skip_16x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); -+#define aom_sad_skip_16x8x4d aom_sad_skip_16x8x4d_c -+ +unsigned int aom_sad_skip_32x16_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +#define aom_sad_skip_32x16 aom_sad_skip_32x16_c + @@ -1249,18 +1034,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_sad_skip_32x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); +#define aom_sad_skip_32x64x4d aom_sad_skip_32x64x4d_c + -+unsigned int aom_sad_skip_4x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -+#define aom_sad_skip_4x4 aom_sad_skip_4x4_c -+ -+void aom_sad_skip_4x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); -+#define aom_sad_skip_4x4x4d aom_sad_skip_4x4x4d_c -+ -+unsigned int aom_sad_skip_4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -+#define aom_sad_skip_4x8 aom_sad_skip_4x8_c -+ -+void aom_sad_skip_4x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); -+#define aom_sad_skip_4x8x4d aom_sad_skip_4x8x4d_c -+ +unsigned int aom_sad_skip_64x128_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); +#define aom_sad_skip_64x128 aom_sad_skip_64x128_c + @@ -1285,18 +1058,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_sad_skip_8x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); +#define aom_sad_skip_8x16x4d aom_sad_skip_8x16x4d_c + -+unsigned int aom_sad_skip_8x4_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -+#define aom_sad_skip_8x4 aom_sad_skip_8x4_c -+ -+void aom_sad_skip_8x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); -+#define aom_sad_skip_8x4x4d aom_sad_skip_8x4x4d_c -+ -+unsigned int aom_sad_skip_8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride); -+#define aom_sad_skip_8x8 aom_sad_skip_8x8_c -+ -+void aom_sad_skip_8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t * const ref_ptr[4], int ref_stride, uint32_t sad_array[4]); -+#define aom_sad_skip_8x8x4d aom_sad_skip_8x8x4d_c -+ +int aom_satd_c(const tran_low_t *coeff, int length); +#define aom_satd aom_satd_c + @@ -1312,12 +1073,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_h_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_16x32 aom_smooth_h_predictor_16x32_c + -+void aom_smooth_h_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_h_predictor_16x4 aom_smooth_h_predictor_16x4_c -+ -+void aom_smooth_h_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_h_predictor_16x64 aom_smooth_h_predictor_16x64_c -+ +void aom_smooth_h_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_16x8 aom_smooth_h_predictor_16x8_c + @@ -1330,21 +1085,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_h_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_32x64 aom_smooth_h_predictor_32x64_c + -+void aom_smooth_h_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_h_predictor_32x8 aom_smooth_h_predictor_32x8_c -+ -+void aom_smooth_h_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_h_predictor_4x16 aom_smooth_h_predictor_4x16_c -+ +void aom_smooth_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_4x4 aom_smooth_h_predictor_4x4_c + +void aom_smooth_h_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_4x8 aom_smooth_h_predictor_4x8_c + -+void aom_smooth_h_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_h_predictor_64x16 aom_smooth_h_predictor_64x16_c -+ +void aom_smooth_h_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_64x32 aom_smooth_h_predictor_64x32_c + @@ -1354,9 +1100,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_h_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_8x16 aom_smooth_h_predictor_8x16_c + -+void aom_smooth_h_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_h_predictor_8x32 aom_smooth_h_predictor_8x32_c -+ +void aom_smooth_h_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_h_predictor_8x4 aom_smooth_h_predictor_8x4_c + @@ -1369,12 +1112,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_16x32 aom_smooth_predictor_16x32_c + -+void aom_smooth_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_predictor_16x4 aom_smooth_predictor_16x4_c -+ -+void aom_smooth_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_predictor_16x64 aom_smooth_predictor_16x64_c -+ +void aom_smooth_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_16x8 aom_smooth_predictor_16x8_c + @@ -1387,21 +1124,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_32x64 aom_smooth_predictor_32x64_c + -+void aom_smooth_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_predictor_32x8 aom_smooth_predictor_32x8_c -+ -+void aom_smooth_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_predictor_4x16 aom_smooth_predictor_4x16_c -+ +void aom_smooth_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_4x4 aom_smooth_predictor_4x4_c + +void aom_smooth_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_4x8 aom_smooth_predictor_4x8_c + -+void aom_smooth_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_predictor_64x16 aom_smooth_predictor_64x16_c -+ +void aom_smooth_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_64x32 aom_smooth_predictor_64x32_c + @@ -1411,9 +1139,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_8x16 aom_smooth_predictor_8x16_c + -+void aom_smooth_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_predictor_8x32 aom_smooth_predictor_8x32_c -+ +void aom_smooth_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_predictor_8x4 aom_smooth_predictor_8x4_c + @@ -1426,12 +1151,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_v_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_16x32 aom_smooth_v_predictor_16x32_c + -+void aom_smooth_v_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_v_predictor_16x4 aom_smooth_v_predictor_16x4_c -+ -+void aom_smooth_v_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_v_predictor_16x64 aom_smooth_v_predictor_16x64_c -+ +void aom_smooth_v_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_16x8 aom_smooth_v_predictor_16x8_c + @@ -1444,21 +1163,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_v_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_32x64 aom_smooth_v_predictor_32x64_c + -+void aom_smooth_v_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_v_predictor_32x8 aom_smooth_v_predictor_32x8_c -+ -+void aom_smooth_v_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_v_predictor_4x16 aom_smooth_v_predictor_4x16_c -+ +void aom_smooth_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_4x4 aom_smooth_v_predictor_4x4_c + +void aom_smooth_v_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_4x8 aom_smooth_v_predictor_4x8_c + -+void aom_smooth_v_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_v_predictor_64x16 aom_smooth_v_predictor_64x16_c -+ +void aom_smooth_v_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_64x32 aom_smooth_v_predictor_64x32_c + @@ -1468,9 +1178,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_smooth_v_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_8x16 aom_smooth_v_predictor_8x16_c + -+void aom_smooth_v_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_smooth_v_predictor_8x32 aom_smooth_v_predictor_8x32_c -+ +void aom_smooth_v_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_smooth_v_predictor_8x4 aom_smooth_v_predictor_8x4_c + @@ -1597,12 +1304,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_v_predictor_16x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_16x32 aom_v_predictor_16x32_c + -+void aom_v_predictor_16x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_v_predictor_16x4 aom_v_predictor_16x4_c -+ -+void aom_v_predictor_16x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_v_predictor_16x64 aom_v_predictor_16x64_c -+ +void aom_v_predictor_16x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_16x8 aom_v_predictor_16x8_c + @@ -1615,21 +1316,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_v_predictor_32x64_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_32x64 aom_v_predictor_32x64_c + -+void aom_v_predictor_32x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_v_predictor_32x8 aom_v_predictor_32x8_c -+ -+void aom_v_predictor_4x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_v_predictor_4x16 aom_v_predictor_4x16_c -+ +void aom_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_4x4 aom_v_predictor_4x4_c + +void aom_v_predictor_4x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_4x8 aom_v_predictor_4x8_c + -+void aom_v_predictor_64x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_v_predictor_64x16 aom_v_predictor_64x16_c -+ +void aom_v_predictor_64x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_64x32 aom_v_predictor_64x32_c + @@ -1639,18 +1331,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void aom_v_predictor_8x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_8x16 aom_v_predictor_8x16_c + -+void aom_v_predictor_8x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); -+#define aom_v_predictor_8x32 aom_v_predictor_8x32_c -+ +void aom_v_predictor_8x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_8x4 aom_v_predictor_8x4_c + +void aom_v_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); +#define aom_v_predictor_8x8 aom_v_predictor_8x8_c + -+uint64_t aom_var_2d_u16_c(uint8_t *src, int src_stride, int width, int height); -+#define aom_var_2d_u16 aom_var_2d_u16_c -+ +uint64_t aom_var_2d_u8_c(uint8_t *src, int src_stride, int width, int height); +#define aom_var_2d_u8 aom_var_2d_u8_c + @@ -1724,14 +1410,14 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +} // extern "C" +#endif + -+#endif -Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++#endif // AOM_DSP_RTCD_H_ +Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h @@ -0,0 +1,91 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * Copyright (c) 2025, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -1820,14 +1506,14 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +} // extern "C" +#endif + -+#endif -Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h ++#endif // AOM_SCALE_RTCD_H_ +Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h -@@ -0,0 +1,438 @@ ++++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +@@ -0,0 +1,405 @@ +/* -+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved. ++ * Copyright (c) 2025, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License @@ -1929,9 +1615,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi + int subpel_y_q3, const uint8_t *ref, int ref_stride, int subpel_search); +#define aom_upsampled_pred aom_upsampled_pred_c + -+int av1_apply_selfguided_restoration_c(const uint8_t *dat, int width, int height, int stride, int eps, const int *xqd, uint8_t *dst, int dst_stride, int32_t *tmpbuf, int bit_depth, int highbd); -+#define av1_apply_selfguided_restoration av1_apply_selfguided_restoration_c -+ +int64_t av1_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz); +#define av1_block_error av1_block_error_c + @@ -2052,7 +1735,7 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void av1_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); +#define av1_fwht4x4 av1_fwht4x4_c + -+uint32_t av1_get_crc32c_value_c(void *crc_calculator, uint8_t *p, size_t length); ++uint32_t av1_get_crc32c_value_c(void *crc_calculator, const uint8_t *p, size_t length); +#define av1_get_crc32c_value av1_get_crc32c_value_c + +void av1_get_horver_correlation_full_c(const int16_t *diff, int stride, int w, int h, float *hcorr, float *vcorr); @@ -2166,20 +1849,12 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void av1_round_shift_array_c(int32_t *arr, int size, int bit); +#define av1_round_shift_array av1_round_shift_array_c + -+int av1_selfguided_restoration_c(const uint8_t *dgd8, int width, int height, -+ int dgd_stride, int32_t *flt0, int32_t *flt1, int flt_stride, -+ int sgr_params_idx, int bit_depth, int highbd); -+#define av1_selfguided_restoration av1_selfguided_restoration_c -+ +void av1_txb_init_levels_c(const tran_low_t *const coeff, const int width, const int height, uint8_t *const levels); +#define av1_txb_init_levels av1_txb_init_levels_c + +void av1_upsample_intra_edge_c(uint8_t *p, int sz); +#define av1_upsample_intra_edge av1_upsample_intra_edge_c + -+void av1_warp_affine_c(const int32_t *mat, const uint8_t *ref, int width, int height, int stride, uint8_t *pred, int p_col, int p_row, int p_width, int p_height, int p_stride, int subsampling_x, int subsampling_y, ConvolveParams *conv_params, int16_t alpha, int16_t beta, int16_t gamma, int16_t delta); -+#define av1_warp_affine av1_warp_affine_c -+ +void av1_wedge_compute_delta_squares_c(int16_t *d, const int16_t *a, const int16_t *b, int N); +#define av1_wedge_compute_delta_squares av1_wedge_compute_delta_squares_c + @@ -2189,12 +1864,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +uint64_t av1_wedge_sse_from_residuals_c(const int16_t *r1, const int16_t *d, const uint8_t *m, int N); +#define av1_wedge_sse_from_residuals av1_wedge_sse_from_residuals_c + -+void av1_wiener_convolve_add_src_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, const WienerConvolveParams *conv_params); -+#define av1_wiener_convolve_add_src av1_wiener_convolve_add_src_c -+ -+void cdef_copy_rect8_16bit_to_16bit_c(uint16_t *dst, int dstride, const uint16_t *src, int sstride, int width, int height); -+#define cdef_copy_rect8_16bit_to_16bit cdef_copy_rect8_16bit_to_16bit_c -+ +void cdef_copy_rect8_8bit_to_16bit_c(uint16_t *dst, int dstride, const uint8_t *src, int sstride, int width, int height); +#define cdef_copy_rect8_8bit_to_16bit cdef_copy_rect8_8bit_to_16bit_c + @@ -2228,22 +1897,6 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +void cdef_find_dir_dual_c(const uint16_t *img1, const uint16_t *img2, int stride, int32_t *var1, int32_t *var2, int coeff_shift, int *out1, int *out2); +#define cdef_find_dir_dual cdef_find_dir_dual_c + -+cfl_subsample_lbd_fn cfl_get_luma_subsampling_420_lbd_c(TX_SIZE tx_size); -+#define cfl_get_luma_subsampling_420_lbd cfl_get_luma_subsampling_420_lbd_c -+ -+cfl_subsample_lbd_fn cfl_get_luma_subsampling_422_lbd_c(TX_SIZE tx_size); -+#define cfl_get_luma_subsampling_422_lbd cfl_get_luma_subsampling_422_lbd_c -+ -+cfl_subsample_lbd_fn cfl_get_luma_subsampling_444_lbd_c(TX_SIZE tx_size); -+#define cfl_get_luma_subsampling_444_lbd cfl_get_luma_subsampling_444_lbd_c -+ -+cfl_predict_lbd_fn cfl_get_predict_lbd_fn_c(TX_SIZE tx_size); -+#define cfl_get_predict_lbd_fn cfl_get_predict_lbd_fn_c -+ -+cfl_subtract_average_fn cfl_get_subtract_average_fn_c(TX_SIZE tx_size); -+cfl_subtract_average_fn cfl_get_subtract_average_fn_vsx(TX_SIZE tx_size); -+#define cfl_get_subtract_average_fn cfl_get_subtract_average_fn_vsx -+ +void av1_rtcd(void); + +#include "config/aom_config.h" @@ -2263,4 +1916,4 @@ Index: chromium-134.0.6998.35/third_party/libaom/source/config/linux/ppc64/confi +} // extern "C" +#endif + -+#endif ++#endif // AV1_RTCD_H_ diff --git a/0001-Enable-ppc64-pointer-compression.patch b/0001-Enable-ppc64-pointer-compression.patch index f13831f..bea6992 100644 --- a/0001-Enable-ppc64-pointer-compression.patch +++ b/0001-Enable-ppc64-pointer-compression.patch @@ -1,8 +1,8 @@ -Index: chromium-134.0.6998.117/v8/gni/v8.gni +Index: chromium-140.0.7339.41/v8/gni/v8.gni =================================================================== ---- chromium-134.0.6998.117.orig/v8/gni/v8.gni -+++ chromium-134.0.6998.117/v8/gni/v8.gni -@@ -224,7 +224,7 @@ assert(!(v8_enable_webassembly && v8_ena +--- chromium-140.0.7339.41.orig/v8/gni/v8.gni ++++ chromium-140.0.7339.41/v8/gni/v8.gni +@@ -274,7 +274,7 @@ assert(!(v8_enable_webassembly && v8_ena if (v8_enable_pointer_compression == "") { v8_enable_pointer_compression = v8_current_cpu == "arm64" || v8_current_cpu == "x64" || diff --git a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch index 4ac1414..13bf38d 100644 --- a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +++ b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) -Index: chromium-130.0.6723.44/v8/BUILD.gn +Index: chromium-140.0.7339.41/v8/BUILD.gn =================================================================== ---- chromium-130.0.6723.44.orig/v8/BUILD.gn -+++ chromium-130.0.6723.44/v8/BUILD.gn -@@ -1431,7 +1431,14 @@ config("toolchain") { +--- chromium-140.0.7339.41.orig/v8/BUILD.gn ++++ chromium-140.0.7339.41/v8/BUILD.gn +@@ -1555,7 +1555,14 @@ config("toolchain") { if (v8_current_cpu == "ppc64") { defines += [ "V8_TARGET_ARCH_PPC64" ] cflags += [ "-ffp-contract=off" ] diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index 9db7b99..2cdf46b 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -686,6 +686,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +192,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +383,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +399,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -443,10 +443,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +571,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +592,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +666,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -94,6 +94,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +679,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-136.0.7103.48/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index 0c598c4..f2f76ea 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dum #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dum +#endif + } // namespace google_breakpad -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dum }; } // namespace google_breakpad -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dum #endif } // namespace google_breakpad -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,10 +247,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/dum #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc @@ -465,6 +465,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); @@ -295,10 +295,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/han #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -200,7 +200,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -312,10 +312,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/han fpstate_t float_state; #endif }; -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc @@ -326,7 +326,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; @@ -347,10 +347,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/han const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -143,7 +143,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -393,10 +393,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/mic const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/mic #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,11 +446,11 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -@@ -770,7 +770,9 @@ bool LinuxDumper::GetStackInfo(const voi +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +@@ -789,7 +789,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); // The number of bytes of stack which we try to capture. @@ -461,10 +461,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,10 +475,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -57,6 +57,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -488,10 +488,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -533,10 +533,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -556,10 +556,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -145,7 +145,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -613,10 +613,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,10 +654,10 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/mem struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -672,11 +672,11 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/linux/mem for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -@@ -60,8 +60,9 @@ TEST(PageAllocatorTest, LargeObject) { +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +@@ -64,8 +64,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); uint8_t* p = reinterpret_cast(allocator.Alloc(10000)); @@ -687,11 +687,11 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/common/memory_al for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == nullptr); -Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-136.0.7103.48.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -@@ -82,6 +82,8 @@ +--- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +@@ -83,6 +83,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) #define ELF_ARCH EM_RISCV @@ -700,7 +700,7 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2c #endif #if defined(__arm__) -@@ -92,6 +94,8 @@ typedef user_regs user_regs_struct; +@@ -93,6 +95,8 @@ typedef user_regs user_regs_struct; #elif defined (__mips__) || defined(__riscv) // This file-local typedef simplifies the source code. typedef gregset_t user_regs_struct; @@ -709,7 +709,7 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2c #endif using google_breakpad::MDTypeHelper; -@@ -324,6 +328,9 @@ struct CrashedProcess { +@@ -326,6 +330,9 @@ struct CrashedProcess { #if defined(__aarch64__) user_fpsimd_struct fpregs; #endif @@ -719,7 +719,7 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2c uintptr_t stack_addr; const uint8_t* stack; size_t stack_length; -@@ -627,6 +634,38 @@ ParseThreadRegisters(CrashedProcess::Thr +@@ -629,6 +636,38 @@ ParseThreadRegisters(CrashedProcess::Thr #error "Unexpected __riscv_xlen" #endif } @@ -758,7 +758,7 @@ Index: chromium-136.0.7103.48/third_party/breakpad/breakpad/src/tools/linux/md2c #else #error "This code has not been ported to your platform yet" #endif -@@ -732,6 +771,12 @@ ParseSystemInfo(const Options& options, +@@ -734,6 +773,12 @@ ParseSystemInfo(const Options& options, # else # error "Unexpected __riscv_xlen" # endif diff --git a/0001-add-xnn-ppc64el-support.patch b/0001-add-xnn-ppc64el-support.patch index 71dedfc..dfa5595 100644 --- a/0001-add-xnn-ppc64el-support.patch +++ b/0001-add-xnn-ppc64el-support.patch @@ -1,8 +1,8 @@ -Index: chromium-139.0.7258.66/third_party/xnnpack/generate_build_gn.py +Index: chromium-140.0.7339.41/third_party/xnnpack/generate_build_gn.py =================================================================== ---- chromium-139.0.7258.66.orig/third_party/xnnpack/generate_build_gn.py -+++ chromium-139.0.7258.66/third_party/xnnpack/generate_build_gn.py -@@ -221,7 +221,10 @@ _PLATFORMS = [ +--- chromium-140.0.7339.41.orig/third_party/xnnpack/generate_build_gn.py ++++ chromium-140.0.7339.41/third_party/xnnpack/generate_build_gn.py +@@ -232,7 +232,10 @@ _PLATFORMS = [ bazel_platform='//:linux_aarch64'), _Platform(gn_cpu='riscv64', bazel_cpu='riscv64', @@ -14,10 +14,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/generate_build_gn.py ] -Index: chromium-139.0.7258.66/third_party/xnnpack/bazelroot/BUILD +Index: chromium-140.0.7339.41/third_party/xnnpack/bazelroot/BUILD =================================================================== ---- chromium-139.0.7258.66.orig/third_party/xnnpack/bazelroot/BUILD -+++ chromium-139.0.7258.66/third_party/xnnpack/bazelroot/BUILD +--- chromium-140.0.7339.41.orig/third_party/xnnpack/bazelroot/BUILD ++++ chromium-140.0.7339.41/third_party/xnnpack/bazelroot/BUILD @@ -29,6 +29,14 @@ platform( ], ) diff --git a/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch b/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch deleted file mode 100644 index 337d340..0000000 --- a/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch +++ /dev/null @@ -1,37 +0,0 @@ -From b3a14db7637232d30c878cc1f1ad6d8037e81379 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Tue, 15 Jan 2019 22:42:21 -0600 -Subject: [PATCH] linux/seccomp-bpf: ppc64+glibc workaround in SIGSYS handler - -Workaround for an apparent issue with glibc negating syscall -parameters. Observed on a ppc64le machine with glibc. -More investigation required. ---- - sandbox/linux/seccomp-bpf/trap.cc | 14 ++++++++++++++ - 1 file changed, 14 insertions(+) - -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/trap.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf/trap.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/trap.cc -@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* - SetIsInSigHandler(); - } - -+#if defined(__powerpc64__) -+ // On ppc64+glibc, some syscalls seem to accidentally negate the first -+ // parameter which causes checks against it to fail. For now, manually -+ // negate them back. -+ // TODO(shawn@anastas.io): investigate this issue further -+ auto nr = SECCOMP_SYSCALL(ctx); -+ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat || -+ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) { -+ if (static_cast(SECCOMP_PARM1(ctx)) > 0) { -+ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx); -+ } -+ } -+#endif -+ - // Copy the seccomp-specific data into a arch_seccomp_data structure. This - // is what we are showing to TrapFnc callbacks that the system call - // evaluator registered with the sandbox. diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index f069cc4..978fba2 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -1,16 +1,32 @@ -From 0c65e40ae578b743b5f06956597ebc9700768d18 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 22:45:47 -0500 -Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64 - ---- - sandbox/features.gni | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: chromium-137.0.7151.40/sandbox/features.gni +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/trap.cc =================================================================== ---- chromium-137.0.7151.40.orig/sandbox/features.gni -+++ chromium-137.0.7151.40/sandbox/features.gni +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf/trap.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/trap.cc +@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* + SetIsInSigHandler(); + } + ++#if defined(__powerpc64__) ++ // On ppc64+glibc, some syscalls seem to accidentally negate the first ++ // parameter which causes checks against it to fail. For now, manually ++ // negate them back. ++ // TODO(sanastasio@raptorengineering.com): investigate this issue further ++ auto nr = SECCOMP_SYSCALL(ctx); ++ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat || ++ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) { ++ if (static_cast(SECCOMP_PARM1(ctx)) > 0) { ++ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx); ++ } ++ } ++#endif ++ + // Copy the seccomp-specific data into a arch_seccomp_data structure. This + // is what we are showing to TrapFnc callbacks that the system call + // evaluator registered with the sandbox. +Index: chromium-140.0.7339.41/sandbox/features.gni +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/features.gni ++++ chromium-140.0.7339.41/sandbox/features.gni @@ -9,4 +9,5 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || @@ -18,3 +34,1139 @@ Index: chromium-137.0.7151.40/sandbox/features.gni - current_cpu == "mipsel" || current_cpu == "mips64el") + current_cpu == "mipsel" || current_cpu == "mips64el" || + current_cpu == "ppc64") +Index: chromium-140.0.7339.41/sandbox/policy/linux/bpf_renderer_policy_linux.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-140.0.7339.41/sandbox/policy/linux/bpf_renderer_policy_linux.cc +@@ -17,6 +17,11 @@ + #include "sandbox/linux/system_headers/linux_syscalls.h" + #include "sandbox/policy/linux/sandbox_linux.h" + ++// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h ++#ifdef __powerpc64__ ++#include ++#endif ++ + // TODO(vignatti): replace the local definitions below with #include + // once kernel version 4.6 becomes widely used. + #include +@@ -86,7 +91,7 @@ ResultExpr RendererProcessPolicy::Evalua + case __NR_ftruncate64: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_getrlimit: + case __NR_setrlimit: + // We allow setrlimit to dynamically adjust the address space limit as +Index: chromium-140.0.7339.41/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-140.0.7339.41/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +@@ -56,6 +56,13 @@ + #define MAX_PUBLIC_SYSCALL __NR_syscalls + #define MAX_SYSCALL MAX_PUBLIC_SYSCALL + ++#elif defined(__powerpc64__) ++ ++#include ++#define MIN_SYSCALL 0u ++#define MAX_PUBLIC_SYSCALL __NR_syscalls ++#define MAX_SYSCALL MAX_PUBLIC_SYSCALL ++ + #else + #error "Unsupported architecture" + #endif +Index: chromium-140.0.7339.41/sandbox/linux/BUILD.gn +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/BUILD.gn ++++ chromium-140.0.7339.41/sandbox/linux/BUILD.gn +@@ -377,6 +377,8 @@ component("sandbox_services") { + + source_set("sandbox_services_headers") { + sources = [ ++ "system_headers/ppc64_linux_syscalls.h", ++ "system_headers/ppc64_linux_ucontext.h", + "system_headers/arm64_linux_syscalls.h", + "system_headers/arm_linux_syscalls.h", + "system_headers/arm_linux_ucontext.h", +Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_syscalls.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_syscalls.h ++++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_syscalls.h +@@ -35,5 +35,9 @@ + #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" + #endif + ++#if defined(__powerpc64__) ++#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h" ++#endif ++ + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ + +Index: chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_syscalls.h +=================================================================== +--- /dev/null ++++ chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_syscalls.h +@@ -0,0 +1,25 @@ ++// Copyright 2014 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ ++#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ ++ ++#include ++ ++//TODO: is it necessary to redefine syscall numbers for PPC64? ++// Needed for Ubuntu/Debian/Centos/RHEL: ++#if !defined(__NR_shmget) ++#define __NR_shmget 395 ++#endif ++#if !defined(__NR_shmdt) ++#define __NR_shmdt 398 ++#endif ++#if !defined(__NR_shmctl) ++#define __NR_shmctl 396 ++#endif ++#if !defined(__NR_shmat) ++#define __NR_shmat 397 ++#endif ++ ++#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ +Index: chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_ucontext.h +=================================================================== +--- /dev/null ++++ chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_ucontext.h +@@ -0,0 +1,12 @@ ++// Copyright 2014 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ ++#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ ++ ++#include ++ ++//TODO: is it necessary to redefine ucontext on PPC64? ++ ++#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ +Index: chromium-140.0.7339.41/sandbox/linux/syscall_broker/broker_process.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/syscall_broker/broker_process.cc ++++ chromium-140.0.7339.41/sandbox/linux/syscall_broker/broker_process.cc +@@ -167,7 +167,7 @@ bool BrokerProcess::IsSyscallBrokerable( + #if defined(__NR_fstatat64) + case __NR_fstatat64: + #endif +-#if defined(__x86_64__) || defined(__aarch64__) ++#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_newfstatat: + #endif + return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +@@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) + SyscallSets::IsPrctl(sysno) || + SyscallSets::IsProcessGroupOrSession(sysno) || + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + SyscallSets::IsSocketCall(sysno) || + #endif + #if defined(__arm__) +@@ -259,7 +260,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de + + // TODO(crbug.com/40528912): should i386 really be in this list? + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + if (sysno == __NR_mmap) + return RestrictMmapFlags(); + #endif +@@ -342,7 +343,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de + } + + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + if (SyscallSets::IsSocketCall(sysno)) + return RestrictSocketcallCommand(); + #endif +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -39,7 +39,7 @@ + #include "sandbox/linux/system_headers/linux_syscalls.h" + #include "sandbox/linux/system_headers/linux_time.h" + +-#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && \ ++#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && !defined(__powerpc64__) && \ + !defined(PTRACE_GET_THREAD_AREA) + // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance + // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. +@@ -48,6 +48,11 @@ + #include + #endif + ++// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h ++#ifdef __powerpc64__ ++#include ++#endif ++ + #if BUILDFLAG(IS_ANDROID) + + #if !defined(F_DUPFD_CLOEXEC) +@@ -105,6 +110,15 @@ inline bool IsArchitectureMips() { + #endif + } + ++inline bool IsArchitecturePPC64() { ++#if defined(__powerpc64__) ++ return true; ++#else ++ return false; ++#endif ++} ++ ++ + // Ubuntu's version of glibc has a race condition in sem_post that can cause + // it to call futex(2) with bogus op arguments. To workaround this, we need + // to allow those futex(2) calls to fail with EINVAL, instead of crashing the +@@ -279,9 +293,11 @@ ResultExpr RestrictFcntlCommands() { + // operator. + // Glibc overrides the kernel's O_LARGEFILE value. Account for this. + uint64_t kOLargeFileFlag = O_LARGEFILE; +- if (IsArchitectureX86_64() || IsArchitectureI386() || IsArchitectureMips()) ++ if (IsArchitectureX86_64() || IsArchitectureI386() || IsArchitectureMips() \ ++ || IsArchitecturePPC64()) + kOLargeFileFlag = 0100000; + ++ + const Arg cmd(1); + const Arg long_arg(2); + +@@ -304,8 +320,17 @@ ResultExpr RestrictFcntlCommands() { + F_SETLKW, + F_GETLK, + F_DUPFD, +- F_DUPFD_CLOEXEC}, +- Allow()) ++ F_DUPFD_CLOEXEC ++#if defined(__powerpc64__) ++// On PPC64, F_SETLK, F_GETLK, F_SETLKW are defined as the 64-bit variants ++// but glibc will sometimes still use the 32-bit versions. Allow both. ++ , ++ 5, /* F_GETLK (32) */ ++ 6, /* F_SETLK (32) */ ++ 7 /* F_SETLKW (32) */ ++#endif ++ }, ++ Allow()) + .Case(F_SETFL, + If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) + .Case(F_ADD_SEALS, +@@ -314,7 +339,7 @@ ResultExpr RestrictFcntlCommands() { + // clang-format on + } + +-#if defined(__i386__) || defined(__mips__) ++#if defined(__i386__) || defined(__mips__) || defined(__powerpc64__) + ResultExpr RestrictSocketcallCommand() { + // Unfortunately, we are unable to restrict the first parameter to + // socketpair(2). Whilst initially sounding bad, it's noteworthy that very +@@ -480,7 +505,7 @@ ResultExpr RestrictPtrace() { + #endif + return Switch(request) + .Cases({ +-#if !defined(__aarch64__) ++#if !defined(__aarch64__) && !defined(__powerpc64__) + PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, + PTRACE_GETREGSET, + #endif +@@ -520,13 +545,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr + size_t argIndex; + switch (sysno) { + #if defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_send: + argIndex = 3; + break; + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__mips__) || defined(__aarch64__) ++ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_sendto: // Could specify destination. + argIndex = 3; + break; +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +@@ -56,7 +56,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr + // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. + SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); + +-#if defined(__i386__) || defined(__mips__) ++#if defined(__i386__) || defined(__mips__) || defined(__powerpc64__) + // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), + // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). + SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +@@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s + switch (sysno) { + case __NR_gettimeofday: + #if defined(__i386__) || defined(__x86_64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_time: + #endif + return true; +@@ -52,12 +53,14 @@ bool SyscallSets::IsAllowedGettime(int s + case __NR_clock_nanosleep_time64: // Parameters filtered by RestrictClockID(). + #endif + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_ftime: // Obsolete. + #endif + case __NR_settimeofday: // Privileged. + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_stime: + #endif + default: +@@ -136,7 +139,7 @@ bool SyscallSets::IsFileSystem(int sysno + case __NR_faccessat2: + case __NR_fchmodat: + case __NR_fchownat: // Should be called chownat ? +-#if defined(__x86_64__) || defined(__aarch64__) ++#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_newfstatat: // fstatat(). EPERM not a valid errno. + #elif defined(__i386__) || defined(__arm__) || \ + (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) +@@ -155,7 +158,7 @@ bool SyscallSets::IsFileSystem(int sysno + case __NR_memfd_create: + case __NR_mkdirat: + case __NR_mknodat: +-#if defined(__i386__) ++#if defined(__i386__) || defined(__powerpc64__) + case __NR_oldlstat: + case __NR_oldstat: + #endif +@@ -169,7 +172,8 @@ bool SyscallSets::IsFileSystem(int sysno + #endif + case __NR_statfs: // EPERM not a valid errno. + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_statfs64: + #endif + case __NR_statx: // EPERM not a valid errno. +@@ -180,7 +184,8 @@ bool SyscallSets::IsFileSystem(int sysno + case __NR_truncate64: + #endif + case __NR_unlinkat: +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_utime: + #endif + case __NR_utimensat: // New. +@@ -220,7 +225,8 @@ bool SyscallSets::IsAllowedFileSystemAcc + #endif + return true; + // TODO(jln): these should be denied gracefully as well (moved below). +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_fadvise64: // EPERM not a valid errno. + #endif + #if defined(__i386__) +@@ -233,11 +239,12 @@ bool SyscallSets::IsAllowedFileSystemAcc + case __NR_flock: // EPERM not a valid errno. + case __NR_fstatfs: // Give information about the whole filesystem. + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_fstatfs64: + #endif + case __NR_fsync: // EPERM not a valid errno. +-#if defined(__i386__) ++#if defined(__i386__) || defined(__powerpc64__) + case __NR_oldfstat: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +@@ -245,6 +252,8 @@ bool SyscallSets::IsAllowedFileSystemAcc + case __NR_sync_file_range: // EPERM not a valid errno. + #elif defined(__arm__) + case __NR_arm_sync_file_range: // EPERM not a valid errno. ++#elif defined(__powerpc64__) ++ case __NR_sync_file_range2: // EPERM not a valid errno. + #endif + default: + return false; +@@ -265,7 +274,8 @@ bool SyscallSets::IsDeniedFileSystemAcce + #endif + case __NR_getdents64: // EPERM not a valid errno. + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_readdir: + #endif + return true; +@@ -306,7 +316,7 @@ bool SyscallSets::IsGetSimpleId(int sysn + bool SyscallSets::IsProcessPrivilegeChange(int sysno) { + switch (sysno) { + case __NR_capset: +-#if defined(__i386__) || defined(__x86_64__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__) + case __NR_ioperm: // Intel privilege. + case __NR_iopl: // Intel privilege. + #endif +@@ -362,8 +372,11 @@ bool SyscallSets::IsAllowedSignalHandlin + // overflow. + case __NR_sigaltstack: + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) ++#if !defined(__powerpc64__) + case __NR_rt_sigtimedwait_time64: ++#endif + case __NR_sigaction: + case __NR_sigprocmask: + case __NR_sigreturn: +@@ -378,7 +391,8 @@ bool SyscallSets::IsAllowedSignalHandlin + #endif + case __NR_signalfd4: + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_sigpending: + case __NR_sigsuspend: + #endif +@@ -402,7 +416,7 @@ bool SyscallSets::IsAllowedOperationOnFd + #endif + case __NR_dup3: + #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_shutdown: + #endif + return true; +@@ -435,7 +449,7 @@ bool SyscallSets::IsAllowedProcessStartO + case __NR_exit_group: + case __NR_wait4: + case __NR_waitid: +-#if defined(__i386__) ++#if defined(__i386__) || defined(__powerpc64__) + case __NR_waitpid: + #endif + return true; +@@ -499,7 +513,7 @@ bool SyscallSets::IsAllowedEpoll(int sys + bool SyscallSets::IsDeniedGetOrModifySocket(int sysno) { + switch (sysno) { + #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_accept: + case __NR_accept4: + case __NR_bind: +@@ -514,7 +528,8 @@ bool SyscallSets::IsDeniedGetOrModifySoc + } + + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + // Big multiplexing system call for sockets. + bool SyscallSets::IsSocketCall(int sysno) { + switch (sysno) { +@@ -528,7 +543,8 @@ bool SyscallSets::IsSocketCall(int sysno + } + #endif + +-#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) ++#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ ++ defined(__powerpc64__) + bool SyscallSets::IsNetworkSocketInformation(int sysno) { + switch (sysno) { + case __NR_getpeername: +@@ -554,7 +570,7 @@ bool SyscallSets::IsAllowedAddressSpaceA + case __NR_mincore: + case __NR_mlockall: + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_mmap: + #endif + #if defined(__i386__) || defined(__arm__) || \ +@@ -584,7 +600,8 @@ bool SyscallSets::IsAllowedGeneralIo(int + switch (sysno) { + case __NR_lseek: + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR__llseek: + #endif + #if !defined(__aarch64__) +@@ -604,18 +621,19 @@ bool SyscallSets::IsAllowedGeneralIo(int + case __NR_readv: + case __NR_pread64: + #if defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_recv: + #endif + #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_recvfrom: // Could specify source. + case __NR_recvmsg: // Could specify source. + #endif +-#if defined(__i386__) || defined(__x86_64__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__) + case __NR_select: + #endif +-#if defined(__i386__) || defined(__arm__) || defined(__mips__) ++#if defined(__i386__) || defined(__arm__) || defined(__mips__) || defined(__powerpc64__) + case __NR__newselect: + #endif + case __NR_write: +@@ -635,11 +653,12 @@ bool SyscallSets::IsAllowedGeneralIo(int + #endif + // send* syscalls need their flags filtered. + #if defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_send: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__mips__) || defined(__aarch64__) ++ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_sendmsg: // Could specify destination. + case __NR_sendto: // Could specify destination. + #endif +@@ -652,11 +671,12 @@ bool SyscallSets::IsAllowedGeneralIo(int + bool SyscallSets::IsSockSendOneMsg(int sysno) { + switch (sysno) { + #if defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_send: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__mips__) || defined(__aarch64__) ++ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_sendmsg: // Could specify destination. + case __NR_sendto: // Could specify destination. + #endif +@@ -697,7 +717,8 @@ bool SyscallSets::IsAllowedBasicSchedule + return true; + case __NR_getpriority: + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_nice: + #endif + case __NR_setpriority: +@@ -709,7 +730,8 @@ bool SyscallSets::IsAllowedBasicSchedule + bool SyscallSets::IsAdminOperation(int sysno) { + switch (sysno) { + #if defined(__i386__) || defined(__arm__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_bdflush: + #endif + case __NR_kexec_load: +@@ -725,7 +747,8 @@ bool SyscallSets::IsAdminOperation(int s + + bool SyscallSets::IsKernelModule(int sysno) { + switch (sysno) { +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_create_module: + case __NR_get_kernel_syms: // Should ENOSYS. + case __NR_query_module: +@@ -758,7 +781,8 @@ bool SyscallSets::IsFsControl(int sysno) + case __NR_swapoff: + case __NR_swapon: + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_umount: + #endif + case __NR_umount2: +@@ -774,7 +798,7 @@ bool SyscallSets::IsNuma(int sysno) { + case __NR_getcpu: + case __NR_mbind: + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_migrate_pages: + #endif + case __NR_move_pages: +@@ -809,14 +833,15 @@ bool SyscallSets::IsGlobalProcessEnviron + switch (sysno) { + case __NR_acct: // Privileged. + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_getrlimit: + #endif +-#if defined(__i386__) || defined(__arm__) ++#if defined(__i386__) || defined(__arm__) || defined(__powerpc64__) + case __NR_ugetrlimit: + #endif + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_ulimit: + #endif + case __NR_getrusage: +@@ -850,7 +875,7 @@ bool SyscallSets::IsGlobalSystemStatus(i + #endif + case __NR_sysinfo: + case __NR_uname: +-#if defined(__i386__) ++#if defined(__i386__) || defined(__powerpc64__) + case __NR_olduname: + case __NR_oldolduname: + #endif +@@ -914,12 +939,15 @@ bool SyscallSets::IsKeyManagement(int sy + } + + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + bool SyscallSets::IsSystemVSemaphores(int sysno) { + switch (sysno) { + case __NR_semctl: + case __NR_semget: ++#if !defined(__powerpc64__) + case __NR_semop: ++#endif + case __NR_semtimedop: + #if defined(__i386__) || defined(__arm__) || \ + (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) +@@ -934,7 +962,8 @@ bool SyscallSets::IsSystemVSemaphores(in + + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ + defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + // These give a lot of ambient authority and bypass the setuid sandbox. + bool SyscallSets::IsSystemVSharedMemory(int sysno) { + switch (sysno) { +@@ -950,7 +979,8 @@ bool SyscallSets::IsSystemVSharedMemory( + #endif + + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + bool SyscallSets::IsSystemVMessageQueue(int sysno) { + switch (sysno) { + case __NR_msgctl: +@@ -965,7 +995,8 @@ bool SyscallSets::IsSystemVMessageQueue( + #endif + + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + // Big system V multiplexing system call. + bool SyscallSets::IsSystemVIpc(int sysno) { + switch (sysno) { +@@ -987,6 +1018,9 @@ bool SyscallSets::IsAnySystemV(int sysno + #elif defined(__i386__) || \ + (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) + return IsSystemVIpc(sysno); ++#elif defined(__powerpc64__) ++ return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || ++ IsSystemVSharedMemory(sysno) || IsSystemVIpc(sysno); + #endif + } + +@@ -1042,7 +1076,8 @@ bool SyscallSets::IsFaNotify(int sysno) + bool SyscallSets::IsTimer(int sysno) { + switch (sysno) { + case __NR_getitimer: +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_alarm: + #endif + case __NR_setitimer: +@@ -1121,18 +1156,22 @@ bool SyscallSets::IsMisc(int sysno) { + case __NR_syncfs: + case __NR_vhangup: + // The system calls below are not implemented. +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_afs_syscall: + #endif + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_break: + #endif +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_getpmsg: + #endif + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_gtty: + case __NR_idle: + case __NR_lock: +@@ -1140,20 +1179,22 @@ bool SyscallSets::IsMisc(int sysno) { + case __NR_prof: + case __NR_profil: + #endif +-#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ ++ defined(__powerpc64__) + case __NR_putpmsg: + #endif + #if defined(__x86_64__) + case __NR_security: + #endif + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + case __NR_stty: + #endif +-#if defined(__x86_64__) ++#if defined(__x86_64__) || defined(__powerpc64__) + case __NR_tuxcall: + #endif +-#if !defined(__aarch64__) ++#if !defined(__aarch64__) && !defined(__powerpc64__) + case __NR_vserver: + #endif + return true; +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +@@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { + static bool IsDeniedGetOrModifySocket(int sysno); + + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + // Big multiplexing system call for sockets. + static bool IsSocketCall(int sysno); + #endif + + #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + static bool IsNetworkSocketInformation(int sysno); + #endif + +@@ -80,23 +81,27 @@ class SANDBOX_EXPORT SyscallSets { + static bool IsAsyncIo(int sysno); + static bool IsKeyManagement(int sysno); + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + static bool IsSystemVSemaphores(int sysno); + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ + defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + // These give a lot of ambient authority and bypass the setuid sandbox. + static bool IsSystemVSharedMemory(int sysno); + #endif + + #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ ++ defined(__powerpc64__) + static bool IsSystemVMessageQueue(int sysno); + #endif + + #if defined(__i386__) || \ +- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) ++ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ ++ defined(__powerpc64__) + // Big system V multiplexing system call. + static bool IsSystemVIpc(int sysno); + #endif +Index: chromium-140.0.7339.41/sandbox/linux/services/syscall_wrappers.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-140.0.7339.41/sandbox/linux/services/syscall_wrappers.cc +@@ -68,7 +68,7 @@ long sys_clone(unsigned long flags, + #if defined(ARCH_CPU_X86_64) + return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); + #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ +- defined(ARCH_CPU_MIPS_FAMILY) ++ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) + // CONFIG_CLONE_BACKWARDS defined. + return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); + #endif +Index: chromium-140.0.7339.41/sandbox/linux/bpf_dsl/seccomp_macros.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/bpf_dsl/seccomp_macros.h ++++ chromium-140.0.7339.41/sandbox/linux/bpf_dsl/seccomp_macros.h +@@ -14,6 +14,9 @@ + #if defined(__mips__) + // sys/user.h in eglibc misses size_t definition + #include ++#elif defined(__powerpc64__) ++// Manually define greg_t on ppc64 ++typedef unsigned long long greg_t; + #endif + #endif + +@@ -343,6 +346,51 @@ struct regs_struct { + #define SECCOMP_PT_PARM4(_regs) (_regs).regs[3] + #define SECCOMP_PT_PARM5(_regs) (_regs).regs[4] + #define SECCOMP_PT_PARM6(_regs) (_regs).regs[5] ++ ++#elif defined(__powerpc64__) ++#include ++ ++typedef struct pt_regs regs_struct; ++ ++#ifdef ARCH_CPU_LITTLE_ENDIAN ++#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE ++#else ++#define SECCOMP_ARCH AUDIT_ARCH_PPC64 ++#endif ++ ++#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) ++ ++#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3) ++#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) ++#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip ++#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3) ++#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4) ++#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5) ++#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6) ++#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7) ++#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8) ++ ++#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr)) ++#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch)) ++#define SECCOMP_IP_MSB_IDX \ ++ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4) ++#define SECCOMP_IP_LSB_IDX \ ++ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0) ++#define SECCOMP_ARG_MSB_IDX(nr) \ ++ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4) ++#define SECCOMP_ARG_LSB_IDX(nr) \ ++ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0) ++ ++#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3] ++#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0] ++#define SECCOMP_PT_IP(_regs) (_regs).nip ++#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3] ++#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4] ++#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5] ++#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6] ++#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7] ++#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8] ++ + #else + #error Unsupported target platform + +Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_seccomp.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_seccomp.h ++++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_seccomp.h +@@ -38,6 +38,9 @@ + #ifndef EM_AARCH64 + #define EM_AARCH64 183 + #endif ++#ifndef EM_PPC64 ++#define EM_PPC64 21 ++#endif + + #ifndef __AUDIT_ARCH_64BIT + #define __AUDIT_ARCH_64BIT 0x80000000 +@@ -70,6 +73,12 @@ + #ifndef AUDIT_ARCH_AARCH64 + #define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) + #endif ++#ifndef AUDIT_ARCH_PPC64 ++#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT) ++#endif ++#ifndef AUDIT_ARCH_PPC64LE ++#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) ++#endif + + // For prctl.h + #ifndef PR_SET_SECCOMP +Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_signal.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_signal.h ++++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_signal.h +@@ -13,7 +13,7 @@ + // (not undefined, but defined different values and in different memory + // layouts). So, fill the gap here. + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + + #define LINUX_SIGHUP 1 + #define LINUX_SIGINT 2 +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/syscall.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf/syscall.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/syscall.cc +@@ -19,7 +19,7 @@ namespace sandbox { + namespace { + + #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ +- defined(ARCH_CPU_MIPS_FAMILY) ++ defined(ARCH_CPU_MIPS_FAMILY) || defined (ARCH_CPU_PPC64_FAMILY) + // Number that's not currently used by any Linux kernel ABIs. + const int kInvalidSyscallNumber = 0x351d3; + #else +@@ -309,10 +309,54 @@ asm(// We need to be able to tell the ke + "2:ret\n" + ".cfi_endproc\n" + ".size SyscallAsm, .-SyscallAsm\n" ++#elif defined(__powerpc64__) ++ ".text\n" ++ ".align 4\n" ++ ".type SyscallAsm @function\n" ++ "SyscallAsm:\n" ++ ".cfi_startproc\n" ++ ++ // Check if r3 is negative ++ "cmpdi 3, 0\n" ++ "bgt 2f\n" ++ ++ // Load address of 3f into r3 and return ++ "mflr 10\n" ++ "bl 1f\n" ++ "1: mflr 3\n" ++ "mtlr 10\n" ++ "addi 3, 3, 4*13\n" ++ "blr\n" ++ ++ // Load arguments from array into r3-8 ++ // save param 3 in r10 ++ "2:\n" ++ "mr 0, 3\n" ++ "ld 3, 0(4)\n" ++ "ld 5, 16(4)\n" ++ "ld 6, 24(4)\n" ++ "ld 7, 32(4)\n" ++ "ld 8, 40(4)\n" ++ "ld 4, 8(4)\n" ++ "li 9, 0\n" ++ ++ // Enter kernel ++ "sc\n" ++ ++ // Magic return address ++ "3:\n" ++ // Like MIPS, ppc64 return values are always positive. ++ // Check for error in cr0.SO and negate upon error ++ "bc 4, 3, 4f\n" ++ "neg 3, 3\n" ++ "4: blr\n" ++ ++ ".cfi_endproc\n" ++ ".size SyscallAsm, .-SyscallAsm\n" + #endif + ); // asm + +-#if defined(__x86_64__) ++#if defined(__x86_64__) || defined(__powerpc64__) + extern "C" { + intptr_t SyscallAsm(intptr_t nr, const intptr_t args[6]); + } +@@ -426,6 +470,8 @@ intptr_t Syscall::Call(int nr, + ret = inout; + } + ++#elif defined(__powerpc64__) ++ intptr_t ret = SyscallAsm(nr, args); + #else + #error "Unimplemented architecture" + #endif +@@ -442,8 +488,18 @@ void Syscall::PutValueInUcontext(intptr_ + // needs to be changed back. + ret_val = -ret_val; + SECCOMP_PARM4(ctx) = 1; +- } else ++ } else { + SECCOMP_PARM4(ctx) = 0; ++ } ++#endif ++#if defined(__powerpc64__) ++ // Same as MIPS, need to invert ret and set error register (cr0.SO) ++ if (ret_val <= -1 && ret_val >= -4095) { ++ ret_val = -ret_val; ++ ctx->uc_mcontext.regs->ccr |= (1 << 28); ++ } else { ++ ctx->uc_mcontext.regs->ccr &= ~(1 << 28); ++ } + #endif + SECCOMP_RESULT(ctx) = static_cast(ret_val); + } +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) + + #if !defined(__aarch64__) + TEST_BASELINE_SIGSYS(__NR_inotify_init) ++#if !defined(__powerpc64__) + TEST_BASELINE_SIGSYS(__NR_vserver) + #endif ++#endif + + #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS) + BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { +Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_stat.h +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_stat.h ++++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_stat.h +@@ -173,6 +173,28 @@ struct kernel_stat { + unsigned int __unused4; + unsigned int __unused5; + }; ++#elif defined(__powerpc64__) ++struct kernel_stat { ++ unsigned long st_dev; ++ ino_t st_ino; ++ unsigned long st_nlink; ++ mode_t st_mode; ++ uid_t st_uid; ++ gid_t st_gid; ++ unsigned long st_rdev; ++ long st_size; ++ unsigned long st_blksize; ++ unsigned long st_blocks; ++ // unsigned long st_atime; ++ unsigned long st_atime_nsec; ++ //unsigned long st_mtime; ++ unsigned long st_mtime_nsec; ++ //unsigned long st_ctime; ++ unsigned long st_ctime_nsec; ++ unsigned long __unused4; ++ unsigned long __unused5; ++ unsigned long __unused6; ++}; + #endif + + #if !defined(AT_EMPTY_PATH) +Index: chromium-140.0.7339.41/sandbox/linux/services/credentials.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/services/credentials.cc ++++ chromium-140.0.7339.41/sandbox/linux/services/credentials.cc +@@ -90,7 +90,7 @@ bool ChrootToSafeEmptyDir() { + alignas(16) char stack_buf[PTHREAD_STACK_MIN_CONST]; + + #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ +- defined(ARCH_CPU_MIPS_FAMILY) ++ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) + // The stack grows downward. + void* stack = stack_buf + sizeof(stack_buf); + #else +@@ -99,7 +99,8 @@ bool ChrootToSafeEmptyDir() { + + int clone_flags = CLONE_FS | LINUX_SIGCHLD; + void* tls = nullptr; +-#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY)) && \ ++#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY) || \ ++ defined(ARCH_CPU_PPC64_FAMILY)) && \ + !defined(MEMORY_SANITIZER) + // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. + // Since clone writes to the new child's TLS before returning, we must set a +@@ -107,6 +108,11 @@ bool ChrootToSafeEmptyDir() { + // glibc performs syscalls by calling a function pointer in TLS, so we do not + // attempt this optimization. + // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. ++ // ++ // NOTE: Without CLONE_VM, fontconfig will attempt to reload configuration ++ // in every thread. Since the rendered threads are sandboxed without ++ // filesystem access (e.g. to /etc/fonts/fonts.conf) this will cause font ++ // configuration loading failures and no fonts will be displayed! + clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; + + char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; +Index: chromium-140.0.7339.41/sandbox/policy/linux/bpf_utility_policy_linux.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-140.0.7339.41/sandbox/policy/linux/bpf_utility_policy_linux.cc +@@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat + case __NR_fdatasync: + case __NR_fsync: + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_getrlimit: + #endif + #if defined(__i386__) || defined(__arm__) +Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +=================================================================== +--- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +@@ -389,7 +389,16 @@ intptr_t SIGSYSFstatatHandler(const stru + if (args.nr == __NR_fstatat_default) { + if (*reinterpret_cast(args.args[1]) == '\0' && + args.args[3] == static_cast(AT_EMPTY_PATH)) { +- return syscall(__NR_fstat_default, static_cast(args.args[0]), ++ int fd = static_cast(args.args[0]); ++#if defined(__powerpc64__) ++ // On ppc64+glibc, some syscalls seem to accidentally negate the first ++ // parameter which causes checks against it to fail. For now, manually ++ // negate them back. ++ // TODO: Investigate the root cause and fix in glibc ++ if (fd < 0) ++ fd = -fd; ++#endif ++ return syscall(__NR_fstat_default, fd, + reinterpret_cast(args.args[2])); + } + return -reinterpret_cast(fs_denied_errno); diff --git a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch b/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch deleted file mode 100644 index 6fe84fa..0000000 --- a/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch +++ /dev/null @@ -1,80 +0,0 @@ -From 036d209a3f1a771de9aed31dfbe804aaf91d1c27 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 23:35:21 -0500 -Subject: [PATCH] sandbox/linux: Implement partial support for ppc64 syscalls - and ucontext - -Unlike other architectures, the ppc64 files currently rely on applicable -headers being provided by the system. It is sufficient for standard -GNU/Linux environments, but may require expansion elsewhere. ---- - sandbox/linux/BUILD.gn | 2 ++ - sandbox/linux/system_headers/linux_syscalls.h | 4 ++++ - sandbox/linux/system_headers/linux_ucontext.h | 2 ++ - sandbox/linux/system_headers/ppc64_linux_syscalls.h | 12 ++++++++++++ - sandbox/linux/system_headers/ppc64_linux_ucontext.h | 12 ++++++++++++ - 5 files changed, 32 insertions(+) - create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h - create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h - -Index: chromium-134.0.6998.35/sandbox/linux/BUILD.gn -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/BUILD.gn -+++ chromium-134.0.6998.35/sandbox/linux/BUILD.gn -@@ -384,6 +384,8 @@ component("sandbox_services") { - - source_set("sandbox_services_headers") { - sources = [ -+ "system_headers/ppc64_linux_syscalls.h", -+ "system_headers/ppc64_linux_ucontext.h", - "system_headers/arm64_linux_syscalls.h", - "system_headers/arm_linux_syscalls.h", - "system_headers/arm_linux_ucontext.h", -Index: chromium-134.0.6998.35/sandbox/linux/system_headers/linux_syscalls.h -=================================================================== ---- chromium-134.0.6998.35.orig/sandbox/linux/system_headers/linux_syscalls.h -+++ chromium-134.0.6998.35/sandbox/linux/system_headers/linux_syscalls.h -@@ -35,5 +35,9 @@ - #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" - #endif - -+#if defined(__powerpc64__) -+#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h" -+#endif -+ - #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ - -Index: chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_syscalls.h -=================================================================== ---- /dev/null -+++ chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_syscalls.h -@@ -0,0 +1,12 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -+ -+#include -+ -+//TODO: is it necessary to redefine syscall numbers for PPC64? -+ -+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -Index: chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_ucontext.h -=================================================================== ---- /dev/null -+++ chromium-134.0.6998.35/sandbox/linux/system_headers/ppc64_linux_ucontext.h -@@ -0,0 +1,12 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -+ -+#include -+ -+//TODO: is it necessary to redefine ucontext on PPC64? -+ -+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ diff --git a/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch b/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch deleted file mode 100644 index 771ca3a..0000000 --- a/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch +++ /dev/null @@ -1,22 +0,0 @@ -From c41cd6ac927f592b161abc04468d3c7a4be91995 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Tue, 23 Oct 2018 15:49:31 -0500 -Subject: [PATCH] sandbox/linux: Update IsSyscallAllowed in broker_process.cc - ---- - sandbox/linux/syscall_broker/broker_process.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: chromium-128.0.6613.113/sandbox/linux/syscall_broker/broker_process.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/syscall_broker/broker_process.cc -+++ chromium-128.0.6613.113/sandbox/linux/syscall_broker/broker_process.cc -@@ -169,7 +169,7 @@ bool BrokerProcess::IsSyscallBrokerable( - #if defined(__NR_fstatat64) - case __NR_fstatat64: - #endif --#if defined(__x86_64__) || defined(__aarch64__) -+#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_newfstatat: - #endif - return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); diff --git a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch deleted file mode 100644 index ac20b0c..0000000 --- a/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ /dev/null @@ -1,624 +0,0 @@ -From da52663deec77f705d7d58b18484c3e28e563f10 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Tue, 18 Sep 2018 18:39:28 -0500 -Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64 - ---- - .../seccomp-bpf-helpers/baseline_policy.cc | 8 +- - .../syscall_parameters_restrictions.cc | 2 +- - .../syscall_parameters_restrictions.h | 2 +- - .../linux/seccomp-bpf-helpers/syscall_sets.cc | 108 ++++++++++-------- - .../linux/seccomp-bpf-helpers/syscall_sets.h | 6 +- - sandbox/linux/services/syscall_wrappers.cc | 2 +- - 6 files changed, 73 insertions(+), 55 deletions(-) - -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -@@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) - SyscallSets::IsPrctl(sysno) || - SyscallSets::IsProcessGroupOrSession(sysno) || - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - SyscallSets::IsSocketCall(sysno) || - #endif - #if defined(__arm__) -@@ -258,7 +259,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de - - // TODO(crbug.com/40528912): should i386 really be in this list? - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - if (sysno == __NR_mmap) - return RestrictMmapFlags(); - #endif -@@ -340,7 +341,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de - } - - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - if (SyscallSets::IsSocketCall(sysno)) - return RestrictSocketcallCommand(); - #endif -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -39,7 +39,7 @@ - #include "sandbox/linux/system_headers/linux_syscalls.h" - #include "sandbox/linux/system_headers/linux_time.h" - --#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && \ -+#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && !defined(__powerpc64__) && \ - !defined(PTRACE_GET_THREAD_AREA) - // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance - // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -48,6 +48,11 @@ - #include - #endif - -+// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h -+#ifdef __powerpc64__ -+#include -+#endif -+ - #if BUILDFLAG(IS_ANDROID) - - #if !defined(F_DUPFD_CLOEXEC) -@@ -105,6 +110,15 @@ inline bool IsArchitectureMips() { - #endif - } - -+inline bool IsArchitecturePPC64() { -+#if defined(__powerpc64__) -+ return true; -+#else -+ return false; -+#endif -+} -+ -+ - // Ubuntu's version of glibc has a race condition in sem_post that can cause - // it to call futex(2) with bogus op arguments. To workaround this, we need - // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -272,9 +286,11 @@ ResultExpr RestrictFcntlCommands() { - // operator. - // Glibc overrides the kernel's O_LARGEFILE value. Account for this. - uint64_t kOLargeFileFlag = O_LARGEFILE; -- if (IsArchitectureX86_64() || IsArchitectureI386() || IsArchitectureMips()) -+ if (IsArchitectureX86_64() || IsArchitectureI386() || IsArchitectureMips() \ -+ || IsArchitecturePPC64()) - kOLargeFileFlag = 0100000; - -+ - const Arg cmd(1); - const Arg long_arg(2); - -@@ -297,8 +313,17 @@ ResultExpr RestrictFcntlCommands() { - F_SETLKW, - F_GETLK, - F_DUPFD, -- F_DUPFD_CLOEXEC}, -- Allow()) -+ F_DUPFD_CLOEXEC -+#if defined(__powerpc64__) -+// On PPC64, F_SETLK, F_GETLK, F_SETLKW are defined as the 64-bit variants -+// but glibc will sometimes still use the 32-bit versions. Allow both. -+ , -+ 5, /* F_GETLK (32) */ -+ 6, /* F_SETLK (32) */ -+ 7 /* F_SETLKW (32) */ -+#endif -+ }, -+ Allow()) - .Case(F_SETFL, - If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) - .Case(F_ADD_SEALS, -@@ -307,7 +332,7 @@ ResultExpr RestrictFcntlCommands() { - // clang-format on - } - --#if defined(__i386__) || defined(__mips__) -+#if defined(__i386__) || defined(__mips__) || defined(__powerpc64__) - ResultExpr RestrictSocketcallCommand() { - // Unfortunately, we are unable to restrict the first parameter to - // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -473,7 +498,7 @@ ResultExpr RestrictPtrace() { - #endif - return Switch(request) - .Cases({ --#if !defined(__aarch64__) -+#if !defined(__aarch64__) && !defined(__powerpc64__) - PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, - PTRACE_GETREGSET, - #endif -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -@@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr - // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. - SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); - --#if defined(__i386__) || defined(__mips__) -+#if defined(__i386__) || defined(__mips__) || defined(__powerpc64__) - // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), - // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). - SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -@@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s - switch (sysno) { - case __NR_gettimeofday: - #if defined(__i386__) || defined(__x86_64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_time: - #endif - return true; -@@ -52,12 +53,14 @@ bool SyscallSets::IsAllowedGettime(int s - case __NR_clock_nanosleep_time64: // Parameters filtered by RestrictClockID(). - #endif - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_ftime: // Obsolete. - #endif - case __NR_settimeofday: // Privileged. - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_stime: - #endif - default: -@@ -136,7 +139,7 @@ bool SyscallSets::IsFileSystem(int sysno - case __NR_faccessat2: - case __NR_fchmodat: - case __NR_fchownat: // Should be called chownat ? --#if defined(__x86_64__) || defined(__aarch64__) -+#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_newfstatat: // fstatat(). EPERM not a valid errno. - #elif defined(__i386__) || defined(__arm__) || \ - (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -@@ -155,7 +158,7 @@ bool SyscallSets::IsFileSystem(int sysno - case __NR_memfd_create: - case __NR_mkdirat: - case __NR_mknodat: --#if defined(__i386__) -+#if defined(__i386__) || defined(__powerpc64__) - case __NR_oldlstat: - case __NR_oldstat: - #endif -@@ -169,7 +172,8 @@ bool SyscallSets::IsFileSystem(int sysno - #endif - case __NR_statfs: // EPERM not a valid errno. - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_statfs64: - #endif - case __NR_statx: // EPERM not a valid errno. -@@ -180,7 +184,8 @@ bool SyscallSets::IsFileSystem(int sysno - case __NR_truncate64: - #endif - case __NR_unlinkat: --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_utime: - #endif - case __NR_utimensat: // New. -@@ -220,7 +225,8 @@ bool SyscallSets::IsAllowedFileSystemAcc - #endif - return true; - // TODO(jln): these should be denied gracefully as well (moved below). --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_fadvise64: // EPERM not a valid errno. - #endif - #if defined(__i386__) -@@ -233,11 +239,12 @@ bool SyscallSets::IsAllowedFileSystemAcc - case __NR_flock: // EPERM not a valid errno. - case __NR_fstatfs: // Give information about the whole filesystem. - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_fstatfs64: - #endif - case __NR_fsync: // EPERM not a valid errno. --#if defined(__i386__) -+#if defined(__i386__) || defined(__powerpc64__) - case __NR_oldfstat: - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -@@ -245,6 +252,8 @@ bool SyscallSets::IsAllowedFileSystemAcc - case __NR_sync_file_range: // EPERM not a valid errno. - #elif defined(__arm__) - case __NR_arm_sync_file_range: // EPERM not a valid errno. -+#elif defined(__powerpc64__) -+ case __NR_sync_file_range2: // EPERM not a valid errno. - #endif - default: - return false; -@@ -265,7 +274,8 @@ bool SyscallSets::IsDeniedFileSystemAcce - #endif - case __NR_getdents64: // EPERM not a valid errno. - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_readdir: - #endif - return true; -@@ -306,7 +316,7 @@ bool SyscallSets::IsGetSimpleId(int sysn - bool SyscallSets::IsProcessPrivilegeChange(int sysno) { - switch (sysno) { - case __NR_capset: --#if defined(__i386__) || defined(__x86_64__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__) - case __NR_ioperm: // Intel privilege. - case __NR_iopl: // Intel privilege. - #endif -@@ -362,7 +372,8 @@ bool SyscallSets::IsAllowedSignalHandlin - // overflow. - case __NR_sigaltstack: - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_rt_sigtimedwait_time64: - case __NR_sigaction: - case __NR_sigprocmask: -@@ -378,7 +389,8 @@ bool SyscallSets::IsAllowedSignalHandlin - #endif - case __NR_signalfd4: - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_sigpending: - case __NR_sigsuspend: - #endif -@@ -402,7 +414,7 @@ bool SyscallSets::IsAllowedOperationOnFd - #endif - case __NR_dup3: - #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_shutdown: - #endif - return true; -@@ -435,7 +447,7 @@ bool SyscallSets::IsAllowedProcessStartO - case __NR_exit_group: - case __NR_wait4: - case __NR_waitid: --#if defined(__i386__) -+#if defined(__i386__) || defined(__powerpc64__) - case __NR_waitpid: - #endif - return true; -@@ -499,7 +511,7 @@ bool SyscallSets::IsAllowedEpoll(int sys - bool SyscallSets::IsDeniedGetOrModifySocket(int sysno) { - switch (sysno) { - #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_accept: - case __NR_accept4: - case __NR_bind: -@@ -514,7 +526,8 @@ bool SyscallSets::IsDeniedGetOrModifySoc - } - - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - // Big multiplexing system call for sockets. - bool SyscallSets::IsSocketCall(int sysno) { - switch (sysno) { -@@ -528,7 +541,8 @@ bool SyscallSets::IsSocketCall(int sysno - } - #endif - --#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) -+#if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -+ defined(__powerpc64__) - bool SyscallSets::IsNetworkSocketInformation(int sysno) { - switch (sysno) { - case __NR_getpeername: -@@ -554,7 +568,7 @@ bool SyscallSets::IsAllowedAddressSpaceA - case __NR_mincore: - case __NR_mlockall: - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_mmap: - #endif - #if defined(__i386__) || defined(__arm__) || \ -@@ -584,7 +598,8 @@ bool SyscallSets::IsAllowedGeneralIo(int - switch (sysno) { - case __NR_lseek: - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR__llseek: - #endif - #if !defined(__aarch64__) -@@ -604,18 +619,19 @@ bool SyscallSets::IsAllowedGeneralIo(int - case __NR_readv: - case __NR_pread64: - #if defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_recv: - #endif - #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_recvfrom: // Could specify source. - case __NR_recvmsg: // Could specify source. - #endif --#if defined(__i386__) || defined(__x86_64__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__) - case __NR_select: - #endif --#if defined(__i386__) || defined(__arm__) || defined(__mips__) -+#if defined(__i386__) || defined(__arm__) || defined(__mips__) || defined(__powerpc64__) - case __NR__newselect: - #endif - case __NR_write: -@@ -635,11 +651,12 @@ bool SyscallSets::IsAllowedGeneralIo(int - case __NR_vmsplice: - // send* syscalls need their flags filtered. - #if defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_send: - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -- defined(__mips__) || defined(__aarch64__) -+ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_sendmsg: // Could specify destination. - case __NR_sendto: // Could specify destination. - #endif -@@ -697,7 +714,8 @@ bool SyscallSets::IsAllowedBasicSchedule - return true; - case __NR_getpriority: - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_nice: - #endif - case __NR_setpriority: -@@ -709,7 +727,8 @@ bool SyscallSets::IsAllowedBasicSchedule - bool SyscallSets::IsAdminOperation(int sysno) { - switch (sysno) { - #if defined(__i386__) || defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_bdflush: - #endif - case __NR_kexec_load: -@@ -725,7 +744,8 @@ bool SyscallSets::IsAdminOperation(int s - - bool SyscallSets::IsKernelModule(int sysno) { - switch (sysno) { --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_create_module: - case __NR_get_kernel_syms: // Should ENOSYS. - case __NR_query_module: -@@ -758,7 +778,8 @@ bool SyscallSets::IsFsControl(int sysno) - case __NR_swapoff: - case __NR_swapon: - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_umount: - #endif - case __NR_umount2: -@@ -774,7 +795,7 @@ bool SyscallSets::IsNuma(int sysno) { - case __NR_getcpu: - case __NR_mbind: - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_migrate_pages: - #endif - case __NR_move_pages: -@@ -809,14 +830,15 @@ bool SyscallSets::IsGlobalProcessEnviron - switch (sysno) { - case __NR_acct: // Privileged. - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_getrlimit: - #endif --#if defined(__i386__) || defined(__arm__) -+#if defined(__i386__) || defined(__arm__) || defined(__powerpc64__) - case __NR_ugetrlimit: - #endif - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_ulimit: - #endif - case __NR_getrusage: -@@ -850,7 +872,7 @@ bool SyscallSets::IsGlobalSystemStatus(i - #endif - case __NR_sysinfo: - case __NR_uname: --#if defined(__i386__) -+#if defined(__i386__) || defined(__powerpc64__) - case __NR_olduname: - case __NR_oldolduname: - #endif -@@ -934,7 +956,8 @@ bool SyscallSets::IsSystemVSemaphores(in - - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ - defined(__aarch64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(__powerpc64__) - // These give a lot of ambient authority and bypass the setuid sandbox. - bool SyscallSets::IsSystemVSharedMemory(int sysno) { - switch (sysno) { -@@ -965,7 +988,8 @@ bool SyscallSets::IsSystemVMessageQueue( - #endif - - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - // Big system V multiplexing system call. - bool SyscallSets::IsSystemVIpc(int sysno) { - switch (sysno) { -@@ -985,7 +1009,8 @@ bool SyscallSets::IsAnySystemV(int sysno - return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || - IsSystemVSharedMemory(sysno); - #elif defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - return IsSystemVIpc(sysno); - #endif - } -@@ -1042,7 +1067,8 @@ bool SyscallSets::IsFaNotify(int sysno) - bool SyscallSets::IsTimer(int sysno) { - switch (sysno) { - case __NR_getitimer: --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_alarm: - #endif - case __NR_setitimer: -@@ -1121,18 +1147,22 @@ bool SyscallSets::IsMisc(int sysno) { - case __NR_syncfs: - case __NR_vhangup: - // The system calls below are not implemented. --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_afs_syscall: - #endif - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_break: - #endif --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_getpmsg: - #endif - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_gtty: - case __NR_idle: - case __NR_lock: -@@ -1140,20 +1170,22 @@ bool SyscallSets::IsMisc(int sysno) { - case __NR_prof: - case __NR_profil: - #endif --#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -+ defined(__powerpc64__) - case __NR_putpmsg: - #endif - #if defined(__x86_64__) - case __NR_security: - #endif - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_stty: - #endif --#if defined(__x86_64__) -+#if defined(__x86_64__) || defined(__powerpc64__) - case __NR_tuxcall: - #endif --#if !defined(__aarch64__) -+#if !defined(__aarch64__) && !defined(__powerpc64__) - case __NR_vserver: - #endif - return true; -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -@@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { - static bool IsDeniedGetOrModifySocket(int sysno); - - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - // Big multiplexing system call for sockets. - static bool IsSocketCall(int sysno); - #endif - - #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - static bool IsNetworkSocketInformation(int sysno); - #endif - -@@ -85,7 +86,8 @@ class SANDBOX_EXPORT SyscallSets { - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ - defined(__aarch64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(__powerpc64__) - // These give a lot of ambient authority and bypass the setuid sandbox. - static bool IsSystemVSharedMemory(int sysno); - #endif -@@ -96,7 +98,8 @@ class SANDBOX_EXPORT SyscallSets { - #endif - - #if defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - // Big system V multiplexing system call. - static bool IsSystemVIpc(int sysno); - #endif -Index: chromium-139.0.7258.66/sandbox/linux/services/syscall_wrappers.cc -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-139.0.7258.66/sandbox/linux/services/syscall_wrappers.cc -@@ -66,7 +66,7 @@ long sys_clone(unsigned long flags, - #if defined(ARCH_CPU_X86_64) - return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); - #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ -- defined(ARCH_CPU_MIPS_FAMILY) -+ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) - // CONFIG_CLONE_BACKWARDS defined. - return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); - #endif diff --git a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch b/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch deleted file mode 100644 index 2cc51a1..0000000 --- a/0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch +++ /dev/null @@ -1,27 +0,0 @@ -From c9043a422fb4a5a6c72aaa1b907cea5f6a3061dd Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 19:10:24 -0500 -Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64 - ---- - sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++ - 1 file changed, 7 insertions(+) - -Index: chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -=================================================================== ---- chromium-137.0.7151.40.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -@@ -56,6 +56,13 @@ - #define MAX_PUBLIC_SYSCALL __NR_syscalls - #define MAX_SYSCALL MAX_PUBLIC_SYSCALL - -+#elif defined(__powerpc64__) -+ -+#include -+#define MIN_SYSCALL 0u -+#define MAX_PUBLIC_SYSCALL __NR_syscalls -+#define MAX_SYSCALL MAX_PUBLIC_SYSCALL -+ - #else - #error "Unsupported architecture" - #endif diff --git a/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch b/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch deleted file mode 100644 index 91ce82c..0000000 --- a/0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 7468b266532bd607eb1f5292d758256d800b2eee Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Fri, 10 Aug 2018 00:23:50 -0500 -Subject: [PATCH] services/service_manager/sandbox/linux: Fix TCGETS - declaration on PPC64 - ---- - .../sandbox/linux/bpf_renderer_policy_linux.cc | 5 +++++ - 1 file changed, 5 insertions(+) - -Index: chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-128.0.6613.113/sandbox/policy/linux/bpf_renderer_policy_linux.cc -@@ -15,6 +15,11 @@ - #include "sandbox/linux/system_headers/linux_syscalls.h" - #include "sandbox/policy/linux/sandbox_linux.h" - -+// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h -+#ifdef __powerpc64__ -+#include -+#endif -+ - // TODO(vignatti): replace the local definitions below with #include - // once kernel version 4.6 becomes widely used. - #include diff --git a/0001-swiftshader-fix-build.patch b/0001-swiftshader-fix-build.patch index 0166bd6..4588a4d 100644 --- a/0001-swiftshader-fix-build.patch +++ b/0001-swiftshader-fix-build.patch @@ -1,11 +1,20 @@ ---- a/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn -+++ b/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn -@@ -1258,6 +1258,8 @@ +Description: fix swiftshader build issue on ppc64el +Origin: vendor, https://gitlab.raptorengineering.com/raptor-engineering-public/chromium/openpower-patches/-/blob/chromium-131/patches/ppc64le/third_party/0001-swiftshader-fix-build.patch +Bug: https://buildd.debian.org/status/fetch.php?pkg=chromium&arch=ppc64el&ver=131.0.6778.204-1&stamp=1734633529&raw=0 +Last-Update: 2024-12-20 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: chromium-140.0.7339.41/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn ++++ chromium-140.0.7339.41/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn +@@ -1599,6 +1599,9 @@ swiftshader_llvm_source_set("swiftshader "llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp", "llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp", "llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp", + "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp", + "llvm/lib/MC/MCAsmInfoXCOFF.cpp", ++ "llvm/lib/MC/MCInstrInfo.cpp", ] } diff --git a/0001-third-party-hwy-wrong-include.patch b/0001-third-party-hwy-wrong-include.patch index c9aa77b..559cc87 100644 --- a/0001-third-party-hwy-wrong-include.patch +++ b/0001-third-party-hwy-wrong-include.patch @@ -1,5 +1,7 @@ ---- a/third_party/highway/src/hwy/targets.cc -+++ b/third_party/highway/src/hwy/targets.cc +Index: chromium-140.0.7339.41/third_party/highway/src/hwy/targets.cc +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/highway/src/hwy/targets.cc ++++ chromium-140.0.7339.41/third_party/highway/src/hwy/targets.cc @@ -35,7 +35,7 @@ HWY_OS_LINUX // sys/auxv.h does not always include asm/hwcap.h, or define HWCAP*, hence we diff --git a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch index 52ccbcf..bbe406a 100644 --- a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch +++ b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/angle/src/libANGLE/Constants.h +Index: chromium-140.0.7339.41/third_party/angle/src/libANGLE/Constants.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/angle/src/libANGLE/Constants.h -+++ chromium-128.0.6613.113/third_party/angle/src/libANGLE/Constants.h +--- chromium-140.0.7339.41.orig/third_party/angle/src/libANGLE/Constants.h ++++ chromium-140.0.7339.41/third_party/angle/src/libANGLE/Constants.h @@ -9,6 +9,7 @@ #ifndef LIBANGLE_CONSTANTS_H_ #define LIBANGLE_CONSTANTS_H_ diff --git a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch index 5edd290..3dd4ab9 100644 --- a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch +++ b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch @@ -8,11 +8,11 @@ Subject: [PATCH] third_party/libvpx: Properly generate gni on ppc64 third_party/libvpx/generate_gni.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) -Index: chromium-128.0.6613.113/third_party/libvpx/BUILD.gn +Index: chromium-140.0.7339.41/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/third_party/libvpx/BUILD.gn -+++ chromium-128.0.6613.113/third_party/libvpx/BUILD.gn -@@ -320,6 +320,8 @@ if (current_cpu == "x86" || (current_cpu +--- chromium-140.0.7339.41.orig/third_party/libvpx/BUILD.gn ++++ chromium-140.0.7339.41/third_party/libvpx/BUILD.gn +@@ -297,6 +297,8 @@ if (current_cpu == "x86" || (current_cpu } else if (current_cpu == "x64") { deps = [ ":libvpx_x86_64_headers" ] sources = libvpx_srcs_x86_64_avx512 diff --git a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch index 83983b4..c324852 100644 --- a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch +++ b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/pffft: Include altivec.h on ppc64 with SIMD third_party/pffft/src/pffft.c | 1 + 1 file changed, 1 insertion(+) -Index: chromium-128.0.6613.113/third_party/pffft/src/pffft.c +Index: chromium-140.0.7339.41/third_party/pffft/src/pffft.c =================================================================== ---- chromium-128.0.6613.113.orig/third_party/pffft/src/pffft.c -+++ chromium-128.0.6613.113/third_party/pffft/src/pffft.c +--- chromium-140.0.7339.41.orig/third_party/pffft/src/pffft.c ++++ chromium-140.0.7339.41/third_party/pffft/src/pffft.c @@ -100,6 +100,7 @@ Altivec support macros */ diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index e9c95a0..6369cfe 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,10 +4271,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake +Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake @@ -120,6 +120,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S @@ -4291,7 +4291,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake gen/bcm/ghashv8-armv7-linux.S gen/bcm/ghashv8-armv8-apple.S gen/bcm/ghashv8-armv8-linux.S -@@ -347,6 +349,7 @@ set( +@@ -350,6 +352,7 @@ set( crypto/cpu_arm_freebsd.cc crypto/cpu_arm_linux.cc crypto/cpu_intel.cc @@ -4299,7 +4299,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake crypto/crypto.cc crypto/curve25519/curve25519.cc crypto/curve25519/curve25519_64_adx.cc -@@ -2864,6 +2867,7 @@ set( +@@ -2925,6 +2928,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -4307,10 +4307,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json +Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-136.0.7103.48.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json +--- chromium-140.0.7339.41.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json @@ -98,6 +98,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", @@ -4327,7 +4327,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json "gen/bcm/ghashv8-armv7-linux.S", "gen/bcm/ghashv8-armv8-apple.S", "gen/bcm/ghashv8-armv8-linux.S", -@@ -317,6 +319,7 @@ +@@ -320,6 +322,7 @@ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", @@ -4335,7 +4335,7 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -2784,6 +2787,7 @@ +@@ -2841,6 +2844,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -4343,10 +4343,10 @@ Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-136.0.7103.48/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-140.0.7339.41/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-Add-ppc64-trap-instructions.patch b/0002-Add-ppc64-trap-instructions.patch index be67b9b..e76ea40 100644 --- a/0002-Add-ppc64-trap-instructions.patch +++ b/0002-Add-ppc64-trap-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/v8/src/base/immediate-crash.h +Index: chromium-140.0.7339.41/v8/src/base/immediate-crash.h =================================================================== ---- chromium-128.0.6613.113.orig/v8/src/base/immediate-crash.h -+++ chromium-128.0.6613.113/v8/src/base/immediate-crash.h +--- chromium-140.0.7339.41.orig/v8/src/base/immediate-crash.h ++++ chromium-140.0.7339.41/v8/src/base/immediate-crash.h @@ -98,6 +98,13 @@ #define TRAP_SEQUENCE1_() asm volatile(".2byte 0x0001"); #define TRAP_SEQUENCE2_() asm volatile("") diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch index 4900154..1e68d85 100644 --- a/0002-regenerate-xnn-buildgn.patch +++ b/0002-regenerate-xnn-buildgn.patch @@ -1,19 +1,10 @@ File regenerated by running 'python3 generate_build_gn.py' -Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn +Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn =================================================================== ---- chromium-139.0.7258.66.orig/third_party/xnnpack/BUILD.gn -+++ chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn -@@ -26,7 +26,7 @@ config("xnnpack_config") { - "src", - ] - -- cflags = [ -+ cflags=[ - "-Wno-unused-function", - "-Wno-deprecated-comma-subscript", - ] -@@ -36,13 +36,15 @@ config("xnnpack_config") { +--- chromium-140.0.7339.41.orig/third_party/xnnpack/BUILD.gn ++++ chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn +@@ -32,10 +32,10 @@ config("xnnpack_public_config") { } defines = [ @@ -27,13 +18,18 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + ] + xnn_defines } + config("xnnpack_private_config") { +@@ -45,7 +45,9 @@ config("xnnpack_private_config") { + ] + } + + if (current_cpu == "x64" || current_cpu == "x86") { + xnnpack_deps = [ ":configs_x64", ":enums_x64", -@@ -540,7 +542,7 @@ if (current_cpu == "x64" || current_cpu +@@ -547,515 +549,517 @@ if (current_cpu == "x64" || current_cpu ":xx-fill_x64", ":xx-pad_sse2-no-sse3", ":xx-pad_x64", @@ -41,129 +37,1012 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + ":xx-transposev_x64" ] - xnnpack_standalone_deps = [ -@@ -567,8 +569,8 @@ if (current_cpu == "x64" || current_cpu - ":f16-qu8-vcvt_x64_standalone", - ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", - ":f16-rdminmax_x64_standalone", -- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", - ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + if (build_with_internal_optimization_guide) { + xnnpack_standalone_deps = [ +- ":configs_x64_standalone", +- ":enums_x64_standalone", +- ":f16-avgpool_f16c-no-avx2-no-fma_standalone", +- ":f16-dwconv_f16c-fma-no-avx2_standalone", +- ":f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32-vcvt_f16c-no-avx2-no-fma_standalone", +- ":f16-f32-vcvt_sse2-no-sse3_standalone", +- ":f16-f32-vcvt_sse4.1-no-sse4.2_standalone", +- ":f16-f32-vcvt_x64_standalone", +- ":f16-f32acc-gemm_f16c-fma-avx2_standalone", +- ":f16-f32acc-igemm_f16c-fma-avx2_standalone", +- ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone", +- ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone", +- ":f16-ibilinear_f16c-fma-no-avx2_standalone", +- ":f16-maxpool_f16c-fma-avx2_standalone", +- ":f16-maxpool_sse4.1-no-sse4.2_standalone", +- ":f16-qs8-vcvt_x64_standalone", +- ":f16-qu8-vcvt_x64_standalone", +- ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", +- ":f16-rdminmax_x64_standalone", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-rminmax_f16c-no-avx2-no-fma_standalone", +- ":f16-rminmax_x64_standalone", +- ":f16-vapproxgelu_x64_standalone", +- ":f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", +- ":f16-vbinary_f16c-no-avx2-no-fma_standalone", +- ":f16-vclamp_f16c-no-avx2-no-fma_standalone", +- ":f16-vcos_x64_standalone", +- ":f16-velu_f16c-fma-avx2_standalone", +- ":f16-vexp_x64_standalone", +- ":f16-vgelu_x64_standalone", +- ":f16-vhswish_f16c-no-avx2-no-fma_standalone", +- ":f16-vlrelu_f16c-no-avx2-no-fma_standalone", +- ":f16-vmulcaddc_f16c-fma-no-avx2_standalone", +- ":f16-vrnd_f16c-no-avx2-no-fma_standalone", +- ":f16-vrsqrt_f16c-no-avx2-no-fma_standalone", +- ":f16-vsigmoid_f16c-fma-avx2_standalone", +- ":f16-vsin_x64_standalone", +- ":f16-vsqrt_f16c-no-avx2-no-fma_standalone", +- ":f16-vtanh_f16c-fma-no-avx2_standalone", +- ":f16-vtanh_f16c-no-avx2-no-fma_standalone", +- ":f16-vunary_f16c-no-avx2-no-fma_standalone", +- ":f16-vunary_sse2-no-sse3_standalone", +- ":f32-argmaxpool_sse2-no-sse3_standalone", +- ":f32-argmaxpool_x64_standalone", +- ":f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-avgpool_avx512f_standalone", +- ":f32-avgpool_sse2-no-sse3_standalone", +- ":f32-avgpool_x64_standalone", +- ":f32-conv-hwc2chw_sse-no-sse2_standalone", +- ":f32-conv-hwc2chw_x64_standalone", +- ":f32-dwconv2d-chw_sse-no-sse2_standalone", +- ":f32-dwconv2d-chw_ssse3-no-sse4.1_standalone", +- ":f32-dwconv2d-chw_x64_standalone", +- ":f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-dwconv_avx512f_standalone", +- ":f32-dwconv_f16c-fma-no-avx2_standalone", +- ":f32-dwconv_sse-no-sse2_standalone", +- ":f32-dwconv_x64_standalone", +- ":f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-f16-vcvt_f16c-no-avx2-no-fma_standalone", +- ":f32-f16-vcvt_sse2-no-sse3_standalone", +- ":f32-f16-vcvt_sse4.1-no-sse4.2_standalone", +- ":f32-f16-vcvt_x64_standalone", +- ":f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-gemm_avx512f_standalone", +- ":f32-gemm_f16c-fma-no-avx2_standalone", +- ":f32-gemm_sse-no-sse2_standalone", +- ":f32-gemm_x64_standalone", +- ":f32-ibilinear-chw_sse-no-sse2_standalone", +- ":f32-ibilinear-chw_x64_standalone", +- ":f32-ibilinear_sse-no-sse2_standalone", +- ":f32-ibilinear_x64_standalone", +- ":f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-igemm_avx512f_standalone", +- ":f32-igemm_f16c-fma-no-avx2_standalone", +- ":f32-igemm_sse-no-sse2_standalone", +- ":f32-igemm_x64_standalone", +- ":f32-maxpool_sse2-no-sse3_standalone", +- ":f32-maxpool_x64_standalone", +- ":f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qc4w-gemm_f16c-fma-avx2_standalone", +- ":f32-qc4w-gemm_f16c-fma-no-avx2_standalone", +- ":f32-qc4w-gemm_sse4.1-no-sse4.2_standalone", +- ":f32-qc4w-gemm_x64_standalone", +- ":f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qc8w-gemm_f16c-fma-avx2_standalone", +- ":f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-qc8w-gemm_f16c-fma-no-avx2_standalone", +- ":f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", +- ":f32-qc8w-gemm_x64_standalone", +- ":f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qs8-vcvt_f16c-fma-avx2_standalone", +- ":f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-qs8-vcvt_sse2-no-sse3_standalone", +- ":f32-qs8-vcvt_sse4.1-no-sse4.2_standalone", +- ":f32-qs8-vcvt_x64_standalone", +- ":f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qu8-vcvt_f16c-fma-avx2_standalone", +- ":f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-qu8-vcvt_sse2-no-sse3_standalone", +- ":f32-qu8-vcvt_x64_standalone", +- ":f32-raddstoreexpminusmax_avx512f_standalone", +- ":f32-raddstoreexpminusmax_f16c-fma-avx2_standalone", +- ":f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-raddstoreexpminusmax_sse2-no-sse3_standalone", +- ":f32-raddstoreexpminusmax_x64_standalone", +- ":f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rdminmax_avx512f_standalone", +- ":f32-rdminmax_sse2-no-sse3_standalone", +- ":f32-rdminmax_x64_standalone", +- ":f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rdsum_avx512f_standalone", +- ":f32-rdsum_sse2-no-sse3_standalone", +- ":f32-rdsum_x64_standalone", +- ":f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rminmax_avx512f_standalone", +- ":f32-rminmax_sse-no-sse2_standalone", +- ":f32-rminmax_x64_standalone", +- ":f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rsum_avx512f_standalone", +- ":f32-rsum_sse2-no-sse3_standalone", +- ":f32-rsum_x64_standalone", +- ":f32-spmm_sse-no-sse2_standalone", +- ":f32-spmm_x64_standalone", +- ":f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vapproxgelu_avx512f_standalone", +- ":f32-vapproxgelu_f16c-fma-no-avx2_standalone", +- ":f32-vapproxgelu_sse2-no-sse3_standalone", +- ":f32-vapproxgelu_x64_standalone", +- ":f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vbinary_avx512f_standalone", +- ":f32-vbinary_sse-no-sse2_standalone", +- ":f32-vbinary_sse2-no-sse3_standalone", +- ":f32-vbinary_x64_standalone", +- ":f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vclamp_avx512f_standalone", +- ":f32-vclamp_sse2-no-sse3_standalone", +- ":f32-vclamp_x64_standalone", +- ":f32-vcmul_avx512f_standalone", +- ":f32-vcmul_f16c-fma-no-avx2_standalone", +- ":f32-vcmul_sse-no-sse2_standalone", +- ":f32-vcmul_x64_standalone", +- ":f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vcopysign_avx512f_standalone", +- ":f32-vcopysign_sse2-no-sse3_standalone", +- ":f32-vcopysign_x64_standalone", +- ":f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vcos_avx512f_standalone", +- ":f32-vcos_f16c-fma-no-avx2_standalone", +- ":f32-vcos_sse2-no-sse3_standalone", +- ":f32-vcos_x64_standalone", +- ":f32-velu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-velu_avx512f_standalone", +- ":f32-velu_f16c-fma-avx2_standalone", +- ":f32-velu_sse2-no-sse3_standalone", +- ":f32-velu_x64_standalone", +- ":f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vexp_avx512f_standalone", +- ":f32-vexp_f16c-fma-no-avx2_standalone", +- ":f32-vexp_sse2-no-sse3_standalone", +- ":f32-vexp_x64_standalone", +- ":f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vgelu_avx512f_standalone", +- ":f32-vgelu_f16c-fma-no-avx2_standalone", +- ":f32-vgelu_sse2-no-sse3_standalone", +- ":f32-vgelu_x64_standalone", +- ":f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vhswish_avx512f_standalone", +- ":f32-vhswish_f16c-fma-no-avx2_standalone", +- ":f32-vhswish_sse2-no-sse3_standalone", +- ":f32-vhswish_x64_standalone", +- ":f32-vlog_avx512f_standalone", +- ":f32-vlog_f16c-fma-avx2_standalone", +- ":f32-vlog_f16c-fma-no-avx2_standalone", +- ":f32-vlog_sse2-no-sse3_standalone", +- ":f32-vlog_x64_standalone", +- ":f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vlrelu_avx512f_standalone", +- ":f32-vlrelu_sse-no-sse2_standalone", +- ":f32-vlrelu_sse4.1-no-sse4.2_standalone", +- ":f32-vlrelu_x64_standalone", +- ":f32-vmulcaddc_sse-no-sse2_standalone", +- ":f32-vmulcaddc_x64_standalone", +- ":f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vrnd_avx512f_standalone", +- ":f32-vrnd_sse2-no-sse3_standalone", +- ":f32-vrnd_sse4.1-no-sse4.2_standalone", +- ":f32-vrnd_x64_standalone", +- ":f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vrsqrt_avx512f_standalone", +- ":f32-vrsqrt_sse2-no-sse3_standalone", +- ":f32-vrsqrt_x64_standalone", +- ":f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vsigmoid_avx512f_standalone", +- ":f32-vsigmoid_f16c-fma-avx2_standalone", +- ":f32-vsigmoid_sse2-no-sse3_standalone", +- ":f32-vsigmoid_sse4.1-no-sse4.2_standalone", +- ":f32-vsigmoid_x64_standalone", +- ":f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vsin_avx512f_standalone", +- ":f32-vsin_f16c-fma-no-avx2_standalone", +- ":f32-vsin_sse2-no-sse3_standalone", +- ":f32-vsin_x64_standalone", +- ":f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vsqrt_avx512f_standalone", +- ":f32-vsqrt_sse2-no-sse3_standalone", +- ":f32-vsqrt_x64_standalone", +- ":f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vtanh_avx512f_standalone", +- ":f32-vtanh_f16c-fma-no-avx2_standalone", +- ":f32-vtanh_sse2-no-sse3_standalone", +- ":f32-vtanh_x64_standalone", +- ":f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vunary_avx512f_standalone", +- ":f32-vunary_sse2-no-sse3_standalone", +- ":f32-vunary_x64_standalone", +- ":operators_x64_standalone", +- ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", +- ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", +- ":qd8-f32-qb4w-gemm_x64_standalone", +- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", +- ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", +- ":qd8-f32-qc4w-gemm_x64_standalone", +- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", +- ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", +- ":qd8-f32-qc8w-gemm_x64_standalone", +- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", +- ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", +- ":qd8-f32-qc8w-igemm_x64_standalone", +- ":qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-dwconv_f16c-fma-avx2_standalone", +- ":qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-dwconv_sse2-no-sse3_standalone", +- ":qs8-dwconv_sse4.1-no-sse4.2_standalone", +- ":qs8-dwconv_x64_standalone", +- ":qs8-f16-vcvt_f16c-fma-avx2_standalone", +- ":qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-f32-vcvt_f16c-fma-avx2_standalone", +- ":qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-f32-vcvt_sse2-no-sse3_standalone", +- ":qs8-f32-vcvt_sse4.1-no-sse4.2_standalone", +- ":qs8-f32-vcvt_x64_standalone", +- ":qs8-packw_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-packw_f16c-fma-avx2_standalone", +- ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-packw_x64_standalone", +- ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qs8-qc4w-gemm_ssse3-no-sse4.1_standalone", +- ":qs8-qc4w-gemm_x64_standalone", +- ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc8w-dwconv_f16c-fma-avx2_standalone", +- ":qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc8w-dwconv_sse2-no-sse3_standalone", +- ":qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone", +- ":qs8-qc8w-dwconv_x64_standalone", +- ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc8w-gemm_sse2-no-sse3_standalone", +- ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", +- ":qs8-qc8w-gemm_x64_standalone", +- ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc8w-igemm_sse2-no-sse3_standalone", +- ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", +- ":qs8-qc8w-igemm_x64_standalone", +- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qu8-packw_x64_standalone", +- ":qs8-rdsum_f16c-fma-avx2_standalone", +- ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-rdsum_sse4.1-no-sse4.2_standalone", +- ":qs8-rdsum_x64_standalone", +- ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-rsum_f16c-fma-avx2_standalone", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-rsum_ssse3-no-sse4.1_standalone", +- ":qs8-rsum_x64_standalone", +- ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vadd_f16c-fma-avx2_standalone", +- ":qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-vadd_sse2-no-sse3_standalone", +- ":qs8-vadd_sse4.1-no-sse4.2_standalone", +- ":qs8-vadd_x64_standalone", +- ":qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vaddc_f16c-fma-avx2_standalone", +- ":qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-vaddc_sse2-no-sse3_standalone", +- ":qs8-vaddc_sse4.1-no-sse4.2_standalone", +- ":qs8-vaddc_x64_standalone", +- ":qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vcvt_f16c-fma-avx2_standalone", +- ":qs8-vcvt_sse2-no-sse3_standalone", +- ":qs8-vcvt_sse4.1-no-sse4.2_standalone", +- ":qs8-vcvt_ssse3-no-sse4.1_standalone", +- ":qs8-vcvt_x64_standalone", +- ":qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vlrelu_f16c-fma-avx2_standalone", +- ":qs8-vlrelu_sse2-no-sse3_standalone", +- ":qs8-vlrelu_sse4.1-no-sse4.2_standalone", +- ":qs8-vlrelu_ssse3-no-sse4.1_standalone", +- ":qs8-vlrelu_x64_standalone", +- ":qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vmul_sse2-no-sse3_standalone", +- ":qs8-vmul_sse4.1-no-sse4.2_standalone", +- ":qs8-vmul_x64_standalone", +- ":qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vmulc_sse2-no-sse3_standalone", +- ":qs8-vmulc_sse4.1-no-sse4.2_standalone", +- ":qs8-vmulc_x64_standalone", +- ":qs8-vprelu_f16c-fma-avx2_standalone", +- ":qs8-vprelu_x64_standalone", +- ":qs8-vpreluc_f16c-fma-avx2_standalone", +- ":qs8-vpreluc_x64_standalone", +- ":qs8-vrpreluc_f16c-fma-avx2_standalone", +- ":qs8-vrpreluc_x64_standalone", +- ":qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-dwconv_f16c-fma-avx2_standalone", +- ":qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-dwconv_sse2-no-sse3_standalone", +- ":qu8-dwconv_sse4.1-no-sse4.2_standalone", +- ":qu8-dwconv_x64_standalone", +- ":qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-f32-vcvt_f16c-fma-avx2_standalone", +- ":qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-f32-vcvt_sse2-no-sse3_standalone", +- ":qu8-f32-vcvt_sse4.1-no-sse4.2_standalone", +- ":qu8-f32-vcvt_x64_standalone", +- ":qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-gemm_f16c-fma-avx2_standalone", +- ":qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-gemm_sse2-no-sse3_standalone", +- ":qu8-gemm_sse4.1-no-sse4.2_standalone", +- ":qu8-gemm_x64_standalone", +- ":qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-igemm_f16c-fma-avx2_standalone", +- ":qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-igemm_sse2-no-sse3_standalone", +- ":qu8-igemm_sse4.1-no-sse4.2_standalone", +- ":qu8-igemm_x64_standalone", +- ":qu8-rdsum_ssse3-no-sse4.1_standalone", +- ":qu8-rdsum_x64_standalone", +- ":qu8-rsum_f16c-fma-avx2_standalone", +- ":qu8-rsum_sse2-no-sse3_standalone", +- ":qu8-rsum_x64_standalone", +- ":qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vadd_f16c-fma-avx2_standalone", +- ":qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-vadd_sse2-no-sse3_standalone", +- ":qu8-vadd_sse4.1-no-sse4.2_standalone", +- ":qu8-vadd_x64_standalone", +- ":qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vaddc_f16c-fma-avx2_standalone", +- ":qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-vaddc_sse2-no-sse3_standalone", +- ":qu8-vaddc_sse4.1-no-sse4.2_standalone", +- ":qu8-vaddc_x64_standalone", +- ":qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vcvt_f16c-fma-avx2_standalone", +- ":qu8-vcvt_sse2-no-sse3_standalone", +- ":qu8-vcvt_sse4.1-no-sse4.2_standalone", +- ":qu8-vcvt_ssse3-no-sse4.1_standalone", +- ":qu8-vcvt_x64_standalone", +- ":qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vlrelu_f16c-fma-avx2_standalone", +- ":qu8-vlrelu_sse2-no-sse3_standalone", +- ":qu8-vlrelu_sse4.1-no-sse4.2_standalone", +- ":qu8-vlrelu_ssse3-no-sse4.1_standalone", +- ":qu8-vlrelu_x64_standalone", +- ":qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vmul_sse2-no-sse3_standalone", +- ":qu8-vmul_sse4.1-no-sse4.2_standalone", +- ":qu8-vmul_x64_standalone", +- ":qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vmulc_sse2-no-sse3_standalone", +- ":qu8-vmulc_sse4.1-no-sse4.2_standalone", +- ":qu8-vmulc_x64_standalone", +- ":qu8-vprelu_f16c-fma-avx2_standalone", +- ":qu8-vprelu_x64_standalone", +- ":qu8-vpreluc_f16c-fma-avx2_standalone", +- ":qu8-vpreluc_x64_standalone", +- ":qu8-vrpreluc_f16c-fma-avx2_standalone", +- ":qu8-vrpreluc_x64_standalone", +- ":reference_x64_standalone", +- ":s8-ibilinear_sse2-no-sse3_standalone", +- ":s8-ibilinear_sse4.1-no-sse4.2_standalone", +- ":s8-ibilinear_x64_standalone", +- ":s8-maxpool_sse4.1-no-sse4.2_standalone", +- ":s8-maxpool_x64_standalone", +- ":s8-rdminmax_sse4.1-no-sse4.2_standalone", +- ":s8-rdminmax_x64_standalone", +- ":s8-rminmax_sse4.1-no-sse4.2_standalone", +- ":s8-rminmax_x64_standalone", +- ":s8-vclamp_f16c-fma-avx2_standalone", +- ":s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":s8-vclamp_sse2-no-sse3_standalone", +- ":s8-vclamp_sse4.1-no-sse4.2_standalone", +- ":s8-vclamp_x64_standalone", +- ":subgraph_x64_standalone", +- ":tables_x64_standalone", +- ":u8-ibilinear_sse2-no-sse3_standalone", +- ":u8-ibilinear_sse4.1-no-sse4.2_standalone", +- ":u8-ibilinear_x64_standalone", +- ":u8-lut32norm_x64_standalone", +- ":u8-maxpool_sse2-no-sse3_standalone", +- ":u8-maxpool_x64_standalone", +- ":u8-rdminmax_sse2-no-sse3_standalone", +- ":u8-rdminmax_x64_standalone", +- ":u8-rminmax_sse2-no-sse3_standalone", +- ":u8-rminmax_x64_standalone", +- ":u8-vclamp_f16c-fma-avx2_standalone", +- ":u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":u8-vclamp_sse2-no-sse3_standalone", +- ":u8-vclamp_x64_standalone", +- ":x16-packw_f16c-fma-avx2_standalone", +- ":x16-transposec_f16c-fma-avx2_standalone", +- ":x16-transposec_sse2-no-sse3_standalone", +- ":x16-transposec_x64_standalone", +- ":x16-x32-packw_x64_standalone", +- ":x24-transposec_ssse3-no-sse4.1_standalone", +- ":x24-transposec_x64_standalone", +- ":x32-packw_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x32-packw_avx512f_standalone", +- ":x32-packw_sse2-no-sse3_standalone", +- ":x32-packw_x64_standalone", +- ":x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x32-transposec_sse-no-sse2_standalone", +- ":x32-transposec_x64_standalone", +- ":x32-unpool_sse2-no-sse3_standalone", +- ":x32-unpool_x64_standalone", +- ":x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x64-transposec_sse2-no-sse3_standalone", +- ":x64-transposec_x64_standalone", +- ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x8-lut_f16c-fma-avx2_standalone", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":x8-lut_x64_standalone", +- ":x8-packq_x64_standalone", +- ":x8-packw_x64_standalone", +- ":x8-transposec_f16c-fma-avx2_standalone", +- ":x8-transposec_sse2-no-sse3_standalone", +- ":x8-transposec_x64_standalone", +- ":xx-copy_x64_standalone", +- ":xx-fill_sse2-no-sse3_standalone", +- ":xx-fill_x64_standalone", +- ":xx-pad_sse2-no-sse3_standalone", +- ":xx-pad_x64_standalone", +- ":xx-transposev_x64_standalone", ++ ":configs_x64_standalone", ++ ":enums_x64_standalone", ++ ":f16-avgpool_f16c-no-avx2-no-fma_standalone", ++ ":f16-dwconv_f16c-fma-no-avx2_standalone", ++ ":f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-f32-vcvt_f16c-no-avx2-no-fma_standalone", ++ ":f16-f32-vcvt_sse2-no-sse3_standalone", ++ ":f16-f32-vcvt_sse4.1-no-sse4.2_standalone", ++ ":f16-f32-vcvt_x64_standalone", ++ ":f16-f32acc-gemm_f16c-fma-avx2_standalone", ++ ":f16-f32acc-igemm_f16c-fma-avx2_standalone", ++ ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone", ++ ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone", ++ ":f16-ibilinear_f16c-fma-no-avx2_standalone", ++ ":f16-maxpool_f16c-fma-avx2_standalone", ++ ":f16-maxpool_sse4.1-no-sse4.2_standalone", ++ ":f16-qs8-vcvt_x64_standalone", ++ ":f16-qu8-vcvt_x64_standalone", ++ ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", ++ ":f16-rdminmax_x64_standalone", ++ ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", - ":f16-rminmax_f16c-no-avx2-no-fma_standalone", - ":f16-rminmax_x64_standalone", - ":f16-vapproxgelu_x64_standalone", -@@ -770,47 +772,47 @@ if (current_cpu == "x64" || current_cpu - ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", - ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", - ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-rminmax_f16c-no-avx2-no-fma_standalone", ++ ":f16-rminmax_x64_standalone", ++ ":f16-vapproxgelu_x64_standalone", ++ ":f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", ++ ":f16-vbinary_f16c-no-avx2-no-fma_standalone", ++ ":f16-vclamp_f16c-no-avx2-no-fma_standalone", ++ ":f16-vcos_x64_standalone", ++ ":f16-velu_f16c-fma-avx2_standalone", ++ ":f16-vexp_x64_standalone", ++ ":f16-vgelu_x64_standalone", ++ ":f16-vhswish_f16c-no-avx2-no-fma_standalone", ++ ":f16-vlrelu_f16c-no-avx2-no-fma_standalone", ++ ":f16-vmulcaddc_f16c-fma-no-avx2_standalone", ++ ":f16-vrnd_f16c-no-avx2-no-fma_standalone", ++ ":f16-vrsqrt_f16c-no-avx2-no-fma_standalone", ++ ":f16-vsigmoid_f16c-fma-avx2_standalone", ++ ":f16-vsin_x64_standalone", ++ ":f16-vsqrt_f16c-no-avx2-no-fma_standalone", ++ ":f16-vtanh_f16c-fma-no-avx2_standalone", ++ ":f16-vtanh_f16c-no-avx2-no-fma_standalone", ++ ":f16-vunary_f16c-no-avx2-no-fma_standalone", ++ ":f16-vunary_sse2-no-sse3_standalone", ++ ":f32-argmaxpool_sse2-no-sse3_standalone", ++ ":f32-argmaxpool_x64_standalone", ++ ":f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-avgpool_avx512f_standalone", ++ ":f32-avgpool_sse2-no-sse3_standalone", ++ ":f32-avgpool_x64_standalone", ++ ":f32-conv-hwc2chw_sse-no-sse2_standalone", ++ ":f32-conv-hwc2chw_x64_standalone", ++ ":f32-dwconv2d-chw_sse-no-sse2_standalone", ++ ":f32-dwconv2d-chw_ssse3-no-sse4.1_standalone", ++ ":f32-dwconv2d-chw_x64_standalone", ++ ":f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-dwconv_avx512f_standalone", ++ ":f32-dwconv_f16c-fma-no-avx2_standalone", ++ ":f32-dwconv_sse-no-sse2_standalone", ++ ":f32-dwconv_x64_standalone", ++ ":f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f32-f16-vcvt_f16c-no-avx2-no-fma_standalone", ++ ":f32-f16-vcvt_sse2-no-sse3_standalone", ++ ":f32-f16-vcvt_sse4.1-no-sse4.2_standalone", ++ ":f32-f16-vcvt_x64_standalone", ++ ":f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-gemm_avx512f_standalone", ++ ":f32-gemm_f16c-fma-no-avx2_standalone", ++ ":f32-gemm_sse-no-sse2_standalone", ++ ":f32-gemm_x64_standalone", ++ ":f32-ibilinear-chw_sse-no-sse2_standalone", ++ ":f32-ibilinear-chw_x64_standalone", ++ ":f32-ibilinear_sse-no-sse2_standalone", ++ ":f32-ibilinear_x64_standalone", ++ ":f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-igemm_avx512f_standalone", ++ ":f32-igemm_f16c-fma-no-avx2_standalone", ++ ":f32-igemm_sse-no-sse2_standalone", ++ ":f32-igemm_x64_standalone", ++ ":f32-maxpool_sse2-no-sse3_standalone", ++ ":f32-maxpool_x64_standalone", ++ ":f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-qc4w-gemm_f16c-fma-avx2_standalone", ++ ":f32-qc4w-gemm_f16c-fma-no-avx2_standalone", ++ ":f32-qc4w-gemm_sse4.1-no-sse4.2_standalone", ++ ":f32-qc4w-gemm_x64_standalone", ++ ":f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-qc8w-gemm_f16c-fma-avx2_standalone", ++ ":f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f32-qc8w-gemm_f16c-fma-no-avx2_standalone", ++ ":f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", ++ ":f32-qc8w-gemm_x64_standalone", ++ ":f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-qs8-vcvt_f16c-fma-avx2_standalone", ++ ":f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f32-qs8-vcvt_sse2-no-sse3_standalone", ++ ":f32-qs8-vcvt_sse4.1-no-sse4.2_standalone", ++ ":f32-qs8-vcvt_x64_standalone", ++ ":f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-qu8-vcvt_f16c-fma-avx2_standalone", ++ ":f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f32-qu8-vcvt_sse2-no-sse3_standalone", ++ ":f32-qu8-vcvt_x64_standalone", ++ ":f32-raddstoreexpminusmax_avx512f_standalone", ++ ":f32-raddstoreexpminusmax_f16c-fma-avx2_standalone", ++ ":f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f32-raddstoreexpminusmax_sse2-no-sse3_standalone", ++ ":f32-raddstoreexpminusmax_x64_standalone", ++ ":f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-rdminmax_avx512f_standalone", ++ ":f32-rdminmax_sse2-no-sse3_standalone", ++ ":f32-rdminmax_x64_standalone", ++ ":f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-rdsum_avx512f_standalone", ++ ":f32-rdsum_sse2-no-sse3_standalone", ++ ":f32-rdsum_x64_standalone", ++ ":f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-rminmax_avx512f_standalone", ++ ":f32-rminmax_sse-no-sse2_standalone", ++ ":f32-rminmax_x64_standalone", ++ ":f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-rsum_avx512f_standalone", ++ ":f32-rsum_sse2-no-sse3_standalone", ++ ":f32-rsum_x64_standalone", ++ ":f32-spmm_sse-no-sse2_standalone", ++ ":f32-spmm_x64_standalone", ++ ":f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vapproxgelu_avx512f_standalone", ++ ":f32-vapproxgelu_f16c-fma-no-avx2_standalone", ++ ":f32-vapproxgelu_sse2-no-sse3_standalone", ++ ":f32-vapproxgelu_x64_standalone", ++ ":f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vbinary_avx512f_standalone", ++ ":f32-vbinary_sse-no-sse2_standalone", ++ ":f32-vbinary_sse2-no-sse3_standalone", ++ ":f32-vbinary_x64_standalone", ++ ":f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vclamp_avx512f_standalone", ++ ":f32-vclamp_sse2-no-sse3_standalone", ++ ":f32-vclamp_x64_standalone", ++ ":f32-vcmul_avx512f_standalone", ++ ":f32-vcmul_f16c-fma-no-avx2_standalone", ++ ":f32-vcmul_sse-no-sse2_standalone", ++ ":f32-vcmul_x64_standalone", ++ ":f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vcopysign_avx512f_standalone", ++ ":f32-vcopysign_sse2-no-sse3_standalone", ++ ":f32-vcopysign_x64_standalone", ++ ":f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vcos_avx512f_standalone", ++ ":f32-vcos_f16c-fma-no-avx2_standalone", ++ ":f32-vcos_sse2-no-sse3_standalone", ++ ":f32-vcos_x64_standalone", ++ ":f32-velu_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-velu_avx512f_standalone", ++ ":f32-velu_f16c-fma-avx2_standalone", ++ ":f32-velu_sse2-no-sse3_standalone", ++ ":f32-velu_x64_standalone", ++ ":f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vexp_avx512f_standalone", ++ ":f32-vexp_f16c-fma-no-avx2_standalone", ++ ":f32-vexp_sse2-no-sse3_standalone", ++ ":f32-vexp_x64_standalone", ++ ":f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vgelu_avx512f_standalone", ++ ":f32-vgelu_f16c-fma-no-avx2_standalone", ++ ":f32-vgelu_sse2-no-sse3_standalone", ++ ":f32-vgelu_x64_standalone", ++ ":f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vhswish_avx512f_standalone", ++ ":f32-vhswish_f16c-fma-no-avx2_standalone", ++ ":f32-vhswish_sse2-no-sse3_standalone", ++ ":f32-vhswish_x64_standalone", ++ ":f32-vlog_avx512f_standalone", ++ ":f32-vlog_f16c-fma-avx2_standalone", ++ ":f32-vlog_f16c-fma-no-avx2_standalone", ++ ":f32-vlog_sse2-no-sse3_standalone", ++ ":f32-vlog_x64_standalone", ++ ":f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vlrelu_avx512f_standalone", ++ ":f32-vlrelu_sse-no-sse2_standalone", ++ ":f32-vlrelu_sse4.1-no-sse4.2_standalone", ++ ":f32-vlrelu_x64_standalone", ++ ":f32-vmulcaddc_sse-no-sse2_standalone", ++ ":f32-vmulcaddc_x64_standalone", ++ ":f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vrnd_avx512f_standalone", ++ ":f32-vrnd_sse2-no-sse3_standalone", ++ ":f32-vrnd_sse4.1-no-sse4.2_standalone", ++ ":f32-vrnd_x64_standalone", ++ ":f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vrsqrt_avx512f_standalone", ++ ":f32-vrsqrt_sse2-no-sse3_standalone", ++ ":f32-vrsqrt_x64_standalone", ++ ":f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vsigmoid_avx512f_standalone", ++ ":f32-vsigmoid_f16c-fma-avx2_standalone", ++ ":f32-vsigmoid_sse2-no-sse3_standalone", ++ ":f32-vsigmoid_sse4.1-no-sse4.2_standalone", ++ ":f32-vsigmoid_x64_standalone", ++ ":f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vsin_avx512f_standalone", ++ ":f32-vsin_f16c-fma-no-avx2_standalone", ++ ":f32-vsin_sse2-no-sse3_standalone", ++ ":f32-vsin_x64_standalone", ++ ":f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vsqrt_avx512f_standalone", ++ ":f32-vsqrt_sse2-no-sse3_standalone", ++ ":f32-vsqrt_x64_standalone", ++ ":f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vtanh_avx512f_standalone", ++ ":f32-vtanh_f16c-fma-no-avx2_standalone", ++ ":f32-vtanh_sse2-no-sse3_standalone", ++ ":f32-vtanh_x64_standalone", ++ ":f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-vunary_avx512f_standalone", ++ ":f32-vunary_sse2-no-sse3_standalone", ++ ":f32-vunary_x64_standalone", ++ ":operators_x64_standalone", ++ ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", ++ ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", ++ ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", - ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", - ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", - ":qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", - ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone", ++ ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", - ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", - ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", - ":qd8-f32-qb4w-gemm_x64_standalone", - ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", - ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", ++ ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", ++ ":qd8-f32-qb4w-gemm_x64_standalone", ++ ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", - ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", - ":qd8-f32-qc4w-gemm_x64_standalone", - ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", - ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", ++ ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", ++ ":qd8-f32-qc4w-gemm_x64_standalone", ++ ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", - ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", - ":qd8-f32-qc8w-gemm_x64_standalone", - ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", - ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", ++ ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", ++ ":qd8-f32-qc8w-gemm_x64_standalone", ++ ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", - ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", - ":qd8-f32-qc8w-igemm_x64_standalone", -@@ -841,9 +843,9 @@ if (current_cpu == "x64" || current_cpu - ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", - ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", - ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", -- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", ++ ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", ++ ":qd8-f32-qc8w-igemm_x64_standalone", ++ ":qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-dwconv_f16c-fma-avx2_standalone", ++ ":qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-dwconv_sse2-no-sse3_standalone", ++ ":qs8-dwconv_sse4.1-no-sse4.2_standalone", ++ ":qs8-dwconv_x64_standalone", ++ ":qs8-f16-vcvt_f16c-fma-avx2_standalone", ++ ":qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-f32-vcvt_f16c-fma-avx2_standalone", ++ ":qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-f32-vcvt_sse2-no-sse3_standalone", ++ ":qs8-f32-vcvt_sse4.1-no-sse4.2_standalone", ++ ":qs8-f32-vcvt_x64_standalone", ++ ":qs8-packw_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-packw_f16c-fma-avx2_standalone", ++ ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qs8-packw_x64_standalone", ++ ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", ++ ":qs8-qc4w-gemm_ssse3-no-sse4.1_standalone", ++ ":qs8-qc4w-gemm_x64_standalone", ++ ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-qc8w-dwconv_f16c-fma-avx2_standalone", ++ ":qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-qc8w-dwconv_sse2-no-sse3_standalone", ++ ":qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone", ++ ":qs8-qc8w-dwconv_x64_standalone", ++ ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", ++ ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", ++ ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qs8-qc8w-gemm_sse2-no-sse3_standalone", - ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", - ":qs8-qc8w-gemm_x64_standalone", -@@ -851,9 +853,9 @@ if (current_cpu == "x64" || current_cpu - ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", - ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", - ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", -- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-qc8w-gemm_sse2-no-sse3_standalone", ++ ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", ++ ":qs8-qc8w-gemm_x64_standalone", ++ ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", ++ ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", ++ ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qs8-qc8w-igemm_sse2-no-sse3_standalone", - ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", - ":qs8-qc8w-igemm_x64_standalone", -@@ -866,8 +868,8 @@ if (current_cpu == "x64" || current_cpu - ":qs8-rdsum_x64_standalone", - ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", - ":qs8-rsum_f16c-fma-avx2_standalone", -- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-qc8w-igemm_sse2-no-sse3_standalone", ++ ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", ++ ":qs8-qc8w-igemm_x64_standalone", ++ ":qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", ++ ":qs8-qu8-packw_x64_standalone", ++ ":qs8-rdsum_f16c-fma-avx2_standalone", ++ ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-rdsum_sse4.1-no-sse4.2_standalone", ++ ":qs8-rdsum_x64_standalone", ++ ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-rsum_f16c-fma-avx2_standalone", ++ ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-rsum_ssse3-no-sse4.1_standalone", - ":qs8-rsum_x64_standalone", - ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", -@@ -1027,8 +1029,8 @@ if (current_cpu == "x64" || current_cpu - ":x64-transposec_x64_standalone", - ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", - ":x8-lut_f16c-fma-avx2_standalone", -- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", - ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-rsum_ssse3-no-sse4.1_standalone", ++ ":qs8-rsum_x64_standalone", ++ ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-vadd_f16c-fma-avx2_standalone", ++ ":qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-vadd_sse2-no-sse3_standalone", ++ ":qs8-vadd_sse4.1-no-sse4.2_standalone", ++ ":qs8-vadd_x64_standalone", ++ ":qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-vaddc_f16c-fma-avx2_standalone", ++ ":qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-vaddc_sse2-no-sse3_standalone", ++ ":qs8-vaddc_sse4.1-no-sse4.2_standalone", ++ ":qs8-vaddc_x64_standalone", ++ ":qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-vcvt_f16c-fma-avx2_standalone", ++ ":qs8-vcvt_sse2-no-sse3_standalone", ++ ":qs8-vcvt_sse4.1-no-sse4.2_standalone", ++ ":qs8-vcvt_ssse3-no-sse4.1_standalone", ++ ":qs8-vcvt_x64_standalone", ++ ":qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-vlrelu_f16c-fma-avx2_standalone", ++ ":qs8-vlrelu_sse2-no-sse3_standalone", ++ ":qs8-vlrelu_sse4.1-no-sse4.2_standalone", ++ ":qs8-vlrelu_ssse3-no-sse4.1_standalone", ++ ":qs8-vlrelu_x64_standalone", ++ ":qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-vmul_sse2-no-sse3_standalone", ++ ":qs8-vmul_sse4.1-no-sse4.2_standalone", ++ ":qs8-vmul_x64_standalone", ++ ":qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-vmulc_sse2-no-sse3_standalone", ++ ":qs8-vmulc_sse4.1-no-sse4.2_standalone", ++ ":qs8-vmulc_x64_standalone", ++ ":qs8-vprelu_f16c-fma-avx2_standalone", ++ ":qs8-vprelu_x64_standalone", ++ ":qs8-vpreluc_f16c-fma-avx2_standalone", ++ ":qs8-vpreluc_x64_standalone", ++ ":qs8-vrpreluc_f16c-fma-avx2_standalone", ++ ":qs8-vrpreluc_x64_standalone", ++ ":qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-dwconv_f16c-fma-avx2_standalone", ++ ":qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qu8-dwconv_sse2-no-sse3_standalone", ++ ":qu8-dwconv_sse4.1-no-sse4.2_standalone", ++ ":qu8-dwconv_x64_standalone", ++ ":qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-f32-vcvt_f16c-fma-avx2_standalone", ++ ":qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qu8-f32-vcvt_sse2-no-sse3_standalone", ++ ":qu8-f32-vcvt_sse4.1-no-sse4.2_standalone", ++ ":qu8-f32-vcvt_x64_standalone", ++ ":qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-gemm_f16c-fma-avx2_standalone", ++ ":qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qu8-gemm_sse2-no-sse3_standalone", ++ ":qu8-gemm_sse4.1-no-sse4.2_standalone", ++ ":qu8-gemm_x64_standalone", ++ ":qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-igemm_f16c-fma-avx2_standalone", ++ ":qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qu8-igemm_sse2-no-sse3_standalone", ++ ":qu8-igemm_sse4.1-no-sse4.2_standalone", ++ ":qu8-igemm_x64_standalone", ++ ":qu8-rdsum_ssse3-no-sse4.1_standalone", ++ ":qu8-rdsum_x64_standalone", ++ ":qu8-rsum_f16c-fma-avx2_standalone", ++ ":qu8-rsum_sse2-no-sse3_standalone", ++ ":qu8-rsum_x64_standalone", ++ ":qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-vadd_f16c-fma-avx2_standalone", ++ ":qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qu8-vadd_sse2-no-sse3_standalone", ++ ":qu8-vadd_sse4.1-no-sse4.2_standalone", ++ ":qu8-vadd_x64_standalone", ++ ":qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-vaddc_f16c-fma-avx2_standalone", ++ ":qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qu8-vaddc_sse2-no-sse3_standalone", ++ ":qu8-vaddc_sse4.1-no-sse4.2_standalone", ++ ":qu8-vaddc_x64_standalone", ++ ":qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-vcvt_f16c-fma-avx2_standalone", ++ ":qu8-vcvt_sse2-no-sse3_standalone", ++ ":qu8-vcvt_sse4.1-no-sse4.2_standalone", ++ ":qu8-vcvt_ssse3-no-sse4.1_standalone", ++ ":qu8-vcvt_x64_standalone", ++ ":qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-vlrelu_f16c-fma-avx2_standalone", ++ ":qu8-vlrelu_sse2-no-sse3_standalone", ++ ":qu8-vlrelu_sse4.1-no-sse4.2_standalone", ++ ":qu8-vlrelu_ssse3-no-sse4.1_standalone", ++ ":qu8-vlrelu_x64_standalone", ++ ":qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-vmul_sse2-no-sse3_standalone", ++ ":qu8-vmul_sse4.1-no-sse4.2_standalone", ++ ":qu8-vmul_x64_standalone", ++ ":qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qu8-vmulc_sse2-no-sse3_standalone", ++ ":qu8-vmulc_sse4.1-no-sse4.2_standalone", ++ ":qu8-vmulc_x64_standalone", ++ ":qu8-vprelu_f16c-fma-avx2_standalone", ++ ":qu8-vprelu_x64_standalone", ++ ":qu8-vpreluc_f16c-fma-avx2_standalone", ++ ":qu8-vpreluc_x64_standalone", ++ ":qu8-vrpreluc_f16c-fma-avx2_standalone", ++ ":qu8-vrpreluc_x64_standalone", ++ ":reference_x64_standalone", ++ ":s8-ibilinear_sse2-no-sse3_standalone", ++ ":s8-ibilinear_sse4.1-no-sse4.2_standalone", ++ ":s8-ibilinear_x64_standalone", ++ ":s8-maxpool_sse4.1-no-sse4.2_standalone", ++ ":s8-maxpool_x64_standalone", ++ ":s8-rdminmax_sse4.1-no-sse4.2_standalone", ++ ":s8-rdminmax_x64_standalone", ++ ":s8-rminmax_sse4.1-no-sse4.2_standalone", ++ ":s8-rminmax_x64_standalone", ++ ":s8-vclamp_f16c-fma-avx2_standalone", ++ ":s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":s8-vclamp_sse2-no-sse3_standalone", ++ ":s8-vclamp_sse4.1-no-sse4.2_standalone", ++ ":s8-vclamp_x64_standalone", ++ ":subgraph_x64_standalone", ++ ":tables_x64_standalone", ++ ":u8-ibilinear_sse2-no-sse3_standalone", ++ ":u8-ibilinear_sse4.1-no-sse4.2_standalone", ++ ":u8-ibilinear_x64_standalone", ++ ":u8-lut32norm_x64_standalone", ++ ":u8-maxpool_sse2-no-sse3_standalone", ++ ":u8-maxpool_x64_standalone", ++ ":u8-rdminmax_sse2-no-sse3_standalone", ++ ":u8-rdminmax_x64_standalone", ++ ":u8-rminmax_sse2-no-sse3_standalone", ++ ":u8-rminmax_x64_standalone", ++ ":u8-vclamp_f16c-fma-avx2_standalone", ++ ":u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":u8-vclamp_sse2-no-sse3_standalone", ++ ":u8-vclamp_x64_standalone", ++ ":x16-packw_f16c-fma-avx2_standalone", ++ ":x16-transposec_f16c-fma-avx2_standalone", ++ ":x16-transposec_sse2-no-sse3_standalone", ++ ":x16-transposec_x64_standalone", ++ ":x16-x32-packw_x64_standalone", ++ ":x24-transposec_ssse3-no-sse4.1_standalone", ++ ":x24-transposec_x64_standalone", ++ ":x32-packw_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":x32-packw_avx512f_standalone", ++ ":x32-packw_sse2-no-sse3_standalone", ++ ":x32-packw_x64_standalone", ++ ":x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":x32-transposec_sse-no-sse2_standalone", ++ ":x32-transposec_x64_standalone", ++ ":x32-unpool_sse2-no-sse3_standalone", ++ ":x32-unpool_x64_standalone", ++ ":x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":x64-transposec_sse2-no-sse3_standalone", ++ ":x64-transposec_x64_standalone", ++ ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":x8-lut_f16c-fma-avx2_standalone", ++ ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", - ":x8-lut_x64_standalone", - ":x8-packq_x64_standalone", - ":x8-packw_x64_standalone", -@@ -1040,9 +1042,11 @@ if (current_cpu == "x64" || current_cpu - ":xx-fill_x64_standalone", - ":xx-pad_sse2-no-sse3_standalone", - ":xx-pad_x64_standalone", -- ":xx-transposev_x64_standalone", ++ ":x8-lut_x64_standalone", ++ ":x8-packq_x64_standalone", ++ ":x8-packw_x64_standalone", ++ ":x8-transposec_f16c-fma-avx2_standalone", ++ ":x8-transposec_sse2-no-sse3_standalone", ++ ":x8-transposec_x64_standalone", ++ ":xx-copy_x64_standalone", ++ ":xx-fill_sse2-no-sse3_standalone", ++ ":xx-fill_x64_standalone", ++ ":xx-pad_sse2-no-sse3_standalone", ++ ":xx-pad_x64_standalone", + ":xx-transposev_x64_standalone" - ] + ] + } -} else if (current_cpu == "arm64") { +} else +if (current_cpu == "arm64") { @@ -171,7 +1050,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn xnnpack_deps = [ ":configs_arm64", ":enums_arm64", -@@ -1246,7 +1250,7 @@ if (current_cpu == "x64" || current_cpu +@@ -1269,227 +1273,229 @@ if (current_cpu == "x64" || current_cpu ":xx-copy_arm64", ":xx-fill_arm64", ":xx-pad_arm64", @@ -179,44 +1058,436 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + ":xx-transposev_arm64" ] - xnnpack_standalone_deps = [ -@@ -1259,12 +1263,12 @@ if (current_cpu == "x64" || current_cpu - ":f16-f32-vcvt_arm64_standalone", - ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", - ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", -- ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":f16-gemm_arch=armv8.2-a+fp16_standalone", + if (build_with_internal_optimization_guide) { + xnnpack_standalone_deps = [ +- ":configs_arm64_standalone", +- ":enums_arm64_standalone", +- ":f16-avgpool_arch=armv8.2-a+fp16_standalone", +- ":f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone", +- ":f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone", +- ":f16-dwconv_arch=armv8.2-a+fp16_standalone", +- ":f16-f32-vcvt_arm64_standalone", +- ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", +- ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", +- ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f16-gemm_arch=armv8.2-a+fp16_standalone", +- ":f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone", +- ":f16-ibilinear_arch=armv8.2-a+fp16_standalone", +- ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f16-igemm_arch=armv8.2-a+fp16_standalone", +- ":f16-maxpool_arch=armv8.2-a+fp16_standalone", +- ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", +- ":f16-qs8-vcvt_arm64_standalone", +- ":f16-qu8-vcvt_arm64_standalone", +- ":f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone", +- ":f16-rdminmax_arch=armv8.2-a+fp16_standalone", +- ":f16-rdminmax_arm64_standalone", +- ":f16-rminmax_arch=armv8.2-a+fp16_standalone", +- ":f16-rminmax_arm64_standalone", +- ":f16-spmm_arch=armv8.2-a+fp16_standalone", +- ":f16-vapproxgelu_arch=armv8.2-a+fp16_standalone", +- ":f16-vapproxgelu_arm64_standalone", +- ":f16-vbinary_arch=armv8.2-a+fp16_standalone", +- ":f16-vclamp_arch=armv8.2-a+fp16_standalone", +- ":f16-vcmul_arch=armv8.2-a+fp16_standalone", +- ":f16-vcos_arch=armv8.2-a+fp16_standalone", +- ":f16-vcos_arm64_standalone", +- ":f16-velu_arch=armv8.2-a+fp16_standalone", +- ":f16-vexp_arch=armv8.2-a+fp16_standalone", +- ":f16-vexp_arm64_standalone", +- ":f16-vgelu_arch=armv8.2-a+fp16_standalone", +- ":f16-vgelu_arm64_standalone", +- ":f16-vhswish_arch=armv8.2-a+fp16_standalone", +- ":f16-vlrelu_arch=armv8.2-a+fp16_standalone", +- ":f16-vmulcaddc_arch=armv8.2-a+fp16_standalone", +- ":f16-vrnd_arch=armv8.2-a+fp16_standalone", +- ":f16-vrsqrt_arch=armv8.2-a+fp16_standalone", +- ":f16-vsigmoid_arch=armv8.2-a+fp16_standalone", +- ":f16-vsin_arch=armv8.2-a+fp16_standalone", +- ":f16-vsin_arm64_standalone", +- ":f16-vsqrt_arch=armv8.2-a+fp16_standalone", +- ":f16-vtanh_arch=armv8.2-a+fp16_standalone", +- ":f16-vunary_arch=armv8.2-a+fp16_standalone", +- ":f32-argmaxpool_arm64_standalone", +- ":f32-avgpool_arm64_standalone", +- ":f32-conv-hwc2chw_arm64_standalone", +- ":f32-dwconv2d-chw_arm64_standalone", +- ":f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-dwconv_arm64_standalone", +- ":f32-f16-vcvt_arm64_standalone", +- ":f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-gemm_arm64_standalone", +- ":f32-ibilinear-chw_arm64_standalone", +- ":f32-ibilinear_arm64_standalone", +- ":f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-igemm_arm64_standalone", +- ":f32-maxpool_arm64_standalone", +- ":f32-qc4w-gemm_arm64_standalone", +- ":f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-qc8w-gemm_arm64_standalone", +- ":f32-qs8-vcvt_arm64_standalone", +- ":f32-qu8-vcvt_arm64_standalone", +- ":f32-raddstoreexpminusmax_arm64_standalone", +- ":f32-rdminmax_arm64_standalone", +- ":f32-rdsum_arm64_standalone", +- ":f32-rminmax_arm64_standalone", +- ":f32-rsum_arm64_standalone", +- ":f32-spmm_arm64_standalone", +- ":f32-vapproxgelu_arm64_standalone", +- ":f32-vbinary_arm64_standalone", +- ":f32-vclamp_arm64_standalone", +- ":f32-vcmul_arm64_standalone", +- ":f32-vcopysign_arm64_standalone", +- ":f32-vcos_arm64_standalone", +- ":f32-velu_arm64_standalone", +- ":f32-vexp_arm64_standalone", +- ":f32-vgelu_arm64_standalone", +- ":f32-vhswish_arm64_standalone", +- ":f32-vlog_arm64_standalone", +- ":f32-vlrelu_arm64_standalone", +- ":f32-vmulcaddc_arm64_standalone", +- ":f32-vrnd_arm64_standalone", +- ":f32-vrsqrt_arm64_standalone", +- ":f32-vsigmoid_arm64_standalone", +- ":f32-vsin_arm64_standalone", +- ":f32-vsqrt_arm64_standalone", +- ":f32-vtanh_arm64_standalone", +- ":f32-vunary_arm64_standalone", +- ":operators_arm64_standalone", +- ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", +- ":pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":qb4-packw_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qb4w-gemm_arm64_standalone", +- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qc4w-gemm_arm64_standalone", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qc8w-gemm_arm64_standalone", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qc8w-igemm_arm64_standalone", +- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":qs8-dwconv_arm64_standalone", +- ":qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone", +- ":qs8-f32-vcvt_arm64_standalone", +- ":qs8-packw_arm64_standalone", +- ":qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qs8-qc4w-gemm_arm64_standalone", +- ":qs8-qc8w-dwconv_arm64_standalone", +- ":qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qs8-qc8w-gemm_arm64_standalone", +- ":qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", +- ":qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qs8-qc8w-igemm_arm64_standalone", +- ":qs8-qu8-packw_arm64_standalone", +- ":qs8-rdsum_arm64_standalone", +- ":qs8-rsum_arch=armv8.2-a+dotprod_standalone", +- ":qs8-rsum_arm64_standalone", +- ":qs8-vadd_arm64_standalone", +- ":qs8-vaddc_arm64_standalone", +- ":qs8-vcvt_arm64_standalone", +- ":qs8-vlrelu_arm64_standalone", +- ":qs8-vmul_arm64_standalone", +- ":qs8-vmulc_arm64_standalone", +- ":qs8-vprelu_arm64_standalone", +- ":qs8-vpreluc_arm64_standalone", +- ":qs8-vrpreluc_arm64_standalone", +- ":qu8-dwconv_arm64_standalone", +- ":qu8-f32-vcvt_arm64_standalone", +- ":qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qu8-gemm_arm64_standalone", +- ":qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qu8-igemm_arm64_standalone", +- ":qu8-rdsum_arm64_standalone", +- ":qu8-rsum_arm64_standalone", +- ":qu8-vadd_arm64_standalone", +- ":qu8-vaddc_arm64_standalone", +- ":qu8-vcvt_arm64_standalone", +- ":qu8-vlrelu_arm64_standalone", +- ":qu8-vmul_arm64_standalone", +- ":qu8-vmulc_arm64_standalone", +- ":qu8-vprelu_arm64_standalone", +- ":qu8-vpreluc_arm64_standalone", +- ":qu8-vrpreluc_arm64_standalone", +- ":reference_arm64_standalone", +- ":s8-ibilinear_arm64_standalone", +- ":s8-maxpool_arm64_standalone", +- ":s8-rdminmax_arm64_standalone", +- ":s8-rminmax_arm64_standalone", +- ":s8-vclamp_arm64_standalone", +- ":subgraph_arm64_standalone", +- ":tables_arm64_standalone", +- ":u8-ibilinear_arm64_standalone", +- ":u8-lut32norm_arm64_standalone", +- ":u8-maxpool_arm64_standalone", +- ":u8-rdminmax_arm64_standalone", +- ":u8-rminmax_arm64_standalone", +- ":u8-vclamp_arm64_standalone", +- ":x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone", +- ":x16-packw_arm64_standalone", +- ":x16-transposec_arm64_standalone", +- ":x16-x32-packw_arm64_standalone", +- ":x24-transposec_arm64_standalone", +- ":x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone", +- ":x32-packw_arm64_standalone", +- ":x32-transposec_arm64_standalone", +- ":x32-unpool_arm64_standalone", +- ":x64-transposec_arm64_standalone", +- ":x8-lut_arm64_standalone", +- ":x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone", +- ":x8-packq_arm64_standalone", +- ":x8-packw_arm64_standalone", +- ":x8-transposec_arm64_standalone", +- ":xx-copy_arm64_standalone", +- ":xx-fill_arm64_standalone", +- ":xx-pad_arm64_standalone", +- ":xx-transposev_arm64_standalone", ++ ":configs_arm64_standalone", ++ ":enums_arm64_standalone", ++ ":f16-avgpool_arch=armv8.2-a+fp16_standalone", ++ ":f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone", ++ ":f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone", ++ ":f16-dwconv_arch=armv8.2-a+fp16_standalone", ++ ":f16-f32-vcvt_arm64_standalone", ++ ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", ++ ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", ++ ":f16-gemm_arch=armv8.2-a+fp16_standalone", + ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone", - ":f16-ibilinear_arch=armv8.2-a+fp16_standalone", -- ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":f16-igemm_arch=armv8.2-a+fp16_standalone", ++ ":f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone", ++ ":f16-ibilinear_arch=armv8.2-a+fp16_standalone", ++ ":f16-igemm_arch=armv8.2-a+fp16_standalone", + ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":f16-maxpool_arch=armv8.2-a+fp16_standalone", - ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", - ":f16-qs8-vcvt_arm64_standalone", -@@ -1351,12 +1355,12 @@ if (current_cpu == "x64" || current_cpu - ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", - ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", -- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone", ++ ":f16-maxpool_arch=armv8.2-a+fp16_standalone", ++ ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", ++ ":f16-qs8-vcvt_arm64_standalone", ++ ":f16-qu8-vcvt_arm64_standalone", ++ ":f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone", ++ ":f16-rdminmax_arch=armv8.2-a+fp16_standalone", ++ ":f16-rdminmax_arm64_standalone", ++ ":f16-rminmax_arch=armv8.2-a+fp16_standalone", ++ ":f16-rminmax_arm64_standalone", ++ ":f16-spmm_arch=armv8.2-a+fp16_standalone", ++ ":f16-vapproxgelu_arch=armv8.2-a+fp16_standalone", ++ ":f16-vapproxgelu_arm64_standalone", ++ ":f16-vbinary_arch=armv8.2-a+fp16_standalone", ++ ":f16-vclamp_arch=armv8.2-a+fp16_standalone", ++ ":f16-vcmul_arch=armv8.2-a+fp16_standalone", ++ ":f16-vcos_arch=armv8.2-a+fp16_standalone", ++ ":f16-vcos_arm64_standalone", ++ ":f16-velu_arch=armv8.2-a+fp16_standalone", ++ ":f16-vexp_arch=armv8.2-a+fp16_standalone", ++ ":f16-vexp_arm64_standalone", ++ ":f16-vgelu_arch=armv8.2-a+fp16_standalone", ++ ":f16-vgelu_arm64_standalone", ++ ":f16-vhswish_arch=armv8.2-a+fp16_standalone", ++ ":f16-vlrelu_arch=armv8.2-a+fp16_standalone", ++ ":f16-vmulcaddc_arch=armv8.2-a+fp16_standalone", ++ ":f16-vrnd_arch=armv8.2-a+fp16_standalone", ++ ":f16-vrsqrt_arch=armv8.2-a+fp16_standalone", ++ ":f16-vsigmoid_arch=armv8.2-a+fp16_standalone", ++ ":f16-vsin_arch=armv8.2-a+fp16_standalone", ++ ":f16-vsin_arm64_standalone", ++ ":f16-vsqrt_arch=armv8.2-a+fp16_standalone", ++ ":f16-vtanh_arch=armv8.2-a+fp16_standalone", ++ ":f16-vunary_arch=armv8.2-a+fp16_standalone", ++ ":f32-argmaxpool_arm64_standalone", ++ ":f32-avgpool_arm64_standalone", ++ ":f32-conv-hwc2chw_arm64_standalone", ++ ":f32-dwconv2d-chw_arm64_standalone", ++ ":f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":f32-dwconv_arm64_standalone", ++ ":f32-f16-vcvt_arm64_standalone", ++ ":f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":f32-gemm_arm64_standalone", ++ ":f32-ibilinear-chw_arm64_standalone", ++ ":f32-ibilinear_arm64_standalone", ++ ":f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":f32-igemm_arm64_standalone", ++ ":f32-maxpool_arm64_standalone", ++ ":f32-qc4w-gemm_arm64_standalone", ++ ":f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":f32-qc8w-gemm_arm64_standalone", ++ ":f32-qs8-vcvt_arm64_standalone", ++ ":f32-qu8-vcvt_arm64_standalone", ++ ":f32-raddstoreexpminusmax_arm64_standalone", ++ ":f32-rdminmax_arm64_standalone", ++ ":f32-rdsum_arm64_standalone", ++ ":f32-rminmax_arm64_standalone", ++ ":f32-rsum_arm64_standalone", ++ ":f32-spmm_arm64_standalone", ++ ":f32-vapproxgelu_arm64_standalone", ++ ":f32-vbinary_arm64_standalone", ++ ":f32-vclamp_arm64_standalone", ++ ":f32-vcmul_arm64_standalone", ++ ":f32-vcopysign_arm64_standalone", ++ ":f32-vcos_arm64_standalone", ++ ":f32-velu_arm64_standalone", ++ ":f32-vexp_arm64_standalone", ++ ":f32-vgelu_arm64_standalone", ++ ":f32-vhswish_arm64_standalone", ++ ":f32-vlog_arm64_standalone", ++ ":f32-vlrelu_arm64_standalone", ++ ":f32-vmulcaddc_arm64_standalone", ++ ":f32-vrnd_arm64_standalone", ++ ":f32-vrsqrt_arm64_standalone", ++ ":f32-vsigmoid_arm64_standalone", ++ ":f32-vsin_arm64_standalone", ++ ":f32-vsqrt_arm64_standalone", ++ ":f32-vtanh_arm64_standalone", ++ ":f32-vunary_arm64_standalone", ++ ":operators_arm64_standalone", ++ ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", ++ ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", ++ ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", ++ ":pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", ++ ":qb4-packw_arch=armv8.2-a+dotprod_standalone", ++ ":qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", ++ ":qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone", ++ ":qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", ++ ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", ++ ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone", + ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone", -- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone", + ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", - ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -@@ -1452,9 +1456,11 @@ if (current_cpu == "x64" || current_cpu - ":xx-copy_arm64_standalone", - ":xx-fill_arm64_standalone", - ":xx-pad_arm64_standalone", -- ":xx-transposev_arm64_standalone", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f32-qb4w-gemm_arm64_standalone", ++ ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f32-qc4w-gemm_arm64_standalone", ++ ":qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f32-qc8w-gemm_arm64_standalone", ++ ":qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", ++ ":qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qd8-f32-qc8w-igemm_arm64_standalone", ++ ":qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone", ++ ":qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", ++ ":qs8-dwconv_arm64_standalone", ++ ":qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone", ++ ":qs8-f32-vcvt_arm64_standalone", ++ ":qs8-packw_arm64_standalone", ++ ":qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qs8-qc4w-gemm_arm64_standalone", ++ ":qs8-qc8w-dwconv_arm64_standalone", ++ ":qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", ++ ":qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qs8-qc8w-gemm_arm64_standalone", ++ ":qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", ++ ":qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", ++ ":qs8-qc8w-igemm_arm64_standalone", ++ ":qs8-qu8-packw_arm64_standalone", ++ ":qs8-rdsum_arm64_standalone", ++ ":qs8-rsum_arch=armv8.2-a+dotprod_standalone", ++ ":qs8-rsum_arm64_standalone", ++ ":qs8-vadd_arm64_standalone", ++ ":qs8-vaddc_arm64_standalone", ++ ":qs8-vcvt_arm64_standalone", ++ ":qs8-vlrelu_arm64_standalone", ++ ":qs8-vmul_arm64_standalone", ++ ":qs8-vmulc_arm64_standalone", ++ ":qs8-vprelu_arm64_standalone", ++ ":qs8-vpreluc_arm64_standalone", ++ ":qs8-vrpreluc_arm64_standalone", ++ ":qu8-dwconv_arm64_standalone", ++ ":qu8-f32-vcvt_arm64_standalone", ++ ":qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qu8-gemm_arm64_standalone", ++ ":qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone", ++ ":qu8-igemm_arm64_standalone", ++ ":qu8-rdsum_arm64_standalone", ++ ":qu8-rsum_arm64_standalone", ++ ":qu8-vadd_arm64_standalone", ++ ":qu8-vaddc_arm64_standalone", ++ ":qu8-vcvt_arm64_standalone", ++ ":qu8-vlrelu_arm64_standalone", ++ ":qu8-vmul_arm64_standalone", ++ ":qu8-vmulc_arm64_standalone", ++ ":qu8-vprelu_arm64_standalone", ++ ":qu8-vpreluc_arm64_standalone", ++ ":qu8-vrpreluc_arm64_standalone", ++ ":reference_arm64_standalone", ++ ":s8-ibilinear_arm64_standalone", ++ ":s8-maxpool_arm64_standalone", ++ ":s8-rdminmax_arm64_standalone", ++ ":s8-rminmax_arm64_standalone", ++ ":s8-vclamp_arm64_standalone", ++ ":subgraph_arm64_standalone", ++ ":tables_arm64_standalone", ++ ":u8-ibilinear_arm64_standalone", ++ ":u8-lut32norm_arm64_standalone", ++ ":u8-maxpool_arm64_standalone", ++ ":u8-rdminmax_arm64_standalone", ++ ":u8-rminmax_arm64_standalone", ++ ":u8-vclamp_arm64_standalone", ++ ":x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone", ++ ":x16-packw_arm64_standalone", ++ ":x16-transposec_arm64_standalone", ++ ":x16-x32-packw_arm64_standalone", ++ ":x24-transposec_arm64_standalone", ++ ":x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone", ++ ":x32-packw_arm64_standalone", ++ ":x32-transposec_arm64_standalone", ++ ":x32-unpool_arm64_standalone", ++ ":x64-transposec_arm64_standalone", ++ ":x8-lut_arm64_standalone", ++ ":x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone", ++ ":x8-packq_arm64_standalone", ++ ":x8-packw_arm64_standalone", ++ ":x8-transposec_arm64_standalone", ++ ":xx-copy_arm64_standalone", ++ ":xx-fill_arm64_standalone", ++ ":xx-pad_arm64_standalone", + ":xx-transposev_arm64_standalone" - ] + ] + } -} else if (current_cpu == "riscv64") { +} else +if (current_cpu == "riscv64") { @@ -224,22 +1495,186 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn xnnpack_deps = [ ":configs_riscv64", ":enums_riscv64", -@@ -1623,7 +1629,7 @@ if (current_cpu == "x64" || current_cpu +@@ -1658,179 +1664,431 @@ if (current_cpu == "x64" || current_cpu ":xx-copy_riscv64", ":xx-fill_riscv64", ":xx-pad_riscv64", - ":xx-transposev_riscv64", + ":xx-transposev_riscv64" - ] - - xnnpack_standalone_deps = [ -@@ -1794,7 +1800,257 @@ if (current_cpu == "x64" || current_cpu - ":xx-copy_riscv64_standalone", - ":xx-fill_riscv64_standalone", - ":xx-pad_riscv64_standalone", -- ":xx-transposev_riscv64_standalone", -+ ":xx-transposev_riscv64_standalone" + ] ++ ++ if (build_with_internal_optimization_guide) { ++ xnnpack_standalone_deps = [ ++ ":configs_riscv64_standalone", ++ ":enums_riscv64_standalone", ++ ":f16-f32-vcvt_riscv64_standalone", ++ ":f16-qs8-vcvt_riscv64_standalone", ++ ":f16-qu8-vcvt_riscv64_standalone", ++ ":f16-rdminmax_riscv64_standalone", ++ ":f16-rminmax_riscv64_standalone", ++ ":f16-vapproxgelu_riscv64_standalone", ++ ":f16-vcos_riscv64_standalone", ++ ":f16-vexp_riscv64_standalone", ++ ":f16-vgelu_riscv64_standalone", ++ ":f16-vsin_riscv64_standalone", ++ ":f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-argmaxpool_riscv64_standalone", ++ ":f32-avgpool_riscv64_standalone", ++ ":f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-conv-hwc2chw_riscv64_standalone", ++ ":f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-dwconv2d-chw_riscv64_standalone", ++ ":f32-dwconv_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-dwconv_riscv64_standalone", ++ ":f32-f16-vcvt_riscv64_standalone", ++ ":f32-gemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-gemm_riscv64_standalone", ++ ":f32-ibilinear-chw_riscv64_standalone", ++ ":f32-ibilinear_riscv64_standalone", ++ ":f32-igemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-igemm_riscv64_standalone", ++ ":f32-maxpool_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-maxpool_riscv64_standalone", ++ ":f32-qc4w-gemm_riscv64_standalone", ++ ":f32-qc8w-gemm_riscv64_standalone", ++ ":f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-qs8-vcvt_riscv64_standalone", ++ ":f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-qu8-vcvt_riscv64_standalone", ++ ":f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-raddstoreexpminusmax_riscv64_standalone", ++ ":f32-rdminmax_riscv64_standalone", ++ ":f32-rdsum_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-rdsum_riscv64_standalone", ++ ":f32-rminmax_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-rminmax_riscv64_standalone", ++ ":f32-rsum_riscv64_standalone", ++ ":f32-spmm_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-spmm_riscv64_standalone", ++ ":f32-vapproxgelu_riscv64_standalone", ++ ":f32-vbinary_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-vbinary_riscv64_standalone", ++ ":f32-vclamp_riscv64_standalone", ++ ":f32-vcmul_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-vcmul_riscv64_standalone", ++ ":f32-vcopysign_riscv64_standalone", ++ ":f32-vcos_riscv64_standalone", ++ ":f32-velu_riscv64_standalone", ++ ":f32-vexp_riscv64_standalone", ++ ":f32-vgelu_riscv64_standalone", ++ ":f32-vhswish_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-vhswish_riscv64_standalone", ++ ":f32-vlog_riscv64_standalone", ++ ":f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-vlrelu_riscv64_standalone", ++ ":f32-vmulcaddc_riscv64_standalone", ++ ":f32-vrnd_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-vrnd_riscv64_standalone", ++ ":f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone", ++ ":f32-vrsqrt_riscv64_standalone", ++ ":f32-vsigmoid_riscv64_standalone", ++ ":f32-vsin_riscv64_standalone", ++ ":f32-vsqrt_riscv64_standalone", ++ ":f32-vtanh_riscv64_standalone", ++ ":f32-vunary_riscv64_standalone", ++ ":operators_riscv64_standalone", ++ ":qd8-f32-qb4w-gemm_riscv64_standalone", ++ ":qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":qd8-f32-qc4w-gemm_riscv64_standalone", ++ ":qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":qd8-f32-qc8w-gemm_riscv64_standalone", ++ ":qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":qd8-f32-qc8w-igemm_riscv64_standalone", ++ ":qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-dwconv_riscv64_standalone", ++ ":qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-f32-vcvt_riscv64_standalone", ++ ":qs8-packw_riscv64_standalone", ++ ":qs8-qc4w-gemm_riscv64_standalone", ++ ":qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-qc8w-dwconv_riscv64_standalone", ++ ":qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-qc8w-gemm_riscv64_standalone", ++ ":qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-qc8w-igemm_riscv64_standalone", ++ ":qs8-qu8-packw_riscv64_standalone", ++ ":qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-rdsum_riscv64_standalone", ++ ":qs8-rsum_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-rsum_riscv64_standalone", ++ ":qs8-vadd_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-vadd_riscv64_standalone", ++ ":qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-vaddc_riscv64_standalone", ++ ":qs8-vcvt_riscv64_standalone", ++ ":qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-vlrelu_riscv64_standalone", ++ ":qs8-vmul_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-vmul_riscv64_standalone", ++ ":qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone", ++ ":qs8-vmulc_riscv64_standalone", ++ ":qs8-vprelu_riscv64_standalone", ++ ":qs8-vpreluc_riscv64_standalone", ++ ":qs8-vrpreluc_riscv64_standalone", ++ ":qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-dwconv_riscv64_standalone", ++ ":qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-f32-vcvt_riscv64_standalone", ++ ":qu8-gemm_riscv64_standalone", ++ ":qu8-igemm_riscv64_standalone", ++ ":qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-rdsum_riscv64_standalone", ++ ":qu8-rsum_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-rsum_riscv64_standalone", ++ ":qu8-vadd_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-vadd_riscv64_standalone", ++ ":qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-vaddc_riscv64_standalone", ++ ":qu8-vcvt_riscv64_standalone", ++ ":qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-vlrelu_riscv64_standalone", ++ ":qu8-vmul_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-vmul_riscv64_standalone", ++ ":qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone", ++ ":qu8-vmulc_riscv64_standalone", ++ ":qu8-vprelu_riscv64_standalone", ++ ":qu8-vpreluc_riscv64_standalone", ++ ":qu8-vrpreluc_riscv64_standalone", ++ ":reference_riscv64_standalone", ++ ":s8-ibilinear_riscv64_standalone", ++ ":s8-maxpool_riscv64_standalone", ++ ":s8-rdminmax_riscv64_standalone", ++ ":s8-rminmax_riscv64_standalone", ++ ":s8-vclamp_arch=rv64gcv-abi=lp64d_standalone", ++ ":s8-vclamp_riscv64_standalone", ++ ":subgraph_riscv64_standalone", ++ ":tables_riscv64_standalone", ++ ":u8-ibilinear_riscv64_standalone", ++ ":u8-lut32norm_riscv64_standalone", ++ ":u8-maxpool_riscv64_standalone", ++ ":u8-rdminmax_riscv64_standalone", ++ ":u8-rminmax_riscv64_standalone", ++ ":u8-vclamp_arch=rv64gcv-abi=lp64d_standalone", ++ ":u8-vclamp_riscv64_standalone", ++ ":x16-transposec_riscv64_standalone", ++ ":x16-x32-packw_riscv64_standalone", ++ ":x24-transposec_riscv64_standalone", ++ ":x32-packw_arch=rv64gcv-abi=lp64d_standalone", ++ ":x32-packw_riscv64_standalone", ++ ":x32-transposec_arch=rv64gcv-abi=lp64d_standalone", ++ ":x32-transposec_riscv64_standalone", ++ ":x32-unpool_riscv64_standalone", ++ ":x64-transposec_riscv64_standalone", ++ ":x8-lut_riscv64_standalone", ++ ":x8-packq_riscv64_standalone", ++ ":x8-packw_riscv64_standalone", ++ ":x8-transposec_riscv64_standalone", ++ ":xx-copy_riscv64_standalone", ++ ":xx-fill_riscv64_standalone", ++ ":xx-pad_riscv64_standalone", ++ ":xx-transposev_riscv64_standalone" ++ ] ++ } +} else +if (current_cpu == "ppc64") { + @@ -365,9 +1800,178 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + ":xx-fill_ppc64", + ":xx-pad_ppc64", + ":xx-transposev_ppc64" -+ ] -+ -+ xnnpack_standalone_deps = [ + ] + + if (build_with_internal_optimization_guide) { + xnnpack_standalone_deps = [ +- ":configs_riscv64_standalone", +- ":enums_riscv64_standalone", +- ":f16-f32-vcvt_riscv64_standalone", +- ":f16-qs8-vcvt_riscv64_standalone", +- ":f16-qu8-vcvt_riscv64_standalone", +- ":f16-rdminmax_riscv64_standalone", +- ":f16-rminmax_riscv64_standalone", +- ":f16-vapproxgelu_riscv64_standalone", +- ":f16-vcos_riscv64_standalone", +- ":f16-vexp_riscv64_standalone", +- ":f16-vgelu_riscv64_standalone", +- ":f16-vsin_riscv64_standalone", +- ":f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-argmaxpool_riscv64_standalone", +- ":f32-avgpool_riscv64_standalone", +- ":f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-conv-hwc2chw_riscv64_standalone", +- ":f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-dwconv2d-chw_riscv64_standalone", +- ":f32-dwconv_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-dwconv_riscv64_standalone", +- ":f32-f16-vcvt_riscv64_standalone", +- ":f32-gemm_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-gemm_riscv64_standalone", +- ":f32-ibilinear-chw_riscv64_standalone", +- ":f32-ibilinear_riscv64_standalone", +- ":f32-igemm_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-igemm_riscv64_standalone", +- ":f32-maxpool_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-maxpool_riscv64_standalone", +- ":f32-qc4w-gemm_riscv64_standalone", +- ":f32-qc8w-gemm_riscv64_standalone", +- ":f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-qs8-vcvt_riscv64_standalone", +- ":f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-qu8-vcvt_riscv64_standalone", +- ":f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-raddstoreexpminusmax_riscv64_standalone", +- ":f32-rdminmax_riscv64_standalone", +- ":f32-rdsum_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-rdsum_riscv64_standalone", +- ":f32-rminmax_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-rminmax_riscv64_standalone", +- ":f32-rsum_riscv64_standalone", +- ":f32-spmm_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-spmm_riscv64_standalone", +- ":f32-vapproxgelu_riscv64_standalone", +- ":f32-vbinary_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-vbinary_riscv64_standalone", +- ":f32-vclamp_riscv64_standalone", +- ":f32-vcmul_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-vcmul_riscv64_standalone", +- ":f32-vcopysign_riscv64_standalone", +- ":f32-vcos_riscv64_standalone", +- ":f32-velu_riscv64_standalone", +- ":f32-vexp_riscv64_standalone", +- ":f32-vgelu_riscv64_standalone", +- ":f32-vhswish_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-vhswish_riscv64_standalone", +- ":f32-vlog_riscv64_standalone", +- ":f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-vlrelu_riscv64_standalone", +- ":f32-vmulcaddc_riscv64_standalone", +- ":f32-vrnd_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-vrnd_riscv64_standalone", +- ":f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone", +- ":f32-vrsqrt_riscv64_standalone", +- ":f32-vsigmoid_riscv64_standalone", +- ":f32-vsin_riscv64_standalone", +- ":f32-vsqrt_riscv64_standalone", +- ":f32-vtanh_riscv64_standalone", +- ":f32-vunary_riscv64_standalone", +- ":operators_riscv64_standalone", +- ":qd8-f32-qb4w-gemm_riscv64_standalone", +- ":qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone", +- ":qd8-f32-qc4w-gemm_riscv64_standalone", +- ":qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone", +- ":qd8-f32-qc8w-gemm_riscv64_standalone", +- ":qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone", +- ":qd8-f32-qc8w-igemm_riscv64_standalone", +- ":qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-dwconv_riscv64_standalone", +- ":qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-f32-vcvt_riscv64_standalone", +- ":qs8-packw_riscv64_standalone", +- ":qs8-qc4w-gemm_riscv64_standalone", +- ":qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-qc8w-dwconv_riscv64_standalone", +- ":qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-qc8w-gemm_riscv64_standalone", +- ":qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-qc8w-igemm_riscv64_standalone", +- ":qs8-qu8-packw_riscv64_standalone", +- ":qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-rdsum_riscv64_standalone", +- ":qs8-rsum_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-rsum_riscv64_standalone", +- ":qs8-vadd_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-vadd_riscv64_standalone", +- ":qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-vaddc_riscv64_standalone", +- ":qs8-vcvt_riscv64_standalone", +- ":qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-vlrelu_riscv64_standalone", +- ":qs8-vmul_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-vmul_riscv64_standalone", +- ":qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone", +- ":qs8-vmulc_riscv64_standalone", +- ":qs8-vprelu_riscv64_standalone", +- ":qs8-vpreluc_riscv64_standalone", +- ":qs8-vrpreluc_riscv64_standalone", +- ":qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-dwconv_riscv64_standalone", +- ":qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-f32-vcvt_riscv64_standalone", +- ":qu8-gemm_riscv64_standalone", +- ":qu8-igemm_riscv64_standalone", +- ":qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-rdsum_riscv64_standalone", +- ":qu8-rsum_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-rsum_riscv64_standalone", +- ":qu8-vadd_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-vadd_riscv64_standalone", +- ":qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-vaddc_riscv64_standalone", +- ":qu8-vcvt_riscv64_standalone", +- ":qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-vlrelu_riscv64_standalone", +- ":qu8-vmul_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-vmul_riscv64_standalone", +- ":qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone", +- ":qu8-vmulc_riscv64_standalone", +- ":qu8-vprelu_riscv64_standalone", +- ":qu8-vpreluc_riscv64_standalone", +- ":qu8-vrpreluc_riscv64_standalone", +- ":reference_riscv64_standalone", +- ":s8-ibilinear_riscv64_standalone", +- ":s8-maxpool_riscv64_standalone", +- ":s8-rdminmax_riscv64_standalone", +- ":s8-rminmax_riscv64_standalone", +- ":s8-vclamp_arch=rv64gcv-abi=lp64d_standalone", +- ":s8-vclamp_riscv64_standalone", +- ":subgraph_riscv64_standalone", +- ":tables_riscv64_standalone", +- ":u8-ibilinear_riscv64_standalone", +- ":u8-lut32norm_riscv64_standalone", +- ":u8-maxpool_riscv64_standalone", +- ":u8-rdminmax_riscv64_standalone", +- ":u8-rminmax_riscv64_standalone", +- ":u8-vclamp_arch=rv64gcv-abi=lp64d_standalone", +- ":u8-vclamp_riscv64_standalone", +- ":x16-transposec_riscv64_standalone", +- ":x16-x32-packw_riscv64_standalone", +- ":x24-transposec_riscv64_standalone", +- ":x32-packw_arch=rv64gcv-abi=lp64d_standalone", +- ":x32-packw_riscv64_standalone", +- ":x32-transposec_arch=rv64gcv-abi=lp64d_standalone", +- ":x32-transposec_riscv64_standalone", +- ":x32-unpool_riscv64_standalone", +- ":x64-transposec_riscv64_standalone", +- ":x8-lut_riscv64_standalone", +- ":x8-packq_riscv64_standalone", +- ":x8-packw_riscv64_standalone", +- ":x8-transposec_riscv64_standalone", +- ":xx-copy_riscv64_standalone", +- ":xx-fill_riscv64_standalone", +- ":xx-pad_riscv64_standalone", +- ":xx-transposev_riscv64_standalone", + ":configs_ppc64_standalone", + ":enums_ppc64_standalone", + ":f16-f32-vcvt_ppc64_standalone", @@ -489,11 +2093,19 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + ":xx-fill_ppc64_standalone", + ":xx-pad_ppc64_standalone", + ":xx-transposev_ppc64_standalone" - ] + ] + } } else { - xnnpack_deps = [] -@@ -1809,8 +2065,8 @@ source_set("xnnpack") { - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +@@ -1840,6 +2098,7 @@ if (current_cpu == "x64" || current_cpu + } + } + ++ + source_set("xnnpack") { + public = [ "src/include/xnnpack.h" ] + +@@ -1849,8 +2108,8 @@ source_set("xnnpack") { + configs += [ ":xnnpack_private_config" ] sources = [ - "build_identifier.c", @@ -503,7 +2115,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn "src/src/allocator.c", "src/src/cache.c", "src/src/datatype.c", -@@ -1831,15 +2087,15 @@ source_set("xnnpack") { +@@ -1871,15 +2130,15 @@ source_set("xnnpack") { "src/src/runtime.c", "src/src/sanitizers.c", "src/src/subgraph.c", @@ -523,42 +2135,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] - public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_public_config" ] } -@@ -1853,8 +2109,8 @@ source_set("xnnpack_standalone") { - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +@@ -1895,37 +2154,37 @@ if (build_with_internal_optimization_gui + configs += [ ":xnnpack_private_config" ] - sources = [ -- "build_identifier.c", -- "src/include/xnnpack.h", -+ "src/include/xnnpack.h", -+ "build_identifier.c", - "src/src/allocator.c", - "src/src/cache.c", - "src/src/datatype.c", -@@ -1875,15 +2131,15 @@ source_set("xnnpack_standalone") { - "src/src/runtime.c", - "src/src/sanitizers.c", - "src/src/subgraph.c", -- "src/src/tensor.c", + sources = [ +- "build_identifier.c", +- "src/include/xnnpack.h", ++ "src/include/xnnpack.h", ++ "build_identifier.c", + "src/src/allocator.c", +- "src/src/cache.c", +- "src/src/datatype.c", +- "src/src/indirection.c", +- "src/src/init.c", +- "src/src/log.c", +- "src/src/memory-planner.c", +- "src/src/memory.c", +- "src/src/microkernel-utils.c", +- "src/src/microparams-init.c", +- "src/src/mutex.c", +- "src/src/normalization.c", +- "src/src/operator-delete.c", +- "src/src/operator-run.c", +- "src/src/operator-utils.c", +- "src/src/pack-lh.cc", +- "src/src/params.c", +- "src/src/runtime.c", +- "src/src/sanitizers.c", +- "src/src/subgraph.c", +- "src/src/tensor.c", ++ "src/src/cache.c", ++ "src/src/datatype.c", ++ "src/src/indirection.c", ++ "src/src/init.c", ++ "src/src/log.c", ++ "src/src/memory-planner.c", ++ "src/src/memory.c", ++ "src/src/microkernel-utils.c", ++ "src/src/microparams-init.c", ++ "src/src/mutex.c", ++ "src/src/normalization.c", ++ "src/src/operator-delete.c", ++ "src/src/operator-run.c", ++ "src/src/operator-utils.c", ++ "src/src/pack-lh.cc", ++ "src/src/params.c", ++ "src/src/runtime.c", ++ "src/src/sanitizers.c", ++ "src/src/subgraph.c", + "src/src/tensor.c" - ] + ] - deps = xnnpack_standalone_deps + [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] + deps = xnnpack_standalone_deps + [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - public_configs = [ ":xnnpack_config" ] + public_configs = [ ":xnnpack_public_config" ] -@@ -1893,48874 +2149,57472 @@ source_set("xnnpack_standalone") { +@@ -1936,35 +2195,87 @@ if (build_with_internal_optimization_gui } if (current_cpu == "x64" || current_cpu == "x86") { @@ -600,7 +2244,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -608,18 +2253,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("configs_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", ++if (build_with_internal_optimization_guide) { ++ source_set("configs_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", + "src/src/configs/avgpool-config.c", + "src/src/configs/binary-elementwise-config.c", + "src/src/configs/cmul-config.c", @@ -643,28722 +2312,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/configs/x8-lut-config.c", + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("configs_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("enums_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("enums_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-avgpool_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-dwconv_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32acc-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32acc-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-ibilinear_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-maxpool_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-maxpool_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-maxpool_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qs8-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qs8-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qu8-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qu8-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rdminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rdminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512fp16", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512fp16", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rminmax_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vapproxgelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vapproxgelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512fp16", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512fp16", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vbinary_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vclamp_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vcos_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vcos_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-velu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-velu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vexp_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vexp_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vgelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vgelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vhswish_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vrnd_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsigmoid_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsin_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vtanh_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vtanh_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vunary_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vunary_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vunary_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-argmaxpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-argmaxpool_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-avgpool_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-avgpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-avgpool_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-conv-hwc2chw_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-conv-hwc2chw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { -- cflags = [ -- "-mf16c", -- "-mno-avx2", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear-chw_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear-chw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear-chw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-maxpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-maxpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-maxpool_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-maxpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rsum_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rsum_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rsum_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-spmm_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-spmm_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-spmm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-spmm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vclamp_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vclamp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vclamp_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vmulcaddc_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vmulcaddc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsqrt_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsqrt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsqrt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_f16c-fma-no-avx2") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { -- cflags = [ -- "-mf16c", -- "-mfma", -- "-mno-avx2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("operators_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("operators_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f16-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc4w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qu8-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vprelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vprelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vpreluc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vrpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vrpreluc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rdsum_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rdsum_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rsum_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rsum_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rsum_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vprelu_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vprelu_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vpreluc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vrpreluc_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vrpreluc_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("reference_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("reference_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-ibilinear_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-ibilinear_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-ibilinear_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-maxpool_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-maxpool_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rdminmax_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rdminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rminmax_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("subgraph_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("subgraph_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("tables_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("tables_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-ibilinear_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-ibilinear_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-ibilinear_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-lut32norm_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-lut32norm_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-maxpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-maxpool_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rdminmax_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rdminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rminmax_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rminmax_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-packw_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-packw_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-transposec_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-transposec_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-transposec_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-x32-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-x32-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x24-transposec_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x24-transposec_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_avx512f") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-transposec_sse-no-sse2") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/x32-transposec-4x4-sse.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_sse-no-sse2_standalone") { -- cflags = [ -- "-mno-sse2", -- "-msse", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/x32-transposec-4x4-sse.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-transposec_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-unpool_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-unpool_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x64-transposec_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x64-transposec_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-lut_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vbmi", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vbmi", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-lut_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packq_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-packq_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packw_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-packw_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-transposec_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-transposec_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-transposec_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-copy_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-copy_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-fill_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-sse2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-fill_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-sse2-u64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-fill_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-fill_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-pad_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-pad_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-pad_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-pad_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-transposev_x64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-transposev_x64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -1976,75 +2287,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("configs_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } } - } - --if (current_cpu == "arm64") { -- source_set("configs_arm64") { -- cflags = [] ++} ++ +source_set("enums_x64") { + cflags = [ + @@ -29376,7 +2399,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("enums_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -29384,11221 +2410,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("enums_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", ++if (build_with_internal_optimization_guide) { ++ source_set("enums_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", + "src/src/enums/datatype-strings.c", + "src/src/enums/microkernel-type.c", + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("configs_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("enums_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("enums_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-avgpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-dwconv_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-maxpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qs8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qs8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qu8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qu8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rminmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-spmm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vapproxgelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vapproxgelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vbinary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vclamp_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vcmul_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vcos_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vcos_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vcos_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-velu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vexp_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vexp_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vexp_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vgelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vgelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vgelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vhswish_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vrnd_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsin_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsin_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vtanh_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vunary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-argmaxpool_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-avgpool_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-conv-hwc2chw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear-chw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear-chw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-maxpool_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-maxpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rsum_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-spmm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-spmm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vclamp_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vmulcaddc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsqrt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("operators_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("operators_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc4w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qu8-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vprelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vpreluc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vrpreluc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rdsum_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rsum_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vprelu_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vpreluc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vrpreluc_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("reference_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("reference_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-ibilinear_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-maxpool_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("subgraph_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("subgraph_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("tables_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("tables_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-ibilinear_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-lut32norm_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-lut32norm_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-maxpool_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rdminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rminmax_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-transposec_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-x32-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-x32-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x24-transposec_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-transposec_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-unpool_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x64-transposec_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-lut_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packq_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-packq_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-packw_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-transposec_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-copy_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-copy_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-fill_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-neon-u64.c", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-fill_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-neon-u64.c", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-pad_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-neon-u16.c", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-pad_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-neon-u16.c", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-transposev_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-transposev_arm64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2056,56 +2352,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("enums_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } } - } - --if (current_cpu == "riscv64") { -- source_set("configs_riscv64") { -- cflags = [] ++} ++ +source_set("f16-avgpool_f16c-no-avx2-no-fma") { + cflags = [ + "-mf16c", @@ -40614,6 +2497,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -40621,39 +2505,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-avgpool_f16c-no-avx2-no-fma") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2117,59 +2413,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-dwconv_f16c-fma-no-avx2") { @@ -40674,6 +2595,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -40682,41 +2604,83 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-dwconv_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", + "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", + "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", + "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2181,60 +2480,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { @@ -40735,7 +2699,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -40743,39 +2709,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2246,62 +2543,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -40788,7 +2792,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set( +- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" @@ -40797,6 +2803,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -40805,42 +2812,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2313,61 +2612,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { @@ -40858,6 +2910,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -40866,40 +2919,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2379,55 +2673,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f16-f32-vcvt_sse2-no-sse3") { +source_set("f16-f32-vcvt_sse2-no-sse3") { + cflags = [ + "-mno-sse3", @@ -40914,6 +3005,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -40922,37 +3014,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2439,54 +2732,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { @@ -40965,10 +3091,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" + ] -+ + +- source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -40977,149 +3105,248 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2498,51 +2791,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", +- ] +source_set("f16-f32-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-f32-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2554,53 +2848,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +source_set("f16-f32acc-gemm_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", + "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-f32acc-gemm_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", + "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2612,58 +2911,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32acc-igemm_f16c-fma-avx2") { @@ -41138,7 +3365,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-f32acc-igemm_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -41146,39 +3375,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", + "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2675,62 +2974,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -41200,6 +3466,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41207,43 +3474,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2742,61 +3043,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { @@ -41261,6 +3575,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41269,38 +3584,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2808,61 +3104,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -41322,6 +3674,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41330,42 +3683,89 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2874,61 +3173,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { @@ -41383,6 +3783,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41391,38 +3792,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -2940,56 +3234,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-ibilinear_f16c-fma-no-avx2") { @@ -41440,7 +3878,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-ibilinear_f16c-fma-no-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -41448,38 +3888,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3001,56 +3295,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-maxpool_f16c-fma-avx2") { @@ -41488,7 +3964,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set("f16-maxpool_f16c-fma-avx2") { + sources = [ + "src/include/xnnpack.h", + "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" @@ -41497,6 +3974,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41505,38 +3983,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-maxpool_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-maxpool_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3062,55 +3356,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-maxpool_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-maxpool_sse4.1-no-sse4.2") { @@ -41553,6 +4067,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41561,200 +4076,328 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-maxpool_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3122,51 +3415,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", +- ] +source_set("f16-qs8-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-qs8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3178,48 +3472,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +source_set("f16-qu8-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-qu8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3231,52 +3529,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qu8-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3288,53 +3590,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-rdminmax_x64") { @@ -41771,7 +4414,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-rdminmax_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -41779,39 +4425,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3346,60 +3649,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rdminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] +source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ + "-mavx512bw", @@ -41822,63 +4479,130 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3411,73 +3722,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { @@ -41905,6 +4629,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41912,14 +4637,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -41929,31 +4666,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3489,66 +3801,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-rminmax_f16c-no-avx2-no-fma") { @@ -41971,6 +4752,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -41979,38 +4761,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-rminmax_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3560,54 +3862,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-rminmax_x64") { @@ -42028,6 +4847,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42035,94 +4855,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-rminmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3619,50 +3923,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +source_set("f16-vapproxgelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vapproxgelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3674,78 +3980,106 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { + cflags = [ + "-mavx512bw", @@ -42136,7 +5000,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mfma", + "-mgfni" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", @@ -42159,25 +5027,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", + "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { +# This is a target that cannot depend on //base. -+source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -42187,11 +5080,30 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", + "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", + "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", + "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", @@ -42210,24 +5122,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", + "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", + "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3757,100 +4091,92 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vbinary_f16c-no-avx2-no-fma") { @@ -42236,7 +5205,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-avx2", + "-mno-fma" + ] -+ + +- source_set("f16-vbinary_f16c-no-avx2-no-fma") { + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", @@ -42263,6 +5233,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42271,20 +5242,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", + "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", + "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", + "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", @@ -42303,24 +5296,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", + "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", + "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3862,74 +4188,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vclamp_f16c-no-avx2-no-fma") { @@ -42338,6 +5380,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42345,312 +5388,506 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vclamp_f16c-no-avx2-no-fma") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3941,52 +4249,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", +- ] +source_set("f16-vcos_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vcos_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vcos_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -3998,52 +4306,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcos_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +source_set("f16-velu_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-velu_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f16-velu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-velu_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4055,52 +4367,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-velu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- ] +source_set("f16-vexp_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vexp_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vexp_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4112,48 +4424,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +source_set("f16-vgelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vgelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4165,52 +4481,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vgelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +source_set("f16-vhswish_f16c-no-avx2-no-fma") { + cflags = [ + "-mf16c", + "-mno-avx2", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-vhswish_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4222,56 +4542,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vlrelu_f16c-no-avx2-no-fma") { @@ -42668,6 +5905,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42676,38 +5914,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4283,56 +4603,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vmulcaddc_f16c-fma-no-avx2") { @@ -42725,7 +6000,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -42733,38 +6010,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4344,59 +4664,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vrnd_f16c-no-avx2-no-fma") { @@ -42773,7 +6086,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-avx2", + "-mno-fma" + ] -+ + +- source_set("f16-vrnd_f16c-no-avx2-no-fma") { + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", @@ -42785,6 +6099,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42793,41 +6108,82 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", + "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", + "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", + "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4408,59 +4731,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { @@ -42845,6 +6201,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42852,39 +6209,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4472,56 +4792,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vsigmoid_f16c-fma-avx2") { @@ -42902,6 +6296,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -42910,148 +6305,249 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-vsigmoid_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4533,52 +4853,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", +- ] +source_set("f16-vsin_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vsin_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vsin_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4590,52 +4910,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +source_set("f16-vsqrt_f16c-no-avx2-no-fma") { + cflags = [ + "-mf16c", + "-mno-avx2", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4647,56 +4971,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vtanh_f16c-fma-no-avx2") { @@ -43069,6 +6565,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43076,39 +6573,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vtanh_f16c-fma-no-avx2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4708,56 +5032,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vtanh_f16c-no-avx2-no-fma") { @@ -43126,6 +6660,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43134,38 +6669,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-vtanh_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4769,56 +5093,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vunary_f16c-no-avx2-no-fma") { @@ -43183,7 +6755,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-vunary_f16c-no-avx2-no-fma") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -43191,38 +6765,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4830,56 +5154,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vunary_sse2-no-sse3") { @@ -43240,6 +6850,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43248,38 +6859,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f16-vunary_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f16-vunary_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vunary_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", + "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4891,55 +5215,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-argmaxpool_sse2-no-sse3") { @@ -43296,6 +6943,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43303,93 +6951,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-argmaxpool_sse2-no-sse3") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -4951,51 +5274,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", +- ] +source_set("f32-argmaxpool_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-argmaxpool_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5007,53 +5331,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -43397,333 +7090,528 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5065,53 +5394,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-avgpool_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-avgpool_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5123,51 +5451,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", +- ] +source_set("f32-avgpool_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-avgpool_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5179,51 +5510,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", +- ] +source_set("f32-avgpool_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-avgpool_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5235,51 +5567,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +source_set("f32-conv-hwc2chw_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-conv-hwc2chw_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5291,51 +5626,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- ] +source_set("f32-conv-hwc2chw_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-conv-hwc2chw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5347,54 +5683,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-conv-hwc2chw_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +source_set("f32-dwconv2d-chw_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", @@ -43731,52 +7619,105 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-dwconv2d-chw_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5406,57 +5748,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { @@ -43793,7 +7734,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -43801,37 +7744,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5468,58 +5807,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv2d-chw_x64") { @@ -43854,6 +7831,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43861,19 +7839,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-dwconv2d-chw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", @@ -43881,26 +7869,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5531,63 +5878,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { +source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -43920,6 +7943,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43928,42 +7952,85 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", + "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", + "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5599,59 +5947,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv_avx512f") { @@ -43978,10 +8045,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" + ] -+ + +- source_set("f32-dwconv_avx512f") { +- cflags = [ "-mavx512f" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -43990,39 +8060,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", + "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", + "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5663,58 +6010,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv_f16c-fma-no-avx2") { @@ -44043,6 +8147,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44051,41 +8156,83 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-dwconv_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", + "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", + "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5726,61 +6077,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv_sse-no-sse2") { @@ -44105,7 +8252,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-dwconv_sse-no-sse2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44113,40 +8262,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", + "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", + "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5792,63 +6142,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv_x64") { @@ -44171,6 +8359,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44178,19 +8367,31 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-dwconv_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", @@ -44200,26 +8401,63 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5860,62 +6217,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { +source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -44236,6 +8474,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44244,39 +8483,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5927,62 +6280,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -44294,10 +8571,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" + ] -+ + +- source_set( +- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44306,42 +8586,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -5994,61 +6349,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { @@ -44359,6 +8684,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44367,38 +8693,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { + cflags = [ + "-mf16c", +- "-mno-avx2", +- "-mno-fma", + "-mno-avx2", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6060,55 +6410,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-f16-vcvt_sse2-no-sse3") { @@ -44415,7 +8778,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-f16-vcvt_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44423,37 +8788,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6120,54 +6469,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { @@ -44470,6 +8869,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44478,92 +8878,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6179,51 +6528,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- ] +source_set("f32-f16-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-f16-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6235,56 +6585,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -44571,7 +9016,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", @@ -44579,54 +9028,111 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6296,59 +6654,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-gemm_avx512f") { @@ -44645,6 +9151,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44652,40 +9159,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-gemm_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6360,63 +6717,72 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-gemm_f16c-fma-no-avx2") { @@ -44701,15 +9244,18 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" + ] -+ + +- source_set("f32-gemm_f16c-fma-no-avx2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44718,45 +9264,97 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", + "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6428,65 +6794,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-gemm_sse-no-sse2") { @@ -44775,6 +9373,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44782,40 +9381,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-gemm_sse-no-sse2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", + "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", + "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6498,60 +6857,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-gemm_x64") { @@ -44838,7 +9475,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-gemm_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -44846,18 +9486,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", @@ -44865,24 +9513,58 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6563,58 +6928,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-ibilinear-chw_sse-no-sse2") { @@ -44899,6 +9581,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -44906,201 +9589,308 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear-chw_sse-no-sse2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6626,51 +6987,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", +- ] +source_set("f32-ibilinear-chw_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear-chw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6682,51 +7044,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear-chw_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +source_set("f32-ibilinear_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-ibilinear_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6738,51 +7103,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", +- ] +source_set("f32-ibilinear_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6794,56 +7160,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] +source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -45108,7 +9898,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", @@ -45116,54 +9910,111 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6855,59 +7229,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-igemm_avx512f") { @@ -45178,10 +10029,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" + ] -+ + +- source_set("f32-igemm_avx512f") { +- cflags = [ "-mavx512f" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45190,39 +10044,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-igemm_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6919,62 +7292,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-igemm_f16c-fma-no-avx2") { @@ -45247,6 +10135,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45255,20 +10144,32 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-igemm_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-igemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", @@ -45276,24 +10177,62 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", + "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", + "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -6986,64 +7367,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-igemm_sse-no-sse2") { @@ -45312,7 +10251,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-igemm_sse-no-sse2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -45320,39 +10261,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-igemm_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", + "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", + "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7055,60 +7430,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-igemm_x64") { @@ -45375,6 +10353,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45382,19 +10361,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-igemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-igemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -45402,24 +10391,58 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7120,58 +7501,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-maxpool_sse2-no-sse3") { @@ -45436,6 +10459,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45444,92 +10468,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-maxpool_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7183,51 +7560,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", +- ] +source_set("f32-maxpool_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-maxpool_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7239,54 +7617,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -45537,58 +10606,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7298,59 +7682,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc4w-gemm_f16c-fma-avx2") { @@ -45607,6 +10733,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45614,40 +10741,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc4w-gemm_f16c-fma-avx2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7362,58 +7745,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { @@ -45666,7 +10831,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -45674,39 +10841,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7425,57 +7808,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { @@ -45724,6 +10928,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45732,43 +10937,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7487,53 +7869,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc4w-gemm_x64") { + cflags = [ -+ + +- source_set("f32-qc4w-gemm_x64") { +- cflags = [] + ] + + sources = [ @@ -45780,6 +11023,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45787,40 +11031,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7545,55 +7928,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -45828,60 +11083,118 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7605,59 +7993,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-qc8w-gemm_f16c-fma-avx2") { +source_set("f32-qc8w-gemm_f16c-fma-avx2") { + cflags = [ + "-mavx2", @@ -45898,6 +11211,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45906,39 +11220,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7669,65 +8056,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -45963,6 +11314,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -45970,46 +11322,98 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7739,65 +8131,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { @@ -46028,7 +11432,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -46036,9030 +11442,85 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("configs_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("enums_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("enums_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-f32-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-f32-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qs8-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qs8-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-qu8-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-qu8-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rdminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rdminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-rminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-rminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vapproxgelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vapproxgelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vcos_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vcos_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vexp_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vexp_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vgelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vgelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f16-vsin_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f16-vsin_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-argmaxpool_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-argmaxpool_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-avgpool_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-avgpool_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-conv-hwc2chw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-conv-hwc2chw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv2d-chw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv2d-chw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-dwconv_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-dwconv_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-f16-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-f16-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear-chw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear-chw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-ibilinear_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-ibilinear_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-igemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-igemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-maxpool_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-maxpool_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc4w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc4w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qc8w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qc8w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qs8-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qs8-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-qu8-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-qu8-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-raddstoreexpminusmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-raddstoreexpminusmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rdsum_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rdsum_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-rsum_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-rsum_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-spmm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-spmm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vapproxgelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vapproxgelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vbinary_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vbinary_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vclamp_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vclamp_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcmul_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcmul_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcopysign_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcopysign_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vcos_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vcos_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-velu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-velu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vexp_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vexp_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vgelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vgelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vhswish_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vhswish_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlog_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlog_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vlrelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vlrelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vmulcaddc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vmulcaddc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrnd_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrnd_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vrsqrt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vrsqrt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsigmoid_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsigmoid_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsin_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsin_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vsqrt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vsqrt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vtanh_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vtanh_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("f32-vunary_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("f32-vunary_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("operators_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("operators_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qb4w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc4w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qd8-f32-qc8w-igemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-dwconv_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-dwconv_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-f32-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-f32-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-packw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-packw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc4w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc4w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-dwconv_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-dwconv_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qc8w-igemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qc8w-igemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-qu8-packw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-qu8-packw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rdsum_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rdsum_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-rsum_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-rsum_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vadd_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vadd_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vaddc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vaddc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vlrelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vlrelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmul_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmul_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vmulc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vmulc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vprelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vprelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vpreluc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vpreluc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qs8-vrpreluc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qs8-vrpreluc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-dwconv_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-dwconv_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-f32-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-f32-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-gemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-gemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-igemm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-igemm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rdsum_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rdsum_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-rsum_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-rsum_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vadd_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vadd_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vaddc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vaddc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vcvt_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vcvt_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vlrelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vlrelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmul_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmul_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vmulc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vmulc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vprelu_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vprelu_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vpreluc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vpreluc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("qu8-vrpreluc_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("qu8-vrpreluc_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("reference_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("reference_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-ibilinear_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-ibilinear_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-maxpool_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-maxpool_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rdminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rdminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-rminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-rminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("s8-vclamp_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("s8-vclamp_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("subgraph_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("subgraph_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("tables_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("tables_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-ibilinear_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-ibilinear_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-lut32norm_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-lut32norm_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-maxpool_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-maxpool_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rdminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rdminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-rminmax_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-rminmax_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("u8-vclamp_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("u8-vclamp_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-transposec_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-transposec_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x16-x32-packw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x16-x32-packw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x24-transposec_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x24-transposec_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-packw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-packw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { -- cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-transposec_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-transposec_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x32-unpool_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x32-unpool_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x64-transposec_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x64-transposec_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-lut_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-lut_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packq_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-packq_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-packw_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-packw_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("x8-transposec_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("x8-transposec_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-copy_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-copy_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-fill_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-fill_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-pad_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-pad_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- -- source_set("xx-transposev_riscv64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- } -- -- # This is a target that cannot depend on //base. -- source_set("xx-transposev_riscv64_standalone") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7809,57 +8194,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ +source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", @@ -55069,6 +11530,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55077,38 +11539,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7871,53 +8255,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc8w-gemm_x64") { @@ -55125,6 +11622,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55132,40 +11630,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc8w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7929,54 +8314,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -55173,56 +11684,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -7988,57 +8377,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_f16c-fma-avx2") { @@ -55240,6 +11807,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55248,38 +11816,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qs8-vcvt_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8050,61 +8438,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -55301,6 +11906,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55308,43 +11914,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8116,60 +8507,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_sse2-no-sse3") { @@ -55361,7 +12014,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-qs8-vcvt_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -55369,37 +12024,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8181,54 +8566,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { @@ -55416,6 +12105,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55424,42 +12114,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8240,52 +8625,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_x64") { + cflags = [ -+ + +- source_set("f32-qs8-vcvt_x64") { +- cflags = [] + ] + + sources = [ @@ -55471,6 +12198,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55478,40 +12206,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8297,54 +8684,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -55519,56 +12258,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8356,57 +8747,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qu8-vcvt_f16c-fma-avx2") { @@ -55586,6 +12381,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55594,38 +12390,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qu8-vcvt_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8418,61 +8808,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -55647,6 +12480,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55654,43 +12488,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8484,60 +8877,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qu8-vcvt_sse2-no-sse3") { @@ -55707,7 +12588,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-qu8-vcvt_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -55715,37 +12598,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8549,52 +8936,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qu8-vcvt_x64") { @@ -55762,6 +12679,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55769,148 +12687,245 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qu8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+ + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8606,49 +8995,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-raddstoreexpminusmax_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-raddstoreexpminusmax_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8660,52 +9052,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- ] +source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8717,61 +9113,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -55932,6 +12947,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -55939,43 +12955,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8783,60 +9182,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { @@ -55992,7 +13055,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -56000,92 +13065,136 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8848,51 +9241,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", +- ] +source_set("f32-raddstoreexpminusmax_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-raddstoreexpminusmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8904,54 +9298,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -56093,58 +13202,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -8963,55 +9363,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rdminmax_avx512f") { @@ -56161,6 +13327,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -56168,95 +13335,161 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdminmax_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9023,53 +9422,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdminmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", +- ] +source_set("f32-rdminmax_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rdminmax_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9081,53 +9483,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rdminmax_x64") { @@ -56273,7 +13506,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-rdminmax_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -56281,39 +13517,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9139,54 +9542,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] +source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -56321,219 +13568,348 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9198,53 +9605,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-rdsum_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdsum_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9256,51 +9662,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", +- ] +source_set("f32-rdsum_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rdsum_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9312,51 +9721,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", +- ] +source_set("f32-rdsum_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9368,55 +9778,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -56541,60 +13917,119 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9428,57 +9845,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rminmax_avx512f") { @@ -56612,7 +14047,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-rminmax_avx512f") { +- cflags = [ "-mavx512f" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -56620,97 +14058,165 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9490,55 +9906,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", +- ] +source_set("f32-rminmax_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rminmax_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9550,55 +9969,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rminmax_x64") { @@ -56728,6 +14234,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -56735,41 +14242,56 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rminmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9610,55 +10030,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -56777,272 +14299,453 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9670,53 +10093,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-rsum_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rsum_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rsum_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9728,51 +10150,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", +- ] +source_set("f32-rsum_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rsum_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-rsum_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9784,51 +10209,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", +- ] +source_set("f32-rsum_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rsum_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9840,51 +10266,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +source_set("f32-spmm_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-spmm_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-spmm_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9896,53 +10325,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-spmm_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-spmm_x64") { @@ -57060,6 +14763,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -57067,41 +14771,56 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-spmm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-spmm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -9954,55 +10386,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-spmm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -57109,166 +14828,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10014,53 +10449,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vapproxgelu_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vapproxgelu_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10072,52 +10506,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", +- ] +source_set("f32-vapproxgelu_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vapproxgelu_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10129,56 +10567,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vapproxgelu_sse2-no-sse3") { @@ -57286,6 +15126,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -57293,94 +15134,140 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vapproxgelu_sse2-no-sse3") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10190,52 +10628,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", +- ] +source_set("f32-vapproxgelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vapproxgelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10247,71 +10685,94 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -57388,7 +15275,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", @@ -57411,33 +15302,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", + "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", + "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", + "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", + "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", @@ -57456,24 +15384,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", + "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", + "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10323,89 +10784,88 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vbinary_avx512f") { @@ -57507,7 +15485,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vbinary_avx512f") { +- cflags = [ "-mavx512f" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -57515,18 +15496,37 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", + "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", + "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", + "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", @@ -57545,24 +15545,69 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", + "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", + "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10417,84 +10877,84 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vbinary_sse-no-sse2") { @@ -57594,6 +15639,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -57601,20 +15647,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vbinary_sse-no-sse2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", + "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", + "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", + "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", @@ -57630,24 +15695,69 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", + "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10506,71 +10966,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vbinary_sse2-no-sse3") { @@ -57666,6 +15776,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -57674,39 +15785,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vbinary_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", + "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", + "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10582,71 +11029,88 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vbinary_x64") { @@ -57740,6 +15889,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -57747,19 +15897,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vbinary_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", + "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", @@ -57778,24 +15949,69 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10658,71 +11122,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { @@ -57814,6 +16030,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -57822,310 +16039,506 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10734,53 +11185,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vclamp_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vclamp_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10792,51 +11242,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", +- ] +source_set("f32-vclamp_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vclamp_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10848,51 +11301,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", +- ] +source_set("f32-vclamp_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vclamp_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10904,48 +11358,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vcmul_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcmul_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -10957,52 +11415,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", +- ] +source_set("f32-vcmul_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcmul_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11014,55 +11476,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vcmul_sse-no-sse2") { @@ -58142,6 +16555,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -58150,92 +16564,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcmul_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11074,51 +11535,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", +- ] +source_set("f32-vcmul_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcmul_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11130,55 +11592,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -58243,60 +16702,119 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11190,57 +11659,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vcopysign_avx512f") { @@ -58314,6 +16832,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -58321,100 +16840,172 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcopysign_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11252,55 +11720,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcopysign_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", +- ] +source_set("f32-vcopysign_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcopysign_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11312,55 +11783,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcopysign_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-vcopysign_x64") { +- cflags = [] +source_set("f32-vcopysign_x64") { + cflags = [ + @@ -58430,6 +17021,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -58438,40 +17030,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11372,55 +11844,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcopysign_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -58479,166 +17084,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11432,53 +11907,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vcos_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcos_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcos_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11490,52 +11964,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", +- ] +source_set("f32-vcos_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcos_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vcos_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11547,56 +12025,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vcos_sse2-no-sse3") { @@ -58656,7 +17382,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vcos_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -58664,93 +17392,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vcos_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", + "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11608,52 +12086,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", +- ] +source_set("f32-vcos_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcos_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcos_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11665,53 +12143,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -58758,166 +17531,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", ++ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11723,53 +12206,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-velu_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-velu_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-velu_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", ++ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11781,52 +12263,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] +source_set("f32-velu_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-velu_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-velu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", ++ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11838,55 +12324,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-velu_sse2-no-sse3") { @@ -58934,6 +17828,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -58942,42 +17837,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-velu_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-velu_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", ++ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11898,51 +12383,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-velu_x64") { +- cflags = [] +source_set("f32-velu_x64") { + cflags = [ -+ + + ] + + sources = [ @@ -58988,6 +17920,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -58996,38 +17929,48 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-velu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -11954,53 +12440,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -59035,166 +17978,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12012,53 +12503,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vexp_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vexp_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vexp_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12070,52 +12560,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] +source_set("f32-vexp_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vexp_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vexp_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12127,56 +12621,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vexp_sse2-no-sse3") { @@ -59212,6 +18276,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -59220,93 +18285,139 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vexp_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vexp_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", + "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12188,52 +12682,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", +- ] +source_set("f32-vexp_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vexp_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vexp_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12245,53 +12739,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -59314,166 +18425,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12303,53 +12802,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vgelu_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vgelu_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12361,52 +12859,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", +- ] +source_set("f32-vgelu_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vgelu_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12418,56 +12920,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vgelu_sse2-no-sse3") { @@ -59491,6 +18723,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -59499,93 +18732,139 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vgelu_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", + "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12479,52 +12981,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", +- ] +source_set("f32-vgelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vgelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12536,53 +13038,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -59593,166 +18872,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-avx.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12594,53 +13101,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vhswish_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vhswish_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12652,52 +13158,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", +- ] +source_set("f32-vhswish_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vhswish_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12709,56 +13219,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vhswish_sse2-no-sse3") { @@ -59770,6 +19170,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -59778,203 +19179,334 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vhswish_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", + "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12770,52 +13280,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", +- ] +source_set("f32-vhswish_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vhswish_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12827,48 +13337,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vlog_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlog_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlog_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12880,52 +13394,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", +- ] +source_set("f32-vlog_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vlog_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vlog_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12937,56 +13455,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-vlog_f16c-fma-no-avx2") { +source_set("f32-vlog_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", @@ -59990,6 +19522,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -59998,38 +19531,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vlog_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -12998,56 +13516,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vlog_sse2-no-sse3") { @@ -60043,10 +19612,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", + "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" + ] -+ + +- source_set("f32-vlog_sse2-no-sse3") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60055,93 +19626,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vlog_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", + "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13059,52 +13577,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", +- ] +source_set("f32-vlog_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlog_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlog_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13116,53 +13634,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -60149,164 +19765,283 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13174,53 +13697,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vlrelu_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlrelu_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13232,51 +13754,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", +- ] +source_set("f32-vlrelu_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vlrelu_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13288,54 +13813,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vlrelu_sse4.1-no-sse4.2") { @@ -60323,6 +20058,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60331,145 +20067,242 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vlrelu_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13347,51 +13872,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", +- ] +source_set("f32-vlrelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlrelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13403,51 +13929,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +source_set("f32-vmulcaddc_sse-no-sse2") { + cflags = [ + "-mno-sse2", + "-msse" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vmulcaddc_sse-no-sse2") { +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13459,51 +13988,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vmulcaddc_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vmulcaddc_x64") { @@ -60485,7 +20318,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vmulcaddc_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -60493,38 +20329,48 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13515,56 +14045,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vmulcaddc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -60532,7 +20378,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", @@ -60540,54 +20390,111 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", + "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", + "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", + "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", + "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13576,59 +14114,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrnd_avx512f") { @@ -60606,6 +20513,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60613,40 +20521,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vrnd_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", + "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", + "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", + "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13640,57 +14177,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrnd_sse2-no-sse3") { @@ -60666,7 +20610,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vrnd_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -60674,40 +20620,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", + "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", + "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13702,60 +14242,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrnd_sse4.1-no-sse4.2") { @@ -60727,6 +20712,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60735,45 +20721,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vrnd_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", + "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", + "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13767,57 +14307,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrnd_x64") { + cflags = [ -+ + +- source_set("f32-vrnd_x64") { +- cflags = [] + ] + + sources = [ @@ -60787,6 +20815,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60794,40 +20823,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13829,57 +14370,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { @@ -60843,10 +20906,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" + ] -+ + +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60855,40 +20920,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13891,55 +14435,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrsqrt_avx512f") { @@ -60905,6 +21009,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -60912,95 +21017,161 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vrsqrt_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -13951,53 +14494,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", +- ] +source_set("f32-vrsqrt_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vrsqrt_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14009,53 +14555,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrsqrt_x64") { @@ -61017,7 +21188,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vrsqrt_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -61025,39 +21199,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14067,54 +14614,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -61065,166 +21250,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14126,53 +14677,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vsigmoid_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsigmoid_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14184,52 +14734,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] +source_set("f32-vsigmoid_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsigmoid_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14241,55 +14795,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vsigmoid_sse2-no-sse3") { @@ -61241,6 +21547,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -61249,37 +21556,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsigmoid_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14301,54 +14854,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vsigmoid_sse4.1-no-sse4.2") { @@ -61296,6 +21638,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -61304,92 +21647,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14360,51 +14913,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] +source_set("f32-vsigmoid_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsigmoid_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14416,53 +14970,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -61397,166 +21785,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14474,53 +15033,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vsin_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsin_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsin_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14532,52 +15090,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", +- ] +source_set("f32-vsin_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsin_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vsin_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14589,56 +15151,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vsin_sse2-no-sse3") { @@ -61564,7 +22073,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse3", + "-msse2" + ] -+ + +- source_set("f32-vsin_sse2-no-sse3") { + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", @@ -61574,6 +22084,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -61582,93 +22093,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vsin_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", + "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14650,52 +15212,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", +- ] +source_set("f32-vsin_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsin_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsin_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14707,54 +15269,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -61676,223 +22232,354 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14766,54 +15334,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vsqrt_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsqrt_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14825,52 +15391,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", +- ] +source_set("f32-vsqrt_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vsqrt_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14882,52 +15452,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", +- ] +source_set("f32-vsqrt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsqrt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14939,53 +15509,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -61900,166 +22587,287 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -14997,53 +15572,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f32-vtanh_avx512f") { + cflags = [ + "-mavx512f" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vtanh_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15055,52 +15629,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", +- ] +source_set("f32-vtanh_f16c-fma-no-avx2") { + cflags = [ + "-mf16c", + "-mfma", + "-mno-avx2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vtanh_f16c-fma-no-avx2") { +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { + cflags = [ + "-mf16c", +- "-mfma", +- "-mno-avx2", + "-mfma", + "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15112,56 +15690,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vtanh_sse2-no-sse3") { @@ -62077,7 +22885,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vtanh_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -62085,93 +22895,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", + "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15173,52 +15751,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", +- ] +source_set("f32-vtanh_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vtanh_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15230,55 +15808,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -62179,60 +23034,119 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-avx.c", + "src/src/f32-vunary/gen/f32-vneg-avx.c", + "src/src/f32-vunary/gen/f32-vsqr-avx.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-avx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", + "src/src/f32-vunary/gen/f32-vneg-avx.c", + "src/src/f32-vunary/gen/f32-vsqr-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15290,57 +15875,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vunary_avx512f") { @@ -62250,6 +23164,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62257,98 +23172,168 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vunary_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vunary_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-avx512f.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", + "src/src/f32-vunary/gen/f32-vneg-avx512f.c", + "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15352,55 +15936,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] +source_set("f32-vunary_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-sse2.c", + "src/src/f32-vunary/gen/f32-vneg-sse2.c", + "src/src/f32-vunary/gen/f32-vsqr-sse2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vunary_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("f32-vunary_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-sse2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", + "src/src/f32-vunary/gen/f32-vneg-sse2.c", + "src/src/f32-vunary/gen/f32-vsqr-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15412,55 +15999,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vunary_x64") { @@ -62366,7 +23351,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vunary_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -62374,38 +23362,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vunary_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15472,70 +16060,92 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("operators_x64") { @@ -62441,6 +23461,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62448,19 +23469,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("operators_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("operators_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", ++if (build_with_internal_optimization_guide) { ++ source_set("operators_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", + "src/src/operators/average-pooling-nhwc.c", + "src/src/operators/batch-matrix-multiply-nc.c", + "src/src/operators/binary-elementwise-nd.c", @@ -62481,24 +23525,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/operators/transpose-nd.c", + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15547,73 +16157,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("operators_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { @@ -62507,7 +23598,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", @@ -62517,6 +23609,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62525,39 +23618,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15625,59 +16220,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { @@ -62577,6 +23707,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62585,40 +23716,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15689,59 +16285,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { @@ -62637,6 +23808,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62645,39 +23817,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15753,63 +16348,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -62700,6 +23910,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62708,43 +23919,91 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15821,69 +16419,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -62768,6 +24027,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62776,13 +24036,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -62790,30 +24060,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15895,65 +16492,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { @@ -62833,6 +24143,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62841,40 +24152,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -15965,59 +16557,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { @@ -62889,10 +24240,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" + ] -+ + +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62901,39 +24254,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16029,63 +16620,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -62956,6 +24346,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -62964,43 +24355,91 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16097,69 +16691,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -63014,7 +24453,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", @@ -63024,6 +24465,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63032,13 +24474,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -63046,30 +24496,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16171,73 +16764,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -63096,6 +24586,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63104,13 +24595,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -63121,30 +24625,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16249,68 +16843,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { @@ -63164,6 +24711,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63171,41 +24719,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16322,59 +16908,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { @@ -63224,7 +24812,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -63232,39 +24822,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16386,63 +16971,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -63287,6 +24914,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63294,46 +24922,96 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16454,69 +17042,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { + cflags = [ + "-mavx512bw", @@ -63355,6 +25033,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63363,13 +25042,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -63377,30 +25064,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16528,73 +17115,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -63427,6 +25154,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63434,14 +25162,27 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -63452,30 +25193,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16606,68 +17194,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { @@ -63495,6 +25279,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63503,40 +25288,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16679,59 +17259,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { @@ -63555,6 +25380,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63562,40 +25388,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16743,64 +17322,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -63619,6 +25483,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63627,13 +25492,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -63641,30 +25516,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16812,71 +17395,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { @@ -63689,6 +25604,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63696,14 +25612,25 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -63712,30 +25639,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16888,64 +17470,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { @@ -63753,7 +25721,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -63761,38 +25731,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -16957,56 +17531,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { @@ -63810,6 +25815,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63818,43 +25824,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17018,53 +17592,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qb4w-gemm_x64") { + cflags = [ -+ + +- source_set("qd8-f32-qb4w-gemm_x64") { +- cflags = [] + ] + + sources = [ @@ -63866,6 +25910,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63873,40 +25918,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17076,55 +17651,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { + cflags = [ + "-mavx2", @@ -63914,58 +25970,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17136,59 +17716,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { @@ -63984,6 +26097,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -63992,39 +26106,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17200,65 +17779,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -64049,6 +26201,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64057,45 +26210,97 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17270,71 +17854,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -64119,6 +26324,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64127,13 +26333,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -64141,30 +26357,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17346,71 +17927,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { @@ -64189,6 +26445,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64197,13 +26454,24 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -64212,30 +26480,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17422,74 +18002,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -64258,10 +26567,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" + ] -+ + +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64270,13 +26582,24 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -64287,30 +26610,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17501,66 +18081,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { @@ -64328,7 +26694,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -64336,38 +26704,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17572,56 +18142,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { @@ -64375,16 +26778,18 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse4.1", + "-mssse3" + ] -+ + +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c" ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64393,38 +26798,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-ssse3-madd.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17633,53 +18203,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_x64") { @@ -64441,6 +26881,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64448,40 +26889,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc4w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17691,55 +18262,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { + cflags = [ + "-mavx2", @@ -64489,58 +26943,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17751,59 +18327,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { @@ -64555,10 +27066,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" + ] -+ + +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64567,39 +27080,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17815,65 +18390,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -64624,6 +27174,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64632,45 +27183,97 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17885,71 +18465,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -64684,7 +27287,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", @@ -64694,6 +27299,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64702,13 +27308,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -64716,30 +27330,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -17961,73 +18538,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -64766,6 +27420,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64774,13 +27429,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -64791,30 +27459,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18039,66 +18617,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { @@ -64832,6 +27543,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64839,39 +27551,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18110,56 +18678,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { @@ -64889,6 +27637,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64897,38 +27646,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18171,54 +18739,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_x64") { @@ -64946,6 +27731,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -64953,41 +27739,56 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18230,56 +18800,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { + cflags = [ + "-mavx2", @@ -64995,58 +27796,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18291,59 +18865,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { @@ -65065,6 +27923,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65073,39 +27932,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18355,65 +18928,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -65130,6 +28027,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65138,45 +28036,97 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18425,71 +19003,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -65200,6 +28150,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65208,13 +28159,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -65222,30 +28183,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18501,73 +19076,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -65272,6 +28273,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65280,13 +28282,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -65297,32 +28312,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18579,66 +19155,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { +source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { + cflags = [ + "-mno-sse3", @@ -65338,6 +28397,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65346,38 +28406,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18650,56 +19216,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { @@ -65391,10 +28486,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" + ] -+ + +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65403,38 +28500,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18711,54 +19277,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_x64") { @@ -65452,6 +28584,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65459,41 +28592,56 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-igemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18770,56 +19338,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -65501,58 +28649,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18831,59 +19403,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_f16c-fma-avx2") { @@ -65571,7 +28776,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-dwconv_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -65579,39 +28786,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18895,63 +19466,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -65634,6 +28878,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65641,44 +28886,92 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -18963,62 +19537,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_sse2-no-sse3") { @@ -65696,6 +28989,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65704,38 +28998,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-dwconv_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19030,56 +19598,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_sse4.1-no-sse4.2") { @@ -65753,6 +29083,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65761,38 +29092,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19091,55 +19659,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_x64") { @@ -65811,6 +29178,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65818,40 +29186,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-dwconv_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19151,55 +19722,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f16-vcvt_f16c-fma-avx2") { @@ -65869,6 +29273,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65877,38 +29282,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19211,57 +19783,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { @@ -65927,6 +29369,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65935,39 +29378,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19273,57 +19846,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f32-vcvt_f16c-fma-avx2") { @@ -65985,6 +29467,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -65993,38 +29476,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19335,61 +19907,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -66046,6 +29566,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66053,43 +29574,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19401,60 +19976,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f32-vcvt_sse2-no-sse3") { @@ -66106,7 +29674,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-f32-vcvt_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -66114,37 +29684,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19466,54 +20035,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { @@ -66161,6 +29765,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66169,92 +29774,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19525,51 +20094,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] +source_set("qs8-f32-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-f32-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19581,54 +20151,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +source_set("qs8-packw_avx2-avxvnni-f16c-fma") { + cflags = [ + "-mavx2", @@ -66262,16 +29912,133 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", + "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" + ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] ++} + +- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19640,58 +20216,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ ++source_set("qs8-packw_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c" ++ ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66280,40 +30047,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-packw_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19703,64 +20277,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -66338,6 +30140,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66345,14 +30148,24 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -66360,31 +30173,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", + "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", + "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19772,63 +20352,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-packw_x64") { @@ -66394,12 +30249,113 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-packw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19840,57 +20415,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ ++source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66408,91 +30364,337 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19902,59 +20480,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + -+# This is a target that cannot depend on //base. -+source_set("qs8-packw_x64_standalone") { ++source_set("qs8-qc4w-gemm_f16c-fma-avx2") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] ++} + +- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", ++ "-mf16c", ++ "-mfma" + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -19966,57 +20543,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + ++source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { ++ public_configs = [ ":xnnpack_public_config" ] ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", ++ "-mssse3" + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20028,52 +20604,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +source_set("qs8-qc4w-gemm_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc4w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20085,55 +20661,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] +source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -66500,60 +30702,119 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20145,61 +20728,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { @@ -66573,7 +30834,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -66581,40 +30844,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20211,65 +20793,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -66638,6 +30940,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66645,45 +30948,95 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20281,64 +20866,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-dwconv_sse2-no-sse3") { @@ -66702,6 +31055,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66710,39 +31064,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20350,58 +20929,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { @@ -66757,10 +31149,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" + ] -+ + +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66769,39 +31163,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20413,58 +20992,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-dwconv_x64") { @@ -66822,6 +31253,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66829,42 +31261,82 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-dwconv_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20476,59 +21059,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { @@ -66874,7 +31346,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", @@ -66884,6 +31357,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66892,40 +31366,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20540,60 +21124,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { @@ -66945,6 +31458,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -66952,41 +31466,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20605,60 +21189,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { @@ -67006,6 +31560,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67014,40 +31569,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", + "-mavxvnniint8", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20670,59 +21254,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_f16c-fma-avx2") { @@ -67066,6 +31661,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67073,40 +31669,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20734,65 +21317,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -67131,7 +31765,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -67139,45 +31776,95 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20804,71 +21392,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -67201,6 +31888,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67208,14 +31896,24 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -67223,30 +31921,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20880,73 +21465,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -67273,6 +32011,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67281,13 +32020,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -67298,30 +32050,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -20958,66 +21544,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_sse2-no-sse3") { @@ -67339,6 +32134,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67347,38 +32143,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-gemm_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21029,56 +21605,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { @@ -67396,7 +32228,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -67404,38 +32238,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21090,53 +21666,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_x64") { @@ -67452,6 +32321,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67459,40 +32329,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-gemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21148,55 +21725,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -67500,58 +32383,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21208,60 +21790,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { @@ -67571,6 +32511,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67579,40 +32520,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21273,60 +21855,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { @@ -67632,6 +32613,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67640,40 +32622,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", + "-mavxvnniint8", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21338,59 +21920,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_f16c-fma-avx2") { @@ -67692,6 +32714,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67700,39 +32723,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21402,65 +21983,70 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -67757,6 +32818,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67765,45 +32827,97 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21472,71 +22058,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -67827,6 +32941,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67835,13 +32950,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -67849,30 +32974,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21548,73 +22131,74 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { @@ -67895,10 +33060,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" + ] -+ + +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -67907,13 +33075,24 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -+ cflags = [ -+ "-mamx-int8", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { + cflags = [ + "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", + "-mamx-tile", + "-mavx512bw", + "-mavx512cd", @@ -67924,30 +33103,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma", + "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21626,66 +22210,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_sse2-no-sse3") { @@ -67965,7 +33187,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-qc8w-igemm_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -67973,38 +33197,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21697,56 +22271,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { @@ -68012,7 +33271,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", @@ -68022,6 +33282,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68030,38 +33291,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21758,53 +22332,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_x64") { @@ -68078,6 +33374,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68085,40 +33382,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-igemm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21816,54 +22391,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { + cflags = [ + "-mavx2", @@ -68126,56 +33436,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21875,63 +22454,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { @@ -68194,10 +33560,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" + ] -+ + +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68206,13 +33575,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -68220,139 +33597,242 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -21943,58 +22525,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", +- ] +source_set("qs8-qu8-packw_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qu8-packw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22006,52 +22582,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +source_set("qs8-rdsum_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-rdsum_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22063,60 +22643,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rdsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -68374,6 +33854,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68382,44 +33863,92 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22128,60 +22712,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-rdsum_sse4.1-no-sse4.2") { +- cflags = [ +source_set("qs8-rdsum_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", @@ -68434,6 +33963,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68442,92 +33972,136 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { ++ cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22193,51 +22771,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- ] +source_set("qs8-rdsum_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-rdsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22249,53 +22828,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rdsum_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { + cflags = [ + "-mavx2", @@ -68535,56 +34109,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { + cflags = [ + "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", + "-mavxvnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22307,57 +22891,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-rsum_f16c-fma-avx2") { @@ -68602,7 +34232,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-rsum_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -68610,38 +34242,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22369,61 +22952,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -68664,6 +34332,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68671,46 +34340,95 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", + "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22435,68 +23023,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { + cflags = [ + "-mavx512bw", @@ -68731,6 +34449,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68739,13 +34458,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -68753,29 +34480,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vnni", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22508,61 +23094,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-rsum_ssse3-no-sse4.1") { @@ -68792,6 +34558,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -68799,93 +34566,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-rsum_ssse3-no-sse4.1") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22574,51 +23153,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] +source_set("qs8-rsum_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-rsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22630,53 +23210,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -68893,56 +34705,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22688,57 +23273,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vadd_f16c-fma-avx2") { @@ -68960,7 +34828,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vadd_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -68968,38 +34838,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22750,60 +23334,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -69021,6 +34927,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69028,43 +34935,89 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22815,60 +23403,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vadd_sse2-no-sse3") { @@ -69081,6 +35034,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69089,37 +35043,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vadd_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22880,54 +23462,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vadd_sse4.1-no-sse4.2") { @@ -69136,6 +35125,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69144,37 +35134,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vadd_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22939,52 +23521,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vadd_x64") { @@ -69191,6 +35216,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69198,40 +35224,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vadd_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -22996,54 +23580,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -69239,56 +35278,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23055,57 +23643,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vaddc_f16c-fma-avx2") { @@ -69306,7 +35401,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vaddc_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -69314,38 +35411,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23117,60 +23704,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -69367,6 +35500,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69374,43 +35508,89 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23182,60 +23773,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vaddc_sse2-no-sse3") { @@ -69427,6 +35607,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69435,37 +35616,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vaddc_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23247,54 +23832,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vaddc_sse4.1-no-sse4.2") { @@ -69478,10 +35694,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" + ] -+ + +- source_set("qs8-vaddc_sse4.1-no-sse4.2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69490,37 +35708,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23306,52 +23891,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vaddc_x64") { @@ -69537,6 +35789,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69544,40 +35797,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vaddc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23363,54 +23950,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -69585,56 +35851,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23422,57 +24013,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vcvt_f16c-fma-avx2") { @@ -69652,7 +35974,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vcvt_f16c-fma-avx2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -69660,38 +35984,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23484,55 +24074,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vcvt_sse2-no-sse3") { @@ -69708,6 +36068,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69715,38 +36076,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vcvt_sse2-no-sse3") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23544,54 +24133,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vcvt_sse4.1-no-sse4.2") { @@ -69763,6 +36159,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69771,39 +36168,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vcvt_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23603,54 +24192,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vcvt_ssse3-no-sse4.1") { +source_set("qs8-vcvt_ssse3-no-sse4.1") { + cflags = [ + "-mno-sse4.1", @@ -69818,6 +36251,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69826,92 +36260,136 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23662,51 +24251,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", +- ] +source_set("qs8-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23718,53 +24308,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -69919,56 +36397,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23776,57 +24371,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vlrelu_f16c-fma-avx2") { @@ -69986,6 +36520,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -69993,39 +36528,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vlrelu_f16c-fma-avx2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23838,55 +24432,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vlrelu_sse2-no-sse3") { @@ -70042,7 +36614,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vlrelu_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -70050,37 +36624,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23898,54 +24491,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vlrelu_sse4.1-no-sse4.2") { @@ -70088,7 +36696,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" @@ -70097,6 +36706,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70105,37 +36715,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -23957,54 +24550,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vlrelu_ssse3-no-sse4.1") { @@ -70152,6 +36796,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70159,93 +36804,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vlrelu_ssse3-no-sse4.1") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24016,51 +24609,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] +source_set("qs8-vlrelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vlrelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24072,53 +24666,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -70253,58 +36943,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24130,56 +24729,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vmul_sse2-no-sse3") { +source_set("qs8-vmul_sse2-no-sse3") { + cflags = [ + "-mno-sse3", @@ -70319,6 +37066,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70327,37 +37075,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24191,54 +24788,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vmul_sse4.1-no-sse4.2") { @@ -70370,10 +37152,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" + ] -+ + +- source_set("qs8-vmul_sse4.1-no-sse4.2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70382,37 +37166,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24250,51 +24847,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vmul_x64") { @@ -70428,6 +37246,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70435,39 +37254,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vmul_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24306,53 +24904,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] +source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -70475,56 +37306,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24364,56 +24967,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vmulc_sse2-no-sse3") { @@ -70541,6 +37428,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70549,37 +37437,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vmulc_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24425,54 +25026,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vmulc_sse4.1-no-sse4.2") { @@ -70596,6 +37519,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -70603,38 +37527,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vmulc_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24484,51 +25085,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vmulc_x64") { @@ -70650,7 +37609,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vmulc_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -70658,368 +37620,570 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24540,52 +25142,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +source_set("qs8-vprelu_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vprelu_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-vprelu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24597,52 +25203,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vprelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", +- ] +source_set("qs8-vprelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vprelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vprelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24654,52 +25260,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vprelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +source_set("qs8-vpreluc_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vpreluc_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24711,52 +25321,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", +- ] +source_set("qs8-vpreluc_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vpreluc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vpreluc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24768,52 +25378,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vpreluc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +source_set("qs8-vrpreluc_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vrpreluc_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24825,52 +25439,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", +- ] +source_set("qs8-vrpreluc_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vrpreluc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vrpreluc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24882,54 +25496,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vrpreluc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -71027,60 +38191,118 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -24941,59 +25561,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-dwconv_f16c-fma-avx2") { +source_set("qu8-dwconv_f16c-fma-avx2") { + cflags = [ + "-mavx2", @@ -71097,6 +38319,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71105,39 +38328,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25005,63 +25624,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -71160,6 +38420,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71167,44 +38428,92 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25073,62 +25695,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-dwconv_sse2-no-sse3") { @@ -71222,7 +38531,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-dwconv_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -71230,38 +38541,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25140,56 +25756,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-dwconv_sse4.1-no-sse4.2") { @@ -71269,7 +38615,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- source_set("qu8-dwconv_sse4.1-no-sse4.2") { + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", @@ -71279,6 +38626,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71287,38 +38635,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25201,55 +25817,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-dwconv_x64") { @@ -71337,6 +38720,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71344,40 +38728,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-dwconv_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25261,56 +25880,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { @@ -71396,6 +38816,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71404,39 +38825,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25322,57 +25943,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-f32-vcvt_f16c-fma-avx2") { @@ -71454,6 +38914,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71461,39 +38922,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-f32-vcvt_f16c-fma-avx2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25384,61 +26004,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -71515,7 +39013,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -71523,42 +39024,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25450,60 +26073,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-f32-vcvt_sse2-no-sse3") { @@ -71575,6 +39121,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71582,38 +39129,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-f32-vcvt_sse2-no-sse3") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25515,54 +26132,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { @@ -71630,6 +39212,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71638,92 +39221,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25574,51 +26191,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", +- ] +source_set("qu8-f32-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-f32-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25630,54 +26248,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -71731,58 +39359,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25689,59 +26313,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-gemm_f16c-fma-avx2") { @@ -71801,6 +39486,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71809,39 +39495,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-gemm_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25753,62 +26376,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -71864,6 +39588,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71872,43 +39597,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25820,62 +26447,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-gemm_sse2-no-sse3") { @@ -71926,6 +39698,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71934,38 +39707,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-gemm_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25887,56 +26508,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-gemm_sse4.1-no-sse4.2") { @@ -71983,6 +39792,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -71990,39 +39800,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-gemm_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -25948,53 +26569,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-gemm_x64") { @@ -72039,7 +39885,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-gemm_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -72047,39 +39896,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26006,55 +26628,60 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -72087,58 +39947,115 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", + "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26066,59 +26693,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-igemm_f16c-fma-avx2") { @@ -72153,10 +40070,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" + ] -+ + +- source_set("qu8-igemm_f16c-fma-avx2") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72165,39 +40084,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26130,62 +26756,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -72220,6 +40176,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72228,43 +40185,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", + "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26197,62 +26827,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-igemm_sse2-no-sse3") { @@ -72272,7 +40276,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse3", + "-msse2" + ] -+ + +- source_set("qu8-igemm_sse2-no-sse3") { + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", @@ -72282,6 +40287,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72290,38 +40296,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26264,56 +26888,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-igemm_sse4.1-no-sse4.2") { @@ -72339,6 +40380,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72346,39 +40388,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-igemm_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26325,53 +26949,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-igemm_x64") { @@ -72395,7 +40473,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-igemm_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -72403,202 +40484,329 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26383,52 +27008,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +source_set("qu8-rdsum_ssse3-no-sse4.1") { + cflags = [ + "-mno-sse4.1", + "-mssse3" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-rdsum_ssse3-no-sse4.1") { +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26440,51 +27067,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- ] +source_set("qu8-rdsum_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-rdsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26496,52 +27124,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rdsum_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +source_set("qu8-rsum_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-rsum_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26553,55 +27185,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-rsum_sse2-no-sse3") { @@ -72615,6 +40823,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72623,92 +40832,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-rsum_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26613,51 +27244,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", +- ] +source_set("qu8-rsum_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-rsum_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26669,53 +27301,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] +source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -72716,56 +40970,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26727,57 +27364,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vadd_f16c-fma-avx2") { @@ -72774,7 +41084,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set("qu8-vadd_f16c-fma-avx2") { + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" @@ -72783,6 +41094,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72791,38 +41103,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26789,60 +27425,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -72844,6 +41192,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72852,42 +41201,88 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26854,60 +27494,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vadd_sse2-no-sse3") { @@ -72904,6 +41299,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72912,37 +41308,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vadd_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26919,54 +27553,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vadd_sse4.1-no-sse4.2") { @@ -72959,6 +41390,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -72966,38 +41398,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vadd_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -26978,52 +27612,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vadd_x64") { @@ -73014,7 +41481,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-vadd_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -73022,39 +41492,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27035,54 +27671,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -73062,56 +41543,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27094,57 +27734,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vaddc_f16c-fma-avx2") { @@ -73129,6 +41666,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73137,38 +41675,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vaddc_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27156,60 +27795,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -73190,6 +41765,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73198,42 +41774,88 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27221,60 +27864,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vaddc_sse2-no-sse3") { @@ -73246,10 +41868,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" + ] -+ + +- source_set("qu8-vaddc_sse2-no-sse3") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73258,37 +41882,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27286,54 +27923,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vaddc_sse4.1-no-sse4.2") { @@ -73305,6 +41963,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73312,38 +41971,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vaddc_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27345,52 +27982,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vaddc_x64") { @@ -73360,7 +42054,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-vaddc_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -73368,39 +42065,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27402,54 +28041,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -73408,56 +42116,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27461,57 +28104,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vcvt_f16c-fma-avx2") { @@ -73466,7 +42230,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set("qu8-vcvt_f16c-fma-avx2") { + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" @@ -73475,6 +42240,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73483,38 +42249,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27523,55 +28165,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vcvt_sse2-no-sse3") { @@ -73531,6 +42333,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73539,39 +42342,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vcvt_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27583,54 +28224,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vcvt_sse4.1-no-sse4.2") { +source_set("qu8-vcvt_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", @@ -73586,6 +42425,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73594,37 +42434,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27642,54 +28283,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vcvt_ssse3-no-sse4.1") { @@ -73637,10 +42511,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" + ] -+ + +- source_set("qu8-vcvt_ssse3-no-sse4.1") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73649,92 +42525,136 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27701,51 +28342,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", +- ] +source_set("qu8-vcvt_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vcvt_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27757,53 +28399,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -73742,56 +42662,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27815,57 +28462,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vlrelu_f16c-fma-avx2") { @@ -73809,6 +42785,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73817,38 +42794,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vlrelu_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27877,55 +28523,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vlrelu_sse2-no-sse3") { @@ -73856,7 +42870,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse3", + "-msse2" + ] -+ + +- source_set("qu8-vlrelu_sse2-no-sse3") { + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" @@ -73865,6 +42880,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73873,37 +42889,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27937,54 +28582,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vlrelu_sse4.1-no-sse4.2") { @@ -73920,6 +42970,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73927,38 +42978,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -27996,54 +28641,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vlrelu_ssse3-no-sse4.1") { @@ -73975,6 +43061,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -73983,92 +43070,137 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vlrelu_ssse3-no-sse4.1") { +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28055,51 +28700,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", +- ] +source_set("qu8-vlrelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vlrelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28111,53 +28757,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -74076,56 +43208,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28169,56 +28820,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vmul_sse2-no-sse3") { @@ -74138,10 +43326,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" + ] -+ + +- source_set("qu8-vmul_sse2-no-sse3") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -74150,37 +43340,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28230,54 +28879,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vmul_sse4.1-no-sse4.2") { @@ -74197,6 +43421,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -74204,38 +43429,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vmul_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28289,51 +28938,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vmul_x64") { @@ -74251,7 +43511,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-vmul_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74259,38 +43522,48 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28345,53 +28995,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] +source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -74298,56 +43571,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28403,56 +29058,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vmulc_sse2-no-sse3") { @@ -74364,6 +43693,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -74371,38 +43701,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vmulc_sse2-no-sse3") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28464,54 +29117,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vmulc_sse4.1-no-sse4.2") { @@ -74419,6 +43784,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -74427,39 +43793,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vmulc_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28523,51 +29176,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vmulc_x64") { +- cflags = [] +source_set("qu8-vmulc_x64") { + cflags = [ + @@ -74473,6 +43876,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -74481,478 +43885,764 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28579,52 +29233,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +source_set("qu8-vprelu_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vprelu_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-vprelu_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28636,52 +29294,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vprelu_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", +- ] +source_set("qu8-vprelu_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vprelu_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vprelu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28693,52 +29351,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vprelu_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +source_set("qu8-vpreluc_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vpreluc_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28750,52 +29412,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", +- ] +source_set("qu8-vpreluc_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vpreluc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vpreluc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28807,52 +29469,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vpreluc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +source_set("qu8-vrpreluc_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vrpreluc_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28864,52 +29530,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", +- ] +source_set("qu8-vrpreluc_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vrpreluc_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vrpreluc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28921,50 +29587,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vrpreluc_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +source_set("reference_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("reference_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("reference_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", ++if (build_with_internal_optimization_guide) { ++ source_set("reference_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -28976,53 +29648,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("reference_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +source_set("s8-ibilinear_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-ibilinear_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29034,54 +29707,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-ibilinear_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-ibilinear_sse4.1-no-sse4.2") { @@ -74969,6 +44659,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -74976,256 +44667,416 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-ibilinear_sse4.1-no-sse4.2") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29093,51 +29766,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", +- ] +source_set("s8-ibilinear_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-ibilinear_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29149,51 +29823,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-ibilinear_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +source_set("s8-maxpool_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-maxpool_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29205,51 +29882,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", +- ] +source_set("s8-maxpool_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-maxpool_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-maxpool_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29261,52 +29939,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("s8-rdminmax_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-rdminmax_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29318,53 +30000,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-rdminmax_x64") { @@ -75242,6 +45093,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -75249,97 +45101,165 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-rdminmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29376,54 +30059,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rdminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +source_set("s8-rminmax_sse4.1-no-sse4.2") { + cflags = [ + "-mno-sse4.2", + "-msse4.1" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-rminmax_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29435,55 +30122,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-rminmax_x64") { @@ -75357,7 +45277,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("s8-rminmax_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -75365,95 +45288,162 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-rminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29495,54 +30183,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +source_set("s8-vclamp_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-vclamp_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", ++ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29554,60 +30244,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -75475,6 +45465,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -75482,43 +45473,89 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", ++ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29619,60 +30313,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-vclamp_sse2-no-sse3") { @@ -75535,7 +45572,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("s8-vclamp_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -75543,37 +45582,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29684,54 +30372,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-vclamp_sse4.1-no-sse4.2") { @@ -75590,6 +45663,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -75598,97 +45672,152 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-vclamp_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29743,51 +30431,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", +- ] +source_set("s8-vclamp_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-vclamp_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29799,76 +30488,108 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +source_set("subgraph_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/subgraph/argmax-pooling-2d.c", @@ -75721,30 +45850,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("subgraph_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("subgraph_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", ++if (build_with_internal_optimization_guide) { ++ source_set("subgraph_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", + "src/src/subgraph/average-pooling-2d.c", + "src/src/subgraph/batch-matrix-multiply.c", + "src/src/subgraph/binary.c", @@ -75773,24 +45940,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unary.c", + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29880,84 +30601,68 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("subgraph_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("tables_x64") { @@ -75814,6 +46036,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -75821,19 +46044,30 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("tables_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("tables_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", ++if (build_with_internal_optimization_guide) { ++ source_set("tables_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", + "src/src/tables/exp2-k-over-64.c", + "src/src/tables/exp2minus-k-over-16.c", + "src/src/tables/exp2minus-k-over-2048.c", @@ -75842,24 +46076,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-64.c", + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -29969,59 +30674,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("tables_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-ibilinear_sse2-no-sse3") { @@ -75876,7 +46145,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("u8-ibilinear_sse2-no-sse3") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -75884,37 +46155,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30033,54 +30733,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-ibilinear_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-ibilinear_sse4.1-no-sse4.2") { @@ -75931,6 +46236,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -75939,308 +46245,497 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-ibilinear_sse4.1-no-sse4.2") { +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { -+ cflags = [ -+ "-mno-sse4.2", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { + cflags = [ + "-mno-sse4.2", +- "-msse4.1", + "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30092,51 +30792,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", +- ] +source_set("u8-ibilinear_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-ibilinear_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30148,48 +30849,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-ibilinear_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +source_set("u8-lut32norm_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-lut32norm_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-lut32norm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30201,51 +30906,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-lut32norm_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +source_set("u8-maxpool_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-maxpool_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("u8-maxpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30257,51 +30965,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-maxpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", +- ] +source_set("u8-maxpool_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-maxpool_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-maxpool_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30313,52 +31022,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-maxpool_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("u8-rdminmax_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-rdminmax_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30370,53 +31083,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rdminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-rdminmax_x64") { @@ -76257,6 +46752,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76264,97 +46760,165 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-rdminmax_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30428,54 +31142,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rdminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +source_set("u8-rminmax_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-rminmax_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("u8-rminmax_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30487,55 +31205,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rminmax_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-rminmax_x64") { @@ -76372,7 +46936,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("u8-rminmax_x64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -76380,95 +46947,162 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-rminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30547,54 +31266,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rminmax_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +source_set("u8-vclamp_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-vclamp_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", ++ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30606,60 +31327,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -76490,6 +47124,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76497,43 +47132,89 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", ++ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30671,60 +31396,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-vclamp_sse2-no-sse3") { @@ -76550,6 +47231,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76558,147 +47240,246 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-vclamp_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30736,51 +31455,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", +- ] +source_set("u8-vclamp_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-vclamp_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30792,52 +31512,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +source_set("x16-packw_f16c-fma-avx2") { + cflags = [ + "-mavx2", + "-mf16c", + "-mfma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x16-packw_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("x16-packw_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-packw_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30849,56 +31573,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-packw_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x16-transposec_f16c-fma-avx2") { @@ -76716,6 +47497,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76724,38 +47506,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x16-transposec_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("x16-transposec_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", ++ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30910,55 +31634,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x16-transposec_sse2-no-sse3") { @@ -76763,7 +47582,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-sse3", + "-msse2" + ] -+ + +- source_set("x16-transposec_sse2-no-sse3") { + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" @@ -76772,6 +47592,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76780,37 +47601,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x16-transposec_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -30970,51 +31693,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x16-transposec_x64") { @@ -76826,6 +47681,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76833,147 +47689,241 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x16-transposec_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x16-transposec_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31026,49 +31750,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +source_set("x16-x32-packw_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x16-x32-packw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31080,52 +31809,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-x32-packw_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +source_set("x24-transposec_ssse3-no-sse4.1") { + cflags = [ + "-mno-sse4.1", + "-mssse3" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x24-transposec_ssse3-no-sse4.1") { +# This is a target that cannot depend on //base. -+source_set("x24-transposec_ssse3-no-sse4.1_standalone") { -+ cflags = [ -+ "-mno-sse4.1", ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_ssse3-no-sse4.1_standalone") { + cflags = [ + "-mno-sse4.1", +- "-mssse3", + "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", ++ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31137,51 +31868,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x24-transposec_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x24-transposec_x64") { @@ -76989,6 +47939,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -76996,39 +47947,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x24-transposec_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x24-transposec_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31193,57 +31925,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x24-transposec_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] +source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -77036,7 +47999,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", @@ -77045,55 +48012,114 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", + "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", + "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31255,60 +31996,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-packw_avx512f") { @@ -77112,6 +48138,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77119,40 +48146,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x32-packw_avx512f") { +- cflags = [ "-mavx512f" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-packw_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31320,55 +32059,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_avx512f_standalone") { +- cflags = [ "-mavx512f" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-packw_sse2-no-sse3") { @@ -77170,6 +48233,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77178,38 +48242,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x32-packw_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("x32-packw_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", + ] +- ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31380,57 +32120,62 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-packw_x64") { @@ -77226,10 +48326,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" + ] -+ + +- source_set("x32-packw_x64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77238,41 +48341,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-packw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", + "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31442,58 +32187,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { @@ -77291,6 +48432,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77299,39 +48441,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31505,56 +32250,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-transposec_sse-no-sse2") { @@ -77348,7 +48529,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("x32-transposec_sse-no-sse2") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -77356,37 +48539,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x32-transposec_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_sse-no-sse2_standalone") { + cflags = [ + "-mno-sse2", +- "-msse", + "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/x32-transposec-4x4-sse.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31566,51 +32309,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_sse-no-sse2_standalone") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-transposec_x64") { @@ -77402,6 +48619,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77409,147 +48627,221 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x32-transposec_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-transposec_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31622,51 +32366,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +source_set("x32-unpool_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-sse2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x32-unpool_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("x32-unpool_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", ++ "src/src/x32-unpool/x32-unpool-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31678,51 +32425,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-unpool_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", +- ] +source_set("x32-unpool_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x32-unpool_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-unpool_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31734,53 +32482,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-unpool_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -77557,56 +48849,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31792,56 +32545,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x64-transposec_sse2-no-sse3") { @@ -77619,10 +48967,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" + ] -+ + +- source_set("x64-transposec_sse2-no-sse3") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77631,92 +48981,136 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x64-transposec_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31853,51 +32604,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", +- ] +source_set("x64-transposec_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x64-transposec_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x64-transposec_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31909,53 +32661,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -77724,56 +49118,112 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mno-f16c", + "-mno-fma" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx-u64.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { +# This is a target that cannot depend on //base. -+source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ + "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -31967,57 +32724,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-lut_f16c-fma-avx2") { @@ -77791,6 +49241,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77799,38 +49250,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x8-lut_f16c-fma-avx2") { +# This is a target that cannot depend on //base. -+source_set("x8-lut_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32029,60 +32785,64 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { @@ -77843,7 +49331,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" @@ -77852,6 +49341,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77860,42 +49350,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32094,67 +32854,66 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { @@ -77918,6 +49453,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -77926,13 +49462,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { +# This is a target that cannot depend on //base. -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { -+ cflags = [ -+ "-mavx512bw", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { + cflags = [ + "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", @@ -77940,142 +49486,230 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32166,58 +32925,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", +- ] +source_set("x8-lut_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-lut_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-lut_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32229,48 +32982,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +source_set("x8-packq_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-packq_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-packq_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packq_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32282,51 +33039,58 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packq_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +source_set("x8-packw_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -78083,51 +49717,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-packw_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-packw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32338,55 +33102,56 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packw_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-transposec_f16c-fma-avx2") { @@ -78136,7 +49813,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mf16c", + "-mfma" + ] -+ + +- source_set("x8-transposec_f16c-fma-avx2") { + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" @@ -78145,6 +49823,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -78153,38 +49832,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x8-transposec_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_f16c-fma-avx2_standalone") { + cflags = [ + "-mavx2", +- "-mf16c", +- "-mfma", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", ++ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32398,55 +33163,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-transposec_sse2-no-sse3") { @@ -78201,6 +49916,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -78209,420 +49925,668 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x8-transposec_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("x8-transposec_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32458,51 +33222,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", +- ] +source_set("x8-transposec_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-transposec_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-transposec_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32514,48 +33279,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +source_set("xx-copy_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-copy_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-copy_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32567,51 +33336,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-copy_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +source_set("xx-fill_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-sse2-u64.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("xx-fill_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("xx-fill_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-sse2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", ++ "src/src/xx-fill/xx-fill-sse2-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32623,51 +33395,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-fill_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", +- ] +source_set("xx-fill_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-fill_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-fill_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32679,51 +33452,54 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-fill_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +source_set("xx-pad_sse2-no-sse3") { + cflags = [ + "-mno-sse3", + "-msse2" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p16-sse2-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("xx-pad_sse2-no-sse3") { +# This is a target that cannot depend on //base. -+source_set("xx-pad_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_sse2-no-sse3_standalone") { + cflags = [ + "-mno-sse3", +- "-msse2", + "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", ++ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32735,51 +33511,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", +- ] +source_set("xx-pad_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-pad_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-pad_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32791,48 +33568,52 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_x64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +source_set("xx-transposev_x64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-transposev_x64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-transposev_x64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("xx-transposev_x64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32844,73 +33625,101 @@ if (current_cpu == "x64" || current_cpu + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-transposev_x64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } + } + +} + -+} -+ -+if (current_cpu == "arm64") { + if (current_cpu == "arm64") { +- source_set("configs_arm64") { +- cflags = [] +source_set("configs_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -78656,6 +50620,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -78664,18 +50629,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("configs_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", ++if (build_with_internal_optimization_guide) { ++ source_set("configs_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", + "src/src/configs/avgpool-config.c", + "src/src/configs/binary-elementwise-config.c", + "src/src/configs/cmul-config.c", @@ -78699,24 +50688,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/configs/x8-lut-config.c", + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -32922,75 +33731,60 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("configs_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("enums_arm64") { @@ -78736,6 +50775,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -78743,154 +50783,244 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("enums_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("enums_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", ++if (build_with_internal_optimization_guide) { ++ source_set("enums_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", + "src/src/enums/datatype-strings.c", + "src/src/enums/microkernel-type.c", + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33002,52 +33796,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("enums_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-avgpool_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-avgpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33059,48 +33853,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33112,51 +33910,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", @@ -78898,51 +51028,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", + "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33168,55 +33973,60 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-dwconv_arch=armv8.2-a+fp16") { @@ -78962,6 +51135,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -78969,41 +51143,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-dwconv_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", + "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", + "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", + "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", + "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33228,54 +34038,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-f32-vcvt_arm64") { @@ -79021,6 +51233,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -79028,152 +51241,238 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-f32-vcvt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33287,50 +34099,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33342,48 +34156,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33395,51 +34213,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", @@ -79181,60 +51480,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", + "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33451,58 +34276,66 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -79244,168 +51577,270 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", + "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33514,55 +34347,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33574,48 +34404,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-ibilinear_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33627,51 +34461,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-igemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", @@ -79413,60 +51848,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", + "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", + "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", + "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33683,58 +34524,66 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -79476,487 +51945,779 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", + "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", + "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33746,55 +34595,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-maxpool_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-maxpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33806,48 +34652,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33859,48 +34709,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", +- ] +source_set("f16-qs8-vcvt_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-qs8-vcvt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33912,48 +34766,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +source_set("f16-qu8-vcvt_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-qu8-vcvt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qu8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -33965,48 +34823,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qu8-vcvt_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34018,49 +34880,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-rdminmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34072,50 +34939,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", +- ] +source_set("f16-rdminmax_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-rdminmax_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34127,51 +34998,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rdminmax_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-rminmax_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-rminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", + "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34183,52 +35059,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-rminmax_arm64") { @@ -79974,6 +52735,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -79981,205 +52743,320 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-rminmax_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34240,50 +35120,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-spmm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-spmm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34295,48 +35177,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34348,48 +35234,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", +- ] +source_set("f16-vapproxgelu_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vapproxgelu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34401,69 +35291,94 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vbinary_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", @@ -80205,30 +53082,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vbinary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", + "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", @@ -80250,667 +53158,1064 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", + "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34475,69 +35390,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vclamp_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vclamp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34549,48 +35447,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vcmul_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vcmul_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34602,48 +35504,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vcos_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vcos_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34655,48 +35561,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", +- ] +source_set("f16-vcos_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vcos_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vcos_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34708,48 +35618,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcos_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-velu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-velu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34761,48 +35675,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vexp_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vexp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34814,48 +35732,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", +- ] +source_set("f16-vexp_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vexp_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vexp_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34867,48 +35789,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vgelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34920,48 +35846,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", +- ] +source_set("f16-vgelu_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vgelu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -34973,48 +35903,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vgelu_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vhswish_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vhswish_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35026,48 +35960,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vlrelu_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35079,48 +36017,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35132,51 +36074,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vrnd_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", @@ -80918,432 +54223,690 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", + "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vrnd_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", + "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", + "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", + "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35188,51 +36137,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35244,49 +36194,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", + "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35298,49 +36253,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vsin_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vsin_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35352,48 +36310,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", +- ] +source_set("f16-vsin_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vsin_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vsin_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35405,49 +36367,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vsqrt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", + "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", + "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35459,50 +36426,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vtanh_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", + "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vtanh_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", + "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35514,51 +36485,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("f16-vunary_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vunary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", + "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35570,51 +36546,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-argmaxpool_arm64") { @@ -81360,7 +54923,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-argmaxpool_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -81368,149 +54934,241 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35626,50 +36605,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +source_set("f32-avgpool_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-avgpool_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35681,51 +36664,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +source_set("f32-conv-hwc2chw_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-conv-hwc2chw_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35737,65 +36725,82 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-conv-hwc2chw_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv2d-chw_arm64") { @@ -81537,10 +55195,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] -+ + +- source_set("f32-dwconv2d-chw_arm64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -81549,18 +55210,34 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", @@ -81576,88 +55253,153 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35807,65 +36812,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35877,67 +36873,86 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", +- ] +source_set("f32-dwconv_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", @@ -81679,30 +55421,57 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-dwconv_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", @@ -81720,24 +55489,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -35949,67 +36964,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-f16-vcvt_arm64") { @@ -81755,7 +55568,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-f16-vcvt_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -81763,47 +55579,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", + "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36021,70 +37025,92 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", @@ -81826,32 +55665,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", @@ -81870,31 +55738,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36096,86 +37122,88 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("f32-gemm_arm64") { + cflags = [ -+ + +- asmflags = cflags + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", @@ -81921,6 +55835,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -81928,19 +55843,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", @@ -81959,24 +55895,69 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36187,68 +37215,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-ibilinear-chw_arm64") { @@ -81994,6 +55975,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82001,39 +55983,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear-chw_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36260,52 +37276,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear-chw_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-ibilinear_arm64") { @@ -82051,6 +56067,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82058,48 +56075,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", + "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36317,69 +37337,90 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] +source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", @@ -82121,32 +56163,60 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", + "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", + "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", + "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", @@ -82164,31 +56234,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36391,85 +37432,88 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("f32-igemm_arm64") { + cflags = [ -+ + +- asmflags = cflags + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", @@ -82215,6 +56330,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82222,19 +56338,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-igemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", @@ -82253,26 +56390,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36481,67 +37525,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-maxpool_arm64") { +- cflags = [] +source_set("f32-maxpool_arm64") { + cflags = [ + @@ -82287,6 +56471,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82295,44 +56480,65 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36553,55 +37584,64 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("f32-qc4w-gemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", @@ -82343,54 +56549,103 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc4w-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36613,58 +37653,60 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { @@ -82410,6 +56665,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82417,48 +56673,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36676,57 +37718,62 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + +- asmflags = cflags ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +source_set("f32-qc8w-gemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", @@ -82468,53 +56752,100 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc8w-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36738,56 +37785,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_arm64") { @@ -82533,6 +56864,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82540,40 +56872,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qs8-vcvt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36799,54 +37848,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qu8-vcvt_arm64") { @@ -82592,6 +56960,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82599,40 +56968,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qu8-vcvt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36858,52 +37911,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-raddstoreexpminusmax_arm64") { @@ -82649,6 +57054,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82656,45 +57062,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-raddstoreexpminusmax_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36915,52 +37970,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +source_set("f32-rdminmax_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", @@ -82702,51 +57131,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdminmax_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -36972,52 +38033,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdminmax_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rdsum_arm64") { @@ -82763,6 +57235,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -82770,45 +57243,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdsum_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37029,54 +38092,62 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +source_set("f32-rminmax_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", @@ -82818,53 +57314,100 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rminmax_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37088,54 +38159,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rsum_arm64") { @@ -82881,7 +57424,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-rsum_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -82889,44 +57435,65 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", + "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37147,55 +38218,64 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +source_set("f32-spmm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", @@ -82937,56 +57504,107 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-spmm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-spmm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", + "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", + "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", + "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37207,55 +38287,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-spmm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-vapproxgelu_arm64") { +- cflags = [] +source_set("f32-vapproxgelu_arm64") { + cflags = [ + @@ -83001,6 +57619,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -83009,44 +57628,65 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37267,86 +38346,126 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +source_set("f32-vbinary_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", @@ -83088,30 +57728,77 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vbinary_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", + "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", @@ -83149,24 +57836,88 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37358,86 +38477,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vclamp_arm64") { @@ -83183,6 +57934,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -83190,100 +57942,153 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vclamp_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", + "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37449,50 +38536,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +source_set("f32-vcmul_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcmul_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37504,54 +38595,62 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +source_set("f32-vcopysign_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", @@ -83293,53 +58098,100 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcopysign_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37563,54 +38662,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcopysign_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vcos_arm64") { @@ -83356,7 +58208,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vcos_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -83364,44 +58219,65 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcos_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37622,52 +38721,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +source_set("f32-velu_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", @@ -83409,51 +58285,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-velu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-velu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", + "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", + "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37679,52 +38784,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vexp_arm64") { @@ -83470,7 +58389,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vexp_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -83478,314 +58400,496 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vexp_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", + "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37736,50 +38843,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +source_set("f32-vgelu_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vgelu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37791,50 +38902,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +source_set("f32-vhswish_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-neon.c", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vhswish_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37846,50 +38961,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +source_set("f32-vlog_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlog_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlog_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37901,50 +39020,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +source_set("f32-vlrelu_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlrelu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -37956,51 +39079,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +source_set("f32-vmulcaddc_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vmulcaddc_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38012,61 +39140,74 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vmulcaddc_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrnd_arm64") { @@ -83812,7 +58916,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vrnd_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -83820,18 +58927,30 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", @@ -83843,24 +58962,62 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38078,61 +39219,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrsqrt_arm64") { @@ -83878,7 +59035,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vrsqrt_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -83886,38 +59046,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38144,52 +39280,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vsigmoid_arm64") { @@ -83935,7 +59127,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-vsigmoid_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -83943,38 +59138,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38201,51 +39341,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vsin_arm64") { @@ -83991,6 +59218,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -83998,155 +59226,238 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsin_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsin_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", + "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38257,50 +39400,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +source_set("f32-vsqrt_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsqrt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", + "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38312,50 +39459,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +source_set("f32-vtanh_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", + "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vtanh_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", + "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38367,54 +39518,62 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +source_set("f32-vunary_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-neon.c", @@ -84156,53 +59467,100 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vunary/gen/f32-vsqr-neon.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vunary_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vunary_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", + "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-neon.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-neon.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38426,73 +39585,92 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("operators_arm64") { @@ -84238,6 +59596,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -84245,19 +59604,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("operators_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("operators_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", ++if (build_with_internal_optimization_guide) { ++ source_set("operators_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", + "src/src/operators/average-pooling-nhwc.c", + "src/src/operators/batch-matrix-multiply-nc.c", + "src/src/operators/binary-elementwise-nd.c", @@ -84278,361 +59660,1015 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/operators/transpose-nd.c", + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38504,69 +39682,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("operators_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ ++source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", ++ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", ++ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38578,50 +39741,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38633,49 +39800,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38687,49 +39857,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38741,50 +39916,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++source_set("qb4-packw_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", ++ "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- source_set("qb4-packw_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", ++ "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38796,50 +39975,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38851,50 +40034,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38906,50 +40093,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -38961,50 +40152,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39016,50 +40211,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39071,50 +40270,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39126,52 +40329,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", @@ -84640,51 +60676,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39183,52 +40392,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { @@ -84701,7 +60780,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -84709,158 +60791,244 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39240,52 +40451,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", +- ] +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39297,52 +40514,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39354,52 +40573,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ + "-march=armv8.2-a+dotprod+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", @@ -84868,51 +61036,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39411,52 +40636,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { @@ -84929,7 +61140,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -84937,268 +61151,415 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39468,52 +40695,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39525,52 +40758,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39582,50 +40817,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39637,50 +40876,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39692,52 +40935,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +source_set("qd8-f32-qb4w-gemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -85206,53 +61567,98 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qb4w-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39749,52 +40998,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" @@ -85267,6 +61673,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -85275,99 +61682,151 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39806,50 +41057,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39861,52 +41116,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +source_set("qd8-f32-qc4w-gemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -85375,51 +61834,94 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc4w-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39918,54 +41179,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { @@ -85438,6 +61940,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -85445,161 +61948,252 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -39977,54 +41242,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", +- ] +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40036,52 +41305,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40093,53 +41364,60 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +source_set("qd8-f32-qc8w-gemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", @@ -85608,52 +62202,97 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40151,55 +41429,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arm64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { @@ -85672,6 +62311,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -85679,161 +62319,252 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40211,54 +41492,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", +- ] +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40270,52 +41555,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40327,55 +41614,64 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] +source_set("qd8-f32-qc8w-igemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", @@ -85844,54 +62575,103 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-igemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40387,56 +41683,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { @@ -85902,13 +62682,17 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -85916,317 +62700,669 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40448,50 +41744,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40503,50 +41801,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40558,50 +41862,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40613,49 +41919,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+sve+sve2" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40667,51 +41978,56 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40723,50 +42039,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40778,49 +42096,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-march=armv8.2-a+sve+sve2" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40832,55 +42155,64 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c", +- ] +source_set("qs8-dwconv_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", @@ -86237,334 +63373,529 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-dwconv_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40892,54 +42224,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_arm64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { + cflags = [ + "-march=armv8.2-a+fp16" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -40951,49 +42281,54 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", +- ] +source_set("qs8-f32-vcvt_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-f32-vcvt_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41005,52 +42340,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +source_set("qs8-packw_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-packw_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41062,54 +42403,58 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_arm64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] +source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + asmflags = cflags -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- asmflags = cflags +# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", + + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41121,51 +42466,52 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + +- asmflags = cflags ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +source_set("qs8-qc4w-gemm_arm64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc4w-gemm_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41177,61 +42523,141 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_arm64_standalone") { +- cflags = [] +source_set("qs8-qc8w-dwconv_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", @@ -86582,30 +63913,43 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", @@ -86619,26 +63963,30 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- source_set("qs8-qc8w-dwconv_arm64") { +- cflags = [] +source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" @@ -86655,6 +64003,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -86663,41 +64012,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41243,64 +42669,133 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_arm64_standalone") { +- cflags = [] +source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" @@ -86713,7 +64080,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" @@ -86722,6 +64089,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -86729,48 +64097,86 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { @@ -86787,6 +64193,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -86794,45 +64201,66 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41312,62 +42807,127 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +source_set("qs8-qc8w-gemm_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", @@ -86847,50 +64275,64 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { @@ -86905,60 +64347,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" + ] -+ + +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- asmflags = cflags + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41379,60 +42939,133 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] + + asmflags = cflags -+ + +- asmflags = cflags + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", @@ -86967,15 +64428,47 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -86984,54 +64477,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ + "-march=armv8.2-a+i8mm+fp16" + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", @@ -87041,6 +64539,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87049,39 +64548,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41444,55 +43077,121 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +source_set("qs8-qc8w-igemm_arm64") { + cflags = [ + @@ -87097,10 +64602,16 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87109,42 +64620,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qu8-packw_arm64") { @@ -87156,11 +64684,14 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] -+ + +- source_set("qs8-qc8w-gemm_arm64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -87168,38 +64699,49 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41504,57 +43203,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_arm64_standalone") { +- cflags = [] +source_set("qs8-rdsum_arm64") { + cflags = [ + @@ -87210,10 +64752,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", + "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87222,37 +64793,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", + "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-rsum_arch=armv8.2-a+dotprod") { @@ -87268,7 +64842,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -87276,38 +64853,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41566,62 +43319,117 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +source_set("qs8-rsum_arm64") { + cflags = [ + @@ -87322,6 +64907,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87330,37 +64916,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", +- ] +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", + "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vadd_arm64") { @@ -87379,54 +64989,104 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41633,60 +43441,117 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("qs8-vaddc_arm64") { + cflags = [ -+ + +- asmflags = cflags + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", @@ -87438,6 +65098,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87446,39 +65107,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vcvt_arm64") { @@ -87491,11 +65155,14 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] -+ + +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -87503,53 +65170,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41698,55 +43563,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +source_set("qs8-vlrelu_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87558,44 +65247,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vmul_arm64") { + cflags = [ -+ + +- source_set("qs8-qc8w-igemm_arm64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", @@ -87605,6 +65303,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87613,42 +65312,63 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41758,54 +43681,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arm64_standalone") { +- cflags = [] +source_set("qs8-vmulc_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] + ] + + sources = [ @@ -87660,45 +65380,63 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" -+ ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vprelu_arm64") { @@ -87714,46 +65452,54 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-qu8-packw_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vprelu_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41817,49 +43797,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_arm64_standalone") { +- cflags = [] +source_set("qs8-vpreluc_arm64") { + cflags = [ + @@ -87767,6 +65513,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87774,42 +65521,65 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-vpreluc_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-rdsum_arm64") { +- cflags = [] +source_set("qs8-vrpreluc_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -87820,6 +65590,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -87828,38 +65599,44 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vrpreluc_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41871,49 +43911,121 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rdsum_arm64_standalone") { +- cflags = [] +source_set("qu8-dwconv_arm64") { + cflags = [ + @@ -87874,53 +65651,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-f32-vcvt_arm64") { @@ -87937,7 +65737,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -87945,46 +65748,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41925,49 +44037,131 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", +- ] + asmflags = cflags -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -87992,55 +65808,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-rsum_arm64") { +- cflags = [] +source_set("qu8-gemm_arm64") { + cflags = [ + @@ -88060,6 +65892,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88067,45 +65900,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", + "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -41979,52 +44173,131 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_arm64_standalone") { +- cflags = [] +source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" @@ -88124,6 +65963,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88132,46 +65972,70 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ + asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-igemm_arm64") { + cflags = [ -+ + +- source_set("qs8-vadd_arm64") { +- cflags = [] + ] + + sources = [ @@ -88188,6 +66052,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88196,44 +66061,52 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42036,54 +44309,115 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_arm64_standalone") { +- cflags = [] +source_set("qu8-rdsum_arm64") { + cflags = [ + @@ -88249,6 +66122,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88257,43 +66131,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", + "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vaddc_arm64") { +- cflags = [] +source_set("qu8-rsum_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -88305,6 +66209,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88313,39 +66218,47 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", + "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42095,52 +44429,121 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_arm64_standalone") { +- cflags = [] +source_set("qu8-vadd_arm64") { + cflags = [ + @@ -88362,6 +66275,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88369,45 +66283,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vcvt_arm64") { +- cflags = [] +source_set("qu8-vaddc_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -88421,6 +66365,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88429,94 +66374,123 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42152,50 +44555,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_arm64_standalone") { +- cflags = [] +source_set("qu8-vcvt_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vlrelu_arm64") { @@ -88533,62 +66507,88 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vlrelu_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42207,50 +44673,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_arm64_standalone") { +- cflags = [] +source_set("qu8-vmul_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88596,37 +66596,43 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vmulc_arm64") { @@ -88643,7 +66649,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vmul_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88651,53 +66660,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42262,50 +44791,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_arm64_standalone") { +- cflags = [] +source_set("qu8-vprelu_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88705,38 +66737,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vprelu_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vmulc_arm64") { +- cflags = [] +source_set("qu8-vpreluc_arm64") { + cflags = [ + @@ -88746,10 +66786,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88758,41 +66799,52 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vpreluc_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42317,49 +44905,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_arm64_standalone") { +- cflags = [] +source_set("qu8-vrpreluc_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] + ] + + sources = [ @@ -88803,7 +66855,12 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88811,36 +66868,49 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("qu8-vrpreluc_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("reference_arm64") { @@ -88858,7 +66928,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-vprelu_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88866,111 +66939,141 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("reference_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", ++if (build_with_internal_optimization_guide) { ++ source_set("reference_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", ++ "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42371,48 +45023,115 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vprelu_arm64_standalone") { +- cflags = [] +source_set("s8-ibilinear_arm64") { + cflags = [ + + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-maxpool_arm64") { + cflags = [ + + ] -+ + +- source_set("qs8-vpreluc_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -88979,39 +67082,44 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-maxpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42424,48 +45143,125 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vpreluc_arm64_standalone") { +- cflags = [] +source_set("s8-rdminmax_arm64") { + cflags = [ + @@ -89028,52 +67136,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vrpreluc_arm64") { +- cflags = [] +source_set("s8-rminmax_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -89089,6 +67221,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89097,96 +67230,123 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-rminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42477,53 +45273,167 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vrpreluc_arm64_standalone") { +- cflags = [] +source_set("s8-vclamp_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-vclamp/s8-vclamp-neon-u64.c", + "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", + "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("subgraph_arm64") { @@ -89230,6 +67390,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89237,19 +67398,28 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-dwconv_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("subgraph_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", ++if (build_with_internal_optimization_guide) { ++ source_set("subgraph_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/subgraph/argmax-pooling-2d.c", + "src/src/subgraph/average-pooling-2d.c", + "src/src/subgraph/batch-matrix-multiply.c", + "src/src/subgraph/binary.c", @@ -89278,26 +67448,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unary.c", + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42535,54 +45445,129 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_arm64_standalone") { +- cflags = [] +source_set("tables_arm64") { + cflags = [ + @@ -89319,6 +67492,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89327,18 +67501,19 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("tables_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", ++if (build_with_internal_optimization_guide) { ++ source_set("tables_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", + "src/src/tables/exp2-k-over-64.c", + "src/src/tables/exp2minus-k-over-16.c", + "src/src/tables/exp2minus-k-over-2048.c", @@ -89347,24 +67522,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-64.c", + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-ibilinear_arm64") { @@ -89382,61 +67586,86 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-f32-vcvt_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", + "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", + "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42594,54 +45579,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_arm64_standalone") { +- cflags = [] +source_set("u8-lut32norm_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89445,43 +67674,53 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("u8-lut32norm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("u8-maxpool_arm64") { + cflags = [ -+ + +- asmflags = cflags + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", @@ -89491,6 +67730,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89499,39 +67739,47 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-maxpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42653,59 +45695,125 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("u8-rdminmax_arm64") { + cflags = [ + @@ -89544,56 +67792,84 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] -+ + +- asmflags = cflags + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-gemm_arm64") { +- cflags = [] +source_set("u8-rminmax_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -89609,6 +67885,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89617,43 +67894,54 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-rminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42717,59 +45825,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_arm64_standalone") { +- cflags = [] +source_set("u8-vclamp_arm64") { + cflags = [ + @@ -89668,7 +67956,36 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -89676,39 +67993,107 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] + ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ ++source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] +} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42781,59 +45941,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +source_set("x16-packw_arm64") { + cflags = [ + @@ -89719,49 +68104,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", + "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] -+ + +- asmflags = cflags + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("x16-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", + "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x16-transposec_arm64") { @@ -89778,7 +68189,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-igemm_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -89786,42 +68200,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x16-transposec_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", + "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42845,56 +46059,115 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_arm64_standalone") { +- cflags = [] +source_set("x16-x32-packw_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + ] + + sources = [ @@ -89833,6 +68286,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89841,37 +68295,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x24-transposec_arm64") { @@ -89889,6 +68346,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qu8-rdsum_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++} + ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42906,51 +46179,129 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rdsum_arm64_standalone") { +- cflags = [] ++source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -89897,45 +68420,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x24-transposec_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-packw_arm64") { + cflags = [ + + ] -+ + +- source_set("qu8-rsum_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", @@ -89954,7 +68504,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -89962,18 +68513,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x32-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", + "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", @@ -89984,26 +68538,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", + "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", + "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -42962,52 +46313,115 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_arm64_standalone") { +- cflags = [] +source_set("x32-transposec_arm64") { + cflags = [ + @@ -90015,55 +68572,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", + "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("x32-transposec_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", + "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", + "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" -+ ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vadd_arm64") { +- cflags = [] +source_set("x32-unpool_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -90075,6 +68657,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90083,39 +68666,47 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x32-unpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", ++ "src/src/x32-unpool/x32-unpool-neon.c", + "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43019,54 +46433,115 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_arm64_standalone") { +- cflags = [] +source_set("x64-transposec_arm64") { + cflags = [ + @@ -90131,6 +68722,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90138,44 +68730,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x64-transposec_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", + "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vaddc_arm64") { +- cflags = [] +source_set("x8-lut_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -90187,6 +68809,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90195,37 +68818,129 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x8-lut_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43078,52 +46553,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_arm64_standalone") { +- cflags = [] ++source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", ++ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++} + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", ++ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-packq_arm64") { @@ -90238,11 +68953,14 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] -+ + +- source_set("qu8-vcvt_arm64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -90250,39 +68968,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x8-packq_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packq_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43135,50 +46671,117 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_arm64_standalone") { +- cflags = [] +source_set("x8-packw_arm64") { + cflags = [ + @@ -90299,6 +69023,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90306,45 +69031,69 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x8-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vlrelu_arm64") { +- cflags = [] +source_set("x8-transposec_arm64") { + cflags = [ -+ + + ] + + sources = [ @@ -90356,6 +69105,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90364,44 +69114,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x8-transposec_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43190,50 +46793,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_arm64_standalone") { +- cflags = [] +source_set("xx-copy_arm64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" @@ -90410,6 +69175,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90418,43 +69184,58 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("xx-copy_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("xx-fill_arm64") { + cflags = [ -+ + +- source_set("qu8-vmul_arm64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-neon-u64.c", @@ -90464,6 +69245,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90472,44 +69254,55 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("xx-fill_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", ++ "src/src/xx-fill/xx-fill-neon-u64.c", + "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43245,50 +46909,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_arm64_standalone") { +- cflags = [] +source_set("xx-pad_arm64") { + cflags = [ + + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p16-neon-u16.c", @@ -90519,47 +69312,67 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("xx-pad_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vmulc_arm64") { +- cflags = [] +source_set("xx-transposev_arm64") { + cflags = [ + @@ -90573,6 +69386,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90580,45 +69394,60 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("xx-transposev_arm64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("xx-transposev_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43300,49 +47025,166 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_arm64_standalone") { +- cflags = [] +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +if (current_cpu == "riscv64") { +source_set("configs_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] + + sources = [ @@ -90648,30 +69477,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("configs_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", ++if (build_with_internal_optimization_guide) { ++ source_set("configs_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", + "src/src/configs/avgpool-config.c", + "src/src/configs/binary-elementwise-config.c", + "src/src/configs/cmul-config.c", @@ -90695,24 +69536,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/configs/x8-lut-config.c", + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("enums_riscv64") { @@ -90732,6 +69575,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90739,57 +69583,80 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vprelu_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("enums_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", ++if (build_with_internal_optimization_guide) { ++ source_set("enums_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", ++ "src/src/enums/allocation-type.c", + "src/src/enums/datatype-strings.c", + "src/src/enums/microkernel-type.c", + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43354,48 +47196,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vprelu_arm64_standalone") { +- cflags = [] +source_set("f16-f32-vcvt_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -90797,36 +69664,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-qs8-vcvt_riscv64") { @@ -90842,6 +69715,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90849,53 +69723,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vpreluc_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43407,48 +47310,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vpreluc_arm64_standalone") { +- cflags = [] +source_set("f16-qu8-vcvt_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -90903,38 +69800,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vrpreluc_arm64") { +- cflags = [] +source_set("f16-rdminmax_riscv64") { + cflags = [ + @@ -90949,6 +69854,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -90956,45 +69862,58 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43460,50 +47426,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vrpreluc_arm64_standalone") { +- cflags = [] +source_set("f16-rminmax_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", @@ -91005,51 +69924,67 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("reference_arm64") { +- cflags = [] +source_set("f16-vapproxgelu_riscv64") { + cflags = [ -+ + + ] + + sources = [ @@ -91060,6 +69995,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91068,38 +70004,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43515,52 +47544,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("reference_arm64_standalone") { +- cflags = [] +source_set("f16-vcos_riscv64") { + cflags = [ + @@ -91113,6 +70056,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91121,38 +70065,67 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vcos_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("s8-ibilinear_arm64") { +- cflags = [] +source_set("f16-vexp_riscv64") { + cflags = [ + @@ -91162,10 +70135,11 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91174,38 +70148,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vexp_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43572,51 +47658,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-ibilinear_arm64_standalone") { +- cflags = [] +source_set("f16-vgelu_riscv64") { + cflags = [ + @@ -91219,6 +70200,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91227,43 +70209,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f16-vsin_riscv64") { + cflags = [ -+ + +- source_set("s8-maxpool_arm64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" @@ -91272,6 +70283,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91280,38 +70292,44 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f16-vsin_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43628,52 +47772,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_arm64_standalone") { +- cflags = [] +source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -91326,50 +70344,75 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("s8-rdminmax_arm64") { +- cflags = [] +source_set("f32-argmaxpool_riscv64") { + cflags = [ -+ + + ] + + sources = [ @@ -91380,6 +70423,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91388,38 +70432,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43685,56 +47888,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rdminmax_arm64_standalone") { +- cflags = [] +source_set("f32-avgpool_riscv64") { + cflags = [ + @@ -91429,10 +70481,36 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91441,36 +70519,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { @@ -91487,7 +70568,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("s8-rminmax_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -91495,42 +70579,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43746,54 +48004,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rminmax_arm64_standalone") { +- cflags = [] +source_set("f32-conv-hwc2chw_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + ] + + sources = [ @@ -91541,6 +70662,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91549,36 +70671,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { @@ -91586,7 +70711,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- source_set("s8-vclamp_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", @@ -91596,7 +70723,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -91604,45 +70732,60 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43805,77 +48122,139 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_arm64_standalone") { +- cflags = [] +source_set("f32-dwconv2d-chw_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", @@ -91658,7 +70801,14 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -91666,18 +70816,19 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", @@ -91685,32 +70836,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("subgraph_arm64") { +- cflags = [] +source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", @@ -91726,6 +70885,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91734,19 +70894,49 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", + "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", + "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", @@ -91754,26 +70944,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43887,84 +48266,127 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("subgraph_arm64_standalone") { +- cflags = [] +source_set("f32-dwconv_riscv64") { + cflags = [ + @@ -91792,10 +70985,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91804,18 +71048,19 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", @@ -91825,24 +71070,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-f16-vcvt_riscv64") { @@ -91858,6 +71105,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91865,45 +71113,90 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("tables_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -43976,58 +48398,127 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("tables_arm64_standalone") { +- cflags = [] +source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", @@ -91913,6 +71206,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91921,38 +71215,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", + "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-gemm_riscv64") { @@ -91971,10 +71268,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] -+ + +- source_set("u8-ibilinear_arm64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -91983,18 +71283,22 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", @@ -92002,39 +71306,59 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44039,50 +48530,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-ibilinear_arm64_standalone") { +- cflags = [] +source_set("f32-ibilinear-chw_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92042,37 +71366,44 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-ibilinear_riscv64") { @@ -92084,11 +71415,14 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] -+ + +- source_set("u8-lut32norm_arm64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -92096,98 +71430,127 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44094,49 +48644,127 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-lut32norm_arm64_standalone") { +- cflags = [] +source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", + "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", + "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("u8-maxpool_arm64") { +- cflags = [] +source_set("f32-igemm_riscv64") { + cflags = [ -+ + + ] + + sources = [ @@ -92205,6 +71568,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92213,18 +71577,21 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -92232,26 +71599,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44148,52 +48776,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-maxpool_arm64_standalone") { +- cflags = [] +source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -92266,7 +71636,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -92274,44 +71650,63 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-maxpool_riscv64") { + cflags = [ -+ + +- source_set("u8-rdminmax_arm64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" @@ -92320,6 +71715,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92328,38 +71724,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44205,56 +48892,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rdminmax_arm64_standalone") { +- cflags = [] +source_set("f32-qc4w-gemm_riscv64") { + cflags = [ + @@ -92374,6 +71778,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92382,53 +71787,84 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qc8w-gemm_riscv64") { + cflags = [ + + ] -+ + +- source_set("u8-rminmax_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92437,45 +71873,82 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44266,54 +49010,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rminmax_arm64_standalone") { +- cflags = [] +source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" @@ -92484,6 +71957,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92492,37 +71966,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_riscv64") { @@ -92539,7 +72016,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("u8-vclamp_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -92547,39 +72027,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44325,49 +49128,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_arm64_standalone") { +- cflags = [] +source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -92594,6 +72080,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92602,39 +72089,63 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +source_set("f32-qu8-vcvt_riscv64") { + cflags = [ + @@ -92649,6 +72160,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92656,93 +72168,120 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44379,49 +49246,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-raddstoreexpminusmax_riscv64") { @@ -92758,60 +72297,85 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("x16-packw_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44433,50 +49362,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-packw_arm64_standalone") { +- cflags = [] +source_set("f32-rdminmax_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92820,45 +72384,54 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x16-transposec_arm64") { +- cflags = [] +source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" @@ -92867,6 +72440,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92875,39 +72449,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44488,50 +49480,115 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_arm64_standalone") { +- cflags = [] +source_set("f32-rdsum_riscv64") { + cflags = [ + @@ -92921,7 +72501,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -92929,44 +72515,63 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x16-x32-packw_arm64") { +- cflags = [] +source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", @@ -92977,6 +72582,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -92985,103 +72591,134 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", + "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", + "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44543,51 +49600,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-x32-packw_arm64_standalone") { +- cflags = [] +source_set("f32-rminmax_riscv64") { + cflags = [ + + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rsum_riscv64") { + cflags = [ -+ + +- source_set("x24-transposec_arm64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" @@ -93090,6 +72727,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93098,38 +72736,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-rsum_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44599,50 +49718,119 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x24-transposec_arm64_standalone") { +- cflags = [] +source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -93146,47 +72791,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", + "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", + "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" -+ ] ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-spmm_riscv64") { @@ -93204,7 +72873,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -93212,91 +72884,118 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-spmm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44654,58 +49842,141 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +source_set("f32-vapproxgelu_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { @@ -93328,7 +73027,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("x32-packw_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -93336,19 +73038,31 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", + "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", + "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", + "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", @@ -93364,26 +73078,29 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", + "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", + "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44717,60 +49988,145 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_arm64_standalone") { +- cflags = [] +source_set("f32-vbinary_riscv64") { + cflags = [ + @@ -93415,6 +73132,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93423,18 +73141,51 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", + "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", @@ -93453,31 +73204,35 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x32-transposec_arm64") { +- cflags = [] +source_set("f32-vclamp_riscv64") { + cflags = [ + + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" @@ -93486,6 +73241,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93494,38 +73250,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44782,51 +50138,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_arm64_standalone") { +- cflags = [] +source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -93540,6 +73303,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93548,44 +73312,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vcmul_riscv64") { + cflags = [ -+ + +- source_set("x32-unpool_arm64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" @@ -93594,6 +73387,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93602,108 +73396,140 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44838,51 +50254,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-unpool_arm64_standalone") { +- cflags = [] +source_set("f32-vcopysign_riscv64") { + cflags = [ + + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vcos_riscv64") { + cflags = [ + + ] -+ + +- source_set("x64-transposec_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93712,38 +73538,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vcos_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44894,51 +50372,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_arm64_standalone") { +- cflags = [] +source_set("f32-velu_riscv64") { + cflags = [ + @@ -93753,10 +73586,35 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -93765,36 +73623,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-velu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vexp_riscv64") { @@ -93810,60 +73671,86 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("x8-lut_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vexp_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -44950,50 +50486,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_arm64_standalone") { +- cflags = [] +source_set("f32-vgelu_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -93871,36 +73758,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { @@ -93917,61 +73810,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", +- "src/src/x8-pack-lh/x8-packlh-neonsme2.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45005,50 +50602,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +source_set("f32-vhswish_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", +- "src/src/x8-pack-lh/x8-packlh-neonsme2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -93979,51 +73898,60 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vlog_riscv64") { + cflags = [ + + ] -+ + +- source_set("x8-packq_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94032,96 +73960,127 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vlog_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45060,52 +50716,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packq_arm64_standalone") { +- cflags = [] +source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x8-packw_arm64") { +- cflags = [] +source_set("f32-vlrelu_riscv64") { + cflags = [ -+ + + ] + + sources = [ @@ -94132,6 +74091,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94140,38 +74100,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45117,52 +50832,117 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packw_arm64_standalone") { +- cflags = [] +source_set("f32-vmulcaddc_riscv64") { + cflags = [ + @@ -94185,6 +74153,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94193,44 +74162,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x8-transposec_arm64") { +- cflags = [] +source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", @@ -94242,6 +74241,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94250,42 +74250,48 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", + "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", + "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", + "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45174,49 +50954,117 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_arm64_standalone") { +- cflags = [] +source_set("f32-vrnd_riscv64") { + cflags = [ + @@ -94302,6 +74308,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94310,39 +74317,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { @@ -94350,15 +74379,18 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- source_set("xx-copy_arm64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" + ] -+ + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94367,39 +74399,44 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45228,49 +51076,111 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-copy_arm64_standalone") { +- cflags = [] +source_set("f32-vrsqrt_riscv64") { + cflags = [ + @@ -94414,47 +74451,71 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("xx-fill_arm64") { +- cflags = [] +source_set("f32-vsigmoid_riscv64") { + cflags = [ + @@ -94468,6 +74529,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94475,90 +74537,119 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45282,50 +51192,109 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-fill_arm64_standalone") { +- cflags = [] +source_set("f32-vsin_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vsin_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vsqrt_riscv64") { @@ -94574,7 +74665,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("xx-pad_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94582,51 +74676,73 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45337,49 +51306,113 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_arm64_standalone") { +- cflags = [] +source_set("f32-vtanh_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94635,36 +74751,43 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vunary_riscv64") { @@ -94682,6 +74805,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94689,41 +74813,48 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-transposev_arm64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vunary_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45391,73 +51424,151 @@ if (current_cpu == "arm64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-transposev_arm64_standalone") { +- cflags = [] +source_set("operators_riscv64") { + cflags = [ + @@ -94753,10 +74884,33 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94765,18 +74919,19 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("operators_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", ++if (build_with_internal_optimization_guide) { ++ source_set("operators_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", + "src/src/operators/average-pooling-nhwc.c", + "src/src/operators/batch-matrix-multiply-nc.c", + "src/src/operators/binary-elementwise-nd.c", @@ -94797,26 +74952,31 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/operators/transpose-nd.c", + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] + ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } + } + +-if (current_cpu == "riscv64") { +- source_set("configs_riscv64") { +- cflags = [] +source_set("qd8-f32-qb4w-gemm_riscv64") { + cflags = [ + @@ -94831,6 +74991,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94838,40 +74999,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45469,75 +51580,115 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("configs_riscv64_standalone") { +- cflags = [] +source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -94887,6 +75076,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -94894,39 +75084,87 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc4w-gemm_riscv64") { @@ -94943,7 +75181,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("enums_riscv64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94951,101 +75192,138 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45549,52 +51700,117 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("enums_riscv64_standalone") { +- cflags = [] +source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f16-f32-vcvt_riscv64") { +- cflags = [] +source_set("qd8-f32-qc8w-gemm_riscv64") { + cflags = [ + + ] -+ + + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", @@ -95056,6 +75334,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95064,40 +75343,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45606,48 +51822,117 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_riscv64_standalone") { +- cflags = [] +source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -95109,50 +75393,72 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qd8-f32-qc8w-igemm_riscv64") { @@ -95166,10 +75472,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] -+ + +- source_set("f16-qs8-vcvt_riscv64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95178,56 +75487,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45659,48 +51944,119 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_riscv64_standalone") { +- cflags = [] +source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -95235,38 +75564,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_riscv64") { @@ -95281,11 +75617,14 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -+ + +- source_set("f16-qu8-vcvt_riscv64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -95293,41 +75632,46 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45712,49 +52068,111 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qu8-vcvt_riscv64_standalone") { +- cflags = [] +source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -95342,6 +75686,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95349,45 +75694,68 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-f32-vcvt_riscv64") { + cflags = [ + + ] -+ + +- source_set("f16-rdminmax_riscv64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" @@ -95396,7 +75764,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -95404,51 +75773,76 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45766,51 +52184,115 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rdminmax_riscv64_standalone") { +- cflags = [] +source_set("qs8-packw_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95457,51 +75851,64 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-packw_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc4w-gemm_riscv64") { + cflags = [ -+ + +- source_set("f16-rminmax_riscv64") { +- cflags = [] + ] -+ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95510,38 +75917,45 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45822,50 +52304,125 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_riscv64_standalone") { +- cflags = [] +source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -95554,56 +75968,82 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] ++ ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f16-vapproxgelu_riscv64") { +- cflags = [] +source_set("qs8-qc8w-dwconv_riscv64") { + cflags = [ -+ + + ] + + sources = [ @@ -95619,6 +76059,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95627,98 +76068,125 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45877,48 +52434,115 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_riscv64_standalone") { +- cflags = [] +source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qc8w-gemm_riscv64") { @@ -95735,62 +76203,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f16-vcos_riscv64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45930,48 +52554,2390 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcos_riscv64_standalone") { +- cflags = [] +source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95799,37 +76284,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -95847,6 +76335,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95855,36 +76344,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -95901,6 +76393,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95909,35 +76402,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -95955,6 +76451,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -95963,44 +76460,57 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +source_set("qs8-rdsum_riscv64") { + cflags = [ -+ + +- public_configs = [ ":xnnpack_public_config" ] + ] -+ + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" @@ -96009,6 +76519,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96017,38 +76528,43 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f16-vexp_riscv64") { +- cflags = [] +source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", @@ -96063,7 +76579,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -96071,36 +76588,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96117,6 +76637,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96125,35 +76646,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96171,6 +76695,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96179,36 +76704,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96226,6 +76754,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96234,36 +76763,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96281,6 +76813,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96289,36 +76822,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96336,6 +76872,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96344,36 +76881,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96390,6 +76930,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96398,35 +76939,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96444,6 +76988,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96452,36 +76997,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96498,6 +77046,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96506,35 +77055,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96552,6 +77104,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96560,36 +77113,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96606,6 +77162,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96614,35 +77171,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96660,6 +77220,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96668,36 +77229,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96714,6 +77278,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96722,35 +77287,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96767,6 +77335,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96775,35 +77344,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vprelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96820,6 +77392,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96828,35 +77401,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vpreluc_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96873,6 +77449,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96881,35 +77458,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-vrpreluc_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96928,6 +77508,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96936,37 +77517,40 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -96986,6 +77570,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -96994,38 +77579,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97043,6 +77631,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97051,36 +77640,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97097,6 +77689,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97105,35 +77698,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97151,6 +77747,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97159,36 +77756,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97206,6 +77806,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97214,36 +77815,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97261,6 +77865,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97269,36 +77874,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97315,6 +77923,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97323,35 +77932,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97369,6 +77981,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97377,36 +77990,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97423,6 +78039,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97431,35 +78048,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97477,6 +78097,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97485,36 +78106,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97532,6 +78156,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97540,36 +78165,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97587,6 +78215,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97595,36 +78224,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97642,6 +78274,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97650,36 +78283,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97696,6 +78332,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97704,35 +78341,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97750,6 +78390,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97758,36 +78399,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97804,6 +78448,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97812,35 +78457,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97858,6 +78506,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97866,36 +78515,39 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97912,6 +78564,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97920,35 +78573,38 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ public_configs = [ ":xnnpack_public_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} + @@ -97966,6 +78622,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -97974,472 +78631,749 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -45983,48 +54949,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +source_set("qu8-vmulc_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vgelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46036,48 +55006,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vgelu_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +source_set("qu8-vprelu_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f16-vsin_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vprelu_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46089,51 +55063,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_riscv64_standalone") { +- cflags = [] +source_set("qu8-vpreluc_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qu8-vpreluc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46145,51 +55120,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", +- ] +source_set("qu8-vrpreluc_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-argmaxpool_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vrpreluc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46201,48 +55177,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +source_set("reference_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-avgpool_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("reference_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", ++if (build_with_internal_optimization_guide) { ++ source_set("reference_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", ++ "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46254,51 +55238,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_riscv64_standalone") { +- cflags = [] +source_set("s8-ibilinear_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46310,51 +55295,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", +- ] +source_set("s8-maxpool_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-conv-hwc2chw_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-maxpool_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46366,52 +55352,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-conv-hwc2chw_riscv64_standalone") { +- cflags = [] +source_set("s8-rdminmax_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46423,59 +55411,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-rminmax_riscv64") { + cflags = [ -+ + +- source_set("f32-dwconv2d-chw_riscv64") { +- cflags = [] + ] + + sources = [ @@ -98452,6 +79386,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -98459,39 +79394,82 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("s8-rminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46487,65 +55472,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { @@ -98508,6 +79486,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -98516,37 +79495,86 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", +- "-march=rv64gcv", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", ++ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46557,67 +55531,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-vclamp_riscv64") { @@ -98562,6 +79590,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -98569,44 +79598,84 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-dwconv_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46629,57 +55588,108 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] +source_set("subgraph_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/subgraph/argmax-pooling-2d.c", @@ -98639,30 +79708,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-f16-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("subgraph_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", ++if (build_with_internal_optimization_guide) { ++ source_set("subgraph_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", ++ "src/src/subgraph/argmax-pooling-2d.c", + "src/src/subgraph/average-pooling-2d.c", + "src/src/subgraph/batch-matrix-multiply.c", + "src/src/subgraph/binary.c", @@ -98691,31 +79771,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unary.c", + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46691,52 +55701,68 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_riscv64_standalone") { +- cflags = [] +source_set("tables_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/tables/exp2-k-over-2048.c", @@ -98728,30 +79819,50 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("tables_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", ++if (build_with_internal_optimization_guide) { ++ source_set("tables_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", +- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", ++ "src/src/tables/exp2-k-over-2048.c", + "src/src/tables/exp2-k-over-64.c", + "src/src/tables/exp2minus-k-over-16.c", + "src/src/tables/exp2minus-k-over-2048.c", @@ -98760,24 +79871,55 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-64.c", + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46748,59 +55774,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", +- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-ibilinear_riscv64") { @@ -98793,6 +79935,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -98800,198 +79943,336 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-gemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46812,55 +55831,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] +source_set("u8-lut32norm_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear-chw_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-lut32norm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46872,48 +55888,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear-chw_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] +source_set("u8-maxpool_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-ibilinear_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-maxpool_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46925,52 +55945,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear_riscv64_standalone") { +- cflags = [] +source_set("u8-rdminmax_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", +- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -46982,59 +56004,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", +- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-rminmax_riscv64") { @@ -99009,7 +80290,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("f32-igemm_riscv64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -99017,38 +80301,81 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-rminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47046,58 +56065,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-igemm_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { @@ -99065,6 +80392,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -99073,251 +80401,410 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", +- "-march=rv64gcv", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", ++ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47109,51 +56124,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", +- ] +source_set("u8-vclamp_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-maxpool_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47165,49 +56181,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("x16-transposec_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc4w-gemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x16-transposec_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47219,50 +56238,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +source_set("x16-x32-packw_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qc8w-gemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47274,52 +56297,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_riscv64_standalone") { +- cflags = [] +source_set("x24-transposec_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("x24-transposec_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47331,52 +56354,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-packw_arch=rv64gcv-abi=lp64d") { @@ -99334,6 +80821,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -99341,45 +80829,62 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qs8-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47388,52 +56413,62 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_riscv64_standalone") { +- cflags = [] +source_set("x32-packw_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", @@ -99389,53 +80894,102 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("x32-packw_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", + "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47445,52 +56480,60 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { @@ -99455,6 +81009,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -99462,313 +81017,485 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-qu8-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", + "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", ++ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", + "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", + "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", + "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47502,52 +56545,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_riscv64_standalone") { +- cflags = [] +source_set("x32-transposec_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("x32-transposec_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47559,51 +56602,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", +- ] +source_set("x32-unpool_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-raddstoreexpminusmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-unpool_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47615,49 +56659,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +source_set("x64-transposec_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdminmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x64-transposec_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47669,52 +56716,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdminmax_riscv64_standalone") { +- cflags = [] +source_set("x8-lut_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("x8-lut_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47726,51 +56773,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", +- ] +source_set("x8-packq_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rdsum_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-packq_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packq_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47782,53 +56830,58 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_riscv64_standalone") { +- cflags = [] +source_set("x8-packw_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -99776,51 +81503,104 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("x8-packw_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47840,55 +56893,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x8-transposec_riscv64") { @@ -99836,6 +81616,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -99843,143 +81624,244 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rminmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-transposec_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47900,50 +56950,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +source_set("xx-copy_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-rsum_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-copy_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -47955,53 +57007,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_riscv64_standalone") { +- cflags = [] +source_set("xx-fill_riscv64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("xx-fill_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_riscv64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48013,55 +57064,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("xx-pad_riscv64") { @@ -99995,6 +81877,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -100002,100 +81885,148 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-spmm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-pad_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48073,50 +57121,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-spmm_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +source_set("xx-transposev_riscv64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vapproxgelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-transposev_riscv64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("xx-transposev_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48128,66 +57178,101 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_riscv64_standalone") { +- cflags = [] +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] +if (current_cpu == "ppc64") { +source_set("configs_ppc64") { + cflags = [ + + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/configs/argmaxpool-config.c", @@ -100123,30 +82054,64 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("configs_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", ++if (build_with_internal_optimization_guide) { ++ source_set("configs_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", ++ "src/src/configs/argmaxpool-config.c", + "src/src/configs/avgpool-config.c", + "src/src/configs/binary-elementwise-config.c", + "src/src/configs/cmul-config.c", @@ -100170,24 +82135,69 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/configs/x8-lut-config.c", + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48199,84 +57284,60 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("enums_ppc64") { @@ -100207,6 +82217,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -100214,743 +82225,1194 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vbinary_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("enums_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", ++if (build_with_internal_optimization_guide) { ++ source_set("enums_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", ++ "src/src/enums/allocation-type.c", + "src/src/enums/datatype-strings.c", + "src/src/enums/microkernel-type.c", + "src/src/enums/node-type.c", + "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48288,66 +57349,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +source_set("f16-f32-vcvt_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vclamp_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-f32-vcvt_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48359,51 +57406,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_riscv64_standalone") { +- cflags = [] +source_set("f16-qs8-vcvt_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f16-qs8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48415,51 +57463,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", +- ] +source_set("f16-qu8-vcvt_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcmul_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-qu8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48471,50 +57520,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +source_set("f16-rdminmax_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcopysign_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rdminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", + "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48526,50 +57579,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcopysign_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +source_set("f16-rminmax_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vcos_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-rminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", + "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48581,48 +57640,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +source_set("f16-vapproxgelu_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-velu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vapproxgelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48634,48 +57697,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +source_set("f16-vcos_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vexp_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vcos_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48687,48 +57754,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +source_set("f16-vexp_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vgelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vexp_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48740,51 +57811,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_riscv64_standalone") { +- cflags = [] +source_set("f16-vgelu_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f16-vgelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48796,51 +57868,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", +- ] +source_set("f16-vsin_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vhswish_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f16-vsin_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48852,48 +57925,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +source_set("f32-argmaxpool_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlog_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-argmaxpool_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48905,51 +57982,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_riscv64_standalone") { +- cflags = [] +source_set("f32-avgpool_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-avgpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -48961,51 +58039,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", +- ] +source_set("f32-conv-hwc2chw_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vlrelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-conv-hwc2chw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49017,48 +58096,66 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +source_set("f32-dwconv2d-chw_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", @@ -100962,30 +83424,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vmulcaddc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-dwconv2d-chw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", @@ -100993,31 +83466,42 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", + "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49070,54 +58167,70 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vmulcaddc_riscv64_standalone") { +- cflags = [] +source_set("f32-dwconv_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", @@ -101031,30 +83515,52 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-dwconv_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", @@ -101064,26 +83570,61 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", + "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49129,57 +58242,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("f32-vrnd_riscv64") { +- cflags = [] +source_set("f32-f16-vcvt_ppc64") { + cflags = [ + @@ -101097,6 +83638,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -101105,43 +83647,79 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-f16-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49191,54 +58299,66 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrnd_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-gemm_ppc64") { + cflags = [ + + ] -+ + +- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", @@ -101157,6 +83735,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -101165,18 +83744,23 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", @@ -101184,24 +83768,54 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", + "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49250,52 +58370,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-ibilinear-chw_ppc64") { @@ -101213,10 +83827,13 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] -+ + +- source_set("f32-vrsqrt_riscv64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -101225,96 +83842,147 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear-chw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49307,49 +58427,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +source_set("f32-ibilinear_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsigmoid_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-ibilinear_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49361,48 +58484,66 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +source_set("f32-igemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", @@ -101326,30 +83994,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsin_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-igemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", @@ -101357,187 +84036,305 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", + "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49414,48 +58555,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +source_set("f32-maxpool_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vsqrt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-maxpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49467,48 +58612,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +source_set("f32-qc4w-gemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vtanh_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qc4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49520,50 +58671,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +source_set("f32-qc8w-gemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("f32-vunary_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qc8w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49575,70 +58730,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qs8-vcvt_ppc64") { @@ -101554,6 +84351,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -101561,38 +84359,109 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("operators_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qs8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49650,69 +58789,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("operators_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-qu8-vcvt_ppc64") { @@ -101609,6 +84478,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -101616,91 +84486,159 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qb4w-gemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-qu8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49724,53 +58848,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { +- cflags = [] +source_set("f32-raddstoreexpminusmax_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-raddstoreexpminusmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49782,53 +58905,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rdminmax_ppc64") { @@ -101717,7 +84655,10 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qd8-f32-qc4w-gemm_riscv64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -101725,97 +84666,165 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-rdminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", + "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49840,53 +58964,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { +- cflags = [] +source_set("f32-rdsum_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-rdsum_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49898,54 +59021,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-rminmax_ppc64") { + cflags = [ + + ] -+ + +- source_set("qd8-f32-qc8w-gemm_riscv64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", @@ -101826,7 +84835,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -101834,91 +84844,159 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-rminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", + "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -49957,54 +59082,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { +- cflags = [] +source_set("f32-rsum_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-rsum_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50016,54 +59139,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-spmm_ppc64") { @@ -101936,6 +85014,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -101943,92 +85022,162 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qd8-f32-qc8w-igemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-spmm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", + "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50075,54 +59200,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { +- cflags = [] +source_set("f32-vapproxgelu_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vapproxgelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50134,55 +59257,88 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vbinary_ppc64") { @@ -102062,6 +85211,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -102069,19 +85219,26 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-dwconv_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vbinary_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", + "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", @@ -102100,24 +85257,54 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50194,54 +59350,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vclamp_ppc64") { @@ -102133,7 +85320,9 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -102141,252 +85330,417 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vclamp_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50253,51 +59407,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", +- ] +source_set("f32-vcmul_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-f32-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcmul_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50309,51 +59464,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +source_set("f32-vcopysign_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-packw_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcopysign_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", + "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50365,51 +59525,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] +source_set("f32-vcos_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc4w-gemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vcos_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50421,53 +59582,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_riscv64_standalone") { +- cflags = [] +source_set("f32-velu_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-velu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50479,58 +59639,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vexp_ppc64") { @@ -102402,6 +85756,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -102409,37 +85764,78 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qc8w-dwconv_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vexp_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50542,57 +59696,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vgelu_ppc64") { @@ -102455,6 +85851,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -102463,43 +85860,83 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vgelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50604,53 +59753,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("f32-vhswish_ppc64") { + cflags = [ + + ] -+ + +- source_set("qs8-qc8w-gemm_riscv64") { +- cflags = [] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" @@ -102508,7 +85945,8 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -102516,91 +85954,159 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("f32-vhswish_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50662,53 +59810,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_riscv64_standalone") { +- cflags = [] +source_set("f32-vlog_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vlog_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50720,53 +59867,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-qc8w-igemm_riscv64") { +- cflags = [] +source_set("f32-vlrelu_ppc64") { + cflags = [ + @@ -102614,6 +86120,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -102622,96 +86129,140 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vlrelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50778,49 +59924,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +source_set("f32-vmulcaddc_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-qu8-packw_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vmulcaddc_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50832,51 +59981,58 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_riscv64_standalone") { +- cflags = [] +source_set("f32-vrnd_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", @@ -102719,267 +86270,442 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vrnd_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50888,51 +60044,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", +- ] +source_set("f32-vrsqrt_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-rdsum_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vrsqrt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -50944,51 +60103,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rdsum_riscv64_standalone") { +- cflags = [] +source_set("f32-vsigmoid_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vsigmoid_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51000,51 +60160,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", +- ] +source_set("f32-vsin_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-rsum_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vsin_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51056,51 +60217,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_riscv64_standalone") { +- cflags = [] +source_set("f32-vsqrt_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vsqrt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51112,52 +60274,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qs8-vadd_riscv64") { +- cflags = [] +source_set("f32-vtanh_ppc64") { + cflags = [ + @@ -102993,6 +86719,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -103001,93 +86728,157 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("f32-vtanh_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51169,52 +60331,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_riscv64_standalone") { +- cflags = [] +source_set("f32-vunary_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("f32-vunary_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", + "src/src/f32-vunary/gen/f32-vneg-scalar.c", + "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51226,52 +60392,92 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("operators_ppc64") { @@ -103123,6 +86914,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -103130,19 +86922,24 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vaddc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("operators_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", ++if (build_with_internal_optimization_guide) { ++ source_set("operators_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", ++ "src/src/operators/argmax-pooling-nhwc.c", + "src/src/operators/average-pooling-nhwc.c", + "src/src/operators/batch-matrix-multiply-nc.c", + "src/src/operators/binary-elementwise-nd.c", @@ -103163,248 +86960,400 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/operators/transpose-nd.c", + "src/src/operators/unary-elementwise-nc.c", + "src/src/operators/unpooling-nhwc.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51283,49 +60489,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +source_set("qd8-f32-qb4w-gemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51337,51 +60548,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_riscv64_standalone") { +- cflags = [] +source_set("qd8-f32-qc4w-gemm_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51393,51 +60607,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", +- ] +source_set("qd8-f32-qc8w-gemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vlrelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51449,51 +60668,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_riscv64_standalone") { +- cflags = [] +source_set("qd8-f32-qc8w-igemm_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51505,51 +60729,58 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-dwconv_ppc64") { @@ -103423,6 +87372,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -103430,93 +87380,157 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vmul_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-dwconv_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51561,51 +60792,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_riscv64_standalone") { +- cflags = [] +source_set("qs8-f32-vcvt_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qs8-f32-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51617,51 +60849,58 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-packw_ppc64") { @@ -103526,12 +87540,16 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -103539,97 +87557,151 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vmulc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-packw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51673,48 +60912,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +source_set("qs8-qc4w-gemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vprelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", ++ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51726,48 +60969,62 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vprelu_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +source_set("qs8-qc8w-dwconv_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -103639,163 +87711,265 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vpreluc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-dwconv_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51779,48 +61036,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vpreluc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +source_set("qs8-qc8w-gemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qs8-vrpreluc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51832,52 +61095,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vrpreluc_riscv64_standalone") { +- cflags = [] +source_set("qs8-qc8w-igemm_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qs8-qc8w-igemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51889,55 +61154,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-qu8-packw_ppc64") { @@ -103811,6 +87985,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -103818,37 +87993,74 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-dwconv_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-qu8-packw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -51949,54 +61211,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-dwconv_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-rdsum_ppc64") { @@ -103864,6 +88076,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -103871,465 +88084,749 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("qs8-rdsum_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52008,51 +61268,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", +- ] +source_set("qs8-rsum_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-f32-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-rsum_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52064,49 +61325,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +source_set("qs8-vadd_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-gemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vadd_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", + "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52118,50 +61384,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +source_set("qs8-vaddc_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-igemm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vaddc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", + "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52173,52 +61443,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_riscv64_standalone") { +- cflags = [] +source_set("qs8-vcvt_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qs8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52230,51 +61500,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", +- ] +source_set("qs8-vlrelu_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-rdsum_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vlrelu_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52286,51 +61557,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rdsum_riscv64_standalone") { +- cflags = [] +source_set("qs8-vmul_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qs8-vmul_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52342,51 +61614,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", +- ] +source_set("qs8-vmulc_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-rsum_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vmulc_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52398,51 +61671,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_riscv64_standalone") { +- cflags = [] +source_set("qs8-vprelu_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qs8-vprelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52454,52 +61728,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qs8-vpreluc_ppc64") { @@ -104345,6 +88842,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -104352,92 +88850,160 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vadd_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qs8-vpreluc_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52511,52 +61785,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_riscv64_standalone") { +- cflags = [] +source_set("qs8-vrpreluc_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qs8-vrpreluc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52568,52 +61842,58 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vaddc_riscv64") { +- cflags = [] +source_set("qu8-dwconv_ppc64") { + cflags = [ + @@ -104454,6 +89020,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -104462,257 +89029,414 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-dwconv_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52625,49 +61905,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vaddc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +source_set("qu8-f32-vcvt_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vcvt_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-f32-vcvt_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52679,51 +61962,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_riscv64_standalone") { +- cflags = [] +source_set("qu8-gemm_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qu8-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52735,51 +62021,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", +- ] +source_set("qu8-igemm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vlrelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-igemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52791,51 +62080,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_riscv64_standalone") { +- cflags = [] +source_set("qu8-rdsum_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qu8-rdsum_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52847,51 +62137,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("qu8-vmul_riscv64") { +- cflags = [] +source_set("qu8-rsum_ppc64") { + cflags = [ + @@ -104726,6 +89450,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -104734,91 +89459,153 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-rsum_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52903,51 +62194,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_riscv64_standalone") { +- cflags = [] +source_set("qu8-vadd_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("qu8-vadd_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", + "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -52959,51 +62253,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("qu8-vaddc_ppc64") { @@ -104835,6 +89622,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -104842,627 +89630,1047 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vmulc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vaddc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53015,48 +62312,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +source_set("qu8-vcvt_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vprelu_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53068,48 +62369,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vprelu_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +source_set("qu8-vlrelu_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vpreluc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vlrelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53121,48 +62426,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vpreluc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +source_set("qu8-vmul_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("qu8-vrpreluc_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vmul_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53174,50 +62483,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vrpreluc_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +source_set("qu8-vmulc_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("reference_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vmulc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53229,50 +62540,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("reference_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +source_set("qu8-vprelu_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-ibilinear_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vprelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53284,48 +62597,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-ibilinear_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- ] +source_set("qu8-vpreluc_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-maxpool_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vpreluc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53337,49 +62654,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("qu8-vrpreluc_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-rdminmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("qu8-vrpreluc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53391,51 +62711,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rdminmax_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- ] +source_set("reference_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-rminmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("reference_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", ++if (build_with_internal_optimization_guide) { ++ source_set("reference_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", ++ "src/src/reference/binary-elementwise.cc", + "src/src/reference/packing.cc", + "src/src/reference/unary-elementwise.cc" -+ ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53447,53 +62772,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rminmax_riscv64_standalone") { +- cflags = [] +source_set("s8-ibilinear_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("s8-ibilinear_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53505,51 +62829,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", +- ] +source_set("s8-maxpool_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("s8-vclamp_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-maxpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53561,76 +62886,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +source_set("s8-rdminmax_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("subgraph_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-rdminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", + "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53642,84 +62945,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("subgraph_riscv64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("s8-rminmax_ppc64") { @@ -105480,6 +90688,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -105487,99 +90696,166 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("tables_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-rminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", + "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53731,56 +63006,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("tables_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +source_set("s8-vclamp_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-ibilinear_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("s8-vclamp_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53792,48 +63063,108 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-ibilinear_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- ] +source_set("subgraph_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/subgraph/argmax-pooling-2d.c", @@ -105612,30 +90888,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-lut32norm_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("subgraph_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", ++if (build_with_internal_optimization_guide) { ++ source_set("subgraph_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", ++ "src/src/subgraph/argmax-pooling-2d.c", + "src/src/subgraph/average-pooling-2d.c", + "src/src/subgraph/batch-matrix-multiply.c", + "src/src/subgraph/binary.c", @@ -105664,31 +90951,49 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/subgraph/unary.c", + "src/src/subgraph/unpooling-2d.c", + "src/src/subgraph/validation.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53845,48 +63176,68 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-lut32norm_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +source_set("tables_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/tables/exp2-k-over-2048.c", @@ -105701,30 +91006,41 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-maxpool_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("tables_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", ++if (build_with_internal_optimization_guide) { ++ source_set("tables_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", ++ "src/src/tables/exp2-k-over-2048.c", + "src/src/tables/exp2-k-over-64.c", + "src/src/tables/exp2minus-k-over-16.c", + "src/src/tables/exp2minus-k-over-2048.c", @@ -105733,458 +91049,735 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/tables/exp2minus-k-over-64.c", + "src/src/tables/exp2minus-k-over-8.c", + "src/src/tables/vlog.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53898,49 +63249,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-maxpool_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +source_set("u8-ibilinear_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-rdminmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-ibilinear_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -53952,51 +63306,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rdminmax_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- ] +source_set("u8-lut32norm_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-rminmax_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-lut32norm_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("u8-lut32norm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54008,53 +63363,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rminmax_riscv64_standalone") { +- cflags = [] +source_set("u8-maxpool_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("u8-maxpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54066,51 +63420,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", +- ] +source_set("u8-rdminmax_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("u8-vclamp_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-rdminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", + "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54122,48 +63479,56 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +source_set("u8-rminmax_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x16-transposec_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-rminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", + "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54175,49 +63540,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +source_set("u8-vclamp_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x16-x32-packw_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("u8-vclamp_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54229,49 +63597,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-x32-packw_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +source_set("x16-transposec_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x24-transposec_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x16-transposec_ppc64_standalone") { -+ cflags = [ ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54283,51 +63654,54 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] + -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x24-transposec_riscv64_standalone") { +- cflags = [] +source_set("x16-x32-packw_ppc64") { + cflags = [ -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] + ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + sources = [ + "src/include/xnnpack.h", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +- source_set("x32-packw_arch=rv64gcv-abi=lp64d") { +# This is a target that cannot depend on //base. -+source_set("x16-x32-packw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", + "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54339,56 +63713,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ + +- source_set("x32-packw_riscv64") { +- cflags = [] +source_set("x24-transposec_ppc64") { + cflags = [ + @@ -106198,6 +91791,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -106206,43 +91800,83 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x24-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54400,59 +63770,62 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-packw_ppc64") { + cflags = [ + + ] -+ + +- source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { + sources = [ + "src/include/xnnpack.h", + "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", @@ -106256,6 +91890,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -106264,41 +91899,82 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] + -+ public_configs = [ ":xnnpack_config" ] ++ public_configs = [ ":xnnpack_public_config" ] +} + +# This is a target that cannot depend on //base. -+source_set("x32-packw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_ppc64_standalone") { + cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", ++ + ] +- ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", + "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", + "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", + "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54464,54 +63837,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} + +source_set("x32-transposec_ppc64") { @@ -106314,6 +91990,7 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + + deps = [ + "//third_party/cpuinfo", @@ -106321,256 +91998,394 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x32-transposec_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54523,48 +63894,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +source_set("x32-unpool_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x32-unpool/x32-unpool-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x32-unpool_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x32-unpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54576,48 +63951,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-unpool_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +source_set("x64-transposec_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x64-transposec_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x64-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54629,48 +64008,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +source_set("x8-lut_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-lut_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-lut_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54682,48 +64065,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +source_set("x8-packq_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-packq_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-packq_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packq_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54735,51 +64122,58 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packq_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +source_set("x8-packw_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -106578,316 +92393,504 @@ Index: chromium-139.0.7258.66/third_party/xnnpack/BUILD.gn + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-packw_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-packw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", + "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54791,51 +64185,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packw_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +source_set("x8-transposec_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("x8-transposec_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("x8-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54847,48 +64242,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +source_set("xx-copy_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-copy_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-copy_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54900,48 +64299,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-copy_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +source_set("xx-fill_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-fill_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-fill_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -54953,48 +64356,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-fill_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +source_set("xx-pad_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-pad_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-pad_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -55006,48 +64413,52 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_riscv64_standalone") { +- cflags = [] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +source_set("xx-transposev_ppc64") { + cflags = [ -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ ++ configs += [ ":xnnpack_private_config" ] + +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_config" ] + +- source_set("xx-transposev_riscv64") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] +} -+ + +# This is a target that cannot depend on //base. -+source_set("xx-transposev_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+} ++if (build_with_internal_optimization_guide) { ++ source_set("xx-transposev_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] +@@ -55059,39 +64470,15 @@ if (current_cpu == "riscv64") { + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", +- "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] + + public_configs = [ ":xnnpack_public_config" ] +- } +- +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-transposev_riscv64_standalone") { +- cflags = [] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } + } + +} diff --git a/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch b/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch deleted file mode 100644 index 312bba5..0000000 --- a/0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch +++ /dev/null @@ -1,76 +0,0 @@ -From 3c4705bfdda45feb860a1f121631773e5fe8e53f Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 19:11:26 -0500 -Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Modify seccomp_macros to add - support for ppc64 - ---- - sandbox/linux/bpf_dsl/seccomp_macros.h | 43 ++++++++++++++++++++++++++ - 1 file changed, 43 insertions(+) - -Index: chromium-128.0.6613.113/sandbox/linux/bpf_dsl/seccomp_macros.h -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/seccomp_macros.h -+++ chromium-128.0.6613.113/sandbox/linux/bpf_dsl/seccomp_macros.h -@@ -14,6 +14,9 @@ - #if defined(__mips__) - // sys/user.h in eglibc misses size_t definition - #include -+#elif defined(__powerpc64__) -+// Manually define greg_t on ppc64 -+typedef unsigned long long greg_t; - #endif - #endif - -@@ -343,6 +346,51 @@ struct regs_struct { - #define SECCOMP_PT_PARM4(_regs) (_regs).regs[3] - #define SECCOMP_PT_PARM5(_regs) (_regs).regs[4] - #define SECCOMP_PT_PARM6(_regs) (_regs).regs[5] -+ -+#elif defined(__powerpc64__) -+#include -+ -+typedef struct pt_regs regs_struct; -+ -+#ifdef ARCH_CPU_LITTLE_ENDIAN -+#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE -+#else -+#define SECCOMP_ARCH AUDIT_ARCH_PPC64 -+#endif -+ -+#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) -+ -+#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3) -+#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) -+#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip -+#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3) -+#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4) -+#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5) -+#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6) -+#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7) -+#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8) -+ -+#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr)) -+#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch)) -+#define SECCOMP_IP_MSB_IDX \ -+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4) -+#define SECCOMP_IP_LSB_IDX \ -+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0) -+#define SECCOMP_ARG_MSB_IDX(nr) \ -+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4) -+#define SECCOMP_ARG_LSB_IDX(nr) \ -+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0) -+ -+#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3] -+#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0] -+#define SECCOMP_PT_IP(_regs) (_regs).nip -+#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3] -+#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4] -+#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5] -+#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6] -+#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7] -+#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8] -+ - #else - #error Unsupported target platform - diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index 26410c5..e58e489 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,5 +1,7 @@ ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h 2025-05-26 21:02:11.891388790 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. @@ -187,8 +189,10 @@ -#endif - -#endif // VP8_RTCD_H_ ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h 2025-05-26 21:02:11.891388790 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. @@ -309,8 +313,10 @@ -#endif - -#endif // VP9_RTCD_H_ ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm 2025-05-26 21:02:11.891388790 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ /dev/null @@ -1,107 +0,0 @@ -@ This file was created from a .asm file -@ using the ads2gas.pl script. @@ -419,8 +425,10 @@ -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c 2025-05-26 21:02:11.891388790 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -432,8 +440,10 @@ -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h 2025-05-26 21:02:11.892388814 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ /dev/null @@ -1,116 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ -/* */ @@ -551,8 +561,10 @@ -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h 2025-05-26 21:02:11.892388814 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ /dev/null @@ -1,858 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. @@ -1412,8 +1424,10 @@ -#endif - -#endif // VPX_DSP_RTCD_H_ ---- chromium-137.0.7151.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h 2025-05-26 21:02:11.892388814 +0200 -+++ /dev/null 2025-05-26 08:38:43.246140177 +0200 +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2025 The WebM project authors. All Rights Reserved. diff --git a/0002-third_party-lss-kernel-structs.patch b/0002-third_party-lss-kernel-structs.patch index c39c210..b234a14 100644 --- a/0002-third_party-lss-kernel-structs.patch +++ b/0002-third_party-lss-kernel-structs.patch @@ -1,7 +1,7 @@ -Index: chromium-136.0.7103.48/third_party/lss/linux_syscall_support.h +Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-136.0.7103.48.orig/third_party/lss/linux_syscall_support.h -+++ chromium-136.0.7103.48/third_party/lss/linux_syscall_support.h +--- chromium-140.0.7339.41.orig/third_party/lss/linux_syscall_support.h ++++ chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h @@ -86,7 +86,7 @@ * Porting to other related platforms should not be difficult. */ diff --git a/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch b/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch deleted file mode 100644 index cdefaf3..0000000 --- a/0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch +++ /dev/null @@ -1,37 +0,0 @@ -From cca78240860abb63bbcfe94d1e5f04a1f23c527d Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 19:11:56 -0500 -Subject: [PATCH 3/4] sandbox/linux/system_headers: Update linux seccomp header - for ppc64 - ---- - sandbox/linux/system_headers/linux_seccomp.h | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_seccomp.h -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_seccomp.h -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_seccomp.h -@@ -38,6 +38,9 @@ - #ifndef EM_AARCH64 - #define EM_AARCH64 183 - #endif -+#ifndef EM_PPC64 -+#define EM_PPC64 21 -+#endif - - #ifndef __AUDIT_ARCH_64BIT - #define __AUDIT_ARCH_64BIT 0x80000000 -@@ -70,6 +73,12 @@ - #ifndef AUDIT_ARCH_AARCH64 - #define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) - #endif -+#ifndef AUDIT_ARCH_PPC64 -+#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT) -+#endif -+#ifndef AUDIT_ARCH_PPC64LE -+#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) -+#endif - - // For prctl.h - #ifndef PR_SET_SECCOMP diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index a95e5ce..73fb10f 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-136.0.7103.48/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch b/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch deleted file mode 100644 index df65bff..0000000 --- a/0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 298df3dc44f7121cd8cb9a06b29fa3b16c959b8d Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 19:13:25 -0500 -Subject: [PATCH 4/4] sandbox/linux/system_headers: Update linux signal header - for ppc64 - ---- - sandbox/linux/system_headers/linux_signal.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_signal.h -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_signal.h -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_signal.h -@@ -13,7 +13,7 @@ - // (not undefined, but defined different values and in different memory - // layouts). So, fill the gap here. - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - - #define LINUX_SIGHUP 1 - #define LINUX_SIGINT 2 diff --git a/0004-third_party-crashpad-port-curl-transport-ppc64.patch b/0004-third_party-crashpad-port-curl-transport-ppc64.patch index b773e2d..edaff0a 100644 --- a/0004-third_party-crashpad-port-curl-transport-ppc64.patch +++ b/0004-third_party-crashpad-port-curl-transport-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc =================================================================== ---- chromium-128.0.6613.113.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc -+++ chromium-128.0.6613.113/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +--- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc ++++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc @@ -239,6 +239,12 @@ std::string UserAgent() { #endif #elif defined (ARCH_CPU_RISCV64) diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index bbb6672..727edd7 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vp9/encoder/ppc/v eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct3 } // Returns 1 if negative 0 if positive -Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch b/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch deleted file mode 100644 index 33d2f31..0000000 --- a/0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch +++ /dev/null @@ -1,107 +0,0 @@ -From 1d44643a7c7cf650efd1093d22cd5bf859fdcb51 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 9 Aug 2018 20:52:13 -0500 -Subject: [PATCH] sandbox/linux/seccomp-bpf: Add ppc64 syscall stub - ---- - sandbox/linux/seccomp-bpf/syscall.cc | 53 ++++++++++++++++++++++++++-- - 1 file changed, 51 insertions(+), 2 deletions(-) - -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/syscall.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf/syscall.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf/syscall.cc -@@ -23,7 +23,7 @@ namespace sandbox { - namespace { - - #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ -- defined(ARCH_CPU_MIPS_FAMILY) -+ defined(ARCH_CPU_MIPS_FAMILY) || defined (ARCH_CPU_PPC64_FAMILY) - // Number that's not currently used by any Linux kernel ABIs. - const int kInvalidSyscallNumber = 0x351d3; - #else -@@ -313,10 +313,54 @@ asm(// We need to be able to tell the ke - "2:ret\n" - ".cfi_endproc\n" - ".size SyscallAsm, .-SyscallAsm\n" -+#elif defined(__powerpc64__) -+ ".text\n" -+ ".align 4\n" -+ ".type SyscallAsm @function\n" -+ "SyscallAsm:\n" -+ ".cfi_startproc\n" -+ -+ // Check if r3 is negative -+ "cmpdi 3, 0\n" -+ "bgt 2f\n" -+ -+ // Load address of 3f into r3 and return -+ "mflr 10\n" -+ "bl 1f\n" -+ "1: mflr 3\n" -+ "mtlr 10\n" -+ "addi 3, 3, 4*13\n" -+ "blr\n" -+ -+ // Load arguments from array into r3-8 -+ // save param 3 in r10 -+ "2:\n" -+ "mr 0, 3\n" -+ "ld 3, 0(4)\n" -+ "ld 5, 16(4)\n" -+ "ld 6, 24(4)\n" -+ "ld 7, 32(4)\n" -+ "ld 8, 40(4)\n" -+ "ld 4, 8(4)\n" -+ "li 9, 0\n" -+ -+ // Enter kernel -+ "sc\n" -+ -+ // Magic return address -+ "3:\n" -+ // Like MIPS, ppc64 return values are always positive. -+ // Check for error in cr0.SO and negate upon error -+ "bc 4, 3, 4f\n" -+ "neg 3, 3\n" -+ "4: blr\n" -+ -+ ".cfi_endproc\n" -+ ".size SyscallAsm, .-SyscallAsm\n" - #endif - ); // asm - --#if defined(__x86_64__) -+#if defined(__x86_64__) || defined(__powerpc64__) - extern "C" { - intptr_t SyscallAsm(intptr_t nr, const intptr_t args[6]); - } -@@ -430,6 +474,8 @@ intptr_t Syscall::Call(int nr, - ret = inout; - } - -+#elif defined(__powerpc64__) -+ intptr_t ret = SyscallAsm(nr, args); - #else - #error "Unimplemented architecture" - #endif -@@ -446,8 +492,18 @@ void Syscall::PutValueInUcontext(intptr_ - // needs to be changed back. - ret_val = -ret_val; - SECCOMP_PARM4(ctx) = 1; -- } else -+ } else { - SECCOMP_PARM4(ctx) = 0; -+ } -+#endif -+#if defined(__powerpc64__) -+ // Same as MIPS, need to invert ret and set error register (cr0.SO) -+ if (ret_val <= -1 && ret_val >= -4095) { -+ ret_val = -ret_val; -+ ctx->uc_mcontext.regs->ccr |= (1 << 28); -+ } else { -+ ctx->uc_mcontext.regs->ccr &= ~(1 << 28); -+ } - #endif - SECCOMP_RESULT(ctx) = static_cast(ret_val); - } diff --git a/0005-sandbox-linux-update-unit-test-for-ppc64.patch b/0005-sandbox-linux-update-unit-test-for-ppc64.patch deleted file mode 100644 index 539a23a..0000000 --- a/0005-sandbox-linux-update-unit-test-for-ppc64.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 6a852c4135864ba87b3cbdd0880d7cfecf7cd654 Mon Sep 17 00:00:00 2001 -From: Shawn Anastasio -Date: Thu, 13 Sep 2018 15:12:22 -0500 -Subject: [PATCH 5/6] sandbox/linux: update unit test for ppc64 - ---- - sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) - - #if !defined(__aarch64__) - TEST_BASELINE_SIGSYS(__NR_inotify_init) -+#if !defined(__powerpc64__) - TEST_BASELINE_SIGSYS(__NR_vserver) - #endif -+#endif - - #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS_ASH) - BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { diff --git a/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch b/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch deleted file mode 100644 index 6b8423c..0000000 --- a/0006-sandbox-linux-disable-timedwait-time64-ppc64.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-128.0.6613.113/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -@@ -374,7 +374,9 @@ bool SyscallSets::IsAllowedSignalHandlin - #if defined(__i386__) || defined(__arm__) || \ - (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ - defined(__powerpc64__) -+#if !defined(__powerpc64__) - case __NR_rt_sigtimedwait_time64: -+#endif - case __NR_sigaction: - case __NR_sigprocmask: - case __NR_sigreturn: diff --git a/0007-sandbox-linux-add-ppc64-stat.patch b/0007-sandbox-linux-add-ppc64-stat.patch deleted file mode 100644 index dcf4ce1..0000000 --- a/0007-sandbox-linux-add-ppc64-stat.patch +++ /dev/null @@ -1,33 +0,0 @@ -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/linux_stat.h -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/linux_stat.h -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/linux_stat.h -@@ -173,6 +173,28 @@ struct kernel_stat { - unsigned int __unused4; - unsigned int __unused5; - }; -+#elif defined(__powerpc64__) -+struct kernel_stat { -+ unsigned long st_dev; -+ ino_t st_ino; -+ unsigned long st_nlink; -+ mode_t st_mode; -+ uid_t st_uid; -+ gid_t st_gid; -+ unsigned long st_rdev; -+ long st_size; -+ unsigned long st_blksize; -+ unsigned long st_blocks; -+ // unsigned long st_atime; -+ unsigned long st_atime_nsec; -+ //unsigned long st_mtime; -+ unsigned long st_mtime_nsec; -+ //unsigned long st_ctime; -+ unsigned long st_ctime_nsec; -+ unsigned long __unused4; -+ unsigned long __unused5; -+ unsigned long __unused6; -+}; - #endif - - #if !defined(AT_EMPTY_PATH) diff --git a/0008-sandbox-fix-ppc64le-glibc234.patch b/0008-sandbox-fix-ppc64le-glibc234.patch deleted file mode 100644 index dbb32ab..0000000 --- a/0008-sandbox-fix-ppc64le-glibc234.patch +++ /dev/null @@ -1,74 +0,0 @@ -Index: chromium-137.0.7151.40/sandbox/policy/linux/bpf_utility_policy_linux.cc -=================================================================== ---- chromium-137.0.7151.40.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-137.0.7151.40/sandbox/policy/linux/bpf_utility_policy_linux.cc -@@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat - case __NR_fdatasync: - case __NR_fsync: - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_getrlimit: - #endif - #if defined(__i386__) || defined(__arm__) -Index: chromium-137.0.7151.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc -=================================================================== ---- chromium-137.0.7151.40.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-137.0.7151.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc -@@ -90,7 +90,7 @@ ResultExpr RendererProcessPolicy::Evalua - case __NR_ftruncate64: - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_getrlimit: - case __NR_setrlimit: - // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-137.0.7151.40/sandbox/linux/services/credentials.cc -=================================================================== ---- chromium-137.0.7151.40.orig/sandbox/linux/services/credentials.cc -+++ chromium-137.0.7151.40/sandbox/linux/services/credentials.cc -@@ -99,7 +99,8 @@ bool ChrootToSafeEmptyDir() { - - int clone_flags = CLONE_FS | LINUX_SIGCHLD; - void* tls = nullptr; --#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY)) && \ -+#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY) || \ -+ defined(ARCH_CPU_PPC64_FAMILY)) && \ - !defined(MEMORY_SANITIZER) - // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. - // Since clone writes to the new child's TLS before returning, we must set a -@@ -107,6 +108,11 @@ bool ChrootToSafeEmptyDir() { - // glibc performs syscalls by calling a function pointer in TLS, so we do not - // attempt this optimization. - // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. -+ // -+ // NOTE: Without CLONE_VM, fontconfig will attempt to reload configuration -+ // in every thread. Since the rendered threads are sandboxed without -+ // filesystem access (e.g. to /etc/fonts/fonts.conf) this will cause font -+ // configuration loading failures and no fonts will be displayed! - clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; - - char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; -Index: chromium-137.0.7151.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -=================================================================== ---- chromium-137.0.7151.40.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-137.0.7151.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -@@ -362,7 +362,16 @@ intptr_t SIGSYSFstatatHandler(const stru - if (args.nr == __NR_fstatat_default) { - if (*reinterpret_cast(args.args[1]) == '\0' && - args.args[3] == static_cast(AT_EMPTY_PATH)) { -- return syscall(__NR_fstat_default, static_cast(args.args[0]), -+ int fd = static_cast(args.args[0]); -+#if defined(__powerpc64__) -+ // On ppc64+glibc, some syscalls seem to accidentally negate the first -+ // parameter which causes checks against it to fail. For now, manually -+ // negate them back. -+ // TODO: Investigate the root cause and fix in glibc -+ if (fd < 0) -+ fd = -fd; -+#endif -+ return syscall(__NR_fstat_default, fd, - reinterpret_cast(args.args[2])); - } - return -reinterpret_cast(fs_denied_errno); diff --git a/0009-sandbox-updates-138.patch b/0009-sandbox-updates-138.patch deleted file mode 100644 index dba5d48..0000000 --- a/0009-sandbox-updates-138.patch +++ /dev/null @@ -1,105 +0,0 @@ -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -538,13 +538,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr - size_t argIndex; - switch (sysno) { - #if defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_send: - argIndex = 3; - break; - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -- defined(__mips__) || defined(__aarch64__) -+ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_sendto: // Could specify destination. - argIndex = 3; - break; -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -@@ -671,11 +671,12 @@ bool SyscallSets::IsAllowedGeneralIo(int - bool SyscallSets::IsSockSendOneMsg(int sysno) { - switch (sysno) { - #if defined(__arm__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -+ defined(__powerpc64__) - case __NR_send: - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -- defined(__mips__) || defined(__aarch64__) -+ defined(__mips__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_sendmsg: // Could specify destination. - case __NR_sendto: // Could specify destination. - #endif -@@ -938,12 +939,15 @@ bool SyscallSets::IsKeyManagement(int sy - } - - #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(__powerpc64__) - bool SyscallSets::IsSystemVSemaphores(int sysno) { - switch (sysno) { - case __NR_semctl: - case __NR_semget: -+#if !defined(__powerpc64__) - case __NR_semop: -+#endif - case __NR_semtimedop: - #if defined(__i386__) || defined(__arm__) || \ - (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) -@@ -975,7 +979,8 @@ bool SyscallSets::IsSystemVSharedMemory( - #endif - - #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(__powerpc64__) - bool SyscallSets::IsSystemVMessageQueue(int sysno) { - switch (sysno) { - case __NR_msgctl: -@@ -1011,9 +1016,11 @@ bool SyscallSets::IsAnySystemV(int sysno - return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || - IsSystemVSharedMemory(sysno); - #elif defined(__i386__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) || \ -- defined(__powerpc64__) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) - return IsSystemVIpc(sysno); -+#elif defined(__powerpc64__) -+ return IsSystemVMessageQueue(sysno) || IsSystemVSemaphores(sysno) || -+ IsSystemVSharedMemory(sysno) || IsSystemVIpc(sysno); - #endif - } - -Index: chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -=================================================================== ---- chromium-139.0.7258.66.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-139.0.7258.66/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -@@ -81,7 +81,8 @@ class SANDBOX_EXPORT SyscallSets { - static bool IsAsyncIo(int sysno); - static bool IsKeyManagement(int sysno); - #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(__powerpc64__) - static bool IsSystemVSemaphores(int sysno); - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -@@ -93,7 +94,8 @@ class SANDBOX_EXPORT SyscallSets { - #endif - - #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || \ -- (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) -+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)) || \ -+ defined(__powerpc64__) - static bool IsSystemVMessageQueue(int sysno); - #endif - diff --git a/HACK-debian-clang-disable-base-musttail.patch b/HACK-debian-clang-disable-base-musttail.patch index fbc9116..73026f5 100644 --- a/HACK-debian-clang-disable-base-musttail.patch +++ b/HACK-debian-clang-disable-base-musttail.patch @@ -1,7 +1,8 @@ -diff -up chromium-131.0.6778.69/base/compiler_specific.h.me chromium-131.0.6778.69/base/compiler_specific.h ---- chromium-131.0.6778.69/base/compiler_specific.h.me 2024-11-19 20:44:12.404060581 +0100 -+++ chromium-131.0.6778.69/base/compiler_specific.h 2024-11-19 20:44:54.434121935 +0100 -@@ -152,7 +152,7 @@ +Index: chromium-140.0.7339.41/base/compiler_specific.h +=================================================================== +--- chromium-140.0.7339.41.orig/base/compiler_specific.h ++++ chromium-140.0.7339.41/base/compiler_specific.h +@@ -198,7 +198,7 @@ // MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. // } // ``` @@ -10,15 +11,3 @@ diff -up chromium-131.0.6778.69/base/compiler_specific.h.me chromium-131.0.6778. #define MUSTTAIL [[clang::musttail]] #else #define MUSTTAIL -diff -up chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h ---- chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h.me 2024-11-20 18:50:28.690761262 +0100 -+++ chromium-131.0.6778.85/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h 2024-11-20 18:54:49.374711202 +0100 -@@ -138,7 +138,7 @@ - // PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. - // } - // ``` --#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) -+#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) && !defined(__powerpc64__) - #define PA_MUSTTAIL [[clang::musttail]] - #else - #define PA_MUSTTAIL diff --git a/HACK-debian-clang-disable-pa-musttail.patch b/HACK-debian-clang-disable-pa-musttail.patch new file mode 100644 index 0000000..22a4618 --- /dev/null +++ b/HACK-debian-clang-disable-pa-musttail.patch @@ -0,0 +1,13 @@ +Index: chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +=================================================================== +--- chromium-140.0.7339.41.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h ++++ chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +@@ -144,7 +144,7 @@ + // PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. + // } + // ``` +-#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) ++#if PA_HAS_CPP_ATTRIBUTE(clang::musttail) && !defined(__powerpc64__) + #define PA_MUSTTAIL [[clang::musttail]] + #else + #define PA_MUSTTAIL diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index fb544b4..e735cf0 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,8 +1,8 @@ -Index: chromium-136.0.7103.48/third_party/libvpx/generate_gni.sh +Index: chromium-140.0.7339.41/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/generate_gni.sh -+++ chromium-136.0.7103.48/third_party/libvpx/generate_gni.sh -@@ -433,7 +433,7 @@ gen_config_files linux/mipsel "--target= +--- chromium-140.0.7339.41.orig/third_party/libvpx/generate_gni.sh ++++ chromium-140.0.7339.41/third_party/libvpx/generate_gni.sh +@@ -429,7 +429,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ "--target=loongarch64-linux-gcc ${all_platforms}" @@ -11,10 +11,10 @@ Index: chromium-136.0.7103.48/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-136.0.7103.48/third_party/libvpx/source/libvpx/build/make/rtcd.pl +--- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/build/make/rtcd.pl @@ -527,8 +527,9 @@ if ($opts{arch} eq 'x86') { } arm; @@ -27,11 +27,11 @@ Index: chromium-136.0.7103.48/third_party/libvpx/source/libvpx/build/make/rtcd.p } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-136.0.7103.48/third_party/libvpx/BUILD.gn +Index: chromium-140.0.7339.41/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-136.0.7103.48.orig/third_party/libvpx/BUILD.gn -+++ chromium-136.0.7103.48/third_party/libvpx/BUILD.gn -@@ -102,6 +102,14 @@ config("libvpx_config") { +--- chromium-140.0.7339.41.orig/third_party/libvpx/BUILD.gn ++++ chromium-140.0.7339.41/third_party/libvpx/BUILD.gn +@@ -98,6 +98,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] } diff --git a/Rtc_base-system-arch.h-PPC.patch b/Rtc_base-system-arch.h-PPC.patch index bd6cfe4..c2cf7cc 100644 --- a/Rtc_base-system-arch.h-PPC.patch +++ b/Rtc_base-system-arch.h-PPC.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/third_party/webrtc/rtc_base/system/arch.h +Index: chromium-140.0.7339.41/third_party/webrtc/rtc_base/system/arch.h =================================================================== ---- chromium-128.0.6613.113.orig/third_party/webrtc/rtc_base/system/arch.h -+++ chromium-128.0.6613.113/third_party/webrtc/rtc_base/system/arch.h +--- chromium-140.0.7339.41.orig/third_party/webrtc/rtc_base/system/arch.h ++++ chromium-140.0.7339.41/third_party/webrtc/rtc_base/system/arch.h @@ -46,6 +46,18 @@ #endif #if defined(__MIPSEL__) diff --git a/Sandbox-linux-services-credentials.cc-PPC.patch b/Sandbox-linux-services-credentials.cc-PPC.patch deleted file mode 100644 index 7535d69..0000000 --- a/Sandbox-linux-services-credentials.cc-PPC.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/sandbox/linux/services/credentials.cc -+++ b/sandbox/linux/services/credentials.cc -@@ -91,7 +91,7 @@ bool ChrootToSafeEmptyDir() { - alignas(16) char stack_buf[PTHREAD_STACK_MIN]; - - #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ -- defined(ARCH_CPU_MIPS_FAMILY) -+ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) - // The stack grows downward. - void* stack = stack_buf + sizeof(stack_buf); - #else diff --git a/add-ppc64-architecture-string.patch b/add-ppc64-architecture-string.patch index 72ea164..32942bc 100644 --- a/add-ppc64-architecture-string.patch +++ b/add-ppc64-architecture-string.patch @@ -1,6 +1,8 @@ ---- a/base/system/sys_info.cc -+++ b/base/system/sys_info.cc -@@ -255,6 +255,8 @@ +Index: chromium-140.0.7339.41/base/system/sys_info.cc +=================================================================== +--- chromium-140.0.7339.41.orig/base/system/sys_info.cc ++++ chromium-140.0.7339.41/base/system/sys_info.cc +@@ -254,6 +254,8 @@ std::string SysInfo::ProcessCPUArchitect return "ARM"; #elif defined(ARCH_CPU_ARM64) return "ARM_64"; diff --git a/add-ppc64-architecture-to-extensions.diff b/add-ppc64-architecture-to-extensions.diff index 46b66f2..7c9e3f1 100644 --- a/add-ppc64-architecture-to-extensions.diff +++ b/add-ppc64-architecture-to-extensions.diff @@ -1,40 +1,31 @@ -Index: chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +Index: chromium-140.0.7339.41/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc =================================================================== ---- chromium-128.0.6613.113.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -+++ chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -@@ -303,6 +303,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo - info->arch = extensions::api::runtime::PlatformArch::kMips; - } else if (strcmp(arch, "mips64el") == 0) { +--- chromium-140.0.7339.41.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ++++ chromium-140.0.7339.41/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +@@ -378,6 +378,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo info->arch = extensions::api::runtime::PlatformArch::kMips64; + } else if (strcmp(arch, "riscv64") == 0) { + info->arch = extensions::api::runtime::PlatformArch::kRiscv64; + } else if (strcmp(arch, "ppc64") == 0) { + info->arch = extensions::api::runtime::PlatformArch::kPpc64; } else { - NOTREACHED_IN_MIGRATION(); - return false; -@@ -319,6 +321,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo - info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips; - } else if (strcmp(nacl_arch, "mips64") == 0) { - info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips64; -+ } else if (strcmp(nacl_arch, "ppc64") == 0) { -+ info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kPpc64; - } else { - NOTREACHED_IN_MIGRATION(); - return false; -Index: chromium-128.0.6613.113/extensions/common/api/runtime.json + NOTREACHED(); + } +Index: chromium-140.0.7339.41/extensions/common/api/runtime.json =================================================================== ---- chromium-128.0.6613.113.orig/extensions/common/api/runtime.json -+++ chromium-128.0.6613.113/extensions/common/api/runtime.json -@@ -98,7 +98,8 @@ - {"name": "x86-32", "description": "Specifies the processer architecture as x86-32."}, +--- chromium-140.0.7339.41.orig/extensions/common/api/runtime.json ++++ chromium-140.0.7339.41/extensions/common/api/runtime.json +@@ -99,7 +99,8 @@ {"name": "x86-64", "description": "Specifies the processer architecture as x86-64."}, {"name": "mips", "description": "Specifies the processer architecture as mips."}, -- {"name": "mips64", "description": "Specifies the processer architecture as mips64."} -+ {"name": "mips64", "description": "Specifies the processer architecture as mips64."}, + {"name": "mips64", "description": "Specifies the processer architecture as mips64."}, +- {"name": "riscv64", "description": "Specifies the processer architecture as riscv64."} ++ {"name": "riscv64", "description": "Specifies the processer architecture as riscv64."}, + {"name": "ppc64", "description": "Specifies the processer architecture as ppc64."} ], "description": "The machine's processor architecture." }, -@@ -111,7 +112,8 @@ +@@ -112,7 +113,8 @@ {"name": "x86-32", "description": "Specifies the native client architecture as x86-32."}, {"name": "x86-64", "description": "Specifies the native client architecture as x86-64."}, {"name": "mips", "description": "Specifies the native client architecture as mips."}, diff --git a/add-ppc64-pthread-stack-size.patch b/add-ppc64-pthread-stack-size.patch index 7252ca2..b70c238 100644 --- a/add-ppc64-pthread-stack-size.patch +++ b/add-ppc64-pthread-stack-size.patch @@ -1,7 +1,9 @@ ---- a/base/process/launch.h -+++ b/base/process/launch.h -@@ -54,6 +54,9 @@ - #if defined(ARCH_CPU_ARM64) +Index: chromium-140.0.7339.41/base/process/launch.h +=================================================================== +--- chromium-140.0.7339.41.orig/base/process/launch.h ++++ chromium-140.0.7339.41/base/process/launch.h +@@ -58,6 +58,9 @@ enum TerminationStatus : int; + #if defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_LOONGARCH64) #define PTHREAD_STACK_MIN_CONST \ (__builtin_constant_p(PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : 131072) +#elif defined(ARCH_CPU_PPC64) diff --git a/chromium.spec b/chromium.spec index 44aea20..d59108a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 139.0.7258.154 +Version: 140.0.7339.80 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -357,27 +357,11 @@ Patch358: chromium-135-rust-clanglib.patch # Timothy Pearson's patchset # https://gitlab.raptorengineering.com/raptor-engineering-public/chromium/openpower-patches Patch359: add-ppc64-architecture-string.patch -Patch360: 0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch Patch361: 0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch -Patch362: 0001-services-service_manager-sandbox-linux-Fix-TCGETS-de.patch -Patch363: 0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6.patch -Patch364: 0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch -Patch365: 0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch -Patch366: 0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch -Patch367: 0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s.patch -Patch368: 0003-sandbox-linux-system_headers-Update-linux-seccomp-he.patch -Patch369: 0004-sandbox-linux-system_headers-Update-linux-signal-hea.patch -Patch370: 0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub.patch -Patch371: 0005-sandbox-linux-update-unit-test-for-ppc64.patch -Patch372: 0006-sandbox-linux-disable-timedwait-time64-ppc64.patch -Patch373: 0007-sandbox-linux-add-ppc64-stat.patch -Patch374: Sandbox-linux-services-credentials.cc-PPC.patch -Patch375: 0008-sandbox-fix-ppc64le-glibc234.patch Patch376: 0001-third_party-angle-Include-missing-header-cstddef-in-.patch Patch377: 0001-Add-PPC64-support-for-boringssl.patch Patch378: 0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch -Patch379: 0009-sandbox-updates-138.patch Patch380: 0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch Patch381: 0002-Add-PPC64-generated-files-for-boringssl.patch Patch382: 0002-third_party-lss-kernel-structs.patch @@ -393,32 +377,31 @@ Patch386: 0004-third_party-crashpad-port-curl-transport-ppc64.patch Patch387: HACK-third_party-libvpx-use-generic-gnu.patch Patch388: 0001-third-party-hwy-wrong-include.patch Patch389: HACK-debian-clang-disable-base-musttail.patch +Patch390: HACK-debian-clang-disable-pa-musttail.patch +Patch391: 0001-Add-ppc64-target-to-libaom.patch +Patch392: 0001-Add-pregenerated-config-for-libaom-on-ppc64.patch -Patch390: 0001-Add-ppc64-target-to-libaom.patch -Patch391: 0001-Add-pregenerated-config-for-libaom-on-ppc64.patch - -Patch392: 0002-third_party-libvpx-Remove-bad-ppc64-config.patch -Patch393: 0003-third_party-libvpx-Add-ppc64-generated-config.patch +Patch393: 0002-third_party-libvpx-Remove-bad-ppc64-config.patch +Patch394: 0003-third_party-libvpx-Add-ppc64-generated-config.patch # Enabling VSX causes artifacts to appear in VP9 videos -Patch394: 0004-third_party-libvpx-work-around-ambiguous-vsx.patch +Patch395: 0004-third_party-libvpx-work-around-ambiguous-vsx.patch # Enable VSX acceleration in Skia. Requires POWER8 or higher. -Patch395: skia-vsx-instructions.patch +Patch396: skia-vsx-instructions.patch -Patch396: 0001-Implement-support-for-ppc64-on-Linux.patch -Patch397: 0001-Implement-support-for-PPC64-on-Linux.patch -Patch398: 0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch -Patch399: fix-clang-selection.patch -Patch400: fix-rustc.patch -Patch401: fix-rust-linking.patch -Patch402: fix-breakpad-compile.patch -Patch403: fix-partition-alloc-compile.patch -Patch404: fix-study-crash.patch -Patch405: memory-allocator-dcheck-assert-fix.patch -Patch406: fix-different-data-layouts.patch -Patch407: 0002-Add-ppc64-trap-instructions.patch +Patch397: 0001-Implement-support-for-ppc64-on-Linux.patch +Patch398: 0001-Implement-support-for-PPC64-on-Linux.patch +Patch399: 0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +Patch400: fix-clang-selection.patch +Patch401: fix-rustc.patch +Patch402: fix-rust-linking.patch +Patch403: fix-breakpad-compile.patch +Patch404: fix-partition-alloc-compile.patch +Patch405: fix-study-crash.patch +Patch406: memory-allocator-dcheck-assert-fix.patch +Patch407: fix-different-data-layouts.patch +Patch408: 0002-Add-ppc64-trap-instructions.patch -Patch408: fix-ppc64-linux-syscalls-headers.patch Patch409: fix-page-allocator-overflow.patch Patch410: 0001-Enable-ppc64-pointer-compression.patch @@ -1043,26 +1026,10 @@ Qt6 UI for chromium. %ifarch ppc64le %patch -P359 -p1 -b .add-ppc64-architecture-string -%patch -P360 -p1 -b .0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h %patch -P361 -p1 -b .0001-sandbox-Enable-seccomp_bpf-for-ppc64 -%patch -P362 -p1 -b .0001-services-service_manager-sandbox-linux-Fix-TCGETS-de -%patch -P363 -p1 -b .0001-sandbox-linux-bpf_dsl-Update-syscall-ranges-for-ppc6 -%patch -P364 -p1 -b .0001-sandbox-linux-Implement-partial-support-for-ppc64-sy -%patch -P365 -p1 -b .0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc -%patch -P366 -p1 -b .0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64 -%patch -P367 -p1 -b .0002-sandbox-linux-bpf_dsl-Modify-seccomp_macros-to-add-s -%patch -P368 -p1 -b .0003-sandbox-linux-system_headers-Update-linux-seccomp-he -%patch -P369 -p1 -b .0004-sandbox-linux-system_headers-Update-linux-signal-hea -%patch -P370 -p1 -b .0005-sandbox-linux-seccomp-bpf-Add-ppc64-syscall-stub -%patch -P371 -p1 -b .0005-sandbox-linux-update-unit-test-for-ppc64 -%patch -P372 -p1 -b .0006-sandbox-linux-disable-timedwait-time64-ppc64 -%patch -P373 -p1 -b .0007-sandbox-linux-add-ppc64-stat -%patch -P374 -p1 -b .Sandbox-linux-services-credentials.cc-PPC -%patch -P375 -p1 -b .0008-sandbox-fix-ppc64le-glibc234 %patch -P376 -p1 -b .0001-third_party-angle-Include-missing-header-cstddef-in- %patch -P377 -p1 -b .0001-Add-PPC64-support-for-boringssl %patch -P378 -p1 -b .0001-third_party-libvpx-Properly-generate-gni-on-ppc64 -%patch -P379 -p1 -b .0009-sandbox-updates-138 %patch -P380 -p1 -b .0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI %patch -P381 -p1 -b .002-Add-PPC64-generated-files-for-boringssl %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs @@ -1073,26 +1040,26 @@ Qt6 UI for chromium. %patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu %patch -P388 -p1 -b .0001-third-party-hwy-wrong-include.patch %patch -P389 -p1 -b .HACK-debian-clang-disable-base-musttail -%patch -P390 -p1 -b .0001-Add-ppc64-target-to-libaom -%patch -P391 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 -%patch -P392 -p1 -b .0002-third_party-libvpx-Remove-bad-ppc64-config -%patch -P393 -p1 -b .0003-third_party-libvpx-Add-ppc64-generated-config -%patch -P394 -p1 -b .0004-third_party-libvpx-work-around-ambiguous-vsx -%patch -P395 -p1 -b .skia-vsx-instructions -%patch -P396 -p1 -b .0001-Implement-support-for-ppc64-on-Linux -%patch -P397 -p1 -b .0001-Implement-support-for-PPC64-on-Linux -%patch -P398 -p1 -b .0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when- -%patch -P399 -p1 -b .fix-clang-selection -%patch -P400 -p1 -b .fix-rustc -%patch -P401 -p1 -b .fix-rust-linking -%patch -P402 -p1 -b .fix-breakpad-compile -%patch -P403 -p1 -b .fix-partition-alloc-compile -%patch -P404 -p1 -b .fix-study-crash -%patch -P405 -p1 -b .memory-allocator-dcheck-assert-fix -%patch -P406 -p1 -b .fix-different-data-layouts -%patch -P407 -p1 -b .0002-Add-ppc64-trap-instructions -%patch -P408 -p1 -b .fix-ppc64-linux-syscalls-headers -%patch -P409 -p1 -b .use-sysconf-page-size-on-ppc64 +%patch -P390 -p1 -b .HACK-debian-clang-disable-pa-musttail +%patch -P391 -p1 -b .0001-Add-ppc64-target-to-libaom +%patch -P392 -p1 -b .0001-Add-pregenerated-config-for-libaom-on-ppc64 +%patch -P393 -p1 -b .0002-third_party-libvpx-Remove-bad-ppc64-config +%patch -P394 -p1 -b .0003-third_party-libvpx-Add-ppc64-generated-config +%patch -P395 -p1 -b .0004-third_party-libvpx-work-around-ambiguous-vsx +%patch -P396 -p1 -b .skia-vsx-instructions +%patch -P397 -p1 -b .0001-Implement-support-for-ppc64-on-Linux +%patch -P398 -p1 -b .0001-Implement-support-for-PPC64-on-Linux +%patch -P399 -p1 -b .0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when- +%patch -P400 -p1 -b .fix-clang-selection +%patch -P401 -p1 -b .fix-rustc +%patch -P402 -p1 -b .fix-rust-linking +%patch -P403 -p1 -b .fix-breakpad-compile +%patch -P404 -p1 -b .fix-partition-alloc-compile +%patch -P405 -p1 -b .fix-study-crash +%patch -P406 -p1 -b .memory-allocator-dcheck-assert-fix +%patch -P407 -p1 -b .fix-different-data-layouts +%patch -P408 -p1 -b .0002-Add-ppc64-trap-instructions +%patch -P409 -p1 -b .fix-page-allocator-overflow %patch -P410 -p1 -b .0001-Enable-ppc64-pointer-compression %patch -P411 -p1 -b .dawn-fix-ppc64le-detection %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions @@ -1126,12 +1093,6 @@ find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env py # Get rid of the prebuilt esbuild binary rm -rf third_party/devtools-frontend/src/third_party/esbuild -# Get rid of the pre-built eu-strip binary, it is x86_64 and of mysterious origin -rm -rf buildtools/third_party/eu-strip/bin/eu-strip - -# Replace it with a symlink to the Fedora copy -ln -s $(which eu-strip) buildtools/third_party/eu-strip/bin/eu-strip - # Remove bundle gn and replace it with a system gn or bootstrap gn as it is x86_64 and causes # FTBFS on other arch like aarch64/ppc64le %if %{bootstrap} @@ -1746,6 +1707,13 @@ fi %endif %changelog +* Wed Sep 03 2025 Than Ngo - 140.0.7339.80-1 +- Update to 140.0.7339.80 + * CVE-2025-9864: Use after free in V8 + * CVE-2025-9865: Inappropriate implementation in Toolbar + * CVE-2025-9866: Inappropriate implementation in Extensions + CVE-2025-9867: Inappropriate implementation in Downloads + * Thu Aug 28 2025 Than Ngo - 139.0.7258.154-1 - Update to 139.0.7258.154 * CVE-2025-9478: Use after free in ANGLE diff --git a/dawn-fix-ppc64le-detection.patch b/dawn-fix-ppc64le-detection.patch index 4379d4e..6f84774 100644 --- a/dawn-fix-ppc64le-detection.patch +++ b/dawn-fix-ppc64le-detection.patch @@ -1,6 +1,8 @@ ---- a/third_party/dawn/src/dawn/common/Platform.h -+++ b/third_party/dawn/src/dawn/common/Platform.h -@@ -159,10 +159,12 @@ +Index: chromium-140.0.7339.41/third_party/dawn/src/dawn/common/Platform.h +=================================================================== +--- chromium-140.0.7339.41.orig/third_party/dawn/src/dawn/common/Platform.h ++++ chromium-140.0.7339.41/third_party/dawn/src/dawn/common/Platform.h +@@ -163,10 +163,12 @@ #elif defined(__s390x__) #define DAWN_PLATFORM_IS_S390X 1 diff --git a/fix-breakpad-compile.patch b/fix-breakpad-compile.patch index 751b661..670194e 100644 --- a/fix-breakpad-compile.patch +++ b/fix-breakpad-compile.patch @@ -1,8 +1,8 @@ -Index: chromium-128.0.6613.113/third_party/breakpad/BUILD.gn +Index: chromium-140.0.7339.41/third_party/breakpad/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/third_party/breakpad/BUILD.gn -+++ chromium-128.0.6613.113/third_party/breakpad/BUILD.gn -@@ -782,7 +782,6 @@ if (is_linux || is_chromeos || is_androi +--- chromium-140.0.7339.41.orig/third_party/breakpad/BUILD.gn ++++ chromium-140.0.7339.41/third_party/breakpad/BUILD.gn +@@ -804,7 +804,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/minidump_file_writer.h", "breakpad/src/common/convert_UTF.cc", "breakpad/src/common/convert_UTF.h", @@ -10,7 +10,7 @@ Index: chromium-128.0.6613.113/third_party/breakpad/BUILD.gn "breakpad/src/common/linux/elf_core_dump.cc", "breakpad/src/common/linux/elf_core_dump.h", "breakpad/src/common/linux/elfutils.cc", -@@ -814,6 +813,8 @@ if (is_linux || is_chromeos || is_androi +@@ -836,6 +835,8 @@ if (is_linux || is_chromeos || is_androi configs += [ "//build/config/compiler:no_chromium_code" ] public_configs = [ ":client_config" ] @@ -19,7 +19,7 @@ Index: chromium-128.0.6613.113/third_party/breakpad/BUILD.gn if (current_cpu == "arm" && is_chromeos_ash) { # Avoid running out of registers in # linux_syscall_support.h:sys_clone()'s inline assembly. -@@ -871,7 +872,6 @@ if (is_linux || is_chromeos || is_androi +@@ -893,7 +894,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc", "breakpad/src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc", "breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc", diff --git a/fix-clang-selection.patch b/fix-clang-selection.patch index 8f4787d..ef15813 100644 --- a/fix-clang-selection.patch +++ b/fix-clang-selection.patch @@ -1,7 +1,7 @@ -Index: chromium-128.0.6613.113/build/config/BUILDCONFIG.gn +Index: chromium-140.0.7339.41/build/config/BUILDCONFIG.gn =================================================================== ---- chromium-128.0.6613.113.orig/build/config/BUILDCONFIG.gn -+++ chromium-128.0.6613.113/build/config/BUILDCONFIG.gn +--- chromium-140.0.7339.41.orig/build/config/BUILDCONFIG.gn ++++ chromium-140.0.7339.41/build/config/BUILDCONFIG.gn @@ -138,7 +138,6 @@ declare_args() { # Set to true when compiling with the Clang compiler. is_clang = current_os != "linux" || diff --git a/fix-different-data-layouts.patch b/fix-different-data-layouts.patch index 1913d60..c62678f 100644 --- a/fix-different-data-layouts.patch +++ b/fix-different-data-layouts.patch @@ -24,11 +24,11 @@ inconsistency in data layouts when targeting this particular platform. The error reported by the linker is not technically an error, however, only a warning goosed up by a --fatal-warnings flag. -Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn +Index: chromium-140.0.7339.41/build/config/compiler/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/build/config/compiler/BUILD.gn -+++ chromium-128.0.6613.113/build/config/compiler/BUILD.gn -@@ -380,7 +380,7 @@ config("compiler") { +--- chromium-140.0.7339.41.orig/build/config/compiler/BUILD.gn ++++ chromium-140.0.7339.41/build/config/compiler/BUILD.gn +@@ -455,7 +455,7 @@ config("compiler") { # Linker warnings. if (fatal_linker_warnings && !is_apple && current_os != "aix" && diff --git a/fix-page-allocator-overflow.patch b/fix-page-allocator-overflow.patch index 85edd60..7770b86 100644 --- a/fix-page-allocator-overflow.patch +++ b/fix-page-allocator-overflow.patch @@ -1,6 +1,8 @@ ---- a/base/allocator/dispatcher/tls.h -+++ b/base/allocator/dispatcher/tls.h -@@ -83,6 +83,8 @@ +Index: chromium-140.0.7339.41/base/allocator/dispatcher/tls.h +=================================================================== +--- chromium-140.0.7339.41.orig/base/allocator/dispatcher/tls.h ++++ chromium-140.0.7339.41/base/allocator/dispatcher/tls.h +@@ -88,6 +88,8 @@ struct BASE_EXPORT MMapAllocator { constexpr static size_t AllocationChunkSize = 16384; #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) constexpr static size_t AllocationChunkSize = 16384; @@ -9,9 +11,11 @@ #else constexpr static size_t AllocationChunkSize = 4096; #endif ---- a/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -@@ -392,7 +400,7 @@ +Index: chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +=================================================================== +--- chromium-140.0.7339.41.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h ++++ chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +@@ -397,7 +397,7 @@ PA_ALWAYS_INLINE constexpr size_t MaxDir // TODO(casey.smalley@arm.com): under 64k pages we can end up in a situation // where a normal slot span will be large enough to contain multiple items, // but the address will go over the final partition page after being aligned. diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index 5948587..0c27718 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,9 +1,9 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-139.0.7258.66/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-140.0.7339.41/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-139.0.7258.66.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-139.0.7258.66/base/allocator/partition_allocator/partition_alloc.gni +--- chromium-140.0.7339.41.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-140.0.7339.41/base/allocator/partition_allocator/partition_alloc.gni @@ -66,7 +66,7 @@ is_clang_or_gcc = is_clang || !is_win # Whether 64-bit pointers are used. # A static_assert in partition_alloc_config.h verifies that. diff --git a/fix-ppc64-linux-syscalls-headers.patch b/fix-ppc64-linux-syscalls-headers.patch deleted file mode 100644 index 7ac0efb..0000000 --- a/fix-ppc64-linux-syscalls-headers.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h -=================================================================== ---- chromium-128.0.6613.113.orig/sandbox/linux/system_headers/ppc64_linux_syscalls.h -+++ chromium-128.0.6613.113/sandbox/linux/system_headers/ppc64_linux_syscalls.h -@@ -8,5 +8,18 @@ - #include - - //TODO: is it necessary to redefine syscall numbers for PPC64? -+// Needed for Ubuntu/Debian/Centos/RHEL: -+#if !defined(__NR_shmget) -+#define __NR_shmget 395 -+#endif -+#if !defined(__NR_shmdt) -+#define __NR_shmdt 398 -+#endif -+#if !defined(__NR_shmctl) -+#define __NR_shmctl 396 -+#endif -+#if !defined(__NR_shmat) -+#define __NR_shmat 397 -+#endif - - #endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ diff --git a/fix-rust-linking.patch b/fix-rust-linking.patch index ac4d90d..5f06471 100644 --- a/fix-rust-linking.patch +++ b/fix-rust-linking.patch @@ -1,8 +1,8 @@ -Index: chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni +Index: chromium-140.0.7339.41/build/toolchain/gcc_toolchain.gni =================================================================== ---- chromium-128.0.6613.113.orig/build/toolchain/gcc_toolchain.gni -+++ chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni -@@ -441,7 +441,13 @@ template("single_gcc_toolchain") { +--- chromium-140.0.7339.41.orig/build/toolchain/gcc_toolchain.gni ++++ chromium-140.0.7339.41/build/toolchain/gcc_toolchain.gni +@@ -430,7 +430,13 @@ template("single_gcc_toolchain") { # -soname flag is not available on aix ld soname_flag = "-Wl,-soname=\"$soname\"" } @@ -17,7 +17,7 @@ Index: chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni # Generate a map file to be used for binary size analysis. # Map file adds ~10% to the link time on a z620. -@@ -553,7 +559,13 @@ template("single_gcc_toolchain") { +@@ -542,7 +548,13 @@ template("single_gcc_toolchain") { whole_archive_flag = "-Wl,--whole-archive" no_whole_archive_flag = "-Wl,--no-whole-archive" } diff --git a/fix-rustc.patch b/fix-rustc.patch index 5129bed..f59f659 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,7 +1,10 @@ -diff -up chromium-131.0.6778.69/build/config/rust.gni.fix-rustc chromium-131.0.6778.69/build/config/rust.gni ---- chromium-131.0.6778.69/build/config/rust.gni.fix-rustc 2024-11-12 22:48:45.000000000 +0100 -+++ chromium-131.0.6778.69/build/config/rust.gni 2024-11-19 23:01:25.484436409 +0100 -@@ -200,6 +200,9 @@ if (is_linux || is_chromeos) { +author: Andres Salomon +description: allow ppc64le to build by using proper rustc target +Index: chromium-140.0.7339.41/build/config/rust.gni +=================================================================== +--- chromium-140.0.7339.41.orig/build/config/rust.gni ++++ chromium-140.0.7339.41/build/config/rust.gni +@@ -186,6 +186,9 @@ if (is_linux || is_chromeos) { if (current_cpu == "arm64") { rust_abi_target = "aarch64-unknown-linux-gnu" cargo_target_abi = "" diff --git a/fix-study-crash.patch b/fix-study-crash.patch index 2ba9d4b..e186c89 100644 --- a/fix-study-crash.patch +++ b/fix-study-crash.patch @@ -1,6 +1,8 @@ ---- a/components/variations/proto/study.proto -+++ b/components/variations/proto/study.proto -@@ -264,6 +264,9 @@ +Index: chromium-140.0.7339.41/components/variations/proto/study.proto +=================================================================== +--- chromium-140.0.7339.41.orig/components/variations/proto/study.proto ++++ chromium-140.0.7339.41/components/variations/proto/study.proto +@@ -262,6 +262,9 @@ message Study { // A Mac-only value, indicating an x86-64 binary running on an arm64 host // via "Rosetta 2" binary translation. TRANSLATED_X86_64 = 4; @@ -10,9 +12,11 @@ } // Enum to pass as optional bool. ---- a/components/variations/service/variations_field_trial_creator_base.cc -+++ b/components/variations/service/variations_field_trial_creator_base.cc -@@ -109,6 +109,9 @@ +Index: chromium-140.0.7339.41/components/variations/service/variations_field_trial_creator.cc +=================================================================== +--- chromium-140.0.7339.41.orig/components/variations/service/variations_field_trial_creator.cc ++++ chromium-140.0.7339.41/components/variations/service/variations_field_trial_creator.cc +@@ -105,6 +105,9 @@ Study::CpuArchitecture GetCurrentCpuArch if (process_arch == "x86") { return Study::X86_32; } diff --git a/fix-unknown-warning-option-messages.diff b/fix-unknown-warning-option-messages.diff index d4b0149..b8138a2 100644 --- a/fix-unknown-warning-option-messages.diff +++ b/fix-unknown-warning-option-messages.diff @@ -1,17 +1,8 @@ -Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn +Index: chromium-140.0.7339.41/build/config/compiler/BUILD.gn =================================================================== ---- chromium-128.0.6613.113.orig/build/config/compiler/BUILD.gn -+++ chromium-128.0.6613.113/build/config/compiler/BUILD.gn -@@ -1844,7 +1844,7 @@ config("default_warnings") { - - # -Wno-class-memaccess warns about hash table and vector in blink. - # But the violation is intentional. -- if (!is_nacl) { -+ if ((!is_nacl) && (current_cpu != "ppc64")) { - cflags_cc += [ "-Wno-class-memaccess" ] - } - -@@ -1854,7 +1854,9 @@ config("default_warnings") { +--- chromium-140.0.7339.41.orig/build/config/compiler/BUILD.gn ++++ chromium-140.0.7339.41/build/config/compiler/BUILD.gn +@@ -2086,7 +2086,9 @@ config("default_warnings") { # Don't warn about "maybe" uninitialized. Clang doesn't include this # in -Wall but gcc does, and it gives false positives. @@ -22,7 +13,7 @@ Index: chromium-128.0.6613.113/build/config/compiler/BUILD.gn cflags += [ "-Wno-deprecated-declarations" ] # -Wcomment gives too many false positives in the case a -@@ -1865,7 +1867,9 @@ config("default_warnings") { +@@ -2097,7 +2099,9 @@ config("default_warnings") { # -Wpacked-not-aligned complains all generated mojom-shared-internal.h # files. diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index 6061267..610bb88 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,8 +1,8 @@ -Index: chromium-139.0.7258.66/third_party/skia/BUILD.gn +Index: chromium-140.0.7339.41/third_party/skia/BUILD.gn =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/BUILD.gn -+++ chromium-139.0.7258.66/third_party/skia/BUILD.gn -@@ -193,6 +193,12 @@ opts("lasx") { +--- chromium-140.0.7339.41.orig/third_party/skia/BUILD.gn ++++ chromium-140.0.7339.41/third_party/skia/BUILD.gn +@@ -188,6 +188,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-139.0.7258.66/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1693,6 +1699,7 @@ skia_component("skia") { +@@ -1694,6 +1700,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,11 +23,11 @@ Index: chromium-139.0.7258.66/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -Index: chromium-139.0.7258.66/third_party/skia/gn/skia/BUILD.gn +Index: chromium-140.0.7339.41/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-139.0.7258.66/third_party/skia/gn/skia/BUILD.gn -@@ -175,6 +175,8 @@ config("default") { +--- chromium-140.0.7339.41.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-140.0.7339.41/third_party/skia/gn/skia/BUILD.gn +@@ -152,6 +152,8 @@ config("default") { "-mfpmath=sse", ] ldflags += [ "-m32" ] @@ -36,11 +36,11 @@ Index: chromium-139.0.7258.66/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-139.0.7258.66/third_party/skia/include/core/SkTypes.h +Index: chromium-140.0.7339.41/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-139.0.7258.66/third_party/skia/include/core/SkTypes.h -@@ -194,4 +194,43 @@ static constexpr uint32_t SK_InvalidGenI +--- chromium-140.0.7339.41.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-140.0.7339.41/third_party/skia/include/core/SkTypes.h +@@ -198,4 +198,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -84,10 +84,10 @@ Index: chromium-139.0.7258.66/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-139.0.7258.66/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -98,10 +98,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-139.0.7258.66/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-140.0.7339.41/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -117,10 +117,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-139.0.7258.66/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-140.0.7339.41/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -130,10 +130,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-139.0.7258.66/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -519,10 +519,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-139.0.7258.66/third_party/skia/src/base/SkVx.h +Index: chromium-140.0.7339.41/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/base/SkVx.h -+++ chromium-139.0.7258.66/third_party/skia/src/base/SkVx.h +--- chromium-140.0.7339.41.orig/third_party/skia/src/base/SkVx.h ++++ chromium-140.0.7339.41/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -537,10 +537,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -550,10 +550,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -563,10 +563,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -576,10 +576,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -589,10 +589,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkCpu.h +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkCpu.h +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -602,10 +602,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -615,10 +615,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-139.0.7258.66/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-140.0.7339.41/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-139.0.7258.66/third_party/skia/include/private/base/SkFeatures.h +--- chromium-140.0.7339.41.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-140.0.7339.41/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -628,10 +628,10 @@ Index: chromium-139.0.7258.66/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-139.0.7258.66/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-140.0.7339.41/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -678,10 +678,10 @@ Index: chromium-139.0.7258.66/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-139.0.7258.66/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-139.0.7258.66.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-139.0.7258.66/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-140.0.7339.41/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -129,6 +129,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index 222d315..a564862 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-139.0.7258.154-clean.tar.xz) = 9702b449fce69c1fbb149f545649f4c7c7c0fe80b71a4bba07f9063372f81ad19b7cdb0561ccaea097465f7212bf77277ce79598f28580d96a2f8df570099b52 +SHA512 (chromium-140.0.7339.80-clean.tar.xz) = 4828808fe80cf60ae1ed2c851309a79f74610360713818c1623571ba195e31680fb3e0104db713ba8e311b6157ad55dac270d197e904f450057d13f2611f05b7 From 348af3c1a3a2dfcccc5464fe48acea38a7dd5dd7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 3 Sep 2025 16:17:01 +0200 Subject: [PATCH 183/244] rebase clang++-unknown-argument patch --- chromium-138-clang++-unknown-argument.patch | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/chromium-138-clang++-unknown-argument.patch b/chromium-138-clang++-unknown-argument.patch index 00209fd..afd09cf 100644 --- a/chromium-138-clang++-unknown-argument.patch +++ b/chromium-138-clang++-unknown-argument.patch @@ -1,13 +1,13 @@ -diff -up chromium-137.0.7151.55/build/config/compiler/BUILD.gn.me chromium-137.0.7151.55/build/config/compiler/BUILD.gn ---- chromium-137.0.7151.55/build/config/compiler/BUILD.gn.me 2025-05-28 11:19:37.795916619 +0200 -+++ chromium-137.0.7151.55/build/config/compiler/BUILD.gn 2025-05-28 11:22:56.845410531 +0200 -@@ -2053,9 +2046,6 @@ config("default_warnings") { +diff -up chromium-140.0.7339.80/build/config/compiler/BUILD.gn.me chromium-140.0.7339.80/build/config/compiler/BUILD.gn +--- chromium-140.0.7339.80/build/config/compiler/BUILD.gn.me 2025-09-03 15:51:28.599633500 +0200 ++++ chromium-140.0.7339.80/build/config/compiler/BUILD.gn 2025-09-03 15:52:46.285444744 +0200 +@@ -2134,9 +2134,6 @@ config("default_warnings") { - # TODO(crbug.com/40284799): Fix and re-enable. - "-Wno-thread-safety-reference-return", + # TODO(crbug.com/40284799): Fix and re-enable. + "-Wno-thread-safety-reference-return", - -- # TODO(crbug.com/376641662): Fix and re-enable. -- "-Wno-nontrivial-memcall", - ] +- # TODO(crbug.com/376641662): Fix and re-enable. +- "-Wno-nontrivial-memcall", + ] - cflags_cc += [ + cflags_cc += [ From bd191847cd590a8819ca6a773cc79d82adf668c7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Sep 2025 06:08:16 +0200 Subject: [PATCH 184/244] Fix file list --- chromium.spec | 111 +++++++++++++++++++++++++------------------------- 1 file changed, 55 insertions(+), 56 deletions(-) diff --git a/chromium.spec b/chromium.spec index d59108a..e42255f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1031,7 +1031,7 @@ Qt6 UI for chromium. %patch -P377 -p1 -b .0001-Add-PPC64-support-for-boringssl %patch -P378 -p1 -b .0001-third_party-libvpx-Properly-generate-gni-on-ppc64 %patch -P380 -p1 -b .0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI -%patch -P381 -p1 -b .002-Add-PPC64-generated-files-for-boringssl +%patch -P381 -p1 -b .0002-Add-PPC64-generated-files-for-boringssl %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs %patch -P383 -p1 -b .0001-swiftshader-fix-build %patch -P384 -p1 -b .Rtc_base-system-arch.h-PPC @@ -1627,64 +1627,63 @@ fi %endif %dir %{chromium_path}/ %dir %{chromium_path}/locales/ -%lang(af) %{chromium_path}/locales/af.pak -%lang(am) %{chromium_path}/locales/am.pak -%lang(ar) %{chromium_path}/locales/ar.pak -%lang(bg) %{chromium_path}/locales/bg.pak -%lang(bn) %{chromium_path}/locales/bn.pak -%lang(ca) %{chromium_path}/locales/ca.pak -%lang(cs) %{chromium_path}/locales/cs.pak -%lang(da) %{chromium_path}/locales/da.pak -%lang(de) %{chromium_path}/locales/de.pak -%lang(el) %{chromium_path}/locales/el.pak -%lang(en_GB) %{chromium_path}/locales/en-GB.pak +%lang(af) %{chromium_path}/locales/af*.pak +%lang(am) %{chromium_path}/locales/am*.pak +%lang(ar) %{chromium_path}/locales/ar*.pak +%lang(bg) %{chromium_path}/locales/bg*.pak +%lang(bn) %{chromium_path}/locales/bn*.pak +%lang(ca) %{chromium_path}/locales/ca*.pak +%lang(cs) %{chromium_path}/locales/cs*.pak +%lang(da) %{chromium_path}/locales/da*.pak +%lang(de) %{chromium_path}/locales/de*.pak +%lang(el) %{chromium_path}/locales/el*.pak +%lang(en_GB) %{chromium_path}/locales/en-GB*.pak # Chromium _ALWAYS_ needs en-US.pak as a fallback # This means we cannot apply the lang code here. # Otherwise, it is filtered out on install. -%{chromium_path}/locales/en-US.pak -%lang(es) %{chromium_path}/locales/es.pak -%lang(es) %{chromium_path}/locales/es-419.pak -%lang(et) %{chromium_path}/locales/et.pak -%lang(fa) %{chromium_path}/locales/fa.pak -%lang(fi) %{chromium_path}/locales/fi.pak -%lang(fil) %{chromium_path}/locales/fil.pak -%lang(fr) %{chromium_path}/locales/fr.pak -%lang(gu) %{chromium_path}/locales/gu.pak -%lang(he) %{chromium_path}/locales/he.pak -%lang(hi) %{chromium_path}/locales/hi.pak -%lang(hr) %{chromium_path}/locales/hr.pak -%lang(hu) %{chromium_path}/locales/hu.pak -%lang(id) %{chromium_path}/locales/id.pak -%lang(it) %{chromium_path}/locales/it.pak -%lang(ja) %{chromium_path}/locales/ja.pak -%lang(kn) %{chromium_path}/locales/kn.pak -%lang(ko) %{chromium_path}/locales/ko.pak -%lang(lt) %{chromium_path}/locales/lt.pak -%lang(lv) %{chromium_path}/locales/lv.pak -%lang(ml) %{chromium_path}/locales/ml.pak -%lang(mr) %{chromium_path}/locales/mr.pak -%lang(ms) %{chromium_path}/locales/ms.pak -%lang(nb) %{chromium_path}/locales/nb.pak -%lang(nl) %{chromium_path}/locales/nl.pak -%lang(pl) %{chromium_path}/locales/pl.pak -%lang(pt_BR) %{chromium_path}/locales/pt-BR.pak -%lang(pt_PT) %{chromium_path}/locales/pt-PT.pak -%lang(ro) %{chromium_path}/locales/ro.pak -%lang(ru) %{chromium_path}/locales/ru.pak -%lang(sk) %{chromium_path}/locales/sk.pak -%lang(sl) %{chromium_path}/locales/sl.pak -%lang(sr) %{chromium_path}/locales/sr.pak -%lang(sv) %{chromium_path}/locales/sv.pak -%lang(sw) %{chromium_path}/locales/sw.pak -%lang(ta) %{chromium_path}/locales/ta.pak -%lang(te) %{chromium_path}/locales/te.pak -%lang(th) %{chromium_path}/locales/th.pak -%lang(tr) %{chromium_path}/locales/tr.pak -%lang(uk) %{chromium_path}/locales/uk.pak -%lang(ur) %{chromium_path}/locales/ur.pak -%lang(vi) %{chromium_path}/locales/vi.pak -%lang(zh_CN) %{chromium_path}/locales/zh-CN.pak -%lang(zh_TW) %{chromium_path}/locales/zh-TW.pak +%{chromium_path}/locales/en-US*.pak +%lang(es) %{chromium_path}/locales/es*.pak +%lang(et) %{chromium_path}/locales/et*.pak +%lang(fa) %{chromium_path}/locales/fa*.pak +%lang(fi) %{chromium_path}/locales/fi{.pak,_*.pak} +%lang(fil) %{chromium_path}/locales/fil*.pak +%lang(fr) %{chromium_path}/locales/fr*.pak +%lang(gu) %{chromium_path}/locales/gu*.pak +%lang(he) %{chromium_path}/locales/he*.pak +%lang(hi) %{chromium_path}/locales/hi*.pak +%lang(hr) %{chromium_path}/locales/hr*.pak +%lang(hu) %{chromium_path}/locales/hu*.pak +%lang(id) %{chromium_path}/locales/id*.pak +%lang(it) %{chromium_path}/locales/it*.pak +%lang(ja) %{chromium_path}/locales/ja*.pak +%lang(kn) %{chromium_path}/locales/kn*.pak +%lang(ko) %{chromium_path}/locales/ko*.pak +%lang(lt) %{chromium_path}/locales/lt*.pak +%lang(lv) %{chromium_path}/locales/lv*.pak +%lang(ml) %{chromium_path}/locales/ml*.pak +%lang(mr) %{chromium_path}/locales/mr*.pak +%lang(ms) %{chromium_path}/locales/ms*.pak +%lang(nb) %{chromium_path}/locales/nb*.pak +%lang(nl) %{chromium_path}/locales/nl*.pak +%lang(pl) %{chromium_path}/locales/pl*.pak +%lang(pt_BR) %{chromium_path}/locales/pt-BR*.pak +%lang(pt_PT) %{chromium_path}/locales/pt-PT*.pak +%lang(ro) %{chromium_path}/locales/ro*.pak +%lang(ru) %{chromium_path}/locales/ru*.pak +%lang(sk) %{chromium_path}/locales/sk*.pak +%lang(sl) %{chromium_path}/locales/sl*.pak +%lang(sr) %{chromium_path}/locales/sr*.pak +%lang(sv) %{chromium_path}/locales/sv*.pak +%lang(sw) %{chromium_path}/locales/sw*.pak +%lang(ta) %{chromium_path}/locales/ta*.pak +%lang(te) %{chromium_path}/locales/te*.pak +%lang(th) %{chromium_path}/locales/th*.pak +%lang(tr) %{chromium_path}/locales/tr*.pak +%lang(uk) %{chromium_path}/locales/uk*.pak +%lang(ur) %{chromium_path}/locales/ur*.pak +%lang(vi) %{chromium_path}/locales/vi*.pak +%lang(zh_CN) %{chromium_path}/locales/zh-CN*.pak +%lang(zh_TW) %{chromium_path}/locales/zh-TW*.pak # These are psuedolocales, not real ones. # They only get generated when is_official_build=false %if ! %{official_build} From 894e38b3191f97953b3ab7cceebcb28f3ea2a951 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Sep 2025 07:04:06 +0200 Subject: [PATCH 185/244] - rebase swiftshader-fix-build to fix build error on ppc64le - drop Include-cstddef-to-fix-build fix-ppc64-rust_png-build-error --- 0001-swiftshader-fix-build.patch | 25 +++++++++++++++---------- 0002-Include-cstddef-to-fix-build.patch | 21 --------------------- chromium.spec | 5 ----- fix-ppc64-rust_png-build-error.patch | 11 ----------- 4 files changed, 15 insertions(+), 47 deletions(-) delete mode 100644 0002-Include-cstddef-to-fix-build.patch delete mode 100644 fix-ppc64-rust_png-build-error.patch diff --git a/0001-swiftshader-fix-build.patch b/0001-swiftshader-fix-build.patch index 4588a4d..646e27b 100644 --- a/0001-swiftshader-fix-build.patch +++ b/0001-swiftshader-fix-build.patch @@ -1,13 +1,18 @@ -Description: fix swiftshader build issue on ppc64el -Origin: vendor, https://gitlab.raptorengineering.com/raptor-engineering-public/chromium/openpower-patches/-/blob/chromium-131/patches/ppc64le/third_party/0001-swiftshader-fix-build.patch -Bug: https://buildd.debian.org/status/fetch.php?pkg=chromium&arch=ppc64el&ver=131.0.6778.204-1&stamp=1734633529&raw=0 -Last-Update: 2024-12-20 ---- -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ -Index: chromium-140.0.7339.41/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn -=================================================================== ---- chromium-140.0.7339.41.orig/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn -+++ chromium-140.0.7339.41/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn +diff -up chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn.me chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn +--- chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn.me 2025-09-04 06:47:12.233139911 +0200 ++++ chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn 2025-09-04 06:52:37.001661643 +0200 +@@ -1261,6 +1261,8 @@ swiftshader_llvm_source_set("swiftshader + "llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp", + "llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp", + "llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp", ++ "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp", ++ "llvm/lib/MC/MCAsmInfoXCOFF.cpp", + ] + } + +diff -up chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn.me chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn +--- chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn.me 2025-09-04 06:45:21.570780130 +0200 ++++ chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn 2025-09-04 06:55:56.278501043 +0200 @@ -1599,6 +1599,9 @@ swiftshader_llvm_source_set("swiftshader "llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp", "llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp", diff --git a/0002-Include-cstddef-to-fix-build.patch b/0002-Include-cstddef-to-fix-build.patch deleted file mode 100644 index bd06640..0000000 --- a/0002-Include-cstddef-to-fix-build.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 82922bf486e9926a171152f61030dfcd53f017b8 Mon Sep 17 00:00:00 2001 -From: Timothy Pearson -Date: Thu, 30 Aug 2018 17:32:05 -0500 -Subject: [PATCH] Include cstddef to fix build - -size_t is not defined unless cstddef is included. ---- - third_party/crashpad/crashpad/compat/linux/sys/user.h | 1 + - -Index: chromium-127.0.6533.72/third_party/crashpad/crashpad/compat/linux/sys/user.h -=================================================================== ---- chromium-127.0.6533.72.orig/third_party/crashpad/crashpad/compat/linux/sys/user.h -+++ chromium-127.0.6533.72/third_party/crashpad/crashpad/compat/linux/sys/user.h -@@ -15,6 +15,7 @@ - #ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_ - #define CRASHPAD_COMPAT_LINUX_SYS_USER_H_ - -+#include - #include_next - - #include diff --git a/chromium.spec b/chromium.spec index e42255f..42d9e2c 100644 --- a/chromium.spec +++ b/chromium.spec @@ -371,7 +371,6 @@ Patch383: 0001-swiftshader-fix-build.patch Patch384: Rtc_base-system-arch.h-PPC.patch -Patch385: 0002-Include-cstddef-to-fix-build.patch Patch386: 0004-third_party-crashpad-port-curl-transport-ppc64.patch Patch387: HACK-third_party-libvpx-use-generic-gnu.patch @@ -411,8 +410,6 @@ Patch412: add-ppc64-architecture-to-extensions.diff # Suppress harmless compiler warning messages that appear on ppc64 due to arch-specific warning flags being passed Patch413: fix-unknown-warning-option-messages.diff Patch415: add-ppc64-pthread-stack-size.patch -# Fix build error on el10 -Patch416: fix-ppc64-rust_png-build-error.patch Patch417: 0001-add-xnn-ppc64el-support.patch Patch418: 0002-regenerate-xnn-buildgn.patch @@ -1035,7 +1032,6 @@ Qt6 UI for chromium. %patch -P382 -p1 -b .0002-third_party-lss-kernel-structs %patch -P383 -p1 -b .0001-swiftshader-fix-build %patch -P384 -p1 -b .Rtc_base-system-arch.h-PPC -%patch -P385 -p1 -b .0002-Include-cstddef-to-fix-build %patch -P386 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 %patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu %patch -P388 -p1 -b .0001-third-party-hwy-wrong-include.patch @@ -1065,7 +1061,6 @@ Qt6 UI for chromium. %patch -P412 -p1 -b .add-ppc64-architecture-to-extensions %patch -P413 -p1 -b .fix-unknown-warning-option-messages %patch -P415 -p1 -b .add-ppc64-pthread-stack-size -%patch -P416 -p1 -b .ppc64-rust_png-build-error %patch -P417 -p1 -b .0001-add-xnn-ppc64el-support %patch -P418 -p1 -b .0002-regenerate-xnn-buildgn %endif diff --git a/fix-ppc64-rust_png-build-error.patch b/fix-ppc64-rust_png-build-error.patch deleted file mode 100644 index 5098f75..0000000 --- a/fix-ppc64-rust_png-build-error.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h.than chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h ---- chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h.than 2025-04-03 12:00:57.623069853 +0200 -+++ chromium-135.0.7049.52/third_party/skia/experimental/rust_png/ffi/FFI.h 2025-04-03 12:02:42.234420632 +0200 -@@ -10,6 +10,7 @@ - - #include - #include -+#include - - // TODO(https://crbug.com/356698922): Use a real `#include` if possible. - namespace rust { From 1d84b0f57e2d73ecf487476346977c12e9fdeca0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Sep 2025 12:15:28 +0200 Subject: [PATCH 186/244] Drop ffmpeg-5.x-reordered_opaque patch as it's merged in upstream --- ...mium-125-ffmpeg-5.x-reordered_opaque.patch | 105 ------------------ chromium.spec | 2 - 2 files changed, 107 deletions(-) delete mode 100644 chromium-125-ffmpeg-5.x-reordered_opaque.patch diff --git a/chromium-125-ffmpeg-5.x-reordered_opaque.patch b/chromium-125-ffmpeg-5.x-reordered_opaque.patch deleted file mode 100644 index 9aff864..0000000 --- a/chromium-125-ffmpeg-5.x-reordered_opaque.patch +++ /dev/null @@ -1,105 +0,0 @@ -commit 62274859104bd828373ae406aa9309e610449ac5 -Author: Ted Meyer -Date: Fri Mar 22 19:56:55 2024 +0000 - - Replace deprecated use of AVCodecContext::reordered_opaque - - We can use the AV_CODEC_FLAG_COPY_OPAQUE flag on the codec context - now to trigger timestamp propagation. - - Bug: 330573128 - Change-Id: I6bc57241a35ab5283742aad8d42acb4dc5e85858 - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5384308 - Commit-Queue: Ted (Chromium) Meyer - Reviewed-by: Dan Sanders - Cr-Commit-Position: refs/heads/main@{#1277051} - -diff --git a/media/filters/ffmpeg_video_decoder.cc b/media/filters/ffmpeg_video_decoder.cc -index bd75477feeabb..8a658a58caac5 100644 ---- a/media/filters/ffmpeg_video_decoder.cc -+++ b/media/filters/ffmpeg_video_decoder.cc -@@ -134,7 +134,7 @@ bool FFmpegVideoDecoder::IsCodecSupported(VideoCodec codec) { - } - - FFmpegVideoDecoder::FFmpegVideoDecoder(MediaLog* media_log) -- : media_log_(media_log) { -+ : media_log_(media_log), timestamp_map_(128) { - DVLOG(1) << __func__; - DETACH_FROM_SEQUENCE(sequence_checker_); - } -@@ -363,8 +363,10 @@ bool FFmpegVideoDecoder::FFmpegDecode(const DecoderBuffer& buffer) { - DCHECK(packet->data); - DCHECK_GT(packet->size, 0); - -- // Let FFmpeg handle presentation timestamp reordering. -- codec_context_->reordered_opaque = buffer.timestamp().InMicroseconds(); -+ const int64_t timestamp = buffer.timestamp().InMicroseconds(); -+ const TimestampId timestamp_id = timestamp_id_generator_.GenerateNextId(); -+ timestamp_map_.Put(std::make_pair(timestamp_id, timestamp)); -+ packet->opaque = reinterpret_cast(timestamp_id.GetUnsafeValue()); - } - FFmpegDecodingLoop::DecodeStatus decode_status = decoding_loop_->DecodePacket( - packet, base::BindRepeating(&FFmpegVideoDecoder::OnNewFrame, -@@ -423,7 +425,12 @@ bool FFmpegVideoDecoder::OnNewFrame(AVFrame* frame) { - } - gfx::Size natural_size = aspect_ratio.GetNaturalSize(visible_rect); - -- const auto pts = base::Microseconds(frame->reordered_opaque); -+ const auto ts_id = TimestampId(reinterpret_cast(frame->opaque)); -+ const auto ts_lookup = timestamp_map_.Get(ts_id); -+ if (ts_lookup == timestamp_map_.end()) { -+ return false; -+ } -+ const auto pts = base::Microseconds(std::get<1>(*ts_lookup)); - auto video_frame = VideoFrame::WrapExternalDataWithLayout( - opaque->layout, visible_rect, natural_size, opaque->data, opaque->size, - pts); -@@ -498,8 +505,10 @@ bool FFmpegVideoDecoder::ConfigureDecoder(const VideoDecoderConfig& config, - codec_context_->thread_count = GetFFmpegVideoDecoderThreadCount(config); - codec_context_->thread_type = - FF_THREAD_SLICE | (low_delay ? 0 : FF_THREAD_FRAME); -+ - codec_context_->opaque = this; - codec_context_->get_buffer2 = GetVideoBufferImpl; -+ codec_context_->flags |= AV_CODEC_FLAG_COPY_OPAQUE; - - if (base::FeatureList::IsEnabled(kFFmpegAllowLists)) { - // Note: FFmpeg will try to free this string, so we must duplicate it. -diff --git a/media/filters/ffmpeg_video_decoder.h b/media/filters/ffmpeg_video_decoder.h -index d02cb89c3ddf7..0a2de1c623fff 100644 ---- a/media/filters/ffmpeg_video_decoder.h -+++ b/media/filters/ffmpeg_video_decoder.h -@@ -7,10 +7,12 @@ - - #include - -+#include "base/containers/lru_cache.h" - #include "base/functional/callback.h" - #include "base/memory/raw_ptr.h" - #include "base/memory/scoped_refptr.h" - #include "base/sequence_checker.h" -+#include "base/types/id_type.h" - #include "media/base/frame_buffer_pool.h" - #include "media/base/supported_video_decoder_config.h" - #include "media/base/video_decoder.h" -@@ -87,6 +89,20 @@ class MEDIA_EXPORT FFmpegVideoDecoder : public VideoDecoder { - // FFmpeg structures owned by this object. - std::unique_ptr codec_context_; - -+ // The gist here is that timestamps need to be 64 bits to store microsecond -+ // precision. A 32 bit integer would overflow at ~35 minutes at this level of -+ // precision. We can't cast the timestamp to the void ptr object used by the -+ // opaque field in ffmpeg then, because it would lose data on a 32 bit build. -+ // However, we don't actually have 2^31 timestamped frames in a single -+ // playback, so it's fine to use the 32 bit value as a key in a map which -+ // contains the actual timestamps. Additionally, we've in the past set 128 -+ // outstanding frames for re-ordering as a limit for cross-thread decoding -+ // tasks, so we'll do that here too with the LRU cache. -+ using TimestampId = base::IdType; -+ -+ TimestampId::Generator timestamp_id_generator_; -+ base::LRUCache timestamp_map_; -+ - VideoDecoderConfig config_; - - scoped_refptr frame_pool_; diff --git a/chromium.spec b/chromium.spec index 42d9e2c..6f293d6 100644 --- a/chromium.spec +++ b/chromium.spec @@ -280,7 +280,6 @@ Patch92: chromium-138-checkversion-nodejs.patch # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch -Patch129: chromium-125-ffmpeg-5.x-reordered_opaque.patch Patch130: chromium-107-ffmpeg-5.x-duration.patch # disable the check Patch131: chromium-107-proprietary-codecs.patch @@ -963,7 +962,6 @@ Qt6 UI for chromium. %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis -%patch -P129 -p1 -R -b .ffmpeg-5.x-reordered_opaque %patch -P130 -p1 -b .ffmpeg-5.x-duration %patch -P133 -p1 -b .el9-ffmpeg-5.1.x %endif From 751b92fa9611a08bb455458c3097afe0f7206637 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Sep 2025 15:52:56 +0200 Subject: [PATCH 187/244] Fix FTBFS: undefined symbol: __rust_no_alloc_shim_is_unstable on epel --- chromium-rust-no-alloc-shim-is-unstable.patch | 15 +++++++++++++++ chromium.spec | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 chromium-rust-no-alloc-shim-is-unstable.patch diff --git a/chromium-rust-no-alloc-shim-is-unstable.patch b/chromium-rust-no-alloc-shim-is-unstable.patch new file mode 100644 index 0000000..f22d906 --- /dev/null +++ b/chromium-rust-no-alloc-shim-is-unstable.patch @@ -0,0 +1,15 @@ +--- chromium-140.0.7339.80/build/rust/allocator/lib.rs 2025-08-29 20:50:09.000000000 +0200 ++++ chromium-139.0.7258.154/build/rust/allocator/lib.rs 2025-08-25 18:10:00.000000000 +0200 +@@ -90,6 +90,12 @@ + #[linkage = "weak"] + fn __rust_no_alloc_shim_is_unstable_v2() {} + ++ // TODO(crbug.com/422538133) Remove after rolling past ++ // https://github.com/rust-lang/rust/pull/141061 ++ #[no_mangle] ++ #[linkage = "weak"] ++ static __rust_no_alloc_shim_is_unstable: u8 = 0; ++ + // Mangle the symbol name as rustc expects. + #[rustc_std_internal_symbol] + #[allow(non_upper_case_globals)] diff --git a/chromium.spec b/chromium.spec index 6f293d6..6c9577d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -315,6 +315,9 @@ Patch309: chromium-132-el8-unsupport-rustc-flags.patch # Fix rhbz#2387446, FTBFS with rust-1.89.0 Patch310: chromium-139-rust-FTBFS-suppress-warnings.patch +# Fix FTBFS: undefined symbol: __rust_no_alloc_shim_is_unstable +Patch311: chromium-rust-no-alloc-shim-is-unstable.patch + # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch @@ -993,6 +996,9 @@ Qt6 UI for chromium. %endif %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings +%if 0%{?rhel} +%patch -P311 -p1 -b .rust-no-alloc-shim-is-unstable +%endif %patch -P312 -p1 -b .fstack-protector-strong %if 0%{?rhel} && 0%{?rhel} < 10 From 0df67c8438b480de084b05d9cdfb3626e84ee274 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 5 Sep 2025 03:14:25 +0200 Subject: [PATCH 188/244] Workaround for build error due to old ffmpeg 5.x on el9 --- chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch | 12 ++++++++++++ chromium.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch diff --git a/chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch b/chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch new file mode 100644 index 0000000..95b51c3 --- /dev/null +++ b/chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch @@ -0,0 +1,12 @@ +diff -up chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc.me chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc +--- chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc.me 2025-09-05 02:43:56.666833745 +0200 ++++ chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc 2025-09-05 03:09:01.121397898 +0200 +@@ -486,7 +486,7 @@ bool FFmpegVideoDecoder::ConfigureDecode + + codec_context_->opaque = this; + codec_context_->get_buffer2 = GetVideoBufferImpl; +- codec_context_->flags |= AV_CODEC_FLAG_COPY_OPAQUE; ++ //codec_context_->flags |= AV_CODEC_FLAG_COPY_OPAQUE; + + if (decode_nalus_) { + codec_context_->flags2 |= AV_CODEC_FLAG2_CHUNKS; diff --git a/chromium.spec b/chromium.spec index 6c9577d..dac23dd 100644 --- a/chromium.spec +++ b/chromium.spec @@ -280,6 +280,7 @@ Patch92: chromium-138-checkversion-nodejs.patch # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch +Patch129: chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch Patch130: chromium-107-ffmpeg-5.x-duration.patch # disable the check Patch131: chromium-107-proprietary-codecs.patch @@ -965,6 +966,7 @@ Qt6 UI for chromium. %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis +%patch -P129 -p1 -b .el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE %patch -P130 -p1 -b .ffmpeg-5.x-duration %patch -P133 -p1 -b .el9-ffmpeg-5.1.x %endif From bf178e4a114e350c61d986691d237c3d5a0413c4 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 11 Sep 2025 12:50:43 +0200 Subject: [PATCH 189/244] - Update to 140.0.7339.127 * CVE-2025-10200: Use after free in Serviceworker * CVE-2025-10201: Inappropriate implementation in Mojo --- chromium.spec | 7 ++++++- sources | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index dac23dd..bf947ff 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 140.0.7339.80 +Version: 140.0.7339.127 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1707,6 +1707,11 @@ fi %endif %changelog +* Thu Sep 11 2025 Than Ngo - 140.0.7339.127-1 +- Update to 140.0.7339.127 + * CVE-2025-10200: Use after free in Serviceworker + * CVE-2025-10201: Inappropriate implementation in Mojo + * Wed Sep 03 2025 Than Ngo - 140.0.7339.80-1 - Update to 140.0.7339.80 * CVE-2025-9864: Use after free in V8 diff --git a/sources b/sources index a564862..71fc238 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-140.0.7339.80-clean.tar.xz) = 4828808fe80cf60ae1ed2c851309a79f74610360713818c1623571ba195e31680fb3e0104db713ba8e311b6157ad55dac270d197e904f450057d13f2611f05b7 +SHA512 (chromium-140.0.7339.127-clean.tar.xz) = 49b339956dab5dd3433287add96a07075ac9bb176fef35524f156fe002ef9b6ccd6ddac1e68df9e61859e3cab4d161bfe43d4fd7136a826537b91148b3a79942 From d1eb059adc6d636f96d74872e31b34cb7cc13022 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 18 Sep 2025 08:27:27 +0200 Subject: [PATCH 190/244] - Update to 140.0.7339.185 * CVE-2025-10585: Type Confusion in V8 * CVE-2025-10500: Use after free in Dawn * CVE-2025-10501: Use after free in WebRTC * CVE-2025-10502: Heap buffer overflow in ANGLE * Fix rendering issue on epel9 --- chromium.conf | 5 ++--- chromium.spec | 9 ++++++++- sources | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/chromium.conf b/chromium.conf index 2546104..7a1b0b2 100644 --- a/chromium.conf +++ b/chromium.conf @@ -13,7 +13,6 @@ NATIVE_WAYLAND=off CHROMIUM_FLAGS="" if [ "$NATIVE_WAYLAND" == "off" ] ; then - CHROMIUM_FLAGS+=" --enable-native-gpu-memory-buffers" CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" CHROMIUM_FLAGS+=" --enable-zero-copy" CHROMIUM_FLAGS+=" --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround" @@ -27,14 +26,14 @@ case "$GRAPHIC_DRIVER" in amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" FEATURES+="Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo,AcceleratedVideoDecodeLinuxZeroCopyGL" ;; nvidia) # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --enable-native-gpu-memory-buffers" FEATURES+="AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" ;; *) diff --git a/chromium.spec b/chromium.spec index bf947ff..321b772 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 140.0.7339.127 +Version: 140.0.7339.185 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1707,6 +1707,13 @@ fi %endif %changelog +* Wed Sep 17 2025 Than Ngo - 140.0.7339.185-1 +- Update to 140.0.7339.185 + * CVE-2025-10585: Type Confusion in V8 + * CVE-2025-10500: Use after free in Dawn + * CVE-2025-10501: Use after free in WebRTC + * CVE-2025-10502: Heap buffer overflow in ANGLE + * Thu Sep 11 2025 Than Ngo - 140.0.7339.127-1 - Update to 140.0.7339.127 * CVE-2025-10200: Use after free in Serviceworker diff --git a/sources b/sources index 71fc238..e0311ab 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-140.0.7339.127-clean.tar.xz) = 49b339956dab5dd3433287add96a07075ac9bb176fef35524f156fe002ef9b6ccd6ddac1e68df9e61859e3cab4d161bfe43d4fd7136a826537b91148b3a79942 +SHA512 (chromium-140.0.7339.185-clean.tar.xz) = 793030eb1437d11e73fe489f9cec363e44934787e9164949ad8bb6c3f45a31fa42c2a55857e190faf5f8f3c0badc610ed50298231320d0c134304d1196c69885 From bd323e3c5055feb6c70f8d93c8e519c4c89536b9 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sun, 21 Sep 2025 16:11:26 +0200 Subject: [PATCH 191/244] Fix FTBFS on F44 - undefined symbol: __rust_no_alloc_shim_is_unstable --- chromium.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 321b772..a57c5e8 100644 --- a/chromium.spec +++ b/chromium.spec @@ -998,9 +998,7 @@ Qt6 UI for chromium. %endif %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings -%if 0%{?rhel} %patch -P311 -p1 -b .rust-no-alloc-shim-is-unstable -%endif %patch -P312 -p1 -b .fstack-protector-strong %if 0%{?rhel} && 0%{?rhel} < 10 From 44e91a81db0454b97bfebb24438419e5cfa485ca Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 22 Sep 2025 14:44:44 +0200 Subject: [PATCH 192/244] Add __rust_alloc_error_handler_should_panic_v2 to fix the build error: undefined symbol: __rust_no_alloc_shim_is_unstab --- chromium-rust-no-alloc-shim-is-unstable.patch | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/chromium-rust-no-alloc-shim-is-unstable.patch b/chromium-rust-no-alloc-shim-is-unstable.patch index f22d906..563e0d1 100644 --- a/chromium-rust-no-alloc-shim-is-unstable.patch +++ b/chromium-rust-no-alloc-shim-is-unstable.patch @@ -1,15 +1,16 @@ ---- chromium-140.0.7339.80/build/rust/allocator/lib.rs 2025-08-29 20:50:09.000000000 +0200 -+++ chromium-139.0.7258.154/build/rust/allocator/lib.rs 2025-08-25 18:10:00.000000000 +0200 -@@ -90,6 +90,12 @@ +diff -up chromium-140.0.7339.185/build/rust/allocator/lib.rs.me chromium-140.0.7339.185/build/rust/allocator/lib.rs +--- chromium-140.0.7339.185/build/rust/allocator/lib.rs.me 2025-09-22 10:37:11.057152982 +0200 ++++ chromium-140.0.7339.185/build/rust/allocator/lib.rs 2025-09-22 14:38:10.367927121 +0200 +@@ -89,6 +89,12 @@ mod both_allocators { + #[rustc_std_internal_symbol] #[linkage = "weak"] fn __rust_no_alloc_shim_is_unstable_v2() {} - -+ // TODO(crbug.com/422538133) Remove after rolling past -+ // https://github.com/rust-lang/rust/pull/141061 -+ #[no_mangle] ++ ++ #[rustc_std_internal_symbol] + #[linkage = "weak"] -+ static __rust_no_alloc_shim_is_unstable: u8 = 0; -+ ++ fn __rust_alloc_error_handler_should_panic_v2() -> u8 { ++ 0 ++ } + // Mangle the symbol name as rustc expects. #[rustc_std_internal_symbol] - #[allow(non_upper_case_globals)] From e5418b70b43c254f244055e1d1aeb437bb0fc9a6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 24 Sep 2025 12:00:41 +0200 Subject: [PATCH 193/244] - Update to 140.0.7339.207 * CVE-2025-10890: Side-channel information leakage in V8 * CVE-2025-10891: Integer overflow in V8 * CVE-2025-10892: Integer overflow in V8 --- chromium.spec | 9 ++++++++- sources | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index a57c5e8..4320da4 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 140.0.7339.185 +Version: 140.0.7339.207 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1705,6 +1705,13 @@ fi %endif %changelog +* Wed Sep 24 2025 Than Ngo - 140.0.7339.207-1 +- Update to 140.0.7339.207 + * CVE-2025-10890: Side-channel information leakage in V8 + * CVE-2025-10891: Integer overflow in V8 + * CVE-2025-10892: Integer overflow in V8 + + * Wed Sep 17 2025 Than Ngo - 140.0.7339.185-1 - Update to 140.0.7339.185 * CVE-2025-10585: Type Confusion in V8 diff --git a/sources b/sources index e0311ab..405f500 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-140.0.7339.185-clean.tar.xz) = 793030eb1437d11e73fe489f9cec363e44934787e9164949ad8bb6c3f45a31fa42c2a55857e190faf5f8f3c0badc610ed50298231320d0c134304d1196c69885 +SHA512 (chromium-140.0.7339.207-clean.tar.xz) = 1319f55d79a827e443bdc53b18aef0cc014fefbea53f188e5d40e7e0ebe0a4b306fad5de98855ecef325b07cb3dbc1c079732e64ce71839792d3ac28801b200c From 941124f3dce3de850921255416018b697edf53ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 17:51:04 -0300 Subject: [PATCH 194/244] remove native-gpu-memory-buffers flag from nvidia section this was causing glitches when using ozone wayland also doesn't look required anymore --- chromium.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromium.conf b/chromium.conf index 7a1b0b2..8921703 100644 --- a/chromium.conf +++ b/chromium.conf @@ -33,7 +33,7 @@ case "$GRAPHIC_DRIVER" in # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --enable-native-gpu-memory-buffers" + CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" FEATURES+="AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" ;; *) @@ -41,7 +41,7 @@ case "$GRAPHIC_DRIVER" in FEATURES+="AcceleratedVideoEncoder,AcceleratedVideoDecodeLinuxGL" ;; esac - + # Web Dark mode if [ "$WEB_DARKMODE" == "on" ] ; then darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" From cc250835bd00c1cffdd99df0cb306e2a700a9346 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 26 Sep 2025 13:56:25 +0200 Subject: [PATCH 195/244] Fix rhbz#2398151, chromium FTBFS on EL9 with error: undefined symbol: __rust_no_alloc_shim_is_unstable --- chromium-rust-no-alloc-shim-is-unstable.patch | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/chromium-rust-no-alloc-shim-is-unstable.patch b/chromium-rust-no-alloc-shim-is-unstable.patch index 563e0d1..6eea3be 100644 --- a/chromium-rust-no-alloc-shim-is-unstable.patch +++ b/chromium-rust-no-alloc-shim-is-unstable.patch @@ -1,6 +1,6 @@ -diff -up chromium-140.0.7339.185/build/rust/allocator/lib.rs.me chromium-140.0.7339.185/build/rust/allocator/lib.rs ---- chromium-140.0.7339.185/build/rust/allocator/lib.rs.me 2025-09-22 10:37:11.057152982 +0200 -+++ chromium-140.0.7339.185/build/rust/allocator/lib.rs 2025-09-22 14:38:10.367927121 +0200 +diff -up chromium-140.0.7339.207/build/rust/allocator/lib.rs.rust-no-alloc-shim-is-unstable chromium-140.0.7339.207/build/rust/allocator/lib.rs +--- chromium-140.0.7339.207/build/rust/allocator/lib.rs.rust-no-alloc-shim-is-unstable 2025-09-22 21:21:29.000000000 +0200 ++++ chromium-140.0.7339.207/build/rust/allocator/lib.rs 2025-09-26 13:51:35.967078280 +0200 @@ -89,6 +89,12 @@ mod both_allocators { #[rustc_std_internal_symbol] #[linkage = "weak"] @@ -14,3 +14,15 @@ diff -up chromium-140.0.7339.185/build/rust/allocator/lib.rs.me chromium-140.0.7 // Mangle the symbol name as rustc expects. #[rustc_std_internal_symbol] +@@ -96,6 +102,11 @@ mod both_allocators { + #[linkage = "weak"] + static __rust_alloc_error_handler_should_panic: u8 = 0; + ++ // Mangle the symbol name as rustc (1.84) expects on EL9 ++ #[no_mangle] ++ #[linkage = "weak"] ++ static __rust_no_alloc_shim_is_unstable: u8 = 0; ++ + // Mangle the symbol name as rustc expects. + #[rustc_std_internal_symbol] + #[allow(non_upper_case_globals)] From 98bb985bc971e4a1221cae6d1093ffa1661bc7e0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 2 Oct 2025 08:40:29 +0200 Subject: [PATCH 196/244] - Update to 141.0.7390.54 * High CVE-2025-11205: Heap buffer overflow in WebGPU * High CVE-2025-11206: Heap buffer overflow in Video * Medium CVE-2025-11207: Side-channel information leakage in Storage * Medium CVE-2025-11208: Inappropriate implementation in Media * Medium CVE-2025-11209: Inappropriate implementation in Omnibox * Medium CVE-2025-11210: Side-channel information leakage in Tab * Medium CVE-2025-11211: Out of bounds read in Media * Medium CVE-2025-11212: Inappropriate implementation in Media * Medium CVE-2025-11213: Inappropriate implementation in Omnibox * Medium CVE-2025-11215: Off by one error in V8 * Low CVE-2025-11216: Inappropriate implementation in Storage * Low CVE-2025-11219: Use after free in V8 - Refreshed ppc64le patches - Fixed issue with incorrect display of the links on startpage in Darkmode - Fixed FTBFS - error: no member named 'bPsnrY' in 'Source_Picture_s' - Fixed, DebugInfo packages aren't being produced - Refreshed rust-clanglib patch - Fixed FTBFS due to old ffmpeg on Epel9 - Fixed FTBFS - error: invalid application of 'sizeof' to an incomplete type 'blink::CSSStyleSheet' - Fixed FTBFS due to missing header files --- ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 700 +++++++++--------- chromium-135-rust-clanglib.patch | 90 --- chromium-141-csss_style_sheet.patch | 16 + ...chromium-141-el9-ffmpeg-5.x-duration.patch | 10 +- ...-revert-remove-darkmode-image-policy.patch | 145 ++++ chromium-141-rust-clanglib.patch | 60 ++ chromium-141-use_libcxx_modules.patch | 28 + chromium-rust-no-alloc-shim-is-unstable.patch | 28 +- chromium.conf | 17 +- chromium.spec | 39 +- fix-rustc.patch | 15 +- sources | 2 +- 12 files changed, 658 insertions(+), 492 deletions(-) delete mode 100644 chromium-135-rust-clanglib.patch create mode 100644 chromium-141-csss_style_sheet.patch rename chromium-107-ffmpeg-5.x-duration.patch => chromium-141-el9-ffmpeg-5.x-duration.patch (58%) create mode 100644 chromium-141-revert-remove-darkmode-image-policy.patch create mode 100644 chromium-141-rust-clanglib.patch create mode 100644 chromium-141-use_libcxx_modules.patch diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index 978fba2..8825b67 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -1,32 +1,6 @@ -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/trap.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf/trap.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/trap.cc -@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* - SetIsInSigHandler(); - } - -+#if defined(__powerpc64__) -+ // On ppc64+glibc, some syscalls seem to accidentally negate the first -+ // parameter which causes checks against it to fail. For now, manually -+ // negate them back. -+ // TODO(sanastasio@raptorengineering.com): investigate this issue further -+ auto nr = SECCOMP_SYSCALL(ctx); -+ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat || -+ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) { -+ if (static_cast(SECCOMP_PARM1(ctx)) > 0) { -+ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx); -+ } -+ } -+#endif -+ - // Copy the seccomp-specific data into a arch_seccomp_data structure. This - // is what we are showing to TrapFnc callbacks that the system call - // evaluator registered with the sandbox. -Index: chromium-140.0.7339.41/sandbox/features.gni -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/features.gni -+++ chromium-140.0.7339.41/sandbox/features.gni +diff -up chromium-141.0.7390.37/sandbox/features.gni.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/features.gni +--- chromium-141.0.7390.37/sandbox/features.gni.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/features.gni 2025-09-28 10:15:55.414893495 +0200 @@ -9,4 +9,5 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || @@ -34,35 +8,9 @@ Index: chromium-140.0.7339.41/sandbox/features.gni - current_cpu == "mipsel" || current_cpu == "mips64el") + current_cpu == "mipsel" || current_cpu == "mips64el" || + current_cpu == "ppc64") -Index: chromium-140.0.7339.41/sandbox/policy/linux/bpf_renderer_policy_linux.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-140.0.7339.41/sandbox/policy/linux/bpf_renderer_policy_linux.cc -@@ -17,6 +17,11 @@ - #include "sandbox/linux/system_headers/linux_syscalls.h" - #include "sandbox/policy/linux/sandbox_linux.h" - -+// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h -+#ifdef __powerpc64__ -+#include -+#endif -+ - // TODO(vignatti): replace the local definitions below with #include - // once kernel version 4.6 becomes widely used. - #include -@@ -86,7 +91,7 @@ ResultExpr RendererProcessPolicy::Evalua - case __NR_ftruncate64: - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_getrlimit: - case __NR_setrlimit: - // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-140.0.7339.41/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-140.0.7339.41/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +diff -up chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h 2025-09-28 10:15:55.415120766 +0200 @@ -56,6 +56,13 @@ #define MAX_PUBLIC_SYSCALL __NR_syscalls #define MAX_SYSCALL MAX_PUBLIC_SYSCALL @@ -77,10 +25,74 @@ Index: chromium-140.0.7339.41/sandbox/linux/bpf_dsl/linux_syscall_ranges.h #else #error "Unsupported architecture" #endif -Index: chromium-140.0.7339.41/sandbox/linux/BUILD.gn -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/BUILD.gn -+++ chromium-140.0.7339.41/sandbox/linux/BUILD.gn +diff -up chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h +--- chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h 2025-09-28 10:15:55.416743928 +0200 +@@ -14,6 +14,9 @@ + #if defined(__mips__) + // sys/user.h in eglibc misses size_t definition + #include ++#elif defined(__powerpc64__) ++// Manually define greg_t on ppc64 ++typedef unsigned long long greg_t; + #endif + #endif + +@@ -343,6 +346,51 @@ struct regs_struct { + #define SECCOMP_PT_PARM4(_regs) (_regs).regs[3] + #define SECCOMP_PT_PARM5(_regs) (_regs).regs[4] + #define SECCOMP_PT_PARM6(_regs) (_regs).regs[5] ++ ++#elif defined(__powerpc64__) ++#include ++ ++typedef struct pt_regs regs_struct; ++ ++#ifdef ARCH_CPU_LITTLE_ENDIAN ++#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE ++#else ++#define SECCOMP_ARCH AUDIT_ARCH_PPC64 ++#endif ++ ++#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) ++ ++#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3) ++#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) ++#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip ++#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3) ++#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4) ++#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5) ++#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6) ++#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7) ++#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8) ++ ++#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr)) ++#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch)) ++#define SECCOMP_IP_MSB_IDX \ ++ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4) ++#define SECCOMP_IP_LSB_IDX \ ++ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0) ++#define SECCOMP_ARG_MSB_IDX(nr) \ ++ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4) ++#define SECCOMP_ARG_LSB_IDX(nr) \ ++ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0) ++ ++#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3] ++#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0] ++#define SECCOMP_PT_IP(_regs) (_regs).nip ++#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3] ++#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4] ++#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5] ++#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6] ++#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7] ++#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8] ++ + #else + #error Unsupported target platform + +diff -up chromium-141.0.7390.37/sandbox/linux/BUILD.gn.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/BUILD.gn +--- chromium-141.0.7390.37/sandbox/linux/BUILD.gn.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/BUILD.gn 2025-09-28 10:15:55.415227970 +0200 @@ -377,6 +377,8 @@ component("sandbox_services") { source_set("sandbox_services_headers") { @@ -90,84 +102,9 @@ Index: chromium-140.0.7339.41/sandbox/linux/BUILD.gn "system_headers/arm64_linux_syscalls.h", "system_headers/arm_linux_syscalls.h", "system_headers/arm_linux_ucontext.h", -Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_syscalls.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_syscalls.h -+++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_syscalls.h -@@ -35,5 +35,9 @@ - #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" - #endif - -+#if defined(__powerpc64__) -+#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h" -+#endif -+ - #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ - -Index: chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_syscalls.h -=================================================================== ---- /dev/null -+++ chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_syscalls.h -@@ -0,0 +1,25 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -+ -+#include -+ -+//TODO: is it necessary to redefine syscall numbers for PPC64? -+// Needed for Ubuntu/Debian/Centos/RHEL: -+#if !defined(__NR_shmget) -+#define __NR_shmget 395 -+#endif -+#if !defined(__NR_shmdt) -+#define __NR_shmdt 398 -+#endif -+#if !defined(__NR_shmctl) -+#define __NR_shmctl 396 -+#endif -+#if !defined(__NR_shmat) -+#define __NR_shmat 397 -+#endif -+ -+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -Index: chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_ucontext.h -=================================================================== ---- /dev/null -+++ chromium-140.0.7339.41/sandbox/linux/system_headers/ppc64_linux_ucontext.h -@@ -0,0 +1,12 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -+ -+#include -+ -+//TODO: is it necessary to redefine ucontext on PPC64? -+ -+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -Index: chromium-140.0.7339.41/sandbox/linux/syscall_broker/broker_process.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/syscall_broker/broker_process.cc -+++ chromium-140.0.7339.41/sandbox/linux/syscall_broker/broker_process.cc -@@ -167,7 +167,7 @@ bool BrokerProcess::IsSyscallBrokerable( - #if defined(__NR_fstatat64) - case __NR_fstatat64: - #endif --#if defined(__x86_64__) || defined(__aarch64__) -+#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_newfstatat: - #endif - return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc 2025-09-28 10:15:55.415675419 +0200 @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -197,20 +134,54 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -39,7 +39,7 @@ - #include "sandbox/linux/system_headers/linux_syscalls.h" - #include "sandbox/linux/system_headers/linux_time.h" +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc 2025-09-28 10:15:55.417132817 +0200 +@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) + + #if !defined(__aarch64__) + TEST_BASELINE_SIGSYS(__NR_inotify_init) ++#if !defined(__powerpc64__) + TEST_BASELINE_SIGSYS(__NR_vserver) + #endif ++#endif + + #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS) + BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc 2025-09-28 10:15:55.417609762 +0200 +@@ -389,7 +389,16 @@ intptr_t SIGSYSFstatatHandler(const stru + if (args.nr == __NR_fstatat_default) { + if (*reinterpret_cast(args.args[1]) == '\0' && + args.args[3] == static_cast(AT_EMPTY_PATH)) { +- return syscall(__NR_fstat_default, static_cast(args.args[0]), ++ int fd = static_cast(args.args[0]); ++#if defined(__powerpc64__) ++ // On ppc64+glibc, some syscalls seem to accidentally negate the first ++ // parameter which causes checks against it to fail. For now, manually ++ // negate them back. ++ // TODO: Investigate the root cause and fix in glibc ++ if (fd < 0) ++ fd = -fd; ++#endif ++ return syscall(__NR_fstat_default, fd, + reinterpret_cast(args.args[2])); + } + return -reinterpret_cast(fs_denied_errno); +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2025-09-28 10:15:55.415814493 +0200 +@@ -43,7 +43,7 @@ + #define MAP_DROPPABLE 0x08 // Zero memory under memory pressure. + #endif -#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && \ +#if BUILDFLAG(IS_LINUX) && !defined(__arm__) && !defined(__aarch64__) && !defined(__powerpc64__) && \ !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -48,6 +48,11 @@ +@@ -52,6 +52,11 @@ #include #endif @@ -222,7 +193,7 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete #if BUILDFLAG(IS_ANDROID) #if !defined(F_DUPFD_CLOEXEC) -@@ -105,6 +110,15 @@ inline bool IsArchitectureMips() { +@@ -109,6 +114,15 @@ inline bool IsArchitectureMips() { #endif } @@ -238,7 +209,7 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Ubuntu's version of glibc has a race condition in sem_post that can cause // it to call futex(2) with bogus op arguments. To workaround this, we need // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -279,9 +293,11 @@ ResultExpr RestrictFcntlCommands() { +@@ -287,9 +301,11 @@ ResultExpr RestrictFcntlCommands() { // operator. // Glibc overrides the kernel's O_LARGEFILE value. Account for this. uint64_t kOLargeFileFlag = O_LARGEFILE; @@ -251,7 +222,7 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete const Arg cmd(1); const Arg long_arg(2); -@@ -304,8 +320,17 @@ ResultExpr RestrictFcntlCommands() { +@@ -312,8 +328,17 @@ ResultExpr RestrictFcntlCommands() { F_SETLKW, F_GETLK, F_DUPFD, @@ -271,7 +242,7 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete .Case(F_SETFL, If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) .Case(F_ADD_SEALS, -@@ -314,7 +339,7 @@ ResultExpr RestrictFcntlCommands() { +@@ -322,7 +347,7 @@ ResultExpr RestrictFcntlCommands() { // clang-format on } @@ -280,7 +251,7 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -480,7 +505,7 @@ ResultExpr RestrictPtrace() { +@@ -488,7 +513,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -289,7 +260,7 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -@@ -520,13 +545,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr +@@ -528,13 +553,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr size_t argIndex; switch (sysno) { #if defined(__arm__) || \ @@ -306,10 +277,9 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete case __NR_sendto: // Could specify destination. argIndex = 3; break; -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h 2025-09-28 10:15:55.415949009 +0200 @@ -56,7 +56,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -319,10 +289,9 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc 2025-09-28 10:15:55.416060681 +0200 @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -782,10 +751,9 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h 2025-09-28 10:15:55.416557304 +0200 @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -835,129 +803,9 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-140.0.7339.41/sandbox/linux/services/syscall_wrappers.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-140.0.7339.41/sandbox/linux/services/syscall_wrappers.cc -@@ -68,7 +68,7 @@ long sys_clone(unsigned long flags, - #if defined(ARCH_CPU_X86_64) - return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); - #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ -- defined(ARCH_CPU_MIPS_FAMILY) -+ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) - // CONFIG_CLONE_BACKWARDS defined. - return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); - #endif -Index: chromium-140.0.7339.41/sandbox/linux/bpf_dsl/seccomp_macros.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/bpf_dsl/seccomp_macros.h -+++ chromium-140.0.7339.41/sandbox/linux/bpf_dsl/seccomp_macros.h -@@ -14,6 +14,9 @@ - #if defined(__mips__) - // sys/user.h in eglibc misses size_t definition - #include -+#elif defined(__powerpc64__) -+// Manually define greg_t on ppc64 -+typedef unsigned long long greg_t; - #endif - #endif - -@@ -343,6 +346,51 @@ struct regs_struct { - #define SECCOMP_PT_PARM4(_regs) (_regs).regs[3] - #define SECCOMP_PT_PARM5(_regs) (_regs).regs[4] - #define SECCOMP_PT_PARM6(_regs) (_regs).regs[5] -+ -+#elif defined(__powerpc64__) -+#include -+ -+typedef struct pt_regs regs_struct; -+ -+#ifdef ARCH_CPU_LITTLE_ENDIAN -+#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE -+#else -+#define SECCOMP_ARCH AUDIT_ARCH_PPC64 -+#endif -+ -+#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) -+ -+#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3) -+#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) -+#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip -+#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3) -+#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4) -+#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5) -+#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6) -+#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7) -+#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8) -+ -+#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr)) -+#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch)) -+#define SECCOMP_IP_MSB_IDX \ -+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4) -+#define SECCOMP_IP_LSB_IDX \ -+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0) -+#define SECCOMP_ARG_MSB_IDX(nr) \ -+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4) -+#define SECCOMP_ARG_LSB_IDX(nr) \ -+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0) -+ -+#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3] -+#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0] -+#define SECCOMP_PT_IP(_regs) (_regs).nip -+#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3] -+#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4] -+#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5] -+#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6] -+#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7] -+#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8] -+ - #else - #error Unsupported target platform - -Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_seccomp.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_seccomp.h -+++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_seccomp.h -@@ -38,6 +38,9 @@ - #ifndef EM_AARCH64 - #define EM_AARCH64 183 - #endif -+#ifndef EM_PPC64 -+#define EM_PPC64 21 -+#endif - - #ifndef __AUDIT_ARCH_64BIT - #define __AUDIT_ARCH_64BIT 0x80000000 -@@ -70,6 +73,12 @@ - #ifndef AUDIT_ARCH_AARCH64 - #define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) - #endif -+#ifndef AUDIT_ARCH_PPC64 -+#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT) -+#endif -+#ifndef AUDIT_ARCH_PPC64LE -+#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) -+#endif - - // For prctl.h - #ifndef PR_SET_SECCOMP -Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_signal.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_signal.h -+++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_signal.h -@@ -13,7 +13,7 @@ - // (not undefined, but defined different values and in different memory - // layouts). So, fill the gap here. - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - - #define LINUX_SIGHUP 1 - #define LINUX_SIGINT 2 -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/syscall.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf/syscall.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/syscall.cc +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc 2025-09-28 10:15:55.417019291 +0200 @@ -19,7 +19,7 @@ namespace sandbox { namespace { @@ -1052,25 +900,129 @@ Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf/syscall.cc #endif SECCOMP_RESULT(ctx) = static_cast(ret_val); } -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) +diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc +--- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc 2025-09-28 10:15:55.414751305 +0200 +@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* + SetIsInSigHandler(); + } - #if !defined(__aarch64__) - TEST_BASELINE_SIGSYS(__NR_inotify_init) -+#if !defined(__powerpc64__) - TEST_BASELINE_SIGSYS(__NR_vserver) ++#if defined(__powerpc64__) ++ // On ppc64+glibc, some syscalls seem to accidentally negate the first ++ // parameter which causes checks against it to fail. For now, manually ++ // negate them back. ++ // TODO(sanastasio@raptorengineering.com): investigate this issue further ++ auto nr = SECCOMP_SYSCALL(ctx); ++ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat || ++ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) { ++ if (static_cast(SECCOMP_PARM1(ctx)) > 0) { ++ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx); ++ } ++ } ++#endif ++ + // Copy the seccomp-specific data into a arch_seccomp_data structure. This + // is what we are showing to TrapFnc callbacks that the system call + // evaluator registered with the sandbox. +diff -up chromium-141.0.7390.37/sandbox/linux/services/credentials.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/services/credentials.cc +--- chromium-141.0.7390.37/sandbox/linux/services/credentials.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/services/credentials.cc 2025-09-28 10:18:58.609023878 +0200 +@@ -85,7 +85,7 @@ bool ChrootToSafeEmptyDir() { + alignas(16) std::array stack_buf; + + #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ +- defined(ARCH_CPU_MIPS_FAMILY) ++ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) + // SAFETY: This is the `stack` argument of `clone(2)`. Because the stack grows + // downward on these architectures, this is the topmost address of the memory + // space for the stack, and the address will not be dereferenced. +@@ -96,7 +96,8 @@ bool ChrootToSafeEmptyDir() { + + int clone_flags = CLONE_FS | LINUX_SIGCHLD; + void* tls = nullptr; +-#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY)) && \ ++#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY) || \ ++ defined(ARCH_CPU_PPC64_FAMILY)) && \ + !defined(MEMORY_SANITIZER) + // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. + // Since clone writes to the new child's TLS before returning, we must set a +@@ -104,6 +105,11 @@ bool ChrootToSafeEmptyDir() { + // glibc performs syscalls by calling a function pointer in TLS, so we do not + // attempt this optimization. + // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. ++ // ++ // NOTE: Without CLONE_VM, fontconfig will attempt to reload configuration ++ // in every thread. Since the rendered threads are sandboxed without ++ // filesystem access (e.g. to /etc/fonts/fonts.conf) this will cause font ++ // configuration loading failures and no fonts will be displayed! + clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; + + char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; +diff -up chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc +--- chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc 2025-09-28 10:15:55.416648236 +0200 +@@ -68,7 +68,7 @@ long sys_clone(unsigned long flags, + #if defined(ARCH_CPU_X86_64) + return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); + #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ +- defined(ARCH_CPU_MIPS_FAMILY) ++ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) + // CONFIG_CLONE_BACKWARDS defined. + return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); #endif +diff -up chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc +--- chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc 2025-09-28 10:15:55.415563066 +0200 +@@ -167,7 +167,7 @@ bool BrokerProcess::IsSyscallBrokerable( + #if defined(__NR_fstatat64) + case __NR_fstatat64: + #endif +-#if defined(__x86_64__) || defined(__aarch64__) ++#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_newfstatat: + #endif + return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); +diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h +--- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h 2025-09-28 10:15:55.416845160 +0200 +@@ -38,6 +38,9 @@ + #ifndef EM_AARCH64 + #define EM_AARCH64 183 + #endif ++#ifndef EM_PPC64 ++#define EM_PPC64 21 +#endif - #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS) - BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { -Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_stat.h -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/system_headers/linux_stat.h -+++ chromium-140.0.7339.41/sandbox/linux/system_headers/linux_stat.h + #ifndef __AUDIT_ARCH_64BIT + #define __AUDIT_ARCH_64BIT 0x80000000 +@@ -70,6 +73,12 @@ + #ifndef AUDIT_ARCH_AARCH64 + #define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) + #endif ++#ifndef AUDIT_ARCH_PPC64 ++#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT) ++#endif ++#ifndef AUDIT_ARCH_PPC64LE ++#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) ++#endif + + // For prctl.h + #ifndef PR_SET_SECCOMP +diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h +--- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h 2025-09-28 10:15:55.416926335 +0200 +@@ -13,7 +13,7 @@ + // (not undefined, but defined different values and in different memory + // layouts). So, fill the gap here. + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + + #define LINUX_SIGHUP 1 + #define LINUX_SIGINT 2 +diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h +--- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h 2025-09-28 10:15:55.417253506 +0200 @@ -173,6 +173,28 @@ struct kernel_stat { unsigned int __unused4; unsigned int __unused5; @@ -1100,45 +1052,91 @@ Index: chromium-140.0.7339.41/sandbox/linux/system_headers/linux_stat.h #endif #if !defined(AT_EMPTY_PATH) -Index: chromium-140.0.7339.41/sandbox/linux/services/credentials.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/services/credentials.cc -+++ chromium-140.0.7339.41/sandbox/linux/services/credentials.cc -@@ -90,7 +90,7 @@ bool ChrootToSafeEmptyDir() { - alignas(16) char stack_buf[PTHREAD_STACK_MIN_CONST]; +diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h +--- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h 2025-09-28 10:15:55.415341084 +0200 +@@ -35,5 +35,9 @@ + #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" + #endif - #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \ -- defined(ARCH_CPU_MIPS_FAMILY) -+ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) - // The stack grows downward. - void* stack = stack_buf + sizeof(stack_buf); - #else -@@ -99,7 +99,8 @@ bool ChrootToSafeEmptyDir() { ++#if defined(__powerpc64__) ++#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h" ++#endif ++ + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ - int clone_flags = CLONE_FS | LINUX_SIGCHLD; - void* tls = nullptr; --#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY)) && \ -+#if (defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM_FAMILY) || \ -+ defined(ARCH_CPU_PPC64_FAMILY)) && \ - !defined(MEMORY_SANITIZER) - // Use CLONE_VM | CLONE_VFORK as an optimization to avoid copying page tables. - // Since clone writes to the new child's TLS before returning, we must set a -@@ -107,6 +108,11 @@ bool ChrootToSafeEmptyDir() { - // glibc performs syscalls by calling a function pointer in TLS, so we do not - // attempt this optimization. - // TODO(crbug.com/40196869) Broken in MSan builds after LLVM f1bb30a4956f. -+ // -+ // NOTE: Without CLONE_VM, fontconfig will attempt to reload configuration -+ // in every thread. Since the rendered threads are sandboxed without -+ // filesystem access (e.g. to /etc/fonts/fonts.conf) this will cause font -+ // configuration loading failures and no fonts will be displayed! - clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; +diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h +--- chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-28 10:15:55.415404074 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h 2025-09-28 10:15:55.415404074 +0200 +@@ -0,0 +1,25 @@ ++// Copyright 2014 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ ++#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ ++ ++#include ++ ++//TODO: is it necessary to redefine syscall numbers for PPC64? ++// Needed for Ubuntu/Debian/Centos/RHEL: ++#if !defined(__NR_shmget) ++#define __NR_shmget 395 ++#endif ++#if !defined(__NR_shmdt) ++#define __NR_shmdt 398 ++#endif ++#if !defined(__NR_shmctl) ++#define __NR_shmctl 396 ++#endif ++#if !defined(__NR_shmat) ++#define __NR_shmat 397 ++#endif ++ ++#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ +diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h +--- chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-28 10:15:55.415474818 +0200 ++++ chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h 2025-09-28 10:15:55.415474818 +0200 +@@ -0,0 +1,12 @@ ++// Copyright 2014 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ ++#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ ++ ++#include ++ ++//TODO: is it necessary to redefine ucontext on PPC64? ++ ++#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ +diff -up chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc 2025-09-28 10:15:55.415005076 +0200 +@@ -17,6 +17,11 @@ + #include "sandbox/linux/system_headers/linux_syscalls.h" + #include "sandbox/policy/linux/sandbox_linux.h" - char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; -Index: chromium-140.0.7339.41/sandbox/policy/linux/bpf_utility_policy_linux.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-140.0.7339.41/sandbox/policy/linux/bpf_utility_policy_linux.cc ++// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h ++#ifdef __powerpc64__ ++#include ++#endif ++ + // TODO(vignatti): replace the local definitions below with #include + // once kernel version 4.6 becomes widely used. + #include +@@ -86,7 +91,7 @@ ResultExpr RendererProcessPolicy::Evalua + case __NR_ftruncate64: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_getrlimit: + case __NR_setrlimit: + // We allow setrlimit to dynamically adjust the address space limit as +diff -up chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc 2025-09-28 10:15:55.417510624 +0200 @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -1148,25 +1146,3 @@ Index: chromium-140.0.7339.41/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -=================================================================== ---- chromium-140.0.7339.41.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-140.0.7339.41/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -@@ -389,7 +389,16 @@ intptr_t SIGSYSFstatatHandler(const stru - if (args.nr == __NR_fstatat_default) { - if (*reinterpret_cast(args.args[1]) == '\0' && - args.args[3] == static_cast(AT_EMPTY_PATH)) { -- return syscall(__NR_fstat_default, static_cast(args.args[0]), -+ int fd = static_cast(args.args[0]); -+#if defined(__powerpc64__) -+ // On ppc64+glibc, some syscalls seem to accidentally negate the first -+ // parameter which causes checks against it to fail. For now, manually -+ // negate them back. -+ // TODO: Investigate the root cause and fix in glibc -+ if (fd < 0) -+ fd = -fd; -+#endif -+ return syscall(__NR_fstat_default, fd, - reinterpret_cast(args.args[2])); - } - return -reinterpret_cast(fs_denied_errno); diff --git a/chromium-135-rust-clanglib.patch b/chromium-135-rust-clanglib.patch deleted file mode 100644 index d758fa3..0000000 --- a/chromium-135-rust-clanglib.patch +++ /dev/null @@ -1,90 +0,0 @@ -diff -up chromium-135.0.7049.84/build/config/clang/BUILD.gn.than chromium-135.0.7049.84/build/config/clang/BUILD.gn ---- chromium-135.0.7049.84/build/config/clang/BUILD.gn.than 2025-04-09 10:22:51.699058451 +0200 -+++ chromium-135.0.7049.84/build/config/clang/BUILD.gn 2025-04-09 10:43:06.524085005 +0200 -@@ -166,8 +166,8 @@ template("clang_lib") { - _prefix = "lib" - _suffix = "" - _ext = "a" -+ _libprefix = "" - -- _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib" - if (is_win) { - _dir = "windows" - _prefix = "" -@@ -197,7 +197,33 @@ template("clang_lib") { - } else { - assert(false) # Unhandled cpu type - } -- } else if (is_linux || is_chromeos) { -+ } else if (is_linux) { -+ if (current_cpu == "x64") { -+ _dir = "x86_64-redhat-linux-gnu" -+ _suffix ="-x86_64" -+ } else if (current_cpu == "x86") { -+ _dir = "i386-redhat-linux-gnu" -+ _suffix = "-i386" -+ } else if (current_cpu == "arm64") { -+ _dir = "aarch64-redhat-linux-gnu" -+ _suffix = "-aarch64" -+ } else if (current_cpu == "arm") { -+ _dir = "armhf-redhat-linux-gnu" -+ _suffix = "-armhf" -+ } else if (current_cpu == "ppc64") { -+ _dir = "ppc64le-redhat-linux-gnu" -+ _suffix = "-ppc64le" -+ } else { -+ assert(false) # Unhandled cpu type -+ } -+ # different clang lib dir in fedora/epel -+ if (clang_version >= 17) { -+ _suffix = "" -+ } else if (clang_version >= 14) { -+ _libprefix = "64" -+ _dir = "" -+ } -+ } else if (is_chromeos) { - if (current_cpu == "x64") { - _dir = "x86_64-unknown-linux-gnu" - } else if (current_cpu == "x86") { -@@ -236,6 +262,7 @@ template("clang_lib") { - assert(false) # Unhandled target platform - } - -+ _clang_lib_dir = "$clang_base_path/lib${_libprefix}/clang/$clang_version/lib" - _lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}" - libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ] - -diff -up chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni.than chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni ---- chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni.than 2025-04-09 10:46:48.772413981 +0200 -+++ chromium-135.0.7049.84/build/rust/rust_bindgen_generator.gni 2025-04-09 10:47:15.480900587 +0200 -@@ -18,11 +18,11 @@ if (host_os == "win") { - - # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in - # ../lib. --_libclang_path = rust_bindgen_root -+_libclang_path = clang_base_path - if (host_os == "win") { - _libclang_path += "/bin" - } else { -- _libclang_path += "/lib" -+ _libclang_path += "/lib64" - } - - # Template to build Rust/C bindings with bindgen. -diff -up chromium-135.0.7049.84/build/rust/rust_bindgen.gni.than chromium-135.0.7049.84/build/rust/rust_bindgen.gni ---- chromium-135.0.7049.84/build/rust/rust_bindgen.gni.than 2025-04-09 10:45:53.577078718 +0200 -+++ chromium-135.0.7049.84/build/rust/rust_bindgen.gni 2025-04-09 10:46:29.974649891 +0200 -@@ -19,11 +19,11 @@ if (host_os == "win") { - - # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in - # ../lib. --_libclang_path = rust_bindgen_root -+_libclang_path = clang_base_path - if (host_os == "win") { - _libclang_path += "/bin" - } else { -- _libclang_path += "/lib" -+ _libclang_path += "/lib64" - } - - # Template to build Rust/C bindings with bindgen. diff --git a/chromium-141-csss_style_sheet.patch b/chromium-141-csss_style_sheet.patch new file mode 100644 index 0000000..fac8ede --- /dev/null +++ b/chromium-141-csss_style_sheet.patch @@ -0,0 +1,16 @@ +Fix ftbfs + +v8/include/cppgc/visitor.h:440:19: error: invalid application of 'sizeof' to an incomplete type 'blink::CSSStyleSheet' + 440 | static_assert(sizeof(T), "Pointee type must be fully defined."); + +diff -up chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py.ftbfs-csss_style_sheet chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py +--- chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py.ftbfs-csss_style_sheet 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/third_party/blink/renderer/bindings/scripts/bind_gen/observable_array.py 2025-10-01 17:55:51.303926035 +0200 +@@ -433,6 +433,7 @@ def generate_observable_array(observable + header_node.accumulator.add_include_headers([ + component_export_header(api_component, for_testing), + "third_party/blink/renderer/bindings/core/v8/idl_types.h", ++ "third_party/blink/renderer/core/css/css_style_sheet.h", + "third_party/blink/renderer/platform/bindings/observable_array.h", + ]) + source_node.accumulator.add_include_headers([ diff --git a/chromium-107-ffmpeg-5.x-duration.patch b/chromium-141-el9-ffmpeg-5.x-duration.patch similarity index 58% rename from chromium-107-ffmpeg-5.x-duration.patch rename to chromium-141-el9-ffmpeg-5.x-duration.patch index ee01cd9..5c10bb9 100644 --- a/chromium-107-ffmpeg-5.x-duration.patch +++ b/chromium-141-el9-ffmpeg-5.x-duration.patch @@ -1,14 +1,14 @@ -diff -up chromium-107.0.5304.121/media/filters/audio_file_reader.cc.me chromium-107.0.5304.121/media/filters/audio_file_reader.cc ---- chromium-107.0.5304.121/media/filters/audio_file_reader.cc.me 2022-12-17 08:27:12.204753071 +0100 -+++ chromium-107.0.5304.121/media/filters/audio_file_reader.cc 2022-12-17 08:28:40.908211808 +0100 -@@ -243,10 +243,10 @@ bool AudioFileReader::OnNewFrame( +diff -up chromium-141.0.7390.37/media/filters/audio_file_reader.cc.ffmpeg-5.x-duration chromium-141.0.7390.37/media/filters/audio_file_reader.cc +--- chromium-141.0.7390.37/media/filters/audio_file_reader.cc.ffmpeg-5.x-duration 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/media/filters/audio_file_reader.cc 2025-09-28 10:12:28.117594728 +0200 +@@ -274,10 +274,10 @@ bool AudioFileReader::OnNewFrame( // silence from being output. In the case where we are also discarding some // portion of the packet (as indicated by a negative pts), we further want to // adjust the duration downward by however much exists before zero. - if (audio_codec_ == AudioCodec::kAAC && frame->duration) { + if (audio_codec_ == AudioCodec::kAAC && frame->pkt_duration) { const base::TimeDelta pkt_duration = ConvertFromTimeBase( - glue_->format_context()->streams[stream_index_]->time_base, + UNSAFE_TODO(glue_->format_context()->streams[stream_index_])->time_base, - frame->duration + std::min(static_cast(0), frame->pts)); + frame->pkt_duration + std::min(static_cast(0), frame->pts)); const base::TimeDelta frame_duration = diff --git a/chromium-141-revert-remove-darkmode-image-policy.patch b/chromium-141-revert-remove-darkmode-image-policy.patch new file mode 100644 index 0000000..45891d5 --- /dev/null +++ b/chromium-141-revert-remove-darkmode-image-policy.patch @@ -0,0 +1,145 @@ +Revert it due to incorrect display of links on startpage + +commit 8e24867a503c142393388f117df94bb9b7c4b597 +Author: Prashant Nevase +Date: Mon Aug 18 10:26:18 2025 -0700 + + Remove dark mode kFilterNone image policy. + + This cl removes DarkModeImagePolicy::kFilterNone and virtual tests + related to it. DarkModeImagePolicy::kFilterSmart is used as default. + + Bug: 429404798 + Change-Id: I5983aa8bca9ed4da110130f8bc49a184c7d339dc + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6810968 + Commit-Queue: Prashant Nevase + Reviewed-by: Philip Rogers + Cr-Commit-Position: refs/heads/main@{#1502799} + +diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc +index d4ed3585d95..62f30a3103c 100644 +--- a/chrome/browser/about_flags.cc ++++ b/chrome/browser/about_flags.cc +@@ -813,19 +813,16 @@ const FeatureEntry::Choice kSafetyHubUnifiedPasswordsModuleChoices[] = { + #if !BUILDFLAG(IS_CHROMEOS) + const FeatureEntry::FeatureParam kForceDark_SimpleHsl[] = { + {"inversion_method", "hsl_based"}, +- {"image_behavior", "none"}, + {"foreground_lightness_threshold", "150"}, + {"background_lightness_threshold", "205"}}; + + const FeatureEntry::FeatureParam kForceDark_SimpleCielab[] = { + {"inversion_method", "cielab_based"}, +- {"image_behavior", "none"}, + {"foreground_lightness_threshold", "150"}, + {"background_lightness_threshold", "205"}}; + + const FeatureEntry::FeatureParam kForceDark_SimpleRgb[] = { + {"inversion_method", "rgb_based"}, +- {"image_behavior", "none"}, + {"foreground_lightness_threshold", "150"}, + {"background_lightness_threshold", "205"}}; + +@@ -839,7 +836,6 @@ const FeatureEntry::FeatureParam kForceDark_SelectiveImageInversion[] = { + + const FeatureEntry::FeatureParam kForceDark_SelectiveElementInversion[] = { + {"inversion_method", "cielab_based"}, +- {"image_behavior", "none"}, + {"foreground_lightness_threshold", "150"}, + {"background_lightness_threshold", "205"}}; + +diff --git a/third_party/blink/common/features.cc b/third_party/blink/common/features.cc +index 14409e52162..0af032f4dbf 100644 +--- a/third_party/blink/common/features.cc ++++ b/third_party/blink/common/features.cc +@@ -1036,7 +1036,6 @@ const base::FeatureParam::Option + forcedark_image_behavior_options[] = { + {ForceDarkImageBehavior::kUseBlinkSettings, + "use_blink_settings_for_images"}, +- {ForceDarkImageBehavior::kInvertNone, "none"}, + {ForceDarkImageBehavior::kInvertSelectively, "selective"}}; + + BASE_FEATURE_ENUM_PARAM(ForceDarkImageBehavior, +diff --git a/third_party/blink/public/common/forcedark/forcedark_switches.h b/third_party/blink/public/common/forcedark/forcedark_switches.h +index 9661628ce5c..ad606effc28 100644 +--- a/third_party/blink/public/common/forcedark/forcedark_switches.h ++++ b/third_party/blink/public/common/forcedark/forcedark_switches.h +@@ -31,9 +31,6 @@ enum class ForceDarkImageBehavior { + // Same as ForceDarkInversionMethod::kUseBlinkSettings above. + kUseBlinkSettings, + +- // Do not invert any images. +- kInvertNone, +- + // Invert only some images. Images that act as icons or text should be + // inverted, but photos, avatars, etc. should not be. + kInvertSelectively +diff --git a/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc b/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc +index 1929af787b7..7cb0924924a 100644 +--- a/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc ++++ b/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc +@@ -205,7 +205,6 @@ void DarkModeFilter::ApplyFilterToImage(Image* image, + const SkRect& src) { + DCHECK(image); + DCHECK(flags); +- DCHECK_NE(GetDarkModeImagePolicy(), DarkModeImagePolicy::kFilterNone); + + // Raster-side dark mode path - Just set the dark mode on flags and dark + // mode will be applied at compositor side during rasterization. +@@ -224,10 +223,6 @@ void DarkModeFilter::ApplyFilterToImage(Image* image, + } + + bool DarkModeFilter::ShouldApplyFilterToImage(ImageType type) const { +- DarkModeImagePolicy image_policy = GetDarkModeImagePolicy(); +- if (image_policy == DarkModeImagePolicy::kFilterNone) +- return false; +- + // kIcon: Do not consider images being drawn into bigger rect as these + // images are not meant for icons or representing smaller widgets. These + // images are considered as photos which should be untouched. +@@ -241,7 +236,6 @@ bool DarkModeFilter::ShouldApplyFilterToImage(ImageType type) const { + sk_sp DarkModeFilter::GenerateImageFilter( + const SkPixmap& pixmap, + const SkIRect& src) const { +- DCHECK(immutable_.settings.image_policy == DarkModeImagePolicy::kFilterSmart); + DCHECK(immutable_.image_filter); + + return (immutable_.image_classifier->Classify(pixmap, src) == +diff --git a/third_party/blink/renderer/platform/graphics/dark_mode_settings.h b/third_party/blink/renderer/platform/graphics/dark_mode_settings.h +index 19b3796f457..bce2653148a 100644 +--- a/third_party/blink/renderer/platform/graphics/dark_mode_settings.h ++++ b/third_party/blink/renderer/platform/graphics/dark_mode_settings.h +@@ -21,10 +21,9 @@ enum class DarkModeInversionAlgorithm { + // This enum will be removed soon to make dark mode simpler. + enum class DarkModeImagePolicy { + kFilterSmart, // Apply dark-mode based on image content. +- kFilterNone, // Never apply dark-mode filter to any images. + + kFirst = kFilterSmart, // First enum value. +- kLast = kFilterNone, // Last enum value. ++ kLast = kFilterSmart, // Last enum value. + }; + + enum class DarkModeImageClassifierPolicy { +@@ -45,7 +44,7 @@ struct DarkModeSettings { + DarkModeInversionAlgorithm mode = + DarkModeInversionAlgorithm::kInvertLightnessLAB; + float contrast = 0.0; // Valid range from -1.0 to 1.0 +- DarkModeImagePolicy image_policy = DarkModeImagePolicy::kFilterNone; ++ DarkModeImagePolicy image_policy = DarkModeImagePolicy::kFilterSmart; + DarkModeImageClassifierPolicy image_classifier_policy = + DarkModeImageClassifierPolicy::kNumColorsWithMlFallback; + +diff --git a/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc b/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc +index 61498c0a809..318652cb2f2 100644 +--- a/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc ++++ b/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc +@@ -115,8 +115,6 @@ DarkModeImagePolicy GetImagePolicy(const SwitchParams& switch_params) { + case ForceDarkImageBehavior::kUseBlinkSettings: + return GetIntegerSwitchParamValue( + switch_params, "ImagePolicy", kDefaultDarkModeImagePolicy); +- case ForceDarkImageBehavior::kInvertNone: +- return DarkModeImagePolicy::kFilterNone; + case ForceDarkImageBehavior::kInvertSelectively: + return DarkModeImagePolicy::kFilterSmart; + } diff --git a/chromium-141-rust-clanglib.patch b/chromium-141-rust-clanglib.patch new file mode 100644 index 0000000..b9142c8 --- /dev/null +++ b/chromium-141-rust-clanglib.patch @@ -0,0 +1,60 @@ +diff -up chromium-141.0.7390.37/build/config/clang/BUILD.gn.rust-clang_lib chromium-141.0.7390.37/build/config/clang/BUILD.gn +--- chromium-141.0.7390.37/build/config/clang/BUILD.gn.rust-clang_lib 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/build/config/clang/BUILD.gn 2025-09-27 12:15:44.380395911 +0200 +@@ -168,7 +168,21 @@ template("clang_lib") { + } + } else if (is_apple) { + _dir = "darwin" +- } else if (is_linux || is_chromeos) { ++ } else if (is_linux) { ++ if (current_cpu == "x64") { ++ _dir = "x86_64-redhat-linux-gnu" ++ } else if (current_cpu == "x86") { ++ _dir = "i386-redhat-linux-gnu" ++ } else if (current_cpu == "arm64") { ++ _dir = "aarch64-redhat-linux-gnu" ++ } else if (current_cpu == "arm") { ++ _dir = "armhf-redhat-linux-gnu" ++ } else if (current_cpu == "ppc64") { ++ _dir = "ppc64le-redhat-linux-gnu" ++ } else { ++ assert(false) # Unhandled cpu type ++ } ++ } else if (is_chromeos) { + if (current_cpu == "x64") { + _dir = "x86_64-unknown-linux-gnu" + } else if (current_cpu == "x86") { +diff -up chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni.rust-clang_lib chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni +--- chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni.rust-clang_lib 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni 2025-09-27 11:41:29.777786734 +0200 +@@ -18,11 +18,11 @@ if (host_os == "win") { + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path + if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. +diff -up chromium-141.0.7390.37/build/rust/rust_bindgen.gni.rust-clang_lib chromium-141.0.7390.37/build/rust/rust_bindgen.gni +--- chromium-141.0.7390.37/build/rust/rust_bindgen.gni.rust-clang_lib 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/build/rust/rust_bindgen.gni 2025-09-27 11:41:29.777891843 +0200 +@@ -19,11 +19,11 @@ if (host_os == "win") { + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path + if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. diff --git a/chromium-141-use_libcxx_modules.patch b/chromium-141-use_libcxx_modules.patch new file mode 100644 index 0000000..919fb35 --- /dev/null +++ b/chromium-141-use_libcxx_modules.patch @@ -0,0 +1,28 @@ +Fix FTBFS + +../../build/modules/linux-x64/module.modulemap:11:12: error: header '../../linux/debian_bullseye_amd64-sysroot/usr/include/alloca.h' not found + 11 | header "../../linux/debian_bullseye_amd64-sysroot/usr/include/alloca.h" + | ^ +1 error generated + +diff -up chromium-141.0.7390.37/build/config/BUILDCONFIG.gn.me chromium-141.0.7390.37/build/config/BUILDCONFIG.gn +--- chromium-141.0.7390.37/build/config/BUILDCONFIG.gn.me 2025-10-01 17:39:47.242174153 +0200 ++++ chromium-141.0.7390.37/build/config/BUILDCONFIG.gn 2025-10-01 17:49:54.736578295 +0200 +@@ -557,6 +557,8 @@ foreach(_target_type, + ]) { + template(_target_type) { + target(_target_type, target_name) { ++ use_libcxx_modules = false ++ + forward_variables_from(invoker, "*", TESTONLY_AND_VISIBILITY) + forward_variables_from(invoker, TESTONLY_AND_VISIBILITY) + if (!defined(inputs)) { +@@ -660,6 +662,8 @@ foreach(_target_type, + # TODO(crbug.com/326584510): Reclient doesn't respect this variable, see + # rbe_bug_326584510_missing_inputs in //build/config/clang/clang.gni + _uses_cflags = false ++ use_libcxx_modules = false ++ + if (defined(sources)) { + foreach(f, sources) { + if (string_replace(f + ".END", ".cc.END", "") != f + ".END" || diff --git a/chromium-rust-no-alloc-shim-is-unstable.patch b/chromium-rust-no-alloc-shim-is-unstable.patch index 6eea3be..8c5a339 100644 --- a/chromium-rust-no-alloc-shim-is-unstable.patch +++ b/chromium-rust-no-alloc-shim-is-unstable.patch @@ -1,20 +1,14 @@ -diff -up chromium-140.0.7339.207/build/rust/allocator/lib.rs.rust-no-alloc-shim-is-unstable chromium-140.0.7339.207/build/rust/allocator/lib.rs ---- chromium-140.0.7339.207/build/rust/allocator/lib.rs.rust-no-alloc-shim-is-unstable 2025-09-22 21:21:29.000000000 +0200 -+++ chromium-140.0.7339.207/build/rust/allocator/lib.rs 2025-09-26 13:51:35.967078280 +0200 -@@ -89,6 +89,12 @@ mod both_allocators { - #[rustc_std_internal_symbol] - #[linkage = "weak"] - fn __rust_no_alloc_shim_is_unstable_v2() {} -+ -+ #[rustc_std_internal_symbol] -+ #[linkage = "weak"] -+ fn __rust_alloc_error_handler_should_panic_v2() -> u8 { -+ 0 -+ } - - // Mangle the symbol name as rustc expects. - #[rustc_std_internal_symbol] -@@ -96,6 +102,11 @@ mod both_allocators { +Fix build errors: + +error[E0428]: the name `__rust_alloc_error_handler_should_panic_v2` is defined multiple times + --> ../../build/rust/allocator/lib.rs:101:5 + +error: undefined symbol: __rust_no_alloc_shim_is_unstable + +diff -up chromium-141.0.7390.37/build/rust/allocator/lib.rs.rust-no-alloc-shim-is-unstable chromium-141.0.7390.37/build/rust/allocator/lib.rs +--- chromium-141.0.7390.37/build/rust/allocator/lib.rs.rust-no-alloc-shim-is-unstable 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/build/rust/allocator/lib.rs 2025-09-27 15:14:54.661952048 +0200 +@@ -103,6 +103,11 @@ mod both_allocators { #[linkage = "weak"] static __rust_alloc_error_handler_should_panic: u8 = 0; diff --git a/chromium.conf b/chromium.conf index 8921703..1bd6582 100644 --- a/chromium.conf +++ b/chromium.conf @@ -1,6 +1,7 @@ # system wide chromium flags ARCH="$(arch)" +MODE="$(systemd-detect-virt)" # GRAPHIC_DRIVER=[amd|intel|nvidia|default] GRAPHIC_DRIVER=default @@ -42,12 +43,20 @@ case "$GRAPHIC_DRIVER" in ;; esac +if [ "$MODE" != "none" ] ; then + # chromium in VM, running with standard setting + CHROMIUM_FLAGS="" + FEATURES="" +fi + # Web Dark mode if [ "$WEB_DARKMODE" == "on" ] ; then darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" - FEATURES+=",$darktype" + if [ -z "$FEATURES" ] ; then + FEATURES+="$darktype" + else + FEATURES+=",$darktype" + fi fi -if [ "$ARCH" == "x86_64" ] ; then - CHROMIUM_FLAGS+=" --enable-features=$FEATURES" -fi +[ -z "$FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$FEATURES" diff --git a/chromium.spec b/chromium.spec index 4320da4..94ad0b6 100644 --- a/chromium.spec +++ b/chromium.spec @@ -95,7 +95,7 @@ %global remotingbuilddir out/Remoting # enable|disable debuginfo -%global enable_debug 0 +%global enable_debug 1 # disable debuginfo due to a bug in debugedit on el7 # error: canonicalization unexpectedly shrank by one character # https://bugzilla.redhat.com/show_bug.cgi?id=304121 @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 140.0.7339.207 +Version: 141.0.7390.54 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -277,11 +277,17 @@ Patch91: chromium-108-system-opus.patch # patch for Failed NodeJS version check Patch92: chromium-138-checkversion-nodejs.patch +# fix build error +Patch93: chromium-141-csss_style_sheet.patch + +# Revert due to incorrect display of links on startpage in Darkmode +Patch94: chromium-141-revert-remove-darkmode-image-policy.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch Patch129: chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch -Patch130: chromium-107-ffmpeg-5.x-duration.patch +Patch130: chromium-141-el9-ffmpeg-5.x-duration.patch # disable the check Patch131: chromium-107-proprietary-codecs.patch # fix tab crash with SIGTRAP error when using system ffmpeg @@ -350,11 +356,15 @@ Patch354: chromium-126-split-threshold-for-reg-with-hint.patch # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch +# fix build error: +# ../../build/modules/linux-x64/module.modulemap:11:12: error: header '../../linux/debian_bullseye_amd64-sysroot/usr/include/alloca.h' not found +Patch356: chromium-141-use_libcxx_modules.patch + # error: no matching member function for call to 'Append' Patch357: chromium-134-type-mismatch-error.patch # set clang_lib path -Patch358: chromium-135-rust-clanglib.patch +Patch358: chromium-141-rust-clanglib.patch # PowerPC64 LE support # Timothy Pearson's patchset @@ -962,6 +972,8 @@ Qt6 UI for chromium. %endif %patch -P92 -p1 -b .nodejs-checkversion +%patch -P93 -p1 -b .ftbfs-csss_style_sheet +%patch -P94 -p1 -R -b .revert-remove-darkmode-image-policy %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 @@ -1021,6 +1033,8 @@ Qt6 UI for chromium. %patch -P355 -p1 -b .hardware_destructive_interference_size +%patch -P356 -p1 -b .disable_use_libcxx_modules + %patch -P357 -p1 -b .type-mismatch-error %patch -P358 -p1 -b .rust-clang_lib @@ -1269,6 +1283,8 @@ CHROMIUM_BROWSER_GN_DEFINES+=' media_use_openh264=false' CHROMIUM_BROWSER_GN_DEFINES+=' rtc_use_h264=false' %endif CHROMIUM_BROWSER_GN_DEFINES+=' use_kerberos=true' +# Workaround for FTBFS, error: no member named 'bPsnrY' in 'Source_Picture_s' +CHROMIUM_BROWSER_GN_DEFINES+=' rtc_video_psnr=false' %if %{use_qt5} CHROMIUM_BROWSER_GN_DEFINES+=" use_qt5=true moc_qt5_path=\"$(%{_qt5_qmake} -query QT_HOST_BINS)\"" @@ -1705,6 +1721,21 @@ fi %endif %changelog +* Thu Oct 02 2025 Than Ngo - 141.0.7390.54-1 +- Update to 141.0.7390.54 + * High CVE-2025-11205: Heap buffer overflow in WebGPU + * High CVE-2025-11206: Heap buffer overflow in Video + * Medium CVE-2025-11207: Side-channel information leakage in Storage + * Medium CVE-2025-11208: Inappropriate implementation in Media + * Medium CVE-2025-11209: Inappropriate implementation in Omnibox + * Medium CVE-2025-11210: Side-channel information leakage in Tab + * Medium CVE-2025-11211: Out of bounds read in Media + * Medium CVE-2025-11212: Inappropriate implementation in Media + * Medium CVE-2025-11213: Inappropriate implementation in Omnibox + * Medium CVE-2025-11215: Off by one error in V8 + * Low CVE-2025-11216: Inappropriate implementation in Storage + * Low CVE-2025-11219: Use after free in V8 + * Wed Sep 24 2025 Than Ngo - 140.0.7339.207-1 - Update to 140.0.7339.207 * CVE-2025-10890: Side-channel information leakage in V8 diff --git a/fix-rustc.patch b/fix-rustc.patch index f59f659..a3f4669 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,16 +1,13 @@ -author: Andres Salomon -description: allow ppc64le to build by using proper rustc target -Index: chromium-140.0.7339.41/build/config/rust.gni -=================================================================== ---- chromium-140.0.7339.41.orig/build/config/rust.gni -+++ chromium-140.0.7339.41/build/config/rust.gni -@@ -186,6 +186,9 @@ if (is_linux || is_chromeos) { +diff -up chromium-141.0.7390.37/build/config/rust.gni.fix-rustc chromium-141.0.7390.37/build/config/rust.gni +--- chromium-141.0.7390.37/build/config/rust.gni.fix-rustc 2025-09-23 22:21:14.000000000 +0200 ++++ chromium-141.0.7390.37/build/config/rust.gni 2025-09-28 10:23:04.982735749 +0200 +@@ -179,6 +179,9 @@ rust_abi_target = "" + if (is_linux || is_chromeos) { if (current_cpu == "arm64") { rust_abi_target = "aarch64-unknown-linux-gnu" - cargo_target_abi = "" + } else if (current_cpu == "ppc64") { + rust_abi_target = "powerpc64le-unknown-linux-gnu" + cargo_target_abi = "" } else if (current_cpu == "x86") { rust_abi_target = "i686-unknown-linux-gnu" - cargo_target_abi = "" + } else if (current_cpu == "x64") { diff --git a/sources b/sources index 405f500..af26658 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-140.0.7339.207-clean.tar.xz) = 1319f55d79a827e443bdc53b18aef0cc014fefbea53f188e5d40e7e0ebe0a4b306fad5de98855ecef325b07cb3dbc1c079732e64ce71839792d3ac28801b200c +SHA512 (chromium-141.0.7390.54-clean.tar.xz) = 465fb02dec3835f80059e47b5c0cc4efbd84385db53c382f0cf3fa32b02089a9ec95cba7a26053f2b3cfb63f44e6ed9c16463f9384f784362d20ef1703b7ab18 From 7cf1f0d343d6bafb4fa35e56cd0fc2043cc500d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 18:11:30 -0300 Subject: [PATCH 197/244] reorder feature flag to allow for wayland only options --- chromium.conf | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/chromium.conf b/chromium.conf index 1bd6582..7d6bedb 100644 --- a/chromium.conf +++ b/chromium.conf @@ -12,34 +12,35 @@ WEB_DARKMODE=off # NATIVE_WAYLAND=[on|off] NATIVE_WAYLAND=off -CHROMIUM_FLAGS="" -if [ "$NATIVE_WAYLAND" == "off" ] ; then +FEATURES="AllowQt" +CHROMIUM_FLAGS=" --enable-chrome-browser-cloud-management" +if [ "$NATIVE_WAYLAND" == "on" ] ; then + FEATURES+=",WaylandLinuxDrmSyncobj,WaylandPerSurfaceScale,WaylandUiScale" + CHROMIUM_FLAGS+=" --ozone-platform-hint=auto" +else CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" CHROMIUM_FLAGS+=" --enable-zero-copy" CHROMIUM_FLAGS+=" --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround" - CHROMIUM_FLAGS+=" --enable-chrome-browser-cloud-management" CHROMIUM_FLAGS+=" --enable-gpu-rasterization" fi -FEATURES="" - case "$GRAPHIC_DRIVER" in amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" - FEATURES+="Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo,AcceleratedVideoDecodeLinuxZeroCopyGL" + FEATURES+=",Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo,AcceleratedVideoDecodeLinuxZeroCopyGL" ;; nvidia) # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" - FEATURES+="AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" + FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" ;; *) CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" - FEATURES+="AcceleratedVideoEncoder,AcceleratedVideoDecodeLinuxGL" + FEATURES+=",AcceleratedVideoEncoder,AcceleratedVideoDecodeLinuxGL" ;; esac From cf4437bd943e1d78b2345f754421dea8cbbba96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 18:15:46 -0300 Subject: [PATCH 198/244] explicit angle no longer needed on cr 139+ on nvidia --- chromium.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/chromium.conf b/chromium.conf index 7d6bedb..bfc1a51 100644 --- a/chromium.conf +++ b/chromium.conf @@ -35,7 +35,6 @@ case "$GRAPHIC_DRIVER" in # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" ;; *) From f7287aae3d028eb766fd0371a55cc8407592e4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 18:37:42 -0300 Subject: [PATCH 199/244] reduced video feature flag duplication --- chromium.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chromium.conf b/chromium.conf index bfc1a51..888e96d 100644 --- a/chromium.conf +++ b/chromium.conf @@ -24,22 +24,24 @@ else CHROMIUM_FLAGS+=" --enable-gpu-rasterization" fi +FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" + case "$GRAPHIC_DRIVER" in amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" - FEATURES+=",Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo,AcceleratedVideoDecodeLinuxZeroCopyGL" + FEATURES+=",Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" ;; nvidia) # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL,VaapiOnNvidiaGPUs" + FEATURES+=",VaapiOnNvidiaGPUs" ;; *) CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" - FEATURES+=",AcceleratedVideoEncoder,AcceleratedVideoDecodeLinuxGL" + FEATURES+=",AcceleratedVideoEncoder" ;; esac From 7f737be5cc36d627bcee7d2cead08d5b67b581ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 19:13:45 -0300 Subject: [PATCH 200/244] let chromium handle angle backend selection --- chromium.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chromium.conf b/chromium.conf index 888e96d..4870ef2 100644 --- a/chromium.conf +++ b/chromium.conf @@ -30,7 +30,7 @@ case "$GRAPHIC_DRIVER" in amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=vulkan --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" + CHROMIUM_FLAGS+=" --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" FEATURES+=",Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" ;; nvidia) @@ -40,7 +40,6 @@ case "$GRAPHIC_DRIVER" in FEATURES+=",VaapiOnNvidiaGPUs" ;; *) - CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl" FEATURES+=",AcceleratedVideoEncoder" ;; esac From 9d7ff6b06658af1f67ea0849cbfb8c888af20cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 19:15:47 -0300 Subject: [PATCH 201/244] remove vulkan features they the chromium window to show up invisible and are also no longer necessary for hw accel on wayland. --- chromium.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.conf b/chromium.conf index 4870ef2..e2c8640 100644 --- a/chromium.conf +++ b/chromium.conf @@ -31,7 +31,7 @@ case "$GRAPHIC_DRIVER" in # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 CHROMIUM_FLAGS+=" --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" - FEATURES+=",Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" + FEATURES+=",VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" ;; nvidia) # The NVIDIA VaAPI drivers are known to not support Chromium From d3cec61143b4950d8798f88c676e5f0d231817b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Thu, 25 Sep 2025 19:52:01 -0300 Subject: [PATCH 202/244] add autodetection of wayland chromium is already selecting wayland when available, add autodetection so x11 flags don't get applied to wayland sessions --- chromium.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.conf b/chromium.conf index e2c8640..455d63c 100644 --- a/chromium.conf +++ b/chromium.conf @@ -10,13 +10,17 @@ GRAPHIC_DRIVER=default WEB_DARKMODE=off # NATIVE_WAYLAND=[on|off] -NATIVE_WAYLAND=off +# chromium >=141 switched to --ozone-platform-hint=auto +if [ ! -z "$WAYLAND_DISPLAY" ]; then + NATIVE_WAYLAND=on +else + NATIVE_WAYLAND=off +fi FEATURES="AllowQt" CHROMIUM_FLAGS=" --enable-chrome-browser-cloud-management" if [ "$NATIVE_WAYLAND" == "on" ] ; then FEATURES+=",WaylandLinuxDrmSyncobj,WaylandPerSurfaceScale,WaylandUiScale" - CHROMIUM_FLAGS+=" --ozone-platform-hint=auto" else CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" CHROMIUM_FLAGS+=" --enable-zero-copy" From b3e849fa1aa41417aecc1e1e9e74231d314de007 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 3 Oct 2025 02:22:34 +0000 Subject: [PATCH 203/244] Fix build with clang-22 --- 0001-Change-use-of-removed-intrinsic.patch | 38 ++++++++++++++++++++++ chromium.spec | 15 ++++++++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 0001-Change-use-of-removed-intrinsic.patch diff --git a/0001-Change-use-of-removed-intrinsic.patch b/0001-Change-use-of-removed-intrinsic.patch new file mode 100644 index 0000000..82940ff --- /dev/null +++ b/0001-Change-use-of-removed-intrinsic.patch @@ -0,0 +1,38 @@ +From 135488419331644e59091ecc73e682299d3937a4 Mon Sep 17 00:00:00 2001 +From: Devon Loehr +Date: Fri, 15 Aug 2025 14:31:27 +0000 +Subject: [PATCH] Change use of removed intrinsic + +A recent LLVM change removed the __builtin_ia32_vcvtph2ps256 intrinsic +because it can be implemented using __builtin_shufflevector and/or +__builtin_convertvector. This CL changes skia to use convertvector as +to match. + +Bug: chromium:438445382 +Change-Id: I2ed16cd507d7feeafba4c082b3840cbdd6368dd9 +Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/1038217 +Reviewed-by: Ben Wagner +Commit-Queue: Ben Wagner +Auto-Submit: Devon Loehr +--- + third_party/skia/modules/skcms/src/src/Transform_inl.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/third_party/skia/modules/skcms/src/Transform_inl.h b/third_party/skia/modules/skcms/src/Transform_inl.h +index bc10e7d..99faf25 100644 +--- a/third_party/skia/modules/skcms/src/Transform_inl.h ++++ b/third_party/skia/modules/skcms/src/Transform_inl.h +@@ -156,8 +156,8 @@ SI F F_from_Half(U16 half) { + #elif defined(USING_AVX512F) + return (F)_mm512_cvtph_ps((__m256i)half); + #elif defined(USING_AVX_F16C) +- typedef int16_t __attribute__((vector_size(16))) I16; +- return __builtin_ia32_vcvtph2ps256((I16)half); ++ typedef _Float16 __attribute__((vector_size(16))) F16; ++ return __builtin_convertvector((F16)half, F); + #else + U32 wide = cast(half); + // A half is 1-5-10 sign-exponent-mantissa, with 15 exponent bias. +-- +2.50.1 + diff --git a/chromium.spec b/chromium.spec index 94ad0b6..8583f91 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 141.0.7390.54 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -427,6 +427,14 @@ Patch415: add-ppc64-pthread-stack-size.patch Patch417: 0001-add-xnn-ppc64el-support.patch Patch418: 0002-regenerate-xnn-buildgn.patch + +# Fix for building with clang-22 +# This patch comes from: +# https://skia.googlesource.com/skcms.git/+/135488419331644e59091ecc73e682299d3937a4 +# This was bundled into skia here: +# https://github.com/google/skia/commit/9ab05b08ae3e83c80ac69c69008ed1048e9a0923 +Patch419: 0001-Change-use-of-removed-intrinsic.patch + # flatpak sandbox patches from # https://github.com/flathub/org.chromium.Chromium/tree/master/patches/chromium Patch500: flatpak-Add-initial-sandbox-support.patch @@ -1083,6 +1091,8 @@ Qt6 UI for chromium. %patch -P418 -p1 -b .0002-regenerate-xnn-buildgn %endif +%patch -P419 -p1 -b .clang-22-fix + %if 0%{?flatpak} %patch -P500 -p1 -b .flatpak-initial-sandbox %patch -P501 -p1 -b .flatpak-sandbox-paths @@ -1721,6 +1731,9 @@ fi %endif %changelog +* Fri Oct 03 2025 Tom Stellard - 141.0.7390.54-2 +- Fix build with clang-22 + * Thu Oct 02 2025 Than Ngo - 141.0.7390.54-1 - Update to 141.0.7390.54 * High CVE-2025-11205: Heap buffer overflow in WebGPU From f1cef39bfcc5e6eccb83b86e0e8eb2f5d03a8234 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 6 Oct 2025 16:01:02 +0200 Subject: [PATCH 204/244] remove enable-native-gpu-memory-buffers by default as it causes glitches by some hardware --- chromium.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.conf b/chromium.conf index 455d63c..6e48cb8 100644 --- a/chromium.conf +++ b/chromium.conf @@ -34,7 +34,7 @@ case "$GRAPHIC_DRIVER" in amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 - CHROMIUM_FLAGS+=" --enable-accelerated-video-decode --enable-native-gpu-memory-buffers" + CHROMIUM_FLAGS+=" --enable-accelerated-video-decode" FEATURES+=",VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" ;; nvidia) From ea47c56394fd4c3b59177429c42a68300d713951 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 8 Oct 2025 10:36:28 +0200 Subject: [PATCH 205/244] - Update to 141.0.7390.65 * High CVE-2025-11458: Heap buffer overflow in Sync * High CVE-2025-11460: Use after free in Storage * Medium CVE-2025-11211: Out of bounds read in WebCodecs - remove 0001-Change-use-of-removed-intrinsic.patch as it is included in 141.0.7390.65 --- 0001-Change-use-of-removed-intrinsic.patch | 38 ---------------------- chromium.spec | 20 +++++------- sources | 2 +- 3 files changed, 9 insertions(+), 51 deletions(-) delete mode 100644 0001-Change-use-of-removed-intrinsic.patch diff --git a/0001-Change-use-of-removed-intrinsic.patch b/0001-Change-use-of-removed-intrinsic.patch deleted file mode 100644 index 82940ff..0000000 --- a/0001-Change-use-of-removed-intrinsic.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 135488419331644e59091ecc73e682299d3937a4 Mon Sep 17 00:00:00 2001 -From: Devon Loehr -Date: Fri, 15 Aug 2025 14:31:27 +0000 -Subject: [PATCH] Change use of removed intrinsic - -A recent LLVM change removed the __builtin_ia32_vcvtph2ps256 intrinsic -because it can be implemented using __builtin_shufflevector and/or -__builtin_convertvector. This CL changes skia to use convertvector as -to match. - -Bug: chromium:438445382 -Change-Id: I2ed16cd507d7feeafba4c082b3840cbdd6368dd9 -Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/1038217 -Reviewed-by: Ben Wagner -Commit-Queue: Ben Wagner -Auto-Submit: Devon Loehr ---- - third_party/skia/modules/skcms/src/src/Transform_inl.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/third_party/skia/modules/skcms/src/Transform_inl.h b/third_party/skia/modules/skcms/src/Transform_inl.h -index bc10e7d..99faf25 100644 ---- a/third_party/skia/modules/skcms/src/Transform_inl.h -+++ b/third_party/skia/modules/skcms/src/Transform_inl.h -@@ -156,8 +156,8 @@ SI F F_from_Half(U16 half) { - #elif defined(USING_AVX512F) - return (F)_mm512_cvtph_ps((__m256i)half); - #elif defined(USING_AVX_F16C) -- typedef int16_t __attribute__((vector_size(16))) I16; -- return __builtin_ia32_vcvtph2ps256((I16)half); -+ typedef _Float16 __attribute__((vector_size(16))) F16; -+ return __builtin_convertvector((F16)half, F); - #else - U32 wide = cast(half); - // A half is 1-5-10 sign-exponent-mantissa, with 15 exponent bias. --- -2.50.1 - diff --git a/chromium.spec b/chromium.spec index 8583f91..e898602 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 141.0.7390.54 -Release: 2%{?dist} +Version: 141.0.7390.65 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -427,14 +427,6 @@ Patch415: add-ppc64-pthread-stack-size.patch Patch417: 0001-add-xnn-ppc64el-support.patch Patch418: 0002-regenerate-xnn-buildgn.patch - -# Fix for building with clang-22 -# This patch comes from: -# https://skia.googlesource.com/skcms.git/+/135488419331644e59091ecc73e682299d3937a4 -# This was bundled into skia here: -# https://github.com/google/skia/commit/9ab05b08ae3e83c80ac69c69008ed1048e9a0923 -Patch419: 0001-Change-use-of-removed-intrinsic.patch - # flatpak sandbox patches from # https://github.com/flathub/org.chromium.Chromium/tree/master/patches/chromium Patch500: flatpak-Add-initial-sandbox-support.patch @@ -1091,8 +1083,6 @@ Qt6 UI for chromium. %patch -P418 -p1 -b .0002-regenerate-xnn-buildgn %endif -%patch -P419 -p1 -b .clang-22-fix - %if 0%{?flatpak} %patch -P500 -p1 -b .flatpak-initial-sandbox %patch -P501 -p1 -b .flatpak-sandbox-paths @@ -1731,6 +1721,12 @@ fi %endif %changelog +* Wed Oct 08 2025 Than Ngo - 141.0.7390.65-1 +- Update to 141.0.7390.65 + * High CVE-2025-11458: Heap buffer overflow in Sync + * High CVE-2025-11460: Use after free in Storage + * Medium CVE-2025-11211: Out of bounds read in WebCodecs + * Fri Oct 03 2025 Tom Stellard - 141.0.7390.54-2 - Fix build with clang-22 diff --git a/sources b/sources index af26658..4761d75 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-141.0.7390.54-clean.tar.xz) = 465fb02dec3835f80059e47b5c0cc4efbd84385db53c382f0cf3fa32b02089a9ec95cba7a26053f2b3cfb63f44e6ed9c16463f9384f784362d20ef1703b7ab18 +SHA512 (chromium-141.0.7390.65-clean.tar.xz) = f29a26fab840f942162e6ba347c727da78973595e8fd1067eaeed39434b4cc867d624ac4a2ba417469ca752da1b92e675539e60bf3818f2021726728acbc66df From 2f230cdc4c91e7bb58978f47735bd4ef901db430 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 13 Oct 2025 11:18:55 +0200 Subject: [PATCH 206/244] Update to 141.0.7390.76 --- chromium.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index e898602..d890038 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 141.0.7390.65 +Version: 141.0.7390.76 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1721,6 +1721,9 @@ fi %endif %changelog +* Sun Oct 12 2025 Than Ngo - 141.0.7390.76-1 +- Update to 141.0.7390.76 + * Wed Oct 08 2025 Than Ngo - 141.0.7390.65-1 - Update to 141.0.7390.65 * High CVE-2025-11458: Heap buffer overflow in Sync diff --git a/sources b/sources index 4761d75..a8f14b3 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-141.0.7390.65-clean.tar.xz) = f29a26fab840f942162e6ba347c727da78973595e8fd1067eaeed39434b4cc867d624ac4a2ba417469ca752da1b92e675539e60bf3818f2021726728acbc66df +SHA512 (chromium-141.0.7390.76-clean.tar.xz) = 9c13c82a3454005499c01e55b98c7afdb3a7023792448db33edc1018b3b1b08f435326c83750b546afa11149ee4637ba159aec2c02172a5ab89028db793dad76 From f6f64eb9da833470ccabeaf8d53c25aa5da4e967 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Oct 2025 12:53:25 +0200 Subject: [PATCH 207/244] - Update 141.0.7390.107 * High CVE-2025-11756: Use after free in Safe Browsing --- chromium.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index d890038..3335f42 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 141.0.7390.76 +Version: 141.0.7390.107 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1721,6 +1721,10 @@ fi %endif %changelog +* Wed Oct 15 2025 Than Ngo - 141.0.7390.107-1 +- Update 141.0.7390.107 + * High CVE-2025-11756: Use after free in Safe Browsing + * Sun Oct 12 2025 Than Ngo - 141.0.7390.76-1 - Update to 141.0.7390.76 diff --git a/sources b/sources index a8f14b3..f990476 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-141.0.7390.76-clean.tar.xz) = 9c13c82a3454005499c01e55b98c7afdb3a7023792448db33edc1018b3b1b08f435326c83750b546afa11149ee4637ba159aec2c02172a5ab89028db793dad76 +SHA512 (chromium-141.0.7390.107-clean.tar.xz) = 2297eeb1c1048d7f4b103a59d5c4008d7b40f2ec4c24ba056f4aabb3389d30974ac38b0b284c79d16e97d698a0dd4555e5e3229495481386642cdc7f1f6d27a2 From 6256ec076f5aec3479619e9de66ee511d645f62e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 22 Oct 2025 14:23:40 +0200 Subject: [PATCH 208/244] - Update to 141.0.7390.122 * High CVE-2025-12036 chromium: Inappropriate implementation in V8 --- chromium.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 3335f42..9f85f60 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 141.0.7390.107 +Version: 141.0.7390.122 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1721,6 +1721,10 @@ fi %endif %changelog +* Wed Oct 22 2025 Than Ngo - 141.0.7390.122-1 +- Update to 141.0.7390.122 + * High CVE-2025-12036 chromium: Inappropriate implementation in V8 + * Wed Oct 15 2025 Than Ngo - 141.0.7390.107-1 - Update 141.0.7390.107 * High CVE-2025-11756: Use after free in Safe Browsing diff --git a/sources b/sources index f990476..beef471 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-141.0.7390.107-clean.tar.xz) = 2297eeb1c1048d7f4b103a59d5c4008d7b40f2ec4c24ba056f4aabb3389d30974ac38b0b284c79d16e97d698a0dd4555e5e3229495481386642cdc7f1f6d27a2 +SHA512 (chromium-141.0.7390.122-clean.tar.xz) = c57188e37a3432cf0a0e1cd0350b5a6b623576c94a7d2bae0cec852a28c3dd689a98b8646e22e9caf49f61eb05a1fc1c4a669f40f2644df2dacb2835e65fb2d6 From 51dc9ee3be3e3cc512c7583cabc3e0853b2816a5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 30 Oct 2025 07:27:50 +0100 Subject: [PATCH 209/244] - Update to 142.0.7444.59 * Refreshed ppc64le patches * Refreshed system-brotli patch * Refreshed clang++-unknown-argument patch * Refreshed split-threshold-for-reg-with-hint patch * Fixed some FTBFS caused by missing header files * Fixed FTBFS caused by old rust compiler * Fixed FTBFS caused by new glibc-2.42 in Rawhide * Fixed FTBFS caused by old python-3.9.x in EL8/9 * Dropped obsoleted chromium-141-el9-ffmpeg-5.x-duration.patch for old ffmpeg on EL9 --- 0001-third-party-hwy-wrong-include.patch | 13 - 0002-regenerate-xnn-buildgn.patch | 146897 +++++++++------ add-ppc64-architecture-to-extensions.diff | 22 +- chromium-136-system-brotli.patch | 38 - chromium-138-clang++-unknown-argument.patch | 13 - chromium-141-el9-ffmpeg-5.x-duration.patch | 16 - chromium-141-glibc-2.42-SYS_SECCOMP.patch | 29 + chromium-142-clang++-unknown-argument.patch | 13 + chromium-142-crabbyavif-ftbfs-old-rust.patch | 24 + chromium-142-dawn-commit-hash.patch | 18 + ...-missing-include-for-form_field_data.patch | 32 + chromium-142-python-3.9-ftbfs.patch | 65 + ...42-split-threshold-for-reg-with-hint.patch | 12 +- chromium-142-system-brotli.patch | 38 + chromium.spec | 52 +- sources | 2 +- 16 files changed, 87470 insertions(+), 59814 deletions(-) delete mode 100644 0001-third-party-hwy-wrong-include.patch delete mode 100644 chromium-136-system-brotli.patch delete mode 100644 chromium-138-clang++-unknown-argument.patch delete mode 100644 chromium-141-el9-ffmpeg-5.x-duration.patch create mode 100644 chromium-141-glibc-2.42-SYS_SECCOMP.patch create mode 100644 chromium-142-clang++-unknown-argument.patch create mode 100644 chromium-142-crabbyavif-ftbfs-old-rust.patch create mode 100644 chromium-142-dawn-commit-hash.patch create mode 100644 chromium-142-missing-include-for-form_field_data.patch create mode 100644 chromium-142-python-3.9-ftbfs.patch rename chromium-126-split-threshold-for-reg-with-hint.patch => chromium-142-split-threshold-for-reg-with-hint.patch (53%) create mode 100644 chromium-142-system-brotli.patch diff --git a/0001-third-party-hwy-wrong-include.patch b/0001-third-party-hwy-wrong-include.patch deleted file mode 100644 index 559cc87..0000000 --- a/0001-third-party-hwy-wrong-include.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: chromium-140.0.7339.41/third_party/highway/src/hwy/targets.cc -=================================================================== ---- chromium-140.0.7339.41.orig/third_party/highway/src/hwy/targets.cc -+++ chromium-140.0.7339.41/third_party/highway/src/hwy/targets.cc -@@ -35,7 +35,7 @@ - HWY_OS_LINUX - // sys/auxv.h does not always include asm/hwcap.h, or define HWCAP*, hence we - // still include this directly. See #1199. --#ifndef TOOLCHAIN_MISS_ASM_HWCAP_H -+#if !defined(TOOLCHAIN_MISS_ASM_HWCAP_H) && !defined(HWY_ARCH_PPC) - #include - #endif - #if HWY_HAVE_AUXV diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch index 1e68d85..8633f39 100644 --- a/0002-regenerate-xnn-buildgn.patch +++ b/0002-regenerate-xnn-buildgn.patch @@ -1,10 +1,10 @@ File regenerated by running 'python3 generate_build_gn.py' -Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn +Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/xnnpack/BUILD.gn -+++ chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn -@@ -32,10 +32,10 @@ config("xnnpack_public_config") { +--- chromium-142.0.7444.52.orig/third_party/xnnpack/BUILD.gn ++++ chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +@@ -35,10 +35,10 @@ config("xnnpack_public_config") { } defines = [ @@ -19,527 +19,536 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } config("xnnpack_private_config") { -@@ -45,7 +45,9 @@ config("xnnpack_private_config") { +@@ -48,1840 +48,2104 @@ config("xnnpack_private_config") { ] } + if (current_cpu == "x64" || current_cpu == "x86") { + - xnnpack_deps = [ - ":configs_x64", - ":enums_x64", -@@ -547,515 +549,517 @@ if (current_cpu == "x64" || current_cpu - ":xx-fill_x64", - ":xx-pad_sse2-no-sse3", - ":xx-pad_x64", -- ":xx-transposev_x64", ++ if (build_with_chromium) { ++ xnnpack_deps = [ ++ ":configs_x64", ++ ":enums_x64", ++ ":f16-avgpool_f16c-no-avx2-no-fma", ++ ":f16-dwconv_f16c-fma-no-avx2", ++ ":f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f16-f32-vcvt_f16c-no-avx2-no-fma", ++ ":f16-f32-vcvt_sse2-no-sse3", ++ ":f16-f32-vcvt_sse4.1-no-sse4.2", ++ ":f16-f32-vcvt_x64", ++ ":f16-f32acc-gemm_f16c-fma-avx2", ++ ":f16-f32acc-igemm_f16c-fma-avx2", ++ ":f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f16-f32acc-rdsum2_f16c-no-avx2-no-fma", ++ ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f16-f32acc-rdsum_f16c-no-avx2-no-fma", ++ ":f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f16-f32acc-rsum2_f16c-no-avx2-no-fma", ++ ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f16-f32acc-rsum_f16c-no-avx2-no-fma", ++ ":f16-ibilinear_f16c-fma-no-avx2", ++ ":f16-maxpool_f16c-fma-avx2", ++ ":f16-maxpool_sse4.1-no-sse4.2", ++ ":f16-qs8-vcvt_x64", ++ ":f16-qu8-vcvt_x64", ++ ":f16-raddstoreexpminusmax_f16c-fma-avx2", ++ ":f16-rdminmax_x64", ++ ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16", ++ ":f16-rminmax_f16c-no-avx2-no-fma", ++ ":f16-rminmax_x64", ++ ":f16-vapproxgelu_x64", ++ ":f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16", ++ ":f16-vbinary_f16c-no-avx2-no-fma", ++ ":f16-vclamp_f16c-no-avx2-no-fma", ++ ":f16-vcos_x64", ++ ":f16-velu_f16c-fma-avx2", ++ ":f16-vexp_x64", ++ ":f16-vgelu_x64", ++ ":f16-vhswish_f16c-no-avx2-no-fma", ++ ":f16-vlrelu_f16c-no-avx2-no-fma", ++ ":f16-vmulcaddc_f16c-fma-no-avx2", ++ ":f16-vrnd_f16c-no-avx2-no-fma", ++ ":f16-vrsqrt_f16c-no-avx2-no-fma", ++ ":f16-vsigmoid_f16c-fma-avx2", ++ ":f16-vsin_x64", ++ ":f16-vsqrt_f16c-no-avx2-no-fma", ++ ":f16-vtanh_f16c-fma-no-avx2", ++ ":f16-vtanh_f16c-no-avx2-no-fma", ++ ":f16-vunary_f16c-no-avx2-no-fma", ++ ":f16-vunary_sse2-no-sse3", ++ ":f32-argmaxpool_sse2-no-sse3", ++ ":f32-argmaxpool_x64", ++ ":f32-avgpool_avx-no-avx2-no-f16c-no-fma", ++ ":f32-avgpool_avx512f", ++ ":f32-avgpool_sse2-no-sse3", ++ ":f32-avgpool_x64", ++ ":f32-conv-hwc2chw_sse-no-sse2", ++ ":f32-conv-hwc2chw_x64", ++ ":f32-dwconv2d-chw_sse-no-sse2", ++ ":f32-dwconv2d-chw_ssse3-no-sse4.1", ++ ":f32-dwconv2d-chw_x64", ++ ":f32-dwconv_avx-no-avx2-no-f16c-no-fma", ++ ":f32-dwconv_avx512f", ++ ":f32-dwconv_f16c-fma-no-avx2", ++ ":f32-dwconv_sse-no-sse2", ++ ":f32-dwconv_x64", ++ ":f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f32-f16-vcvt_f16c-no-avx2-no-fma", ++ ":f32-f16-vcvt_sse2-no-sse3", ++ ":f32-f16-vcvt_sse4.1-no-sse4.2", ++ ":f32-f16-vcvt_x64", ++ ":f32-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":f32-gemm_avx512f", ++ ":f32-gemm_f16c-fma-no-avx2", ++ ":f32-gemm_sse-no-sse2", ++ ":f32-gemm_x64", ++ ":f32-ibilinear-chw_sse-no-sse2", ++ ":f32-ibilinear-chw_x64", ++ ":f32-ibilinear_sse-no-sse2", ++ ":f32-ibilinear_x64", ++ ":f32-igemm_avx-no-avx2-no-f16c-no-fma", ++ ":f32-igemm_avx512f", ++ ":f32-igemm_f16c-fma-no-avx2", ++ ":f32-igemm_sse-no-sse2", ++ ":f32-igemm_x64", ++ ":f32-maxpool_sse2-no-sse3", ++ ":f32-maxpool_x64", ++ ":f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":f32-qc4w-gemm_f16c-fma-avx2", ++ ":f32-qc4w-gemm_f16c-fma-no-avx2", ++ ":f32-qc4w-gemm_sse4.1-no-sse4.2", ++ ":f32-qc4w-gemm_x64", ++ ":f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":f32-qc8w-gemm_f16c-fma-avx2", ++ ":f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f32-qc8w-gemm_f16c-fma-no-avx2", ++ ":f32-qc8w-gemm_sse4.1-no-sse4.2", ++ ":f32-qc8w-gemm_x64", ++ ":f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":f32-qs8-vcvt_f16c-fma-avx2", ++ ":f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f32-qs8-vcvt_sse2-no-sse3", ++ ":f32-qs8-vcvt_sse4.1-no-sse4.2", ++ ":f32-qs8-vcvt_x64", ++ ":f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":f32-qu8-vcvt_f16c-fma-avx2", ++ ":f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f32-qu8-vcvt_sse2-no-sse3", ++ ":f32-qu8-vcvt_x64", ++ ":f32-raddstoreexpminusmax_avx512f", ++ ":f32-raddstoreexpminusmax_f16c-fma-avx2", ++ ":f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":f32-raddstoreexpminusmax_sse2-no-sse3", ++ ":f32-raddstoreexpminusmax_x64", ++ ":f32-rdminmax_avx-no-avx2-no-f16c-no-fma", ++ ":f32-rdminmax_avx512f", ++ ":f32-rdminmax_sse2-no-sse3", ++ ":f32-rdminmax_x64", ++ ":f32-rdsum2_avx-no-avx2-no-f16c-no-fma", ++ ":f32-rdsum2_avx512f", ++ ":f32-rdsum2_sse2-no-sse3", ++ ":f32-rdsum2_x64", ++ ":f32-rdsum_avx-no-avx2-no-f16c-no-fma", ++ ":f32-rdsum_avx512f", ++ ":f32-rdsum_sse2-no-sse3", ++ ":f32-rdsum_x64", ++ ":f32-rminmax_avx-no-avx2-no-f16c-no-fma", ++ ":f32-rminmax_avx512f", ++ ":f32-rminmax_sse-no-sse2", ++ ":f32-rminmax_x64", ++ ":f32-rsum2_avx-no-avx2-no-f16c-no-fma", ++ ":f32-rsum2_avx512f", ++ ":f32-rsum2_sse2-no-sse3", ++ ":f32-rsum2_x64", ++ ":f32-rsum_avx-no-avx2-no-f16c-no-fma", ++ ":f32-rsum_avx512f", ++ ":f32-rsum_sse2-no-sse3", ++ ":f32-rsum_x64", ++ ":f32-spmm_sse-no-sse2", ++ ":f32-spmm_x64", ++ ":f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vapproxgelu_avx512f", ++ ":f32-vapproxgelu_f16c-fma-no-avx2", ++ ":f32-vapproxgelu_sse2-no-sse3", ++ ":f32-vapproxgelu_x64", ++ ":f32-vbinary_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vbinary_avx512f", ++ ":f32-vbinary_sse-no-sse2", ++ ":f32-vbinary_sse2-no-sse3", ++ ":f32-vbinary_x64", ++ ":f32-vclamp_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vclamp_avx512f", ++ ":f32-vclamp_sse2-no-sse3", ++ ":f32-vclamp_x64", ++ ":f32-vcmul_avx512f", ++ ":f32-vcmul_f16c-fma-no-avx2", ++ ":f32-vcmul_sse-no-sse2", ++ ":f32-vcmul_x64", ++ ":f32-vcopysign_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vcopysign_avx512f", ++ ":f32-vcopysign_sse2-no-sse3", ++ ":f32-vcopysign_x64", ++ ":f32-vcos_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vcos_avx512f", ++ ":f32-vcos_f16c-fma-no-avx2", ++ ":f32-vcos_sse2-no-sse3", ++ ":f32-vcos_x64", ++ ":f32-velu_avx-no-avx2-no-f16c-no-fma", ++ ":f32-velu_avx512f", ++ ":f32-velu_f16c-fma-avx2", ++ ":f32-velu_sse2-no-sse3", ++ ":f32-velu_x64", ++ ":f32-vexp_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vexp_avx512f", ++ ":f32-vexp_f16c-fma-no-avx2", ++ ":f32-vexp_sse2-no-sse3", ++ ":f32-vexp_x64", ++ ":f32-vgelu_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vgelu_avx512f", ++ ":f32-vgelu_f16c-fma-no-avx2", ++ ":f32-vgelu_sse2-no-sse3", ++ ":f32-vgelu_x64", ++ ":f32-vhswish_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vhswish_avx512f", ++ ":f32-vhswish_f16c-fma-no-avx2", ++ ":f32-vhswish_sse2-no-sse3", ++ ":f32-vhswish_x64", ++ ":f32-vlog_avx512f", ++ ":f32-vlog_f16c-fma-avx2", ++ ":f32-vlog_f16c-fma-no-avx2", ++ ":f32-vlog_sse2-no-sse3", ++ ":f32-vlog_x64", ++ ":f32-vlrelu_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vlrelu_avx512f", ++ ":f32-vlrelu_sse-no-sse2", ++ ":f32-vlrelu_sse4.1-no-sse4.2", ++ ":f32-vlrelu_x64", ++ ":f32-vmulcaddc_sse-no-sse2", ++ ":f32-vmulcaddc_x64", ++ ":f32-vrnd_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vrnd_avx512f", ++ ":f32-vrnd_sse2-no-sse3", ++ ":f32-vrnd_sse4.1-no-sse4.2", ++ ":f32-vrnd_x64", ++ ":f32-vrsqrt_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vrsqrt_avx512f", ++ ":f32-vrsqrt_sse2-no-sse3", ++ ":f32-vrsqrt_x64", ++ ":f32-vsigmoid_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vsigmoid_avx512f", ++ ":f32-vsigmoid_f16c-fma-avx2", ++ ":f32-vsigmoid_sse2-no-sse3", ++ ":f32-vsigmoid_sse4.1-no-sse4.2", ++ ":f32-vsigmoid_x64", ++ ":f32-vsin_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vsin_avx512f", ++ ":f32-vsin_f16c-fma-no-avx2", ++ ":f32-vsin_sse2-no-sse3", ++ ":f32-vsin_x64", ++ ":f32-vsqrt_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vsqrt_avx512f", ++ ":f32-vsqrt_sse2-no-sse3", ++ ":f32-vsqrt_x64", ++ ":f32-vtanh_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vtanh_avx512f", ++ ":f32-vtanh_f16c-fma-no-avx2", ++ ":f32-vtanh_sse2-no-sse3", ++ ":f32-vtanh_x64", ++ ":f32-vunary_avx-no-avx2-no-f16c-no-fma", ++ ":f32-vunary_avx512f", ++ ":f32-vunary_sse2-no-sse3", ++ ":f32-vunary_x64", ++ ":operators_x64", ++ ":qd8-f16-qb4w-gemm_f16c-fma-avx2", ++ ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f16-qc4w-gemm_f16c-fma-avx2", ++ ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx2", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx2", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":qd8-f32-qb4w-gemm_f16c-fma-avx2", ++ ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni", ++ ":qd8-f32-qb4w-gemm_sse2-no-sse3", ++ ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2", ++ ":qd8-f32-qb4w-gemm_x64", ++ ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx2", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni", ++ ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qd8-f32-qc4w-gemm_sse2-no-sse3", ++ ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1", ++ ":qd8-f32-qc4w-gemm_x64", ++ ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx2", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qd8-f32-qc8w-gemm_sse2-no-sse3", ++ ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2", ++ ":qd8-f32-qc8w-gemm_x64", ++ ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx2", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qd8-f32-qc8w-igemm_sse2-no-sse3", ++ ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2", ++ ":qd8-f32-qc8w-igemm_x64", ++ ":qs8-dwconv_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-dwconv_f16c-fma-avx2", ++ ":qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-dwconv_sse2-no-sse3", ++ ":qs8-dwconv_sse4.1-no-sse4.2", ++ ":qs8-dwconv_x64", ++ ":qs8-f16-vcvt_f16c-fma-avx2", ++ ":qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-f32-vcvt_f16c-fma-avx2", ++ ":qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-f32-vcvt_sse2-no-sse3", ++ ":qs8-f32-vcvt_sse4.1-no-sse4.2", ++ ":qs8-f32-vcvt_x64", ++ ":qs8-packw_avx2-avxvnni-f16c-fma", ++ ":qs8-packw_f16c-fma-avx2", ++ ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qs8-packw_x64", ++ ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma", ++ ":qs8-qc4w-gemm_f16c-fma-avx2", ++ ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qs8-qc4w-gemm_ssse3-no-sse4.1", ++ ":qs8-qc4w-gemm_x64", ++ ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-qc8w-dwconv_f16c-fma-avx2", ++ ":qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-qc8w-dwconv_sse2-no-sse3", ++ ":qs8-qc8w-dwconv_sse4.1-no-sse4.2", ++ ":qs8-qc8w-dwconv_x64", ++ ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma", ++ ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma", ++ ":qs8-qc8w-gemm_f16c-fma-avx2", ++ ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qs8-qc8w-gemm_sse2-no-sse3", ++ ":qs8-qc8w-gemm_sse4.1-no-sse4.2", ++ ":qs8-qc8w-gemm_x64", ++ ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma", ++ ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma", ++ ":qs8-qc8w-igemm_f16c-fma-avx2", ++ ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", ++ ":qs8-qc8w-igemm_sse2-no-sse3", ++ ":qs8-qc8w-igemm_sse4.1-no-sse4.2", ++ ":qs8-qc8w-igemm_x64", ++ ":qs8-qu8-packw_avx2-avxvnni-f16c-fma", ++ ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qs8-qu8-packw_x64", ++ ":qs8-rdsum_f16c-fma-avx2", ++ ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-rdsum_sse4.1-no-sse4.2", ++ ":qs8-rdsum_x64", ++ ":qs8-rsum_avx2-avxvnni-f16c-fma", ++ ":qs8-rsum_f16c-fma-avx2", ++ ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", ++ ":qs8-rsum_ssse3-no-sse4.1", ++ ":qs8-rsum_x64", ++ ":qs8-vadd_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-vadd_f16c-fma-avx2", ++ ":qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-vadd_sse2-no-sse3", ++ ":qs8-vadd_sse4.1-no-sse4.2", ++ ":qs8-vadd_x64", ++ ":qs8-vaddc_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-vaddc_f16c-fma-avx2", ++ ":qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qs8-vaddc_sse2-no-sse3", ++ ":qs8-vaddc_sse4.1-no-sse4.2", ++ ":qs8-vaddc_x64", ++ ":qs8-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-vcvt_f16c-fma-avx2", ++ ":qs8-vcvt_sse2-no-sse3", ++ ":qs8-vcvt_sse4.1-no-sse4.2", ++ ":qs8-vcvt_ssse3-no-sse4.1", ++ ":qs8-vcvt_x64", ++ ":qs8-vlrelu_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-vlrelu_f16c-fma-avx2", ++ ":qs8-vlrelu_sse2-no-sse3", ++ ":qs8-vlrelu_sse4.1-no-sse4.2", ++ ":qs8-vlrelu_ssse3-no-sse4.1", ++ ":qs8-vlrelu_x64", ++ ":qs8-vmul_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-vmul_sse2-no-sse3", ++ ":qs8-vmul_sse4.1-no-sse4.2", ++ ":qs8-vmul_x64", ++ ":qs8-vmulc_avx-no-avx2-no-f16c-no-fma", ++ ":qs8-vmulc_sse2-no-sse3", ++ ":qs8-vmulc_sse4.1-no-sse4.2", ++ ":qs8-vmulc_x64", ++ ":qs8-vprelu_f16c-fma-avx2", ++ ":qs8-vprelu_x64", ++ ":qs8-vpreluc_f16c-fma-avx2", ++ ":qs8-vpreluc_x64", ++ ":qs8-vrpreluc_f16c-fma-avx2", ++ ":qs8-vrpreluc_x64", ++ ":qu8-dwconv_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-dwconv_f16c-fma-avx2", ++ ":qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qu8-dwconv_sse2-no-sse3", ++ ":qu8-dwconv_sse4.1-no-sse4.2", ++ ":qu8-dwconv_x64", ++ ":qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-f32-vcvt_f16c-fma-avx2", ++ ":qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qu8-f32-vcvt_sse2-no-sse3", ++ ":qu8-f32-vcvt_sse4.1-no-sse4.2", ++ ":qu8-f32-vcvt_x64", ++ ":qu8-gemm_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-gemm_f16c-fma-avx2", ++ ":qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qu8-gemm_sse2-no-sse3", ++ ":qu8-gemm_sse4.1-no-sse4.2", ++ ":qu8-gemm_x64", ++ ":qu8-igemm_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-igemm_f16c-fma-avx2", ++ ":qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qu8-igemm_sse2-no-sse3", ++ ":qu8-igemm_sse4.1-no-sse4.2", ++ ":qu8-igemm_x64", ++ ":qu8-rdsum_ssse3-no-sse4.1", ++ ":qu8-rdsum_x64", ++ ":qu8-rsum_f16c-fma-avx2", ++ ":qu8-rsum_sse2-no-sse3", ++ ":qu8-rsum_x64", ++ ":qu8-vadd_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-vadd_f16c-fma-avx2", ++ ":qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qu8-vadd_sse2-no-sse3", ++ ":qu8-vadd_sse4.1-no-sse4.2", ++ ":qu8-vadd_x64", ++ ":qu8-vaddc_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-vaddc_f16c-fma-avx2", ++ ":qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":qu8-vaddc_sse2-no-sse3", ++ ":qu8-vaddc_sse4.1-no-sse4.2", ++ ":qu8-vaddc_x64", ++ ":qu8-vcvt_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-vcvt_f16c-fma-avx2", ++ ":qu8-vcvt_sse2-no-sse3", ++ ":qu8-vcvt_sse4.1-no-sse4.2", ++ ":qu8-vcvt_ssse3-no-sse4.1", ++ ":qu8-vcvt_x64", ++ ":qu8-vlrelu_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-vlrelu_f16c-fma-avx2", ++ ":qu8-vlrelu_sse2-no-sse3", ++ ":qu8-vlrelu_sse4.1-no-sse4.2", ++ ":qu8-vlrelu_ssse3-no-sse4.1", ++ ":qu8-vlrelu_x64", ++ ":qu8-vmul_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-vmul_sse2-no-sse3", ++ ":qu8-vmul_sse4.1-no-sse4.2", ++ ":qu8-vmul_x64", ++ ":qu8-vmulc_avx-no-avx2-no-f16c-no-fma", ++ ":qu8-vmulc_sse2-no-sse3", ++ ":qu8-vmulc_sse4.1-no-sse4.2", ++ ":qu8-vmulc_x64", ++ ":qu8-vprelu_f16c-fma-avx2", ++ ":qu8-vprelu_x64", ++ ":qu8-vpreluc_f16c-fma-avx2", ++ ":qu8-vpreluc_x64", ++ ":qu8-vrpreluc_f16c-fma-avx2", ++ ":qu8-vrpreluc_x64", ++ ":reference_x64", ++ ":s8-ibilinear_sse2-no-sse3", ++ ":s8-ibilinear_sse4.1-no-sse4.2", ++ ":s8-ibilinear_x64", ++ ":s8-maxpool_sse4.1-no-sse4.2", ++ ":s8-maxpool_x64", ++ ":s8-rdminmax_sse4.1-no-sse4.2", ++ ":s8-rdminmax_x64", ++ ":s8-rminmax_sse4.1-no-sse4.2", ++ ":s8-rminmax_x64", ++ ":s8-vclamp_f16c-fma-avx2", ++ ":s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":s8-vclamp_sse2-no-sse3", ++ ":s8-vclamp_sse4.1-no-sse4.2", ++ ":s8-vclamp_x64", ++ ":subgraph_x64", ++ ":tables_x64", ++ ":u8-ibilinear_sse2-no-sse3", ++ ":u8-ibilinear_sse4.1-no-sse4.2", ++ ":u8-ibilinear_x64", ++ ":u8-lut32norm_x64", ++ ":u8-maxpool_sse2-no-sse3", ++ ":u8-maxpool_x64", ++ ":u8-rdminmax_sse2-no-sse3", ++ ":u8-rdminmax_x64", ++ ":u8-rminmax_sse2-no-sse3", ++ ":u8-rminmax_x64", ++ ":u8-vclamp_f16c-fma-avx2", ++ ":u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":u8-vclamp_sse2-no-sse3", ++ ":u8-vclamp_x64", ++ ":x16-packw_f16c-fma-avx2", ++ ":x16-transposec_f16c-fma-avx2", ++ ":x16-transposec_sse2-no-sse3", ++ ":x16-transposec_x64", ++ ":x16-x32-packw_x64", ++ ":x24-transposec_ssse3-no-sse4.1", ++ ":x24-transposec_x64", ++ ":x32-packw_avx-no-avx2-no-f16c-no-fma", ++ ":x32-packw_avx512f", ++ ":x32-packw_sse2-no-sse3", ++ ":x32-packw_x64", ++ ":x32-transposec_avx-no-avx2-no-f16c-no-fma", ++ ":x32-transposec_sse-no-sse2", ++ ":x32-transposec_x64", ++ ":x32-unpool_sse2-no-sse3", ++ ":x32-unpool_x64", ++ ":x64-transposec_avx-no-avx2-no-f16c-no-fma", ++ ":x64-transposec_sse2-no-sse3", ++ ":x64-transposec_x64", ++ ":x8-lut_avx-no-avx2-no-f16c-no-fma", ++ ":x8-lut_f16c-fma-avx2", ++ ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", ++ ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi", ++ ":x8-lut_x64", ++ ":x8-packq_x64", ++ ":x8-packw_x64", ++ ":x8-transposec_f16c-fma-avx2", ++ ":x8-transposec_sse2-no-sse3", ++ ":x8-transposec_x64", ++ ":xx-copy_x64", ++ ":xx-fill_sse2-no-sse3", ++ ":xx-fill_x64", ++ ":xx-pad_sse2-no-sse3", ++ ":xx-pad_x64", + ":xx-transposev_x64" - ] - - if (build_with_internal_optimization_guide) { - xnnpack_standalone_deps = [ -- ":configs_x64_standalone", -- ":enums_x64_standalone", -- ":f16-avgpool_f16c-no-avx2-no-fma_standalone", -- ":f16-dwconv_f16c-fma-no-avx2_standalone", -- ":f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f16-f32-vcvt_f16c-no-avx2-no-fma_standalone", -- ":f16-f32-vcvt_sse2-no-sse3_standalone", -- ":f16-f32-vcvt_sse4.1-no-sse4.2_standalone", -- ":f16-f32-vcvt_x64_standalone", -- ":f16-f32acc-gemm_f16c-fma-avx2_standalone", -- ":f16-f32acc-igemm_f16c-fma-avx2_standalone", -- ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone", -- ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone", -- ":f16-ibilinear_f16c-fma-no-avx2_standalone", -- ":f16-maxpool_f16c-fma-avx2_standalone", -- ":f16-maxpool_sse4.1-no-sse4.2_standalone", -- ":f16-qs8-vcvt_x64_standalone", -- ":f16-qu8-vcvt_x64_standalone", -- ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", -- ":f16-rdminmax_x64_standalone", -- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", -- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f16-rminmax_f16c-no-avx2-no-fma_standalone", -- ":f16-rminmax_x64_standalone", -- ":f16-vapproxgelu_x64_standalone", -- ":f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", -- ":f16-vbinary_f16c-no-avx2-no-fma_standalone", -- ":f16-vclamp_f16c-no-avx2-no-fma_standalone", -- ":f16-vcos_x64_standalone", -- ":f16-velu_f16c-fma-avx2_standalone", -- ":f16-vexp_x64_standalone", -- ":f16-vgelu_x64_standalone", -- ":f16-vhswish_f16c-no-avx2-no-fma_standalone", -- ":f16-vlrelu_f16c-no-avx2-no-fma_standalone", -- ":f16-vmulcaddc_f16c-fma-no-avx2_standalone", -- ":f16-vrnd_f16c-no-avx2-no-fma_standalone", -- ":f16-vrsqrt_f16c-no-avx2-no-fma_standalone", -- ":f16-vsigmoid_f16c-fma-avx2_standalone", -- ":f16-vsin_x64_standalone", -- ":f16-vsqrt_f16c-no-avx2-no-fma_standalone", -- ":f16-vtanh_f16c-fma-no-avx2_standalone", -- ":f16-vtanh_f16c-no-avx2-no-fma_standalone", -- ":f16-vunary_f16c-no-avx2-no-fma_standalone", -- ":f16-vunary_sse2-no-sse3_standalone", -- ":f32-argmaxpool_sse2-no-sse3_standalone", -- ":f32-argmaxpool_x64_standalone", -- ":f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-avgpool_avx512f_standalone", -- ":f32-avgpool_sse2-no-sse3_standalone", -- ":f32-avgpool_x64_standalone", -- ":f32-conv-hwc2chw_sse-no-sse2_standalone", -- ":f32-conv-hwc2chw_x64_standalone", -- ":f32-dwconv2d-chw_sse-no-sse2_standalone", -- ":f32-dwconv2d-chw_ssse3-no-sse4.1_standalone", -- ":f32-dwconv2d-chw_x64_standalone", -- ":f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-dwconv_avx512f_standalone", -- ":f32-dwconv_f16c-fma-no-avx2_standalone", -- ":f32-dwconv_sse-no-sse2_standalone", -- ":f32-dwconv_x64_standalone", -- ":f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f32-f16-vcvt_f16c-no-avx2-no-fma_standalone", -- ":f32-f16-vcvt_sse2-no-sse3_standalone", -- ":f32-f16-vcvt_sse4.1-no-sse4.2_standalone", -- ":f32-f16-vcvt_x64_standalone", -- ":f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-gemm_avx512f_standalone", -- ":f32-gemm_f16c-fma-no-avx2_standalone", -- ":f32-gemm_sse-no-sse2_standalone", -- ":f32-gemm_x64_standalone", -- ":f32-ibilinear-chw_sse-no-sse2_standalone", -- ":f32-ibilinear-chw_x64_standalone", -- ":f32-ibilinear_sse-no-sse2_standalone", -- ":f32-ibilinear_x64_standalone", -- ":f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-igemm_avx512f_standalone", -- ":f32-igemm_f16c-fma-no-avx2_standalone", -- ":f32-igemm_sse-no-sse2_standalone", -- ":f32-igemm_x64_standalone", -- ":f32-maxpool_sse2-no-sse3_standalone", -- ":f32-maxpool_x64_standalone", -- ":f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-qc4w-gemm_f16c-fma-avx2_standalone", -- ":f32-qc4w-gemm_f16c-fma-no-avx2_standalone", -- ":f32-qc4w-gemm_sse4.1-no-sse4.2_standalone", -- ":f32-qc4w-gemm_x64_standalone", -- ":f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-qc8w-gemm_f16c-fma-avx2_standalone", -- ":f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f32-qc8w-gemm_f16c-fma-no-avx2_standalone", -- ":f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", -- ":f32-qc8w-gemm_x64_standalone", -- ":f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-qs8-vcvt_f16c-fma-avx2_standalone", -- ":f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f32-qs8-vcvt_sse2-no-sse3_standalone", -- ":f32-qs8-vcvt_sse4.1-no-sse4.2_standalone", -- ":f32-qs8-vcvt_x64_standalone", -- ":f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-qu8-vcvt_f16c-fma-avx2_standalone", -- ":f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f32-qu8-vcvt_sse2-no-sse3_standalone", -- ":f32-qu8-vcvt_x64_standalone", -- ":f32-raddstoreexpminusmax_avx512f_standalone", -- ":f32-raddstoreexpminusmax_f16c-fma-avx2_standalone", -- ":f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":f32-raddstoreexpminusmax_sse2-no-sse3_standalone", -- ":f32-raddstoreexpminusmax_x64_standalone", -- ":f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-rdminmax_avx512f_standalone", -- ":f32-rdminmax_sse2-no-sse3_standalone", -- ":f32-rdminmax_x64_standalone", -- ":f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-rdsum_avx512f_standalone", -- ":f32-rdsum_sse2-no-sse3_standalone", -- ":f32-rdsum_x64_standalone", -- ":f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-rminmax_avx512f_standalone", -- ":f32-rminmax_sse-no-sse2_standalone", -- ":f32-rminmax_x64_standalone", -- ":f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-rsum_avx512f_standalone", -- ":f32-rsum_sse2-no-sse3_standalone", -- ":f32-rsum_x64_standalone", -- ":f32-spmm_sse-no-sse2_standalone", -- ":f32-spmm_x64_standalone", -- ":f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vapproxgelu_avx512f_standalone", -- ":f32-vapproxgelu_f16c-fma-no-avx2_standalone", -- ":f32-vapproxgelu_sse2-no-sse3_standalone", -- ":f32-vapproxgelu_x64_standalone", -- ":f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vbinary_avx512f_standalone", -- ":f32-vbinary_sse-no-sse2_standalone", -- ":f32-vbinary_sse2-no-sse3_standalone", -- ":f32-vbinary_x64_standalone", -- ":f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vclamp_avx512f_standalone", -- ":f32-vclamp_sse2-no-sse3_standalone", -- ":f32-vclamp_x64_standalone", -- ":f32-vcmul_avx512f_standalone", -- ":f32-vcmul_f16c-fma-no-avx2_standalone", -- ":f32-vcmul_sse-no-sse2_standalone", -- ":f32-vcmul_x64_standalone", -- ":f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vcopysign_avx512f_standalone", -- ":f32-vcopysign_sse2-no-sse3_standalone", -- ":f32-vcopysign_x64_standalone", -- ":f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vcos_avx512f_standalone", -- ":f32-vcos_f16c-fma-no-avx2_standalone", -- ":f32-vcos_sse2-no-sse3_standalone", -- ":f32-vcos_x64_standalone", -- ":f32-velu_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-velu_avx512f_standalone", -- ":f32-velu_f16c-fma-avx2_standalone", -- ":f32-velu_sse2-no-sse3_standalone", -- ":f32-velu_x64_standalone", -- ":f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vexp_avx512f_standalone", -- ":f32-vexp_f16c-fma-no-avx2_standalone", -- ":f32-vexp_sse2-no-sse3_standalone", -- ":f32-vexp_x64_standalone", -- ":f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vgelu_avx512f_standalone", -- ":f32-vgelu_f16c-fma-no-avx2_standalone", -- ":f32-vgelu_sse2-no-sse3_standalone", -- ":f32-vgelu_x64_standalone", -- ":f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vhswish_avx512f_standalone", -- ":f32-vhswish_f16c-fma-no-avx2_standalone", -- ":f32-vhswish_sse2-no-sse3_standalone", -- ":f32-vhswish_x64_standalone", -- ":f32-vlog_avx512f_standalone", -- ":f32-vlog_f16c-fma-avx2_standalone", -- ":f32-vlog_f16c-fma-no-avx2_standalone", -- ":f32-vlog_sse2-no-sse3_standalone", -- ":f32-vlog_x64_standalone", -- ":f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vlrelu_avx512f_standalone", -- ":f32-vlrelu_sse-no-sse2_standalone", -- ":f32-vlrelu_sse4.1-no-sse4.2_standalone", -- ":f32-vlrelu_x64_standalone", -- ":f32-vmulcaddc_sse-no-sse2_standalone", -- ":f32-vmulcaddc_x64_standalone", -- ":f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vrnd_avx512f_standalone", -- ":f32-vrnd_sse2-no-sse3_standalone", -- ":f32-vrnd_sse4.1-no-sse4.2_standalone", -- ":f32-vrnd_x64_standalone", -- ":f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vrsqrt_avx512f_standalone", -- ":f32-vrsqrt_sse2-no-sse3_standalone", -- ":f32-vrsqrt_x64_standalone", -- ":f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vsigmoid_avx512f_standalone", -- ":f32-vsigmoid_f16c-fma-avx2_standalone", -- ":f32-vsigmoid_sse2-no-sse3_standalone", -- ":f32-vsigmoid_sse4.1-no-sse4.2_standalone", -- ":f32-vsigmoid_x64_standalone", -- ":f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vsin_avx512f_standalone", -- ":f32-vsin_f16c-fma-no-avx2_standalone", -- ":f32-vsin_sse2-no-sse3_standalone", -- ":f32-vsin_x64_standalone", -- ":f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vsqrt_avx512f_standalone", -- ":f32-vsqrt_sse2-no-sse3_standalone", -- ":f32-vsqrt_x64_standalone", -- ":f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vtanh_avx512f_standalone", -- ":f32-vtanh_f16c-fma-no-avx2_standalone", -- ":f32-vtanh_sse2-no-sse3_standalone", -- ":f32-vtanh_x64_standalone", -- ":f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone", -- ":f32-vunary_avx512f_standalone", -- ":f32-vunary_sse2-no-sse3_standalone", -- ":f32-vunary_x64_standalone", -- ":operators_x64_standalone", -- ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", -- ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", -- ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", -- ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", -- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", -- ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", -- ":qd8-f32-qb4w-gemm_x64_standalone", -- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", -- ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", -- ":qd8-f32-qc4w-gemm_x64_standalone", -- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", -- ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", -- ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", -- ":qd8-f32-qc8w-gemm_x64_standalone", -- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", -- ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", -- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", -- ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", -- ":qd8-f32-qc8w-igemm_x64_standalone", -- ":qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-dwconv_f16c-fma-avx2_standalone", -- ":qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-dwconv_sse2-no-sse3_standalone", -- ":qs8-dwconv_sse4.1-no-sse4.2_standalone", -- ":qs8-dwconv_x64_standalone", -- ":qs8-f16-vcvt_f16c-fma-avx2_standalone", -- ":qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-f32-vcvt_f16c-fma-avx2_standalone", -- ":qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-f32-vcvt_sse2-no-sse3_standalone", -- ":qs8-f32-vcvt_sse4.1-no-sse4.2_standalone", -- ":qs8-f32-vcvt_x64_standalone", -- ":qs8-packw_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-packw_f16c-fma-avx2_standalone", -- ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qs8-packw_x64_standalone", -- ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", -- ":qs8-qc4w-gemm_ssse3-no-sse4.1_standalone", -- ":qs8-qc4w-gemm_x64_standalone", -- ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc8w-dwconv_f16c-fma-avx2_standalone", -- ":qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-qc8w-dwconv_sse2-no-sse3_standalone", -- ":qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone", -- ":qs8-qc8w-dwconv_x64_standalone", -- ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", -- ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", -- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-qc8w-gemm_sse2-no-sse3_standalone", -- ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", -- ":qs8-qc8w-gemm_x64_standalone", -- ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", -- ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", -- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-qc8w-igemm_sse2-no-sse3_standalone", -- ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", -- ":qs8-qc8w-igemm_x64_standalone", -- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qs8-qu8-packw_x64_standalone", -- ":qs8-rdsum_f16c-fma-avx2_standalone", -- ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-rdsum_sse4.1-no-sse4.2_standalone", -- ":qs8-rdsum_x64_standalone", -- ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-rsum_f16c-fma-avx2_standalone", -- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-rsum_ssse3-no-sse4.1_standalone", -- ":qs8-rsum_x64_standalone", -- ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-vadd_f16c-fma-avx2_standalone", -- ":qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-vadd_sse2-no-sse3_standalone", -- ":qs8-vadd_sse4.1-no-sse4.2_standalone", -- ":qs8-vadd_x64_standalone", -- ":qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-vaddc_f16c-fma-avx2_standalone", -- ":qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qs8-vaddc_sse2-no-sse3_standalone", -- ":qs8-vaddc_sse4.1-no-sse4.2_standalone", -- ":qs8-vaddc_x64_standalone", -- ":qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-vcvt_f16c-fma-avx2_standalone", -- ":qs8-vcvt_sse2-no-sse3_standalone", -- ":qs8-vcvt_sse4.1-no-sse4.2_standalone", -- ":qs8-vcvt_ssse3-no-sse4.1_standalone", -- ":qs8-vcvt_x64_standalone", -- ":qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-vlrelu_f16c-fma-avx2_standalone", -- ":qs8-vlrelu_sse2-no-sse3_standalone", -- ":qs8-vlrelu_sse4.1-no-sse4.2_standalone", -- ":qs8-vlrelu_ssse3-no-sse4.1_standalone", -- ":qs8-vlrelu_x64_standalone", -- ":qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-vmul_sse2-no-sse3_standalone", -- ":qs8-vmul_sse4.1-no-sse4.2_standalone", -- ":qs8-vmul_x64_standalone", -- ":qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-vmulc_sse2-no-sse3_standalone", -- ":qs8-vmulc_sse4.1-no-sse4.2_standalone", -- ":qs8-vmulc_x64_standalone", -- ":qs8-vprelu_f16c-fma-avx2_standalone", -- ":qs8-vprelu_x64_standalone", -- ":qs8-vpreluc_f16c-fma-avx2_standalone", -- ":qs8-vpreluc_x64_standalone", -- ":qs8-vrpreluc_f16c-fma-avx2_standalone", -- ":qs8-vrpreluc_x64_standalone", -- ":qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-dwconv_f16c-fma-avx2_standalone", -- ":qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qu8-dwconv_sse2-no-sse3_standalone", -- ":qu8-dwconv_sse4.1-no-sse4.2_standalone", -- ":qu8-dwconv_x64_standalone", -- ":qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-f32-vcvt_f16c-fma-avx2_standalone", -- ":qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qu8-f32-vcvt_sse2-no-sse3_standalone", -- ":qu8-f32-vcvt_sse4.1-no-sse4.2_standalone", -- ":qu8-f32-vcvt_x64_standalone", -- ":qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-gemm_f16c-fma-avx2_standalone", -- ":qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qu8-gemm_sse2-no-sse3_standalone", -- ":qu8-gemm_sse4.1-no-sse4.2_standalone", -- ":qu8-gemm_x64_standalone", -- ":qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-igemm_f16c-fma-avx2_standalone", -- ":qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qu8-igemm_sse2-no-sse3_standalone", -- ":qu8-igemm_sse4.1-no-sse4.2_standalone", -- ":qu8-igemm_x64_standalone", -- ":qu8-rdsum_ssse3-no-sse4.1_standalone", -- ":qu8-rdsum_x64_standalone", -- ":qu8-rsum_f16c-fma-avx2_standalone", -- ":qu8-rsum_sse2-no-sse3_standalone", -- ":qu8-rsum_x64_standalone", -- ":qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-vadd_f16c-fma-avx2_standalone", -- ":qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qu8-vadd_sse2-no-sse3_standalone", -- ":qu8-vadd_sse4.1-no-sse4.2_standalone", -- ":qu8-vadd_x64_standalone", -- ":qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-vaddc_f16c-fma-avx2_standalone", -- ":qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qu8-vaddc_sse2-no-sse3_standalone", -- ":qu8-vaddc_sse4.1-no-sse4.2_standalone", -- ":qu8-vaddc_x64_standalone", -- ":qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-vcvt_f16c-fma-avx2_standalone", -- ":qu8-vcvt_sse2-no-sse3_standalone", -- ":qu8-vcvt_sse4.1-no-sse4.2_standalone", -- ":qu8-vcvt_ssse3-no-sse4.1_standalone", -- ":qu8-vcvt_x64_standalone", -- ":qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-vlrelu_f16c-fma-avx2_standalone", -- ":qu8-vlrelu_sse2-no-sse3_standalone", -- ":qu8-vlrelu_sse4.1-no-sse4.2_standalone", -- ":qu8-vlrelu_ssse3-no-sse4.1_standalone", -- ":qu8-vlrelu_x64_standalone", -- ":qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-vmul_sse2-no-sse3_standalone", -- ":qu8-vmul_sse4.1-no-sse4.2_standalone", -- ":qu8-vmul_x64_standalone", -- ":qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qu8-vmulc_sse2-no-sse3_standalone", -- ":qu8-vmulc_sse4.1-no-sse4.2_standalone", -- ":qu8-vmulc_x64_standalone", -- ":qu8-vprelu_f16c-fma-avx2_standalone", -- ":qu8-vprelu_x64_standalone", -- ":qu8-vpreluc_f16c-fma-avx2_standalone", -- ":qu8-vpreluc_x64_standalone", -- ":qu8-vrpreluc_f16c-fma-avx2_standalone", -- ":qu8-vrpreluc_x64_standalone", -- ":reference_x64_standalone", -- ":s8-ibilinear_sse2-no-sse3_standalone", -- ":s8-ibilinear_sse4.1-no-sse4.2_standalone", -- ":s8-ibilinear_x64_standalone", -- ":s8-maxpool_sse4.1-no-sse4.2_standalone", -- ":s8-maxpool_x64_standalone", -- ":s8-rdminmax_sse4.1-no-sse4.2_standalone", -- ":s8-rdminmax_x64_standalone", -- ":s8-rminmax_sse4.1-no-sse4.2_standalone", -- ":s8-rminmax_x64_standalone", -- ":s8-vclamp_f16c-fma-avx2_standalone", -- ":s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":s8-vclamp_sse2-no-sse3_standalone", -- ":s8-vclamp_sse4.1-no-sse4.2_standalone", -- ":s8-vclamp_x64_standalone", -- ":subgraph_x64_standalone", -- ":tables_x64_standalone", -- ":u8-ibilinear_sse2-no-sse3_standalone", -- ":u8-ibilinear_sse4.1-no-sse4.2_standalone", -- ":u8-ibilinear_x64_standalone", -- ":u8-lut32norm_x64_standalone", -- ":u8-maxpool_sse2-no-sse3_standalone", -- ":u8-maxpool_x64_standalone", -- ":u8-rdminmax_sse2-no-sse3_standalone", -- ":u8-rdminmax_x64_standalone", -- ":u8-rminmax_sse2-no-sse3_standalone", -- ":u8-rminmax_x64_standalone", -- ":u8-vclamp_f16c-fma-avx2_standalone", -- ":u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":u8-vclamp_sse2-no-sse3_standalone", -- ":u8-vclamp_x64_standalone", -- ":x16-packw_f16c-fma-avx2_standalone", -- ":x16-transposec_f16c-fma-avx2_standalone", -- ":x16-transposec_sse2-no-sse3_standalone", -- ":x16-transposec_x64_standalone", -- ":x16-x32-packw_x64_standalone", -- ":x24-transposec_ssse3-no-sse4.1_standalone", -- ":x24-transposec_x64_standalone", -- ":x32-packw_avx-no-avx2-no-f16c-no-fma_standalone", -- ":x32-packw_avx512f_standalone", -- ":x32-packw_sse2-no-sse3_standalone", -- ":x32-packw_x64_standalone", -- ":x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone", -- ":x32-transposec_sse-no-sse2_standalone", -- ":x32-transposec_x64_standalone", -- ":x32-unpool_sse2-no-sse3_standalone", -- ":x32-unpool_x64_standalone", -- ":x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone", -- ":x64-transposec_sse2-no-sse3_standalone", -- ":x64-transposec_x64_standalone", -- ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", -- ":x8-lut_f16c-fma-avx2_standalone", -- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", -- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":x8-lut_x64_standalone", -- ":x8-packq_x64_standalone", -- ":x8-packw_x64_standalone", -- ":x8-transposec_f16c-fma-avx2_standalone", -- ":x8-transposec_sse2-no-sse3_standalone", -- ":x8-transposec_x64_standalone", -- ":xx-copy_x64_standalone", -- ":xx-fill_sse2-no-sse3_standalone", -- ":xx-fill_x64_standalone", -- ":xx-pad_sse2-no-sse3_standalone", -- ":xx-pad_x64_standalone", -- ":xx-transposev_x64_standalone", ++ ] ++ } ++ ++ if (build_with_internal_optimization_guide) { ++ xnnpack_standalone_deps = [ + ":configs_x64_standalone", + ":enums_x64_standalone", + ":f16-avgpool_f16c-no-avx2-no-fma_standalone", @@ -552,8 +561,12 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f16-f32-vcvt_x64_standalone", + ":f16-f32acc-gemm_f16c-fma-avx2_standalone", + ":f16-f32acc-igemm_f16c-fma-avx2_standalone", ++ ":f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-f32acc-rdsum2_f16c-no-avx2-no-fma_standalone", + ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone", ++ ":f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":f16-f32acc-rsum2_f16c-no-avx2-no-fma_standalone", + ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone", + ":f16-ibilinear_f16c-fma-no-avx2_standalone", @@ -656,6 +669,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f32-rdminmax_avx512f_standalone", + ":f32-rdminmax_sse2-no-sse3_standalone", + ":f32-rdminmax_x64_standalone", ++ ":f32-rdsum2_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-rdsum2_avx512f_standalone", ++ ":f32-rdsum2_sse2-no-sse3_standalone", ++ ":f32-rdsum2_x64_standalone", + ":f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone", + ":f32-rdsum_avx512f_standalone", + ":f32-rdsum_sse2-no-sse3_standalone", @@ -664,6 +681,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f32-rminmax_avx512f_standalone", + ":f32-rminmax_sse-no-sse2_standalone", + ":f32-rminmax_x64_standalone", ++ ":f32-rsum2_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":f32-rsum2_avx512f_standalone", ++ ":f32-rsum2_sse2-no-sse3_standalone", ++ ":f32-rsum2_x64_standalone", + ":f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone", + ":f32-rsum_avx512f_standalone", + ":f32-rsum_sse2-no-sse3_standalone", @@ -828,7 +849,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-packw_x64_standalone", + ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", ++ ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", + ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", ++ ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", ++ ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-qc4w-gemm_ssse3-no-sse4.1_standalone", + ":qs8-qc4w-gemm_x64_standalone", + ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", @@ -1041,238 +1065,1267 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":xx-pad_sse2-no-sse3_standalone", + ":xx-pad_x64_standalone", + ":xx-transposev_x64_standalone" - ] - } --} else if (current_cpu == "arm64") { ++ ] ++ } +} else +if (current_cpu == "arm64") { + - xnnpack_deps = [ - ":configs_arm64", - ":enums_arm64", -@@ -1269,227 +1273,229 @@ if (current_cpu == "x64" || current_cpu - ":xx-copy_arm64", - ":xx-fill_arm64", - ":xx-pad_arm64", -- ":xx-transposev_arm64", + if (build_with_chromium) { + xnnpack_deps = [ +- ":configs_x64", +- ":enums_x64", +- ":f16-avgpool_f16c-no-avx2-no-fma", +- ":f16-dwconv_f16c-fma-no-avx2", +- ":f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f16-f32-vcvt_f16c-no-avx2-no-fma", +- ":f16-f32-vcvt_sse2-no-sse3", +- ":f16-f32-vcvt_sse4.1-no-sse4.2", +- ":f16-f32-vcvt_x64", +- ":f16-f32acc-gemm_f16c-fma-avx2", +- ":f16-f32acc-igemm_f16c-fma-avx2", +- ":f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f16-f32acc-rdsum2_f16c-no-avx2-no-fma", +- ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f16-f32acc-rdsum_f16c-no-avx2-no-fma", +- ":f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f16-f32acc-rsum2_f16c-no-avx2-no-fma", +- ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f16-f32acc-rsum_f16c-no-avx2-no-fma", +- ":f16-ibilinear_f16c-fma-no-avx2", +- ":f16-maxpool_f16c-fma-avx2", +- ":f16-maxpool_sse4.1-no-sse4.2", +- ":f16-qs8-vcvt_x64", +- ":f16-qu8-vcvt_x64", +- ":f16-raddstoreexpminusmax_f16c-fma-avx2", +- ":f16-rdminmax_x64", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16", +- ":f16-rminmax_f16c-no-avx2-no-fma", +- ":f16-rminmax_x64", +- ":f16-vapproxgelu_x64", +- ":f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16", +- ":f16-vbinary_f16c-no-avx2-no-fma", +- ":f16-vclamp_f16c-no-avx2-no-fma", +- ":f16-vcos_x64", +- ":f16-velu_f16c-fma-avx2", +- ":f16-vexp_x64", +- ":f16-vgelu_x64", +- ":f16-vhswish_f16c-no-avx2-no-fma", +- ":f16-vlrelu_f16c-no-avx2-no-fma", +- ":f16-vmulcaddc_f16c-fma-no-avx2", +- ":f16-vrnd_f16c-no-avx2-no-fma", +- ":f16-vrsqrt_f16c-no-avx2-no-fma", +- ":f16-vsigmoid_f16c-fma-avx2", +- ":f16-vsin_x64", +- ":f16-vsqrt_f16c-no-avx2-no-fma", +- ":f16-vtanh_f16c-fma-no-avx2", +- ":f16-vtanh_f16c-no-avx2-no-fma", +- ":f16-vunary_f16c-no-avx2-no-fma", +- ":f16-vunary_sse2-no-sse3", +- ":f32-argmaxpool_sse2-no-sse3", +- ":f32-argmaxpool_x64", +- ":f32-avgpool_avx-no-avx2-no-f16c-no-fma", +- ":f32-avgpool_avx512f", +- ":f32-avgpool_sse2-no-sse3", +- ":f32-avgpool_x64", +- ":f32-conv-hwc2chw_sse-no-sse2", +- ":f32-conv-hwc2chw_x64", +- ":f32-dwconv2d-chw_sse-no-sse2", +- ":f32-dwconv2d-chw_ssse3-no-sse4.1", +- ":f32-dwconv2d-chw_x64", +- ":f32-dwconv_avx-no-avx2-no-f16c-no-fma", +- ":f32-dwconv_avx512f", +- ":f32-dwconv_f16c-fma-no-avx2", +- ":f32-dwconv_sse-no-sse2", +- ":f32-dwconv_x64", +- ":f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f32-f16-vcvt_f16c-no-avx2-no-fma", +- ":f32-f16-vcvt_sse2-no-sse3", +- ":f32-f16-vcvt_sse4.1-no-sse4.2", +- ":f32-f16-vcvt_x64", +- ":f32-gemm_avx-no-avx2-no-f16c-no-fma", +- ":f32-gemm_avx512f", +- ":f32-gemm_f16c-fma-no-avx2", +- ":f32-gemm_sse-no-sse2", +- ":f32-gemm_x64", +- ":f32-ibilinear-chw_sse-no-sse2", +- ":f32-ibilinear-chw_x64", +- ":f32-ibilinear_sse-no-sse2", +- ":f32-ibilinear_x64", +- ":f32-igemm_avx-no-avx2-no-f16c-no-fma", +- ":f32-igemm_avx512f", +- ":f32-igemm_f16c-fma-no-avx2", +- ":f32-igemm_sse-no-sse2", +- ":f32-igemm_x64", +- ":f32-maxpool_sse2-no-sse3", +- ":f32-maxpool_x64", +- ":f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma", +- ":f32-qc4w-gemm_f16c-fma-avx2", +- ":f32-qc4w-gemm_f16c-fma-no-avx2", +- ":f32-qc4w-gemm_sse4.1-no-sse4.2", +- ":f32-qc4w-gemm_x64", +- ":f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma", +- ":f32-qc8w-gemm_f16c-fma-avx2", +- ":f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f32-qc8w-gemm_f16c-fma-no-avx2", +- ":f32-qc8w-gemm_sse4.1-no-sse4.2", +- ":f32-qc8w-gemm_x64", +- ":f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":f32-qs8-vcvt_f16c-fma-avx2", +- ":f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f32-qs8-vcvt_sse2-no-sse3", +- ":f32-qs8-vcvt_sse4.1-no-sse4.2", +- ":f32-qs8-vcvt_x64", +- ":f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":f32-qu8-vcvt_f16c-fma-avx2", +- ":f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f32-qu8-vcvt_sse2-no-sse3", +- ":f32-qu8-vcvt_x64", +- ":f32-raddstoreexpminusmax_avx512f", +- ":f32-raddstoreexpminusmax_f16c-fma-avx2", +- ":f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":f32-raddstoreexpminusmax_sse2-no-sse3", +- ":f32-raddstoreexpminusmax_x64", +- ":f32-rdminmax_avx-no-avx2-no-f16c-no-fma", +- ":f32-rdminmax_avx512f", +- ":f32-rdminmax_sse2-no-sse3", +- ":f32-rdminmax_x64", +- ":f32-rdsum2_avx-no-avx2-no-f16c-no-fma", +- ":f32-rdsum2_avx512f", +- ":f32-rdsum2_sse2-no-sse3", +- ":f32-rdsum2_x64", +- ":f32-rdsum_avx-no-avx2-no-f16c-no-fma", +- ":f32-rdsum_avx512f", +- ":f32-rdsum_sse2-no-sse3", +- ":f32-rdsum_x64", +- ":f32-rminmax_avx-no-avx2-no-f16c-no-fma", +- ":f32-rminmax_avx512f", +- ":f32-rminmax_sse-no-sse2", +- ":f32-rminmax_x64", +- ":f32-rsum2_avx-no-avx2-no-f16c-no-fma", +- ":f32-rsum2_avx512f", +- ":f32-rsum2_sse2-no-sse3", +- ":f32-rsum2_x64", +- ":f32-rsum_avx-no-avx2-no-f16c-no-fma", +- ":f32-rsum_avx512f", +- ":f32-rsum_sse2-no-sse3", +- ":f32-rsum_x64", +- ":f32-spmm_sse-no-sse2", +- ":f32-spmm_x64", +- ":f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma", +- ":f32-vapproxgelu_avx512f", +- ":f32-vapproxgelu_f16c-fma-no-avx2", +- ":f32-vapproxgelu_sse2-no-sse3", +- ":f32-vapproxgelu_x64", +- ":f32-vbinary_avx-no-avx2-no-f16c-no-fma", +- ":f32-vbinary_avx512f", +- ":f32-vbinary_sse-no-sse2", +- ":f32-vbinary_sse2-no-sse3", +- ":f32-vbinary_x64", +- ":f32-vclamp_avx-no-avx2-no-f16c-no-fma", +- ":f32-vclamp_avx512f", +- ":f32-vclamp_sse2-no-sse3", +- ":f32-vclamp_x64", +- ":f32-vcmul_avx512f", +- ":f32-vcmul_f16c-fma-no-avx2", +- ":f32-vcmul_sse-no-sse2", +- ":f32-vcmul_x64", +- ":f32-vcopysign_avx-no-avx2-no-f16c-no-fma", +- ":f32-vcopysign_avx512f", +- ":f32-vcopysign_sse2-no-sse3", +- ":f32-vcopysign_x64", +- ":f32-vcos_avx-no-avx2-no-f16c-no-fma", +- ":f32-vcos_avx512f", +- ":f32-vcos_f16c-fma-no-avx2", +- ":f32-vcos_sse2-no-sse3", +- ":f32-vcos_x64", +- ":f32-velu_avx-no-avx2-no-f16c-no-fma", +- ":f32-velu_avx512f", +- ":f32-velu_f16c-fma-avx2", +- ":f32-velu_sse2-no-sse3", +- ":f32-velu_x64", +- ":f32-vexp_avx-no-avx2-no-f16c-no-fma", +- ":f32-vexp_avx512f", +- ":f32-vexp_f16c-fma-no-avx2", +- ":f32-vexp_sse2-no-sse3", +- ":f32-vexp_x64", +- ":f32-vgelu_avx-no-avx2-no-f16c-no-fma", +- ":f32-vgelu_avx512f", +- ":f32-vgelu_f16c-fma-no-avx2", +- ":f32-vgelu_sse2-no-sse3", +- ":f32-vgelu_x64", +- ":f32-vhswish_avx-no-avx2-no-f16c-no-fma", +- ":f32-vhswish_avx512f", +- ":f32-vhswish_f16c-fma-no-avx2", +- ":f32-vhswish_sse2-no-sse3", +- ":f32-vhswish_x64", +- ":f32-vlog_avx512f", +- ":f32-vlog_f16c-fma-avx2", +- ":f32-vlog_f16c-fma-no-avx2", +- ":f32-vlog_sse2-no-sse3", +- ":f32-vlog_x64", +- ":f32-vlrelu_avx-no-avx2-no-f16c-no-fma", +- ":f32-vlrelu_avx512f", +- ":f32-vlrelu_sse-no-sse2", +- ":f32-vlrelu_sse4.1-no-sse4.2", +- ":f32-vlrelu_x64", +- ":f32-vmulcaddc_sse-no-sse2", +- ":f32-vmulcaddc_x64", +- ":f32-vrnd_avx-no-avx2-no-f16c-no-fma", +- ":f32-vrnd_avx512f", +- ":f32-vrnd_sse2-no-sse3", +- ":f32-vrnd_sse4.1-no-sse4.2", +- ":f32-vrnd_x64", +- ":f32-vrsqrt_avx-no-avx2-no-f16c-no-fma", +- ":f32-vrsqrt_avx512f", +- ":f32-vrsqrt_sse2-no-sse3", +- ":f32-vrsqrt_x64", +- ":f32-vsigmoid_avx-no-avx2-no-f16c-no-fma", +- ":f32-vsigmoid_avx512f", +- ":f32-vsigmoid_f16c-fma-avx2", +- ":f32-vsigmoid_sse2-no-sse3", +- ":f32-vsigmoid_sse4.1-no-sse4.2", +- ":f32-vsigmoid_x64", +- ":f32-vsin_avx-no-avx2-no-f16c-no-fma", +- ":f32-vsin_avx512f", +- ":f32-vsin_f16c-fma-no-avx2", +- ":f32-vsin_sse2-no-sse3", +- ":f32-vsin_x64", +- ":f32-vsqrt_avx-no-avx2-no-f16c-no-fma", +- ":f32-vsqrt_avx512f", +- ":f32-vsqrt_sse2-no-sse3", +- ":f32-vsqrt_x64", +- ":f32-vtanh_avx-no-avx2-no-f16c-no-fma", +- ":f32-vtanh_avx512f", +- ":f32-vtanh_f16c-fma-no-avx2", +- ":f32-vtanh_sse2-no-sse3", +- ":f32-vtanh_x64", +- ":f32-vunary_avx-no-avx2-no-f16c-no-fma", +- ":f32-vunary_avx512f", +- ":f32-vunary_sse2-no-sse3", +- ":f32-vunary_x64", +- ":operators_x64", +- ":qd8-f16-qb4w-gemm_f16c-fma-avx2", +- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx2", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx2", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx2", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx2", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni", +- ":qd8-f32-qb4w-gemm_sse2-no-sse3", +- ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2", +- ":qd8-f32-qb4w-gemm_x64", +- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx2", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qd8-f32-qc4w-gemm_sse2-no-sse3", +- ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1", +- ":qd8-f32-qc4w-gemm_x64", +- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx2", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qd8-f32-qc8w-gemm_sse2-no-sse3", +- ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2", +- ":qd8-f32-qc8w-gemm_x64", +- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx2", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qd8-f32-qc8w-igemm_sse2-no-sse3", +- ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2", +- ":qd8-f32-qc8w-igemm_x64", +- ":qs8-dwconv_avx-no-avx2-no-f16c-no-fma", +- ":qs8-dwconv_f16c-fma-avx2", +- ":qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-dwconv_sse2-no-sse3", +- ":qs8-dwconv_sse4.1-no-sse4.2", +- ":qs8-dwconv_x64", +- ":qs8-f16-vcvt_f16c-fma-avx2", +- ":qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":qs8-f32-vcvt_f16c-fma-avx2", +- ":qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-f32-vcvt_sse2-no-sse3", +- ":qs8-f32-vcvt_sse4.1-no-sse4.2", +- ":qs8-f32-vcvt_x64", +- ":qs8-packw_avx2-avxvnni-f16c-fma", +- ":qs8-packw_f16c-fma-avx2", +- ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qs8-packw_x64", +- ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma", +- ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma", +- ":qs8-qc4w-gemm_f16c-fma-avx2", +- ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qs8-qc4w-gemm_ssse3-no-sse4.1", +- ":qs8-qc4w-gemm_x64", +- ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma", +- ":qs8-qc8w-dwconv_f16c-fma-avx2", +- ":qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-qc8w-dwconv_sse2-no-sse3", +- ":qs8-qc8w-dwconv_sse4.1-no-sse4.2", +- ":qs8-qc8w-dwconv_x64", +- ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma", +- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma", +- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma", +- ":qs8-qc8w-gemm_f16c-fma-avx2", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qs8-qc8w-gemm_sse2-no-sse3", +- ":qs8-qc8w-gemm_sse4.1-no-sse4.2", +- ":qs8-qc8w-gemm_x64", +- ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma", +- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma", +- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma", +- ":qs8-qc8w-igemm_f16c-fma-avx2", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", +- ":qs8-qc8w-igemm_sse2-no-sse3", +- ":qs8-qc8w-igemm_sse4.1-no-sse4.2", +- ":qs8-qc8w-igemm_x64", +- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma", +- ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qs8-qu8-packw_x64", +- ":qs8-rdsum_f16c-fma-avx2", +- ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-rdsum_sse4.1-no-sse4.2", +- ":qs8-rdsum_x64", +- ":qs8-rsum_avx2-avxvnni-f16c-fma", +- ":qs8-rsum_f16c-fma-avx2", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", +- ":qs8-rsum_ssse3-no-sse4.1", +- ":qs8-rsum_x64", +- ":qs8-vadd_avx-no-avx2-no-f16c-no-fma", +- ":qs8-vadd_f16c-fma-avx2", +- ":qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-vadd_sse2-no-sse3", +- ":qs8-vadd_sse4.1-no-sse4.2", +- ":qs8-vadd_x64", +- ":qs8-vaddc_avx-no-avx2-no-f16c-no-fma", +- ":qs8-vaddc_f16c-fma-avx2", +- ":qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qs8-vaddc_sse2-no-sse3", +- ":qs8-vaddc_sse4.1-no-sse4.2", +- ":qs8-vaddc_x64", +- ":qs8-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":qs8-vcvt_f16c-fma-avx2", +- ":qs8-vcvt_sse2-no-sse3", +- ":qs8-vcvt_sse4.1-no-sse4.2", +- ":qs8-vcvt_ssse3-no-sse4.1", +- ":qs8-vcvt_x64", +- ":qs8-vlrelu_avx-no-avx2-no-f16c-no-fma", +- ":qs8-vlrelu_f16c-fma-avx2", +- ":qs8-vlrelu_sse2-no-sse3", +- ":qs8-vlrelu_sse4.1-no-sse4.2", +- ":qs8-vlrelu_ssse3-no-sse4.1", +- ":qs8-vlrelu_x64", +- ":qs8-vmul_avx-no-avx2-no-f16c-no-fma", +- ":qs8-vmul_sse2-no-sse3", +- ":qs8-vmul_sse4.1-no-sse4.2", +- ":qs8-vmul_x64", +- ":qs8-vmulc_avx-no-avx2-no-f16c-no-fma", +- ":qs8-vmulc_sse2-no-sse3", +- ":qs8-vmulc_sse4.1-no-sse4.2", +- ":qs8-vmulc_x64", +- ":qs8-vprelu_f16c-fma-avx2", +- ":qs8-vprelu_x64", +- ":qs8-vpreluc_f16c-fma-avx2", +- ":qs8-vpreluc_x64", +- ":qs8-vrpreluc_f16c-fma-avx2", +- ":qs8-vrpreluc_x64", +- ":qu8-dwconv_avx-no-avx2-no-f16c-no-fma", +- ":qu8-dwconv_f16c-fma-avx2", +- ":qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qu8-dwconv_sse2-no-sse3", +- ":qu8-dwconv_sse4.1-no-sse4.2", +- ":qu8-dwconv_x64", +- ":qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":qu8-f32-vcvt_f16c-fma-avx2", +- ":qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qu8-f32-vcvt_sse2-no-sse3", +- ":qu8-f32-vcvt_sse4.1-no-sse4.2", +- ":qu8-f32-vcvt_x64", +- ":qu8-gemm_avx-no-avx2-no-f16c-no-fma", +- ":qu8-gemm_f16c-fma-avx2", +- ":qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qu8-gemm_sse2-no-sse3", +- ":qu8-gemm_sse4.1-no-sse4.2", +- ":qu8-gemm_x64", +- ":qu8-igemm_avx-no-avx2-no-f16c-no-fma", +- ":qu8-igemm_f16c-fma-avx2", +- ":qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qu8-igemm_sse2-no-sse3", +- ":qu8-igemm_sse4.1-no-sse4.2", +- ":qu8-igemm_x64", +- ":qu8-rdsum_ssse3-no-sse4.1", +- ":qu8-rdsum_x64", +- ":qu8-rsum_f16c-fma-avx2", +- ":qu8-rsum_sse2-no-sse3", +- ":qu8-rsum_x64", +- ":qu8-vadd_avx-no-avx2-no-f16c-no-fma", +- ":qu8-vadd_f16c-fma-avx2", +- ":qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qu8-vadd_sse2-no-sse3", +- ":qu8-vadd_sse4.1-no-sse4.2", +- ":qu8-vadd_x64", +- ":qu8-vaddc_avx-no-avx2-no-f16c-no-fma", +- ":qu8-vaddc_f16c-fma-avx2", +- ":qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":qu8-vaddc_sse2-no-sse3", +- ":qu8-vaddc_sse4.1-no-sse4.2", +- ":qu8-vaddc_x64", +- ":qu8-vcvt_avx-no-avx2-no-f16c-no-fma", +- ":qu8-vcvt_f16c-fma-avx2", +- ":qu8-vcvt_sse2-no-sse3", +- ":qu8-vcvt_sse4.1-no-sse4.2", +- ":qu8-vcvt_ssse3-no-sse4.1", +- ":qu8-vcvt_x64", +- ":qu8-vlrelu_avx-no-avx2-no-f16c-no-fma", +- ":qu8-vlrelu_f16c-fma-avx2", +- ":qu8-vlrelu_sse2-no-sse3", +- ":qu8-vlrelu_sse4.1-no-sse4.2", +- ":qu8-vlrelu_ssse3-no-sse4.1", +- ":qu8-vlrelu_x64", +- ":qu8-vmul_avx-no-avx2-no-f16c-no-fma", +- ":qu8-vmul_sse2-no-sse3", +- ":qu8-vmul_sse4.1-no-sse4.2", +- ":qu8-vmul_x64", +- ":qu8-vmulc_avx-no-avx2-no-f16c-no-fma", +- ":qu8-vmulc_sse2-no-sse3", +- ":qu8-vmulc_sse4.1-no-sse4.2", +- ":qu8-vmulc_x64", +- ":qu8-vprelu_f16c-fma-avx2", +- ":qu8-vprelu_x64", +- ":qu8-vpreluc_f16c-fma-avx2", +- ":qu8-vpreluc_x64", +- ":qu8-vrpreluc_f16c-fma-avx2", +- ":qu8-vrpreluc_x64", +- ":reference_x64", +- ":s8-ibilinear_sse2-no-sse3", +- ":s8-ibilinear_sse4.1-no-sse4.2", +- ":s8-ibilinear_x64", +- ":s8-maxpool_sse4.1-no-sse4.2", +- ":s8-maxpool_x64", +- ":s8-rdminmax_sse4.1-no-sse4.2", +- ":s8-rdminmax_x64", +- ":s8-rminmax_sse4.1-no-sse4.2", +- ":s8-rminmax_x64", +- ":s8-vclamp_f16c-fma-avx2", +- ":s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":s8-vclamp_sse2-no-sse3", +- ":s8-vclamp_sse4.1-no-sse4.2", +- ":s8-vclamp_x64", +- ":subgraph_x64", +- ":tables_x64", +- ":u8-ibilinear_sse2-no-sse3", +- ":u8-ibilinear_sse4.1-no-sse4.2", +- ":u8-ibilinear_x64", +- ":u8-lut32norm_x64", +- ":u8-maxpool_sse2-no-sse3", +- ":u8-maxpool_x64", +- ":u8-rdminmax_sse2-no-sse3", +- ":u8-rdminmax_x64", +- ":u8-rminmax_sse2-no-sse3", +- ":u8-rminmax_x64", +- ":u8-vclamp_f16c-fma-avx2", +- ":u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":u8-vclamp_sse2-no-sse3", +- ":u8-vclamp_x64", +- ":x16-packw_f16c-fma-avx2", +- ":x16-transposec_f16c-fma-avx2", +- ":x16-transposec_sse2-no-sse3", +- ":x16-transposec_x64", +- ":x16-x32-packw_x64", +- ":x24-transposec_ssse3-no-sse4.1", +- ":x24-transposec_x64", +- ":x32-packw_avx-no-avx2-no-f16c-no-fma", +- ":x32-packw_avx512f", +- ":x32-packw_sse2-no-sse3", +- ":x32-packw_x64", +- ":x32-transposec_avx-no-avx2-no-f16c-no-fma", +- ":x32-transposec_sse-no-sse2", +- ":x32-transposec_x64", +- ":x32-unpool_sse2-no-sse3", +- ":x32-unpool_x64", +- ":x64-transposec_avx-no-avx2-no-f16c-no-fma", +- ":x64-transposec_sse2-no-sse3", +- ":x64-transposec_x64", +- ":x8-lut_avx-no-avx2-no-f16c-no-fma", +- ":x8-lut_f16c-fma-avx2", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi", +- ":x8-lut_x64", +- ":x8-packq_x64", +- ":x8-packw_x64", +- ":x8-transposec_f16c-fma-avx2", +- ":x8-transposec_sse2-no-sse3", +- ":x8-transposec_x64", +- ":xx-copy_x64", +- ":xx-fill_sse2-no-sse3", +- ":xx-fill_x64", +- ":xx-pad_sse2-no-sse3", +- ":xx-pad_x64", +- ":xx-transposev_x64", ++ ":configs_arm64", ++ ":enums_arm64", ++ ":f16-avgpool_arch=armv8.2-a+fp16", ++ ":f16-conv-hwc2chw_arch=armv8.2-a+fp16", ++ ":f16-dwconv2d-chw_arch=armv8.2-a+fp16", ++ ":f16-dwconv_arch=armv8.2-a+fp16", ++ ":f16-f32-vcvt_arm64", ++ ":f16-f32acc-rdsum2_arch=armv8.2-a+fp16", ++ ":f16-f32acc-rdsum_arch=armv8.2-a+fp16", ++ ":f16-f32acc-rsum2_arch=armv8.2-a+fp16", ++ ":f16-f32acc-rsum_arch=armv8.2-a+fp16", ++ ":f16-gemm_arch=armv8.2-a+fp16", ++ ":f16-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":f16-ibilinear-chw_arch=armv8.2-a+fp16", ++ ":f16-ibilinear_arch=armv8.2-a+fp16", ++ ":f16-igemm_arch=armv8.2-a+fp16", ++ ":f16-igemm_arch=armv8.2-a+fp16+dotprod", ++ ":f16-maxpool_arch=armv8.2-a+fp16", ++ ":f16-qs8-vcvt_arch=armv8.2-a+fp16", ++ ":f16-qs8-vcvt_arm64", ++ ":f16-qu8-vcvt_arm64", ++ ":f16-raddstoreexpminusmax_arch=armv8.2-a+fp16", ++ ":f16-rdminmax_arch=armv8.2-a+fp16", ++ ":f16-rdminmax_arm64", ++ ":f16-rminmax_arch=armv8.2-a+fp16", ++ ":f16-rminmax_arm64", ++ ":f16-spmm_arch=armv8.2-a+fp16", ++ ":f16-vapproxgelu_arch=armv8.2-a+fp16", ++ ":f16-vapproxgelu_arm64", ++ ":f16-vbinary_arch=armv8.2-a+fp16", ++ ":f16-vclamp_arch=armv8.2-a+fp16", ++ ":f16-vcmul_arch=armv8.2-a+fp16", ++ ":f16-vcos_arch=armv8.2-a+fp16", ++ ":f16-vcos_arm64", ++ ":f16-velu_arch=armv8.2-a+fp16", ++ ":f16-vexp_arch=armv8.2-a+fp16", ++ ":f16-vexp_arm64", ++ ":f16-vgelu_arch=armv8.2-a+fp16", ++ ":f16-vgelu_arm64", ++ ":f16-vhswish_arch=armv8.2-a+fp16", ++ ":f16-vlrelu_arch=armv8.2-a+fp16", ++ ":f16-vmulcaddc_arch=armv8.2-a+fp16", ++ ":f16-vrnd_arch=armv8.2-a+fp16", ++ ":f16-vrsqrt_arch=armv8.2-a+fp16", ++ ":f16-vsigmoid_arch=armv8.2-a+fp16", ++ ":f16-vsin_arch=armv8.2-a+fp16", ++ ":f16-vsin_arm64", ++ ":f16-vsqrt_arch=armv8.2-a+fp16", ++ ":f16-vtanh_arch=armv8.2-a+fp16", ++ ":f16-vunary_arch=armv8.2-a+fp16", ++ ":f32-argmaxpool_arm64", ++ ":f32-avgpool_arm64", ++ ":f32-conv-hwc2chw_arm64", ++ ":f32-dwconv2d-chw_arm64", ++ ":f32-dwconv_arch=armv8.2-a+fp16+dotprod", ++ ":f32-dwconv_arm64", ++ ":f32-f16-vcvt_arm64", ++ ":f32-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":f32-gemm_arm64", ++ ":f32-ibilinear-chw_arm64", ++ ":f32-ibilinear_arm64", ++ ":f32-igemm_arch=armv8.2-a+fp16+dotprod", ++ ":f32-igemm_arm64", ++ ":f32-maxpool_arm64", ++ ":f32-qc4w-gemm_arm64", ++ ":f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":f32-qc8w-gemm_arm64", ++ ":f32-qs8-vcvt_arm64", ++ ":f32-qu8-vcvt_arm64", ++ ":f32-raddstoreexpminusmax_arm64", ++ ":f32-rdminmax_arm64", ++ ":f32-rdsum2_arm64", ++ ":f32-rdsum_arm64", ++ ":f32-rminmax_arm64", ++ ":f32-rsum2_arm64", ++ ":f32-rsum_arm64", ++ ":f32-spmm_arm64", ++ ":f32-vapproxgelu_arm64", ++ ":f32-vbinary_arm64", ++ ":f32-vclamp_arm64", ++ ":f32-vcmul_arm64", ++ ":f32-vcopysign_arm64", ++ ":f32-vcos_arm64", ++ ":f32-velu_arm64", ++ ":f32-vexp_arm64", ++ ":f32-vgelu_arm64", ++ ":f32-vhswish_arm64", ++ ":f32-vlog_arm64", ++ ":f32-vlrelu_arm64", ++ ":f32-vmulcaddc_arm64", ++ ":f32-vrnd_arm64", ++ ":f32-vrsqrt_arm64", ++ ":f32-vsigmoid_arm64", ++ ":f32-vsin_arm64", ++ ":f32-vsqrt_arm64", ++ ":f32-vtanh_arm64", ++ ":f32-vunary_arm64", ++ ":operators_arm64", ++ ":pf16-gemm_arch=armv8.2-a+sve+sve2", ++ ":pf32-gemm_arch=armv8.2-a+sve+sve2", ++ ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2", ++ ":pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2", ++ ":qb4-packw_arch=armv8.2-a+dotprod", ++ ":qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16", ++ ":qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16", ++ ":qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16", ++ ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16", ++ ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod", ++ ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", ++ ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f32-qb4w-gemm_arm64", ++ ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", ++ ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f32-qc4w-gemm_arm64", ++ ":qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod", ++ ":qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f32-qc8w-gemm_arm64", ++ ":qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod", ++ ":qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod", ++ ":qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16", ++ ":qd8-f32-qc8w-igemm_arm64", ++ ":qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", ++ ":qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", ++ ":qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2", ++ ":qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod", ++ ":qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2", ++ ":qs8-dwconv_arm64", ++ ":qs8-f16-vcvt_arch=armv8.2-a+fp16", ++ ":qs8-f32-vcvt_arm64", ++ ":qs8-packw_arm64", ++ ":qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":qs8-qc4w-gemm_arm64", ++ ":qs8-qc8w-dwconv_arm64", ++ ":qs8-qc8w-gemm_arch=armv8.2-a+dotprod", ++ ":qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", ++ ":qs8-qc8w-gemm_arm64", ++ ":qs8-qc8w-igemm_arch=armv8.2-a+dotprod", ++ ":qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod", ++ ":qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16", ++ ":qs8-qc8w-igemm_arm64", ++ ":qs8-qu8-packw_arm64", ++ ":qs8-rdsum_arm64", ++ ":qs8-rsum_arch=armv8.2-a+dotprod", ++ ":qs8-rsum_arm64", ++ ":qs8-vadd_arm64", ++ ":qs8-vaddc_arm64", ++ ":qs8-vcvt_arm64", ++ ":qs8-vlrelu_arm64", ++ ":qs8-vmul_arm64", ++ ":qs8-vmulc_arm64", ++ ":qs8-vprelu_arm64", ++ ":qs8-vpreluc_arm64", ++ ":qs8-vrpreluc_arm64", ++ ":qu8-dwconv_arm64", ++ ":qu8-f32-vcvt_arm64", ++ ":qu8-gemm_arch=armv8.2-a+fp16+dotprod", ++ ":qu8-gemm_arm64", ++ ":qu8-igemm_arch=armv8.2-a+fp16+dotprod", ++ ":qu8-igemm_arm64", ++ ":qu8-rdsum_arm64", ++ ":qu8-rsum_arm64", ++ ":qu8-vadd_arm64", ++ ":qu8-vaddc_arm64", ++ ":qu8-vcvt_arm64", ++ ":qu8-vlrelu_arm64", ++ ":qu8-vmul_arm64", ++ ":qu8-vmulc_arm64", ++ ":qu8-vprelu_arm64", ++ ":qu8-vpreluc_arm64", ++ ":qu8-vrpreluc_arm64", ++ ":reference_arm64", ++ ":s8-ibilinear_arm64", ++ ":s8-maxpool_arm64", ++ ":s8-rdminmax_arm64", ++ ":s8-rminmax_arm64", ++ ":s8-vclamp_arm64", ++ ":subgraph_arm64", ++ ":tables_arm64", ++ ":u8-ibilinear_arm64", ++ ":u8-lut32norm_arm64", ++ ":u8-maxpool_arm64", ++ ":u8-rdminmax_arm64", ++ ":u8-rminmax_arm64", ++ ":u8-vclamp_arm64", ++ ":x16-pack-lh_arch=armv8.2-a+sve+sve2", ++ ":x16-packw_arm64", ++ ":x16-transposec_arm64", ++ ":x16-x32-packw_arm64", ++ ":x24-transposec_arm64", ++ ":x32-pack-lh_arch=armv8.2-a+sve+sve2", ++ ":x32-packw_arm64", ++ ":x32-transposec_arm64", ++ ":x32-unpool_arm64", ++ ":x64-transposec_arm64", ++ ":x8-lut_arm64", ++ ":x8-pack-lh_arch=armv8.2-a+sve+sve2", ++ ":x8-packq_arm64", ++ ":x8-packw_arm64", ++ ":x8-transposec_arm64", ++ ":xx-copy_arm64", ++ ":xx-fill_arm64", ++ ":xx-pad_arm64", + ":xx-transposev_arm64" - ] + ] + } if (build_with_internal_optimization_guide) { xnnpack_standalone_deps = [ -- ":configs_arm64_standalone", -- ":enums_arm64_standalone", -- ":f16-avgpool_arch=armv8.2-a+fp16_standalone", -- ":f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone", -- ":f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone", -- ":f16-dwconv_arch=armv8.2-a+fp16_standalone", -- ":f16-f32-vcvt_arm64_standalone", -- ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", -- ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", -- ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":f16-gemm_arch=armv8.2-a+fp16_standalone", -- ":f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone", -- ":f16-ibilinear_arch=armv8.2-a+fp16_standalone", -- ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":f16-igemm_arch=armv8.2-a+fp16_standalone", -- ":f16-maxpool_arch=armv8.2-a+fp16_standalone", -- ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", -- ":f16-qs8-vcvt_arm64_standalone", -- ":f16-qu8-vcvt_arm64_standalone", -- ":f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone", -- ":f16-rdminmax_arch=armv8.2-a+fp16_standalone", -- ":f16-rdminmax_arm64_standalone", -- ":f16-rminmax_arch=armv8.2-a+fp16_standalone", -- ":f16-rminmax_arm64_standalone", -- ":f16-spmm_arch=armv8.2-a+fp16_standalone", -- ":f16-vapproxgelu_arch=armv8.2-a+fp16_standalone", -- ":f16-vapproxgelu_arm64_standalone", -- ":f16-vbinary_arch=armv8.2-a+fp16_standalone", -- ":f16-vclamp_arch=armv8.2-a+fp16_standalone", -- ":f16-vcmul_arch=armv8.2-a+fp16_standalone", -- ":f16-vcos_arch=armv8.2-a+fp16_standalone", -- ":f16-vcos_arm64_standalone", -- ":f16-velu_arch=armv8.2-a+fp16_standalone", -- ":f16-vexp_arch=armv8.2-a+fp16_standalone", -- ":f16-vexp_arm64_standalone", -- ":f16-vgelu_arch=armv8.2-a+fp16_standalone", -- ":f16-vgelu_arm64_standalone", -- ":f16-vhswish_arch=armv8.2-a+fp16_standalone", -- ":f16-vlrelu_arch=armv8.2-a+fp16_standalone", -- ":f16-vmulcaddc_arch=armv8.2-a+fp16_standalone", -- ":f16-vrnd_arch=armv8.2-a+fp16_standalone", -- ":f16-vrsqrt_arch=armv8.2-a+fp16_standalone", -- ":f16-vsigmoid_arch=armv8.2-a+fp16_standalone", -- ":f16-vsin_arch=armv8.2-a+fp16_standalone", -- ":f16-vsin_arm64_standalone", -- ":f16-vsqrt_arch=armv8.2-a+fp16_standalone", -- ":f16-vtanh_arch=armv8.2-a+fp16_standalone", -- ":f16-vunary_arch=armv8.2-a+fp16_standalone", -- ":f32-argmaxpool_arm64_standalone", -- ":f32-avgpool_arm64_standalone", -- ":f32-conv-hwc2chw_arm64_standalone", -- ":f32-dwconv2d-chw_arm64_standalone", -- ":f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone", -- ":f32-dwconv_arm64_standalone", -- ":f32-f16-vcvt_arm64_standalone", -- ":f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":f32-gemm_arm64_standalone", -- ":f32-ibilinear-chw_arm64_standalone", -- ":f32-ibilinear_arm64_standalone", -- ":f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":f32-igemm_arm64_standalone", -- ":f32-maxpool_arm64_standalone", -- ":f32-qc4w-gemm_arm64_standalone", -- ":f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":f32-qc8w-gemm_arm64_standalone", -- ":f32-qs8-vcvt_arm64_standalone", -- ":f32-qu8-vcvt_arm64_standalone", -- ":f32-raddstoreexpminusmax_arm64_standalone", -- ":f32-rdminmax_arm64_standalone", -- ":f32-rdsum_arm64_standalone", -- ":f32-rminmax_arm64_standalone", -- ":f32-rsum_arm64_standalone", -- ":f32-spmm_arm64_standalone", -- ":f32-vapproxgelu_arm64_standalone", -- ":f32-vbinary_arm64_standalone", -- ":f32-vclamp_arm64_standalone", -- ":f32-vcmul_arm64_standalone", -- ":f32-vcopysign_arm64_standalone", -- ":f32-vcos_arm64_standalone", -- ":f32-velu_arm64_standalone", -- ":f32-vexp_arm64_standalone", -- ":f32-vgelu_arm64_standalone", -- ":f32-vhswish_arm64_standalone", -- ":f32-vlog_arm64_standalone", -- ":f32-vlrelu_arm64_standalone", -- ":f32-vmulcaddc_arm64_standalone", -- ":f32-vrnd_arm64_standalone", -- ":f32-vrsqrt_arm64_standalone", -- ":f32-vsigmoid_arm64_standalone", -- ":f32-vsin_arm64_standalone", -- ":f32-vsqrt_arm64_standalone", -- ":f32-vtanh_arm64_standalone", -- ":f32-vunary_arm64_standalone", -- ":operators_arm64_standalone", -- ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", -- ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", -- ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", -- ":pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", -- ":qb4-packw_arch=armv8.2-a+dotprod_standalone", -- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", -- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone", -- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", -- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", -- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", -- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone", -- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone", -- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone", -- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f32-qb4w-gemm_arm64_standalone", -- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f32-qc4w-gemm_arm64_standalone", -- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f32-qc8w-gemm_arm64_standalone", -- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", -- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qd8-f32-qc8w-igemm_arm64_standalone", -- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone", -- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", -- ":qs8-dwconv_arm64_standalone", -- ":qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone", -- ":qs8-f32-vcvt_arm64_standalone", -- ":qs8-packw_arm64_standalone", -- ":qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qs8-qc4w-gemm_arm64_standalone", -- ":qs8-qc8w-dwconv_arm64_standalone", -- ":qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", -- ":qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qs8-qc8w-gemm_arm64_standalone", -- ":qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", -- ":qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", -- ":qs8-qc8w-igemm_arm64_standalone", -- ":qs8-qu8-packw_arm64_standalone", -- ":qs8-rdsum_arm64_standalone", -- ":qs8-rsum_arch=armv8.2-a+dotprod_standalone", -- ":qs8-rsum_arm64_standalone", -- ":qs8-vadd_arm64_standalone", -- ":qs8-vaddc_arm64_standalone", -- ":qs8-vcvt_arm64_standalone", -- ":qs8-vlrelu_arm64_standalone", -- ":qs8-vmul_arm64_standalone", -- ":qs8-vmulc_arm64_standalone", -- ":qs8-vprelu_arm64_standalone", -- ":qs8-vpreluc_arm64_standalone", -- ":qs8-vrpreluc_arm64_standalone", -- ":qu8-dwconv_arm64_standalone", -- ":qu8-f32-vcvt_arm64_standalone", -- ":qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qu8-gemm_arm64_standalone", -- ":qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone", -- ":qu8-igemm_arm64_standalone", -- ":qu8-rdsum_arm64_standalone", -- ":qu8-rsum_arm64_standalone", -- ":qu8-vadd_arm64_standalone", -- ":qu8-vaddc_arm64_standalone", -- ":qu8-vcvt_arm64_standalone", -- ":qu8-vlrelu_arm64_standalone", -- ":qu8-vmul_arm64_standalone", -- ":qu8-vmulc_arm64_standalone", -- ":qu8-vprelu_arm64_standalone", -- ":qu8-vpreluc_arm64_standalone", -- ":qu8-vrpreluc_arm64_standalone", -- ":reference_arm64_standalone", -- ":s8-ibilinear_arm64_standalone", -- ":s8-maxpool_arm64_standalone", -- ":s8-rdminmax_arm64_standalone", -- ":s8-rminmax_arm64_standalone", -- ":s8-vclamp_arm64_standalone", -- ":subgraph_arm64_standalone", -- ":tables_arm64_standalone", -- ":u8-ibilinear_arm64_standalone", -- ":u8-lut32norm_arm64_standalone", -- ":u8-maxpool_arm64_standalone", -- ":u8-rdminmax_arm64_standalone", -- ":u8-rminmax_arm64_standalone", -- ":u8-vclamp_arm64_standalone", -- ":x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone", -- ":x16-packw_arm64_standalone", -- ":x16-transposec_arm64_standalone", -- ":x16-x32-packw_arm64_standalone", -- ":x24-transposec_arm64_standalone", -- ":x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone", -- ":x32-packw_arm64_standalone", -- ":x32-transposec_arm64_standalone", -- ":x32-unpool_arm64_standalone", -- ":x64-transposec_arm64_standalone", -- ":x8-lut_arm64_standalone", -- ":x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone", -- ":x8-packq_arm64_standalone", -- ":x8-packw_arm64_standalone", -- ":x8-transposec_arm64_standalone", -- ":xx-copy_arm64_standalone", -- ":xx-fill_arm64_standalone", -- ":xx-pad_arm64_standalone", -- ":xx-transposev_arm64_standalone", +- ":configs_x64_standalone", +- ":enums_x64_standalone", +- ":f16-avgpool_f16c-no-avx2-no-fma_standalone", +- ":f16-dwconv_f16c-fma-no-avx2_standalone", +- ":f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32-vcvt_f16c-no-avx2-no-fma_standalone", +- ":f16-f32-vcvt_sse2-no-sse3_standalone", +- ":f16-f32-vcvt_sse4.1-no-sse4.2_standalone", +- ":f16-f32-vcvt_x64_standalone", +- ":f16-f32acc-gemm_f16c-fma-avx2_standalone", +- ":f16-f32acc-igemm_f16c-fma-avx2_standalone", +- ":f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32acc-rdsum2_f16c-no-avx2-no-fma_standalone", +- ":f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone", +- ":f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32acc-rsum2_f16c-no-avx2-no-fma_standalone", +- ":f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone", +- ":f16-ibilinear_f16c-fma-no-avx2_standalone", +- ":f16-maxpool_f16c-fma-avx2_standalone", +- ":f16-maxpool_sse4.1-no-sse4.2_standalone", +- ":f16-qs8-vcvt_x64_standalone", +- ":f16-qu8-vcvt_x64_standalone", +- ":f16-raddstoreexpminusmax_f16c-fma-avx2_standalone", +- ":f16-rdminmax_x64_standalone", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", +- ":f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f16-rminmax_f16c-no-avx2-no-fma_standalone", +- ":f16-rminmax_x64_standalone", +- ":f16-vapproxgelu_x64_standalone", +- ":f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone", +- ":f16-vbinary_f16c-no-avx2-no-fma_standalone", +- ":f16-vclamp_f16c-no-avx2-no-fma_standalone", +- ":f16-vcos_x64_standalone", +- ":f16-velu_f16c-fma-avx2_standalone", +- ":f16-vexp_x64_standalone", +- ":f16-vgelu_x64_standalone", +- ":f16-vhswish_f16c-no-avx2-no-fma_standalone", +- ":f16-vlrelu_f16c-no-avx2-no-fma_standalone", +- ":f16-vmulcaddc_f16c-fma-no-avx2_standalone", +- ":f16-vrnd_f16c-no-avx2-no-fma_standalone", +- ":f16-vrsqrt_f16c-no-avx2-no-fma_standalone", +- ":f16-vsigmoid_f16c-fma-avx2_standalone", +- ":f16-vsin_x64_standalone", +- ":f16-vsqrt_f16c-no-avx2-no-fma_standalone", +- ":f16-vtanh_f16c-fma-no-avx2_standalone", +- ":f16-vtanh_f16c-no-avx2-no-fma_standalone", +- ":f16-vunary_f16c-no-avx2-no-fma_standalone", +- ":f16-vunary_sse2-no-sse3_standalone", +- ":f32-argmaxpool_sse2-no-sse3_standalone", +- ":f32-argmaxpool_x64_standalone", +- ":f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-avgpool_avx512f_standalone", +- ":f32-avgpool_sse2-no-sse3_standalone", +- ":f32-avgpool_x64_standalone", +- ":f32-conv-hwc2chw_sse-no-sse2_standalone", +- ":f32-conv-hwc2chw_x64_standalone", +- ":f32-dwconv2d-chw_sse-no-sse2_standalone", +- ":f32-dwconv2d-chw_ssse3-no-sse4.1_standalone", +- ":f32-dwconv2d-chw_x64_standalone", +- ":f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-dwconv_avx512f_standalone", +- ":f32-dwconv_f16c-fma-no-avx2_standalone", +- ":f32-dwconv_sse-no-sse2_standalone", +- ":f32-dwconv_x64_standalone", +- ":f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-f16-vcvt_f16c-no-avx2-no-fma_standalone", +- ":f32-f16-vcvt_sse2-no-sse3_standalone", +- ":f32-f16-vcvt_sse4.1-no-sse4.2_standalone", +- ":f32-f16-vcvt_x64_standalone", +- ":f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-gemm_avx512f_standalone", +- ":f32-gemm_f16c-fma-no-avx2_standalone", +- ":f32-gemm_sse-no-sse2_standalone", +- ":f32-gemm_x64_standalone", +- ":f32-ibilinear-chw_sse-no-sse2_standalone", +- ":f32-ibilinear-chw_x64_standalone", +- ":f32-ibilinear_sse-no-sse2_standalone", +- ":f32-ibilinear_x64_standalone", +- ":f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-igemm_avx512f_standalone", +- ":f32-igemm_f16c-fma-no-avx2_standalone", +- ":f32-igemm_sse-no-sse2_standalone", +- ":f32-igemm_x64_standalone", +- ":f32-maxpool_sse2-no-sse3_standalone", +- ":f32-maxpool_x64_standalone", +- ":f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qc4w-gemm_f16c-fma-avx2_standalone", +- ":f32-qc4w-gemm_f16c-fma-no-avx2_standalone", +- ":f32-qc4w-gemm_sse4.1-no-sse4.2_standalone", +- ":f32-qc4w-gemm_x64_standalone", +- ":f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qc8w-gemm_f16c-fma-avx2_standalone", +- ":f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-qc8w-gemm_f16c-fma-no-avx2_standalone", +- ":f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", +- ":f32-qc8w-gemm_x64_standalone", +- ":f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qs8-vcvt_f16c-fma-avx2_standalone", +- ":f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-qs8-vcvt_sse2-no-sse3_standalone", +- ":f32-qs8-vcvt_sse4.1-no-sse4.2_standalone", +- ":f32-qs8-vcvt_x64_standalone", +- ":f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-qu8-vcvt_f16c-fma-avx2_standalone", +- ":f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-qu8-vcvt_sse2-no-sse3_standalone", +- ":f32-qu8-vcvt_x64_standalone", +- ":f32-raddstoreexpminusmax_avx512f_standalone", +- ":f32-raddstoreexpminusmax_f16c-fma-avx2_standalone", +- ":f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":f32-raddstoreexpminusmax_sse2-no-sse3_standalone", +- ":f32-raddstoreexpminusmax_x64_standalone", +- ":f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rdminmax_avx512f_standalone", +- ":f32-rdminmax_sse2-no-sse3_standalone", +- ":f32-rdminmax_x64_standalone", +- ":f32-rdsum2_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rdsum2_avx512f_standalone", +- ":f32-rdsum2_sse2-no-sse3_standalone", +- ":f32-rdsum2_x64_standalone", +- ":f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rdsum_avx512f_standalone", +- ":f32-rdsum_sse2-no-sse3_standalone", +- ":f32-rdsum_x64_standalone", +- ":f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rminmax_avx512f_standalone", +- ":f32-rminmax_sse-no-sse2_standalone", +- ":f32-rminmax_x64_standalone", +- ":f32-rsum2_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rsum2_avx512f_standalone", +- ":f32-rsum2_sse2-no-sse3_standalone", +- ":f32-rsum2_x64_standalone", +- ":f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-rsum_avx512f_standalone", +- ":f32-rsum_sse2-no-sse3_standalone", +- ":f32-rsum_x64_standalone", +- ":f32-spmm_sse-no-sse2_standalone", +- ":f32-spmm_x64_standalone", +- ":f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vapproxgelu_avx512f_standalone", +- ":f32-vapproxgelu_f16c-fma-no-avx2_standalone", +- ":f32-vapproxgelu_sse2-no-sse3_standalone", +- ":f32-vapproxgelu_x64_standalone", +- ":f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vbinary_avx512f_standalone", +- ":f32-vbinary_sse-no-sse2_standalone", +- ":f32-vbinary_sse2-no-sse3_standalone", +- ":f32-vbinary_x64_standalone", +- ":f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vclamp_avx512f_standalone", +- ":f32-vclamp_sse2-no-sse3_standalone", +- ":f32-vclamp_x64_standalone", +- ":f32-vcmul_avx512f_standalone", +- ":f32-vcmul_f16c-fma-no-avx2_standalone", +- ":f32-vcmul_sse-no-sse2_standalone", +- ":f32-vcmul_x64_standalone", +- ":f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vcopysign_avx512f_standalone", +- ":f32-vcopysign_sse2-no-sse3_standalone", +- ":f32-vcopysign_x64_standalone", +- ":f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vcos_avx512f_standalone", +- ":f32-vcos_f16c-fma-no-avx2_standalone", +- ":f32-vcos_sse2-no-sse3_standalone", +- ":f32-vcos_x64_standalone", +- ":f32-velu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-velu_avx512f_standalone", +- ":f32-velu_f16c-fma-avx2_standalone", +- ":f32-velu_sse2-no-sse3_standalone", +- ":f32-velu_x64_standalone", +- ":f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vexp_avx512f_standalone", +- ":f32-vexp_f16c-fma-no-avx2_standalone", +- ":f32-vexp_sse2-no-sse3_standalone", +- ":f32-vexp_x64_standalone", +- ":f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vgelu_avx512f_standalone", +- ":f32-vgelu_f16c-fma-no-avx2_standalone", +- ":f32-vgelu_sse2-no-sse3_standalone", +- ":f32-vgelu_x64_standalone", +- ":f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vhswish_avx512f_standalone", +- ":f32-vhswish_f16c-fma-no-avx2_standalone", +- ":f32-vhswish_sse2-no-sse3_standalone", +- ":f32-vhswish_x64_standalone", +- ":f32-vlog_avx512f_standalone", +- ":f32-vlog_f16c-fma-avx2_standalone", +- ":f32-vlog_f16c-fma-no-avx2_standalone", +- ":f32-vlog_sse2-no-sse3_standalone", +- ":f32-vlog_x64_standalone", +- ":f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vlrelu_avx512f_standalone", +- ":f32-vlrelu_sse-no-sse2_standalone", +- ":f32-vlrelu_sse4.1-no-sse4.2_standalone", +- ":f32-vlrelu_x64_standalone", +- ":f32-vmulcaddc_sse-no-sse2_standalone", +- ":f32-vmulcaddc_x64_standalone", +- ":f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vrnd_avx512f_standalone", +- ":f32-vrnd_sse2-no-sse3_standalone", +- ":f32-vrnd_sse4.1-no-sse4.2_standalone", +- ":f32-vrnd_x64_standalone", +- ":f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vrsqrt_avx512f_standalone", +- ":f32-vrsqrt_sse2-no-sse3_standalone", +- ":f32-vrsqrt_x64_standalone", +- ":f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vsigmoid_avx512f_standalone", +- ":f32-vsigmoid_f16c-fma-avx2_standalone", +- ":f32-vsigmoid_sse2-no-sse3_standalone", +- ":f32-vsigmoid_sse4.1-no-sse4.2_standalone", +- ":f32-vsigmoid_x64_standalone", +- ":f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vsin_avx512f_standalone", +- ":f32-vsin_f16c-fma-no-avx2_standalone", +- ":f32-vsin_sse2-no-sse3_standalone", +- ":f32-vsin_x64_standalone", +- ":f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vsqrt_avx512f_standalone", +- ":f32-vsqrt_sse2-no-sse3_standalone", +- ":f32-vsqrt_x64_standalone", +- ":f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vtanh_avx512f_standalone", +- ":f32-vtanh_f16c-fma-no-avx2_standalone", +- ":f32-vtanh_sse2-no-sse3_standalone", +- ":f32-vtanh_x64_standalone", +- ":f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone", +- ":f32-vunary_avx512f_standalone", +- ":f32-vunary_sse2-no-sse3_standalone", +- ":f32-vunary_x64_standalone", +- ":operators_x64_standalone", +- ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", +- ":qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", +- ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", +- ":qd8-f32-qb4w-gemm_x64_standalone", +- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", +- ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", +- ":qd8-f32-qc4w-gemm_x64_standalone", +- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", +- ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", +- ":qd8-f32-qc8w-gemm_x64_standalone", +- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qd8-f32-qc8w-igemm_sse2-no-sse3_standalone", +- ":qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone", +- ":qd8-f32-qc8w-igemm_x64_standalone", +- ":qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-dwconv_f16c-fma-avx2_standalone", +- ":qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-dwconv_sse2-no-sse3_standalone", +- ":qs8-dwconv_sse4.1-no-sse4.2_standalone", +- ":qs8-dwconv_x64_standalone", +- ":qs8-f16-vcvt_f16c-fma-avx2_standalone", +- ":qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-f32-vcvt_f16c-fma-avx2_standalone", +- ":qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-f32-vcvt_sse2-no-sse3_standalone", +- ":qs8-f32-vcvt_sse4.1-no-sse4.2_standalone", +- ":qs8-f32-vcvt_x64_standalone", +- ":qs8-packw_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-packw_f16c-fma-avx2_standalone", +- ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-packw_x64_standalone", +- ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", +- ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc4w-gemm_ssse3-no-sse4.1_standalone", +- ":qs8-qc4w-gemm_x64_standalone", +- ":qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc8w-dwconv_f16c-fma-avx2_standalone", +- ":qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc8w-dwconv_sse2-no-sse3_standalone", +- ":qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone", +- ":qs8-qc8w-dwconv_x64_standalone", +- ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc8w-gemm_sse2-no-sse3_standalone", +- ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", +- ":qs8-qc8w-gemm_x64_standalone", +- ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-qc8w-igemm_sse2-no-sse3_standalone", +- ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", +- ":qs8-qc8w-igemm_x64_standalone", +- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-qu8-packw_x64_standalone", +- ":qs8-rdsum_f16c-fma-avx2_standalone", +- ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-rdsum_sse4.1-no-sse4.2_standalone", +- ":qs8-rdsum_x64_standalone", +- ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-rsum_f16c-fma-avx2_standalone", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", +- ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-rsum_ssse3-no-sse4.1_standalone", +- ":qs8-rsum_x64_standalone", +- ":qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vadd_f16c-fma-avx2_standalone", +- ":qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-vadd_sse2-no-sse3_standalone", +- ":qs8-vadd_sse4.1-no-sse4.2_standalone", +- ":qs8-vadd_x64_standalone", +- ":qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vaddc_f16c-fma-avx2_standalone", +- ":qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qs8-vaddc_sse2-no-sse3_standalone", +- ":qs8-vaddc_sse4.1-no-sse4.2_standalone", +- ":qs8-vaddc_x64_standalone", +- ":qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vcvt_f16c-fma-avx2_standalone", +- ":qs8-vcvt_sse2-no-sse3_standalone", +- ":qs8-vcvt_sse4.1-no-sse4.2_standalone", +- ":qs8-vcvt_ssse3-no-sse4.1_standalone", +- ":qs8-vcvt_x64_standalone", +- ":qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vlrelu_f16c-fma-avx2_standalone", +- ":qs8-vlrelu_sse2-no-sse3_standalone", +- ":qs8-vlrelu_sse4.1-no-sse4.2_standalone", +- ":qs8-vlrelu_ssse3-no-sse4.1_standalone", +- ":qs8-vlrelu_x64_standalone", +- ":qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vmul_sse2-no-sse3_standalone", +- ":qs8-vmul_sse4.1-no-sse4.2_standalone", +- ":qs8-vmul_x64_standalone", +- ":qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qs8-vmulc_sse2-no-sse3_standalone", +- ":qs8-vmulc_sse4.1-no-sse4.2_standalone", +- ":qs8-vmulc_x64_standalone", +- ":qs8-vprelu_f16c-fma-avx2_standalone", +- ":qs8-vprelu_x64_standalone", +- ":qs8-vpreluc_f16c-fma-avx2_standalone", +- ":qs8-vpreluc_x64_standalone", +- ":qs8-vrpreluc_f16c-fma-avx2_standalone", +- ":qs8-vrpreluc_x64_standalone", +- ":qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-dwconv_f16c-fma-avx2_standalone", +- ":qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-dwconv_sse2-no-sse3_standalone", +- ":qu8-dwconv_sse4.1-no-sse4.2_standalone", +- ":qu8-dwconv_x64_standalone", +- ":qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-f32-vcvt_f16c-fma-avx2_standalone", +- ":qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-f32-vcvt_sse2-no-sse3_standalone", +- ":qu8-f32-vcvt_sse4.1-no-sse4.2_standalone", +- ":qu8-f32-vcvt_x64_standalone", +- ":qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-gemm_f16c-fma-avx2_standalone", +- ":qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-gemm_sse2-no-sse3_standalone", +- ":qu8-gemm_sse4.1-no-sse4.2_standalone", +- ":qu8-gemm_x64_standalone", +- ":qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-igemm_f16c-fma-avx2_standalone", +- ":qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-igemm_sse2-no-sse3_standalone", +- ":qu8-igemm_sse4.1-no-sse4.2_standalone", +- ":qu8-igemm_x64_standalone", +- ":qu8-rdsum_ssse3-no-sse4.1_standalone", +- ":qu8-rdsum_x64_standalone", +- ":qu8-rsum_f16c-fma-avx2_standalone", +- ":qu8-rsum_sse2-no-sse3_standalone", +- ":qu8-rsum_x64_standalone", +- ":qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vadd_f16c-fma-avx2_standalone", +- ":qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-vadd_sse2-no-sse3_standalone", +- ":qu8-vadd_sse4.1-no-sse4.2_standalone", +- ":qu8-vadd_x64_standalone", +- ":qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vaddc_f16c-fma-avx2_standalone", +- ":qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":qu8-vaddc_sse2-no-sse3_standalone", +- ":qu8-vaddc_sse4.1-no-sse4.2_standalone", +- ":qu8-vaddc_x64_standalone", +- ":qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vcvt_f16c-fma-avx2_standalone", +- ":qu8-vcvt_sse2-no-sse3_standalone", +- ":qu8-vcvt_sse4.1-no-sse4.2_standalone", +- ":qu8-vcvt_ssse3-no-sse4.1_standalone", +- ":qu8-vcvt_x64_standalone", +- ":qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vlrelu_f16c-fma-avx2_standalone", +- ":qu8-vlrelu_sse2-no-sse3_standalone", +- ":qu8-vlrelu_sse4.1-no-sse4.2_standalone", +- ":qu8-vlrelu_ssse3-no-sse4.1_standalone", +- ":qu8-vlrelu_x64_standalone", +- ":qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vmul_sse2-no-sse3_standalone", +- ":qu8-vmul_sse4.1-no-sse4.2_standalone", +- ":qu8-vmul_x64_standalone", +- ":qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone", +- ":qu8-vmulc_sse2-no-sse3_standalone", +- ":qu8-vmulc_sse4.1-no-sse4.2_standalone", +- ":qu8-vmulc_x64_standalone", +- ":qu8-vprelu_f16c-fma-avx2_standalone", +- ":qu8-vprelu_x64_standalone", +- ":qu8-vpreluc_f16c-fma-avx2_standalone", +- ":qu8-vpreluc_x64_standalone", +- ":qu8-vrpreluc_f16c-fma-avx2_standalone", +- ":qu8-vrpreluc_x64_standalone", +- ":reference_x64_standalone", +- ":s8-ibilinear_sse2-no-sse3_standalone", +- ":s8-ibilinear_sse4.1-no-sse4.2_standalone", +- ":s8-ibilinear_x64_standalone", +- ":s8-maxpool_sse4.1-no-sse4.2_standalone", +- ":s8-maxpool_x64_standalone", +- ":s8-rdminmax_sse4.1-no-sse4.2_standalone", +- ":s8-rdminmax_x64_standalone", +- ":s8-rminmax_sse4.1-no-sse4.2_standalone", +- ":s8-rminmax_x64_standalone", +- ":s8-vclamp_f16c-fma-avx2_standalone", +- ":s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":s8-vclamp_sse2-no-sse3_standalone", +- ":s8-vclamp_sse4.1-no-sse4.2_standalone", +- ":s8-vclamp_x64_standalone", +- ":subgraph_x64_standalone", +- ":tables_x64_standalone", +- ":u8-ibilinear_sse2-no-sse3_standalone", +- ":u8-ibilinear_sse4.1-no-sse4.2_standalone", +- ":u8-ibilinear_x64_standalone", +- ":u8-lut32norm_x64_standalone", +- ":u8-maxpool_sse2-no-sse3_standalone", +- ":u8-maxpool_x64_standalone", +- ":u8-rdminmax_sse2-no-sse3_standalone", +- ":u8-rdminmax_x64_standalone", +- ":u8-rminmax_sse2-no-sse3_standalone", +- ":u8-rminmax_x64_standalone", +- ":u8-vclamp_f16c-fma-avx2_standalone", +- ":u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":u8-vclamp_sse2-no-sse3_standalone", +- ":u8-vclamp_x64_standalone", +- ":x16-packw_f16c-fma-avx2_standalone", +- ":x16-transposec_f16c-fma-avx2_standalone", +- ":x16-transposec_sse2-no-sse3_standalone", +- ":x16-transposec_x64_standalone", +- ":x16-x32-packw_x64_standalone", +- ":x24-transposec_ssse3-no-sse4.1_standalone", +- ":x24-transposec_x64_standalone", +- ":x32-packw_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x32-packw_avx512f_standalone", +- ":x32-packw_sse2-no-sse3_standalone", +- ":x32-packw_x64_standalone", +- ":x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x32-transposec_sse-no-sse2_standalone", +- ":x32-transposec_x64_standalone", +- ":x32-unpool_sse2-no-sse3_standalone", +- ":x32-unpool_x64_standalone", +- ":x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x64-transposec_sse2-no-sse3_standalone", +- ":x64-transposec_x64_standalone", +- ":x8-lut_avx-no-avx2-no-f16c-no-fma_standalone", +- ":x8-lut_f16c-fma-avx2_standalone", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone", +- ":x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", +- ":x8-lut_x64_standalone", +- ":x8-packq_x64_standalone", +- ":x8-packw_x64_standalone", +- ":x8-transposec_f16c-fma-avx2_standalone", +- ":x8-transposec_sse2-no-sse3_standalone", +- ":x8-transposec_x64_standalone", +- ":xx-copy_x64_standalone", +- ":xx-fill_sse2-no-sse3_standalone", +- ":xx-fill_x64_standalone", +- ":xx-pad_sse2-no-sse3_standalone", +- ":xx-pad_x64_standalone", +- ":xx-transposev_x64_standalone", + ":configs_arm64_standalone", + ":enums_arm64_standalone", + ":f16-avgpool_arch=armv8.2-a+fp16_standalone", @@ -1280,7 +2333,9 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone", + ":f16-dwconv_arch=armv8.2-a+fp16_standalone", + ":f16-f32-vcvt_arm64_standalone", ++ ":f16-f32acc-rdsum2_arch=armv8.2-a+fp16_standalone", + ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", ++ ":f16-f32acc-rsum2_arch=armv8.2-a+fp16_standalone", + ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", + ":f16-gemm_arch=armv8.2-a+fp16_standalone", + ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", @@ -1342,8 +2397,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f32-qu8-vcvt_arm64_standalone", + ":f32-raddstoreexpminusmax_arm64_standalone", + ":f32-rdminmax_arm64_standalone", ++ ":f32-rdsum2_arm64_standalone", + ":f32-rdsum_arm64_standalone", + ":f32-rminmax_arm64_standalone", ++ ":f32-rsum2_arm64_standalone", + ":f32-rsum_arm64_standalone", + ":f32-spmm_arm64_standalone", + ":f32-vapproxgelu_arm64_standalone", @@ -1488,23 +2545,621 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":xx-transposev_arm64_standalone" ] } --} else if (current_cpu == "riscv64") { +-} else if (current_cpu == "arm64") { +} else +if (current_cpu == "riscv64") { + - xnnpack_deps = [ - ":configs_riscv64", - ":enums_riscv64", -@@ -1658,179 +1664,431 @@ if (current_cpu == "x64" || current_cpu - ":xx-copy_riscv64", - ":xx-fill_riscv64", - ":xx-pad_riscv64", -- ":xx-transposev_riscv64", + if (build_with_chromium) { + xnnpack_deps = [ +- ":configs_arm64", +- ":enums_arm64", +- ":f16-avgpool_arch=armv8.2-a+fp16", +- ":f16-conv-hwc2chw_arch=armv8.2-a+fp16", +- ":f16-dwconv2d-chw_arch=armv8.2-a+fp16", +- ":f16-dwconv_arch=armv8.2-a+fp16", +- ":f16-f32-vcvt_arm64", +- ":f16-f32acc-rdsum2_arch=armv8.2-a+fp16", +- ":f16-f32acc-rdsum_arch=armv8.2-a+fp16", +- ":f16-f32acc-rsum2_arch=armv8.2-a+fp16", +- ":f16-f32acc-rsum_arch=armv8.2-a+fp16", +- ":f16-gemm_arch=armv8.2-a+fp16", +- ":f16-gemm_arch=armv8.2-a+fp16+dotprod", +- ":f16-ibilinear-chw_arch=armv8.2-a+fp16", +- ":f16-ibilinear_arch=armv8.2-a+fp16", +- ":f16-igemm_arch=armv8.2-a+fp16", +- ":f16-igemm_arch=armv8.2-a+fp16+dotprod", +- ":f16-maxpool_arch=armv8.2-a+fp16", +- ":f16-qs8-vcvt_arch=armv8.2-a+fp16", +- ":f16-qs8-vcvt_arm64", +- ":f16-qu8-vcvt_arm64", +- ":f16-raddstoreexpminusmax_arch=armv8.2-a+fp16", +- ":f16-rdminmax_arch=armv8.2-a+fp16", +- ":f16-rdminmax_arm64", +- ":f16-rminmax_arch=armv8.2-a+fp16", +- ":f16-rminmax_arm64", +- ":f16-spmm_arch=armv8.2-a+fp16", +- ":f16-vapproxgelu_arch=armv8.2-a+fp16", +- ":f16-vapproxgelu_arm64", +- ":f16-vbinary_arch=armv8.2-a+fp16", +- ":f16-vclamp_arch=armv8.2-a+fp16", +- ":f16-vcmul_arch=armv8.2-a+fp16", +- ":f16-vcos_arch=armv8.2-a+fp16", +- ":f16-vcos_arm64", +- ":f16-velu_arch=armv8.2-a+fp16", +- ":f16-vexp_arch=armv8.2-a+fp16", +- ":f16-vexp_arm64", +- ":f16-vgelu_arch=armv8.2-a+fp16", +- ":f16-vgelu_arm64", +- ":f16-vhswish_arch=armv8.2-a+fp16", +- ":f16-vlrelu_arch=armv8.2-a+fp16", +- ":f16-vmulcaddc_arch=armv8.2-a+fp16", +- ":f16-vrnd_arch=armv8.2-a+fp16", +- ":f16-vrsqrt_arch=armv8.2-a+fp16", +- ":f16-vsigmoid_arch=armv8.2-a+fp16", +- ":f16-vsin_arch=armv8.2-a+fp16", +- ":f16-vsin_arm64", +- ":f16-vsqrt_arch=armv8.2-a+fp16", +- ":f16-vtanh_arch=armv8.2-a+fp16", +- ":f16-vunary_arch=armv8.2-a+fp16", +- ":f32-argmaxpool_arm64", +- ":f32-avgpool_arm64", +- ":f32-conv-hwc2chw_arm64", +- ":f32-dwconv2d-chw_arm64", +- ":f32-dwconv_arch=armv8.2-a+fp16+dotprod", +- ":f32-dwconv_arm64", +- ":f32-f16-vcvt_arm64", +- ":f32-gemm_arch=armv8.2-a+fp16+dotprod", +- ":f32-gemm_arm64", +- ":f32-ibilinear-chw_arm64", +- ":f32-ibilinear_arm64", +- ":f32-igemm_arch=armv8.2-a+fp16+dotprod", +- ":f32-igemm_arm64", +- ":f32-maxpool_arm64", +- ":f32-qc4w-gemm_arm64", +- ":f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", +- ":f32-qc8w-gemm_arm64", +- ":f32-qs8-vcvt_arm64", +- ":f32-qu8-vcvt_arm64", +- ":f32-raddstoreexpminusmax_arm64", +- ":f32-rdminmax_arm64", +- ":f32-rdsum2_arm64", +- ":f32-rdsum_arm64", +- ":f32-rminmax_arm64", +- ":f32-rsum2_arm64", +- ":f32-rsum_arm64", +- ":f32-spmm_arm64", +- ":f32-vapproxgelu_arm64", +- ":f32-vbinary_arm64", +- ":f32-vclamp_arm64", +- ":f32-vcmul_arm64", +- ":f32-vcopysign_arm64", +- ":f32-vcos_arm64", +- ":f32-velu_arm64", +- ":f32-vexp_arm64", +- ":f32-vgelu_arm64", +- ":f32-vhswish_arm64", +- ":f32-vlog_arm64", +- ":f32-vlrelu_arm64", +- ":f32-vmulcaddc_arm64", +- ":f32-vrnd_arm64", +- ":f32-vrsqrt_arm64", +- ":f32-vsigmoid_arm64", +- ":f32-vsin_arm64", +- ":f32-vsqrt_arm64", +- ":f32-vtanh_arm64", +- ":f32-vunary_arm64", +- ":operators_arm64", +- ":pf16-gemm_arch=armv8.2-a+sve+sve2", +- ":pf32-gemm_arch=armv8.2-a+sve+sve2", +- ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2", +- ":pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2", +- ":qb4-packw_arch=armv8.2-a+dotprod", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", +- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f32-qb4w-gemm_arm64", +- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", +- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f32-qc4w-gemm_arm64", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f32-qc8w-gemm_arm64", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16", +- ":qd8-f32-qc8w-igemm_arm64", +- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", +- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2", +- ":qs8-dwconv_arm64", +- ":qs8-f16-vcvt_arch=armv8.2-a+fp16", +- ":qs8-f32-vcvt_arm64", +- ":qs8-packw_arm64", +- ":qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod", +- ":qs8-qc4w-gemm_arm64", +- ":qs8-qc8w-dwconv_arm64", +- ":qs8-qc8w-gemm_arch=armv8.2-a+dotprod", +- ":qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod", +- ":qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16", +- ":qs8-qc8w-gemm_arm64", +- ":qs8-qc8w-igemm_arch=armv8.2-a+dotprod", +- ":qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod", +- ":qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16", +- ":qs8-qc8w-igemm_arm64", +- ":qs8-qu8-packw_arm64", +- ":qs8-rdsum_arm64", +- ":qs8-rsum_arch=armv8.2-a+dotprod", +- ":qs8-rsum_arm64", +- ":qs8-vadd_arm64", +- ":qs8-vaddc_arm64", +- ":qs8-vcvt_arm64", +- ":qs8-vlrelu_arm64", +- ":qs8-vmul_arm64", +- ":qs8-vmulc_arm64", +- ":qs8-vprelu_arm64", +- ":qs8-vpreluc_arm64", +- ":qs8-vrpreluc_arm64", +- ":qu8-dwconv_arm64", +- ":qu8-f32-vcvt_arm64", +- ":qu8-gemm_arch=armv8.2-a+fp16+dotprod", +- ":qu8-gemm_arm64", +- ":qu8-igemm_arch=armv8.2-a+fp16+dotprod", +- ":qu8-igemm_arm64", +- ":qu8-rdsum_arm64", +- ":qu8-rsum_arm64", +- ":qu8-vadd_arm64", +- ":qu8-vaddc_arm64", +- ":qu8-vcvt_arm64", +- ":qu8-vlrelu_arm64", +- ":qu8-vmul_arm64", +- ":qu8-vmulc_arm64", +- ":qu8-vprelu_arm64", +- ":qu8-vpreluc_arm64", +- ":qu8-vrpreluc_arm64", +- ":reference_arm64", +- ":s8-ibilinear_arm64", +- ":s8-maxpool_arm64", +- ":s8-rdminmax_arm64", +- ":s8-rminmax_arm64", +- ":s8-vclamp_arm64", +- ":subgraph_arm64", +- ":tables_arm64", +- ":u8-ibilinear_arm64", +- ":u8-lut32norm_arm64", +- ":u8-maxpool_arm64", +- ":u8-rdminmax_arm64", +- ":u8-rminmax_arm64", +- ":u8-vclamp_arm64", +- ":x16-pack-lh_arch=armv8.2-a+sve+sve2", +- ":x16-packw_arm64", +- ":x16-transposec_arm64", +- ":x16-x32-packw_arm64", +- ":x24-transposec_arm64", +- ":x32-pack-lh_arch=armv8.2-a+sve+sve2", +- ":x32-packw_arm64", +- ":x32-transposec_arm64", +- ":x32-unpool_arm64", +- ":x64-transposec_arm64", +- ":x8-lut_arm64", +- ":x8-pack-lh_arch=armv8.2-a+sve+sve2", +- ":x8-packq_arm64", +- ":x8-packw_arm64", +- ":x8-transposec_arm64", +- ":xx-copy_arm64", +- ":xx-fill_arm64", +- ":xx-pad_arm64", +- ":xx-transposev_arm64", ++ ":configs_riscv64", ++ ":enums_riscv64", ++ ":f16-f32-vcvt_riscv64", ++ ":f16-qs8-vcvt_riscv64", ++ ":f16-qu8-vcvt_riscv64", ++ ":f16-rdminmax_riscv64", ++ ":f16-rminmax_riscv64", ++ ":f16-vapproxgelu_riscv64", ++ ":f16-vcos_riscv64", ++ ":f16-vexp_riscv64", ++ ":f16-vgelu_riscv64", ++ ":f16-vsin_riscv64", ++ ":f32-argmaxpool_arch=rv64gcv-abi=lp64d", ++ ":f32-argmaxpool_riscv64", ++ ":f32-avgpool_riscv64", ++ ":f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d", ++ ":f32-conv-hwc2chw_riscv64", ++ ":f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d", ++ ":f32-dwconv2d-chw_riscv64", ++ ":f32-dwconv_arch=rv64gcv-abi=lp64d", ++ ":f32-dwconv_riscv64", ++ ":f32-f16-vcvt_riscv64", ++ ":f32-gemm_arch=rv64gcv-abi=lp64d", ++ ":f32-gemm_riscv64", ++ ":f32-ibilinear-chw_riscv64", ++ ":f32-ibilinear_riscv64", ++ ":f32-igemm_arch=rv64gcv-abi=lp64d", ++ ":f32-igemm_riscv64", ++ ":f32-maxpool_arch=rv64gcv-abi=lp64d", ++ ":f32-maxpool_riscv64", ++ ":f32-qc4w-gemm_riscv64", ++ ":f32-qc8w-gemm_riscv64", ++ ":f32-qs8-vcvt_arch=rv64gcv-abi=lp64d", ++ ":f32-qs8-vcvt_riscv64", ++ ":f32-qu8-vcvt_arch=rv64gcv-abi=lp64d", ++ ":f32-qu8-vcvt_riscv64", ++ ":f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d", ++ ":f32-raddstoreexpminusmax_riscv64", ++ ":f32-rdminmax_riscv64", ++ ":f32-rdsum2_riscv64", ++ ":f32-rdsum_arch=rv64gcv-abi=lp64d", ++ ":f32-rdsum_riscv64", ++ ":f32-rminmax_arch=rv64gcv-abi=lp64d", ++ ":f32-rminmax_riscv64", ++ ":f32-rsum2_riscv64", ++ ":f32-rsum_riscv64", ++ ":f32-spmm_arch=rv64gcv-abi=lp64d", ++ ":f32-spmm_riscv64", ++ ":f32-vapproxgelu_riscv64", ++ ":f32-vbinary_arch=rv64gcv-abi=lp64d", ++ ":f32-vbinary_riscv64", ++ ":f32-vclamp_riscv64", ++ ":f32-vcmul_arch=rv64gcv-abi=lp64d", ++ ":f32-vcmul_riscv64", ++ ":f32-vcopysign_riscv64", ++ ":f32-vcos_riscv64", ++ ":f32-velu_riscv64", ++ ":f32-vexp_riscv64", ++ ":f32-vgelu_riscv64", ++ ":f32-vhswish_arch=rv64gcv-abi=lp64d", ++ ":f32-vhswish_riscv64", ++ ":f32-vlog_riscv64", ++ ":f32-vlrelu_arch=rv64gcv-abi=lp64d", ++ ":f32-vlrelu_riscv64", ++ ":f32-vmulcaddc_riscv64", ++ ":f32-vrnd_arch=rv64gcv-abi=lp64d", ++ ":f32-vrnd_riscv64", ++ ":f32-vrsqrt_arch=rv64gcv-abi=lp64d", ++ ":f32-vrsqrt_riscv64", ++ ":f32-vsigmoid_riscv64", ++ ":f32-vsin_riscv64", ++ ":f32-vsqrt_riscv64", ++ ":f32-vtanh_riscv64", ++ ":f32-vunary_riscv64", ++ ":operators_riscv64", ++ ":qd8-f32-qb4w-gemm_riscv64", ++ ":qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d", ++ ":qd8-f32-qc4w-gemm_riscv64", ++ ":qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d", ++ ":qd8-f32-qc8w-gemm_riscv64", ++ ":qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d", ++ ":qd8-f32-qc8w-igemm_riscv64", ++ ":qs8-dwconv_arch=rv64gcv-abi=lp64d", ++ ":qs8-dwconv_riscv64", ++ ":qs8-f32-vcvt_arch=rv64gcv-abi=lp64d", ++ ":qs8-f32-vcvt_riscv64", ++ ":qs8-packw_riscv64", ++ ":qs8-qc4w-gemm_riscv64", ++ ":qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d", ++ ":qs8-qc8w-dwconv_riscv64", ++ ":qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d", ++ ":qs8-qc8w-gemm_riscv64", ++ ":qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d", ++ ":qs8-qc8w-igemm_riscv64", ++ ":qs8-qu8-packw_riscv64", ++ ":qs8-rdsum_arch=rv64gcv-abi=lp64d", ++ ":qs8-rdsum_riscv64", ++ ":qs8-rsum_arch=rv64gcv-abi=lp64d", ++ ":qs8-rsum_riscv64", ++ ":qs8-vadd_arch=rv64gcv-abi=lp64d", ++ ":qs8-vadd_riscv64", ++ ":qs8-vaddc_arch=rv64gcv-abi=lp64d", ++ ":qs8-vaddc_riscv64", ++ ":qs8-vcvt_riscv64", ++ ":qs8-vlrelu_arch=rv64gcv-abi=lp64d", ++ ":qs8-vlrelu_riscv64", ++ ":qs8-vmul_arch=rv64gcv-abi=lp64d", ++ ":qs8-vmul_riscv64", ++ ":qs8-vmulc_arch=rv64gcv-abi=lp64d", ++ ":qs8-vmulc_riscv64", ++ ":qs8-vprelu_riscv64", ++ ":qs8-vpreluc_riscv64", ++ ":qs8-vrpreluc_riscv64", ++ ":qu8-dwconv_arch=rv64gcv-abi=lp64d", ++ ":qu8-dwconv_riscv64", ++ ":qu8-f32-vcvt_arch=rv64gcv-abi=lp64d", ++ ":qu8-f32-vcvt_riscv64", ++ ":qu8-gemm_riscv64", ++ ":qu8-igemm_riscv64", ++ ":qu8-rdsum_arch=rv64gcv-abi=lp64d", ++ ":qu8-rdsum_riscv64", ++ ":qu8-rsum_arch=rv64gcv-abi=lp64d", ++ ":qu8-rsum_riscv64", ++ ":qu8-vadd_arch=rv64gcv-abi=lp64d", ++ ":qu8-vadd_riscv64", ++ ":qu8-vaddc_arch=rv64gcv-abi=lp64d", ++ ":qu8-vaddc_riscv64", ++ ":qu8-vcvt_riscv64", ++ ":qu8-vlrelu_arch=rv64gcv-abi=lp64d", ++ ":qu8-vlrelu_riscv64", ++ ":qu8-vmul_arch=rv64gcv-abi=lp64d", ++ ":qu8-vmul_riscv64", ++ ":qu8-vmulc_arch=rv64gcv-abi=lp64d", ++ ":qu8-vmulc_riscv64", ++ ":qu8-vprelu_riscv64", ++ ":qu8-vpreluc_riscv64", ++ ":qu8-vrpreluc_riscv64", ++ ":reference_riscv64", ++ ":s8-ibilinear_riscv64", ++ ":s8-maxpool_riscv64", ++ ":s8-rdminmax_riscv64", ++ ":s8-rminmax_riscv64", ++ ":s8-vclamp_arch=rv64gcv-abi=lp64d", ++ ":s8-vclamp_riscv64", ++ ":subgraph_riscv64", ++ ":tables_riscv64", ++ ":u8-ibilinear_riscv64", ++ ":u8-lut32norm_riscv64", ++ ":u8-maxpool_riscv64", ++ ":u8-rdminmax_riscv64", ++ ":u8-rminmax_riscv64", ++ ":u8-vclamp_arch=rv64gcv-abi=lp64d", ++ ":u8-vclamp_riscv64", ++ ":x16-transposec_riscv64", ++ ":x16-x32-packw_riscv64", ++ ":x24-transposec_riscv64", ++ ":x32-packw_arch=rv64gcv-abi=lp64d", ++ ":x32-packw_riscv64", ++ ":x32-transposec_arch=rv64gcv-abi=lp64d", ++ ":x32-transposec_riscv64", ++ ":x32-unpool_riscv64", ++ ":x64-transposec_riscv64", ++ ":x8-lut_riscv64", ++ ":x8-packq_riscv64", ++ ":x8-packw_riscv64", ++ ":x8-transposec_riscv64", ++ ":xx-copy_riscv64", ++ ":xx-fill_riscv64", ++ ":xx-pad_riscv64", + ":xx-transposev_riscv64" -+ ] -+ -+ if (build_with_internal_optimization_guide) { -+ xnnpack_standalone_deps = [ + ] + } + + if (build_with_internal_optimization_guide) { + xnnpack_standalone_deps = [ +- ":configs_arm64_standalone", +- ":enums_arm64_standalone", +- ":f16-avgpool_arch=armv8.2-a+fp16_standalone", +- ":f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone", +- ":f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone", +- ":f16-dwconv_arch=armv8.2-a+fp16_standalone", +- ":f16-f32-vcvt_arm64_standalone", +- ":f16-f32acc-rdsum2_arch=armv8.2-a+fp16_standalone", +- ":f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone", +- ":f16-f32acc-rsum2_arch=armv8.2-a+fp16_standalone", +- ":f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone", +- ":f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f16-gemm_arch=armv8.2-a+fp16_standalone", +- ":f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone", +- ":f16-ibilinear_arch=armv8.2-a+fp16_standalone", +- ":f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f16-igemm_arch=armv8.2-a+fp16_standalone", +- ":f16-maxpool_arch=armv8.2-a+fp16_standalone", +- ":f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone", +- ":f16-qs8-vcvt_arm64_standalone", +- ":f16-qu8-vcvt_arm64_standalone", +- ":f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone", +- ":f16-rdminmax_arch=armv8.2-a+fp16_standalone", +- ":f16-rdminmax_arm64_standalone", +- ":f16-rminmax_arch=armv8.2-a+fp16_standalone", +- ":f16-rminmax_arm64_standalone", +- ":f16-spmm_arch=armv8.2-a+fp16_standalone", +- ":f16-vapproxgelu_arch=armv8.2-a+fp16_standalone", +- ":f16-vapproxgelu_arm64_standalone", +- ":f16-vbinary_arch=armv8.2-a+fp16_standalone", +- ":f16-vclamp_arch=armv8.2-a+fp16_standalone", +- ":f16-vcmul_arch=armv8.2-a+fp16_standalone", +- ":f16-vcos_arch=armv8.2-a+fp16_standalone", +- ":f16-vcos_arm64_standalone", +- ":f16-velu_arch=armv8.2-a+fp16_standalone", +- ":f16-vexp_arch=armv8.2-a+fp16_standalone", +- ":f16-vexp_arm64_standalone", +- ":f16-vgelu_arch=armv8.2-a+fp16_standalone", +- ":f16-vgelu_arm64_standalone", +- ":f16-vhswish_arch=armv8.2-a+fp16_standalone", +- ":f16-vlrelu_arch=armv8.2-a+fp16_standalone", +- ":f16-vmulcaddc_arch=armv8.2-a+fp16_standalone", +- ":f16-vrnd_arch=armv8.2-a+fp16_standalone", +- ":f16-vrsqrt_arch=armv8.2-a+fp16_standalone", +- ":f16-vsigmoid_arch=armv8.2-a+fp16_standalone", +- ":f16-vsin_arch=armv8.2-a+fp16_standalone", +- ":f16-vsin_arm64_standalone", +- ":f16-vsqrt_arch=armv8.2-a+fp16_standalone", +- ":f16-vtanh_arch=armv8.2-a+fp16_standalone", +- ":f16-vunary_arch=armv8.2-a+fp16_standalone", +- ":f32-argmaxpool_arm64_standalone", +- ":f32-avgpool_arm64_standalone", +- ":f32-conv-hwc2chw_arm64_standalone", +- ":f32-dwconv2d-chw_arm64_standalone", +- ":f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-dwconv_arm64_standalone", +- ":f32-f16-vcvt_arm64_standalone", +- ":f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-gemm_arm64_standalone", +- ":f32-ibilinear-chw_arm64_standalone", +- ":f32-ibilinear_arm64_standalone", +- ":f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-igemm_arm64_standalone", +- ":f32-maxpool_arm64_standalone", +- ":f32-qc4w-gemm_arm64_standalone", +- ":f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":f32-qc8w-gemm_arm64_standalone", +- ":f32-qs8-vcvt_arm64_standalone", +- ":f32-qu8-vcvt_arm64_standalone", +- ":f32-raddstoreexpminusmax_arm64_standalone", +- ":f32-rdminmax_arm64_standalone", +- ":f32-rdsum2_arm64_standalone", +- ":f32-rdsum_arm64_standalone", +- ":f32-rminmax_arm64_standalone", +- ":f32-rsum2_arm64_standalone", +- ":f32-rsum_arm64_standalone", +- ":f32-spmm_arm64_standalone", +- ":f32-vapproxgelu_arm64_standalone", +- ":f32-vbinary_arm64_standalone", +- ":f32-vclamp_arm64_standalone", +- ":f32-vcmul_arm64_standalone", +- ":f32-vcopysign_arm64_standalone", +- ":f32-vcos_arm64_standalone", +- ":f32-velu_arm64_standalone", +- ":f32-vexp_arm64_standalone", +- ":f32-vgelu_arm64_standalone", +- ":f32-vhswish_arm64_standalone", +- ":f32-vlog_arm64_standalone", +- ":f32-vlrelu_arm64_standalone", +- ":f32-vmulcaddc_arm64_standalone", +- ":f32-vrnd_arm64_standalone", +- ":f32-vrsqrt_arm64_standalone", +- ":f32-vsigmoid_arm64_standalone", +- ":f32-vsin_arm64_standalone", +- ":f32-vsqrt_arm64_standalone", +- ":f32-vtanh_arm64_standalone", +- ":f32-vunary_arm64_standalone", +- ":operators_arm64_standalone", +- ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", +- ":pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":qb4-packw_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone", +- ":qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qb4w-gemm_arm64_standalone", +- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qc4w-gemm_arm64_standalone", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qc8w-gemm_arm64_standalone", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qd8-f32-qc8w-igemm_arm64_standalone", +- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone", +- ":qs8-dwconv_arm64_standalone", +- ":qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone", +- ":qs8-f32-vcvt_arm64_standalone", +- ":qs8-packw_arm64_standalone", +- ":qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qs8-qc4w-gemm_arm64_standalone", +- ":qs8-qc8w-dwconv_arm64_standalone", +- ":qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone", +- ":qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qs8-qc8w-gemm_arm64_standalone", +- ":qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone", +- ":qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone", +- ":qs8-qc8w-igemm_arm64_standalone", +- ":qs8-qu8-packw_arm64_standalone", +- ":qs8-rdsum_arm64_standalone", +- ":qs8-rsum_arch=armv8.2-a+dotprod_standalone", +- ":qs8-rsum_arm64_standalone", +- ":qs8-vadd_arm64_standalone", +- ":qs8-vaddc_arm64_standalone", +- ":qs8-vcvt_arm64_standalone", +- ":qs8-vlrelu_arm64_standalone", +- ":qs8-vmul_arm64_standalone", +- ":qs8-vmulc_arm64_standalone", +- ":qs8-vprelu_arm64_standalone", +- ":qs8-vpreluc_arm64_standalone", +- ":qs8-vrpreluc_arm64_standalone", +- ":qu8-dwconv_arm64_standalone", +- ":qu8-f32-vcvt_arm64_standalone", +- ":qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qu8-gemm_arm64_standalone", +- ":qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone", +- ":qu8-igemm_arm64_standalone", +- ":qu8-rdsum_arm64_standalone", +- ":qu8-rsum_arm64_standalone", +- ":qu8-vadd_arm64_standalone", +- ":qu8-vaddc_arm64_standalone", +- ":qu8-vcvt_arm64_standalone", +- ":qu8-vlrelu_arm64_standalone", +- ":qu8-vmul_arm64_standalone", +- ":qu8-vmulc_arm64_standalone", +- ":qu8-vprelu_arm64_standalone", +- ":qu8-vpreluc_arm64_standalone", +- ":qu8-vrpreluc_arm64_standalone", +- ":reference_arm64_standalone", +- ":s8-ibilinear_arm64_standalone", +- ":s8-maxpool_arm64_standalone", +- ":s8-rdminmax_arm64_standalone", +- ":s8-rminmax_arm64_standalone", +- ":s8-vclamp_arm64_standalone", +- ":subgraph_arm64_standalone", +- ":tables_arm64_standalone", +- ":u8-ibilinear_arm64_standalone", +- ":u8-lut32norm_arm64_standalone", +- ":u8-maxpool_arm64_standalone", +- ":u8-rdminmax_arm64_standalone", +- ":u8-rminmax_arm64_standalone", +- ":u8-vclamp_arm64_standalone", +- ":x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone", +- ":x16-packw_arm64_standalone", +- ":x16-transposec_arm64_standalone", +- ":x16-x32-packw_arm64_standalone", +- ":x24-transposec_arm64_standalone", +- ":x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone", +- ":x32-packw_arm64_standalone", +- ":x32-transposec_arm64_standalone", +- ":x32-unpool_arm64_standalone", +- ":x64-transposec_arm64_standalone", +- ":x8-lut_arm64_standalone", +- ":x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone", +- ":x8-packq_arm64_standalone", +- ":x8-packw_arm64_standalone", +- ":x8-transposec_arm64_standalone", +- ":xx-copy_arm64_standalone", +- ":xx-fill_arm64_standalone", +- ":xx-pad_arm64_standalone", +- ":xx-transposev_arm64_standalone", + ":configs_riscv64_standalone", + ":enums_riscv64_standalone", + ":f16-f32-vcvt_riscv64_standalone", @@ -1544,10 +3199,12 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone", + ":f32-raddstoreexpminusmax_riscv64_standalone", + ":f32-rdminmax_riscv64_standalone", ++ ":f32-rdsum2_riscv64_standalone", + ":f32-rdsum_arch=rv64gcv-abi=lp64d_standalone", + ":f32-rdsum_riscv64_standalone", + ":f32-rminmax_arch=rv64gcv-abi=lp64d_standalone", + ":f32-rminmax_riscv64_standalone", ++ ":f32-rsum2_riscv64_standalone", + ":f32-rsum_riscv64_standalone", + ":f32-spmm_arch=rv64gcv-abi=lp64d_standalone", + ":f32-spmm_riscv64_standalone", @@ -1673,12 +3330,184 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":xx-fill_riscv64_standalone", + ":xx-pad_riscv64_standalone", + ":xx-transposev_riscv64_standalone" -+ ] -+ } + ] + } +-} else if (current_cpu == "riscv64") { +} else +if (current_cpu == "ppc64") { + -+ xnnpack_deps = [ + if (build_with_chromium) { + xnnpack_deps = [ +- ":configs_riscv64", +- ":enums_riscv64", +- ":f16-f32-vcvt_riscv64", +- ":f16-qs8-vcvt_riscv64", +- ":f16-qu8-vcvt_riscv64", +- ":f16-rdminmax_riscv64", +- ":f16-rminmax_riscv64", +- ":f16-vapproxgelu_riscv64", +- ":f16-vcos_riscv64", +- ":f16-vexp_riscv64", +- ":f16-vgelu_riscv64", +- ":f16-vsin_riscv64", +- ":f32-argmaxpool_arch=rv64gcv-abi=lp64d", +- ":f32-argmaxpool_riscv64", +- ":f32-avgpool_riscv64", +- ":f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d", +- ":f32-conv-hwc2chw_riscv64", +- ":f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d", +- ":f32-dwconv2d-chw_riscv64", +- ":f32-dwconv_arch=rv64gcv-abi=lp64d", +- ":f32-dwconv_riscv64", +- ":f32-f16-vcvt_riscv64", +- ":f32-gemm_arch=rv64gcv-abi=lp64d", +- ":f32-gemm_riscv64", +- ":f32-ibilinear-chw_riscv64", +- ":f32-ibilinear_riscv64", +- ":f32-igemm_arch=rv64gcv-abi=lp64d", +- ":f32-igemm_riscv64", +- ":f32-maxpool_arch=rv64gcv-abi=lp64d", +- ":f32-maxpool_riscv64", +- ":f32-qc4w-gemm_riscv64", +- ":f32-qc8w-gemm_riscv64", +- ":f32-qs8-vcvt_arch=rv64gcv-abi=lp64d", +- ":f32-qs8-vcvt_riscv64", +- ":f32-qu8-vcvt_arch=rv64gcv-abi=lp64d", +- ":f32-qu8-vcvt_riscv64", +- ":f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d", +- ":f32-raddstoreexpminusmax_riscv64", +- ":f32-rdminmax_riscv64", +- ":f32-rdsum2_riscv64", +- ":f32-rdsum_arch=rv64gcv-abi=lp64d", +- ":f32-rdsum_riscv64", +- ":f32-rminmax_arch=rv64gcv-abi=lp64d", +- ":f32-rminmax_riscv64", +- ":f32-rsum2_riscv64", +- ":f32-rsum_riscv64", +- ":f32-spmm_arch=rv64gcv-abi=lp64d", +- ":f32-spmm_riscv64", +- ":f32-vapproxgelu_riscv64", +- ":f32-vbinary_arch=rv64gcv-abi=lp64d", +- ":f32-vbinary_riscv64", +- ":f32-vclamp_riscv64", +- ":f32-vcmul_arch=rv64gcv-abi=lp64d", +- ":f32-vcmul_riscv64", +- ":f32-vcopysign_riscv64", +- ":f32-vcos_riscv64", +- ":f32-velu_riscv64", +- ":f32-vexp_riscv64", +- ":f32-vgelu_riscv64", +- ":f32-vhswish_arch=rv64gcv-abi=lp64d", +- ":f32-vhswish_riscv64", +- ":f32-vlog_riscv64", +- ":f32-vlrelu_arch=rv64gcv-abi=lp64d", +- ":f32-vlrelu_riscv64", +- ":f32-vmulcaddc_riscv64", +- ":f32-vrnd_arch=rv64gcv-abi=lp64d", +- ":f32-vrnd_riscv64", +- ":f32-vrsqrt_arch=rv64gcv-abi=lp64d", +- ":f32-vrsqrt_riscv64", +- ":f32-vsigmoid_riscv64", +- ":f32-vsin_riscv64", +- ":f32-vsqrt_riscv64", +- ":f32-vtanh_riscv64", +- ":f32-vunary_riscv64", +- ":operators_riscv64", +- ":qd8-f32-qb4w-gemm_riscv64", +- ":qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d", +- ":qd8-f32-qc4w-gemm_riscv64", +- ":qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d", +- ":qd8-f32-qc8w-gemm_riscv64", +- ":qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d", +- ":qd8-f32-qc8w-igemm_riscv64", +- ":qs8-dwconv_arch=rv64gcv-abi=lp64d", +- ":qs8-dwconv_riscv64", +- ":qs8-f32-vcvt_arch=rv64gcv-abi=lp64d", +- ":qs8-f32-vcvt_riscv64", +- ":qs8-packw_riscv64", +- ":qs8-qc4w-gemm_riscv64", +- ":qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d", +- ":qs8-qc8w-dwconv_riscv64", +- ":qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d", +- ":qs8-qc8w-gemm_riscv64", +- ":qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d", +- ":qs8-qc8w-igemm_riscv64", +- ":qs8-qu8-packw_riscv64", +- ":qs8-rdsum_arch=rv64gcv-abi=lp64d", +- ":qs8-rdsum_riscv64", +- ":qs8-rsum_arch=rv64gcv-abi=lp64d", +- ":qs8-rsum_riscv64", +- ":qs8-vadd_arch=rv64gcv-abi=lp64d", +- ":qs8-vadd_riscv64", +- ":qs8-vaddc_arch=rv64gcv-abi=lp64d", +- ":qs8-vaddc_riscv64", +- ":qs8-vcvt_riscv64", +- ":qs8-vlrelu_arch=rv64gcv-abi=lp64d", +- ":qs8-vlrelu_riscv64", +- ":qs8-vmul_arch=rv64gcv-abi=lp64d", +- ":qs8-vmul_riscv64", +- ":qs8-vmulc_arch=rv64gcv-abi=lp64d", +- ":qs8-vmulc_riscv64", +- ":qs8-vprelu_riscv64", +- ":qs8-vpreluc_riscv64", +- ":qs8-vrpreluc_riscv64", +- ":qu8-dwconv_arch=rv64gcv-abi=lp64d", +- ":qu8-dwconv_riscv64", +- ":qu8-f32-vcvt_arch=rv64gcv-abi=lp64d", +- ":qu8-f32-vcvt_riscv64", +- ":qu8-gemm_riscv64", +- ":qu8-igemm_riscv64", +- ":qu8-rdsum_arch=rv64gcv-abi=lp64d", +- ":qu8-rdsum_riscv64", +- ":qu8-rsum_arch=rv64gcv-abi=lp64d", +- ":qu8-rsum_riscv64", +- ":qu8-vadd_arch=rv64gcv-abi=lp64d", +- ":qu8-vadd_riscv64", +- ":qu8-vaddc_arch=rv64gcv-abi=lp64d", +- ":qu8-vaddc_riscv64", +- ":qu8-vcvt_riscv64", +- ":qu8-vlrelu_arch=rv64gcv-abi=lp64d", +- ":qu8-vlrelu_riscv64", +- ":qu8-vmul_arch=rv64gcv-abi=lp64d", +- ":qu8-vmul_riscv64", +- ":qu8-vmulc_arch=rv64gcv-abi=lp64d", +- ":qu8-vmulc_riscv64", +- ":qu8-vprelu_riscv64", +- ":qu8-vpreluc_riscv64", +- ":qu8-vrpreluc_riscv64", +- ":reference_riscv64", +- ":s8-ibilinear_riscv64", +- ":s8-maxpool_riscv64", +- ":s8-rdminmax_riscv64", +- ":s8-rminmax_riscv64", +- ":s8-vclamp_arch=rv64gcv-abi=lp64d", +- ":s8-vclamp_riscv64", +- ":subgraph_riscv64", +- ":tables_riscv64", +- ":u8-ibilinear_riscv64", +- ":u8-lut32norm_riscv64", +- ":u8-maxpool_riscv64", +- ":u8-rdminmax_riscv64", +- ":u8-rminmax_riscv64", +- ":u8-vclamp_arch=rv64gcv-abi=lp64d", +- ":u8-vclamp_riscv64", +- ":x16-transposec_riscv64", +- ":x16-x32-packw_riscv64", +- ":x24-transposec_riscv64", +- ":x32-packw_arch=rv64gcv-abi=lp64d", +- ":x32-packw_riscv64", +- ":x32-transposec_arch=rv64gcv-abi=lp64d", +- ":x32-transposec_riscv64", +- ":x32-unpool_riscv64", +- ":x64-transposec_riscv64", +- ":x8-lut_riscv64", +- ":x8-packq_riscv64", +- ":x8-packw_riscv64", +- ":x8-transposec_riscv64", +- ":xx-copy_riscv64", +- ":xx-fill_riscv64", +- ":xx-pad_riscv64", +- ":xx-transposev_riscv64", + ":configs_ppc64", + ":enums_ppc64", + ":f16-f32-vcvt_ppc64", @@ -1708,8 +3537,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f32-qu8-vcvt_ppc64", + ":f32-raddstoreexpminusmax_ppc64", + ":f32-rdminmax_ppc64", ++ ":f32-rdsum2_ppc64", + ":f32-rdsum_ppc64", + ":f32-rminmax_ppc64", ++ ":f32-rsum2_ppc64", + ":f32-rsum_ppc64", + ":f32-spmm_ppc64", + ":f32-vapproxgelu_ppc64", @@ -1800,7 +3631,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":xx-fill_ppc64", + ":xx-pad_ppc64", + ":xx-transposev_ppc64" - ] + ] + } if (build_with_internal_optimization_guide) { xnnpack_standalone_deps = [ @@ -1843,10 +3675,12 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - ":f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone", - ":f32-raddstoreexpminusmax_riscv64_standalone", - ":f32-rdminmax_riscv64_standalone", +- ":f32-rdsum2_riscv64_standalone", - ":f32-rdsum_arch=rv64gcv-abi=lp64d_standalone", - ":f32-rdsum_riscv64_standalone", - ":f32-rminmax_arch=rv64gcv-abi=lp64d_standalone", - ":f32-rminmax_riscv64_standalone", +- ":f32-rsum2_riscv64_standalone", - ":f32-rsum_riscv64_standalone", - ":f32-spmm_arch=rv64gcv-abi=lp64d_standalone", - ":f32-spmm_riscv64_standalone", @@ -2001,8 +3835,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + ":f32-qu8-vcvt_ppc64_standalone", + ":f32-raddstoreexpminusmax_ppc64_standalone", + ":f32-rdminmax_ppc64_standalone", ++ ":f32-rdsum2_ppc64_standalone", + ":f32-rdsum_ppc64_standalone", + ":f32-rminmax_ppc64_standalone", ++ ":f32-rsum2_ppc64_standalone", + ":f32-rsum_ppc64_standalone", + ":f32-spmm_ppc64_standalone", + ":f32-vapproxgelu_ppc64_standalone", @@ -2096,48 +3932,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn ] } } else { -@@ -1840,6 +2098,7 @@ if (current_cpu == "x64" || current_cpu +@@ -1891,6 +2155,7 @@ if (current_cpu == "x64" || current_cpu } } + - source_set("xnnpack") { - public = [ "src/include/xnnpack.h" ] + if (build_with_chromium) { + source_set("xnnpack") { + public = [ "src/include/xnnpack.h" ] +@@ -1901,37 +2166,37 @@ if (build_with_chromium) { + configs += [ ":xnnpack_private_config" ] -@@ -1849,8 +2108,8 @@ source_set("xnnpack") { - configs += [ ":xnnpack_private_config" ] - - sources = [ -- "build_identifier.c", -- "src/include/xnnpack.h", -+ "src/include/xnnpack.h", -+ "build_identifier.c", - "src/src/allocator.c", - "src/src/cache.c", - "src/src/datatype.c", -@@ -1871,15 +2130,15 @@ source_set("xnnpack") { - "src/src/runtime.c", - "src/src/sanitizers.c", - "src/src/subgraph.c", -- "src/src/tensor.c", + sources = [ +- "build_identifier.c", +- "src/include/xnnpack.h", ++ "src/include/xnnpack.h", ++ "build_identifier.c", + "src/src/allocator.c", +- "src/src/cache.c", +- "src/src/datatype.c", +- "src/src/indirection.c", +- "src/src/init.c", +- "src/src/log.c", +- "src/src/memory-planner.c", +- "src/src/memory.c", +- "src/src/microkernel-utils.c", +- "src/src/microparams-init.c", +- "src/src/mutex.c", +- "src/src/normalization.c", +- "src/src/operator-delete.c", +- "src/src/operator-run.c", +- "src/src/operator-utils.c", +- "src/src/pack-lh.cc", +- "src/src/params.c", +- "src/src/runtime.c", +- "src/src/sanitizers.c", +- "src/src/subgraph.c", +- "src/src/tensor.c", ++ "src/src/cache.c", ++ "src/src/datatype.c", ++ "src/src/indirection.c", ++ "src/src/init.c", ++ "src/src/log.c", ++ "src/src/memory-planner.c", ++ "src/src/memory.c", ++ "src/src/microkernel-utils.c", ++ "src/src/microparams-init.c", ++ "src/src/mutex.c", ++ "src/src/normalization.c", ++ "src/src/operator-delete.c", ++ "src/src/operator-run.c", ++ "src/src/operator-utils.c", ++ "src/src/pack-lh.cc", ++ "src/src/params.c", ++ "src/src/runtime.c", ++ "src/src/sanitizers.c", ++ "src/src/subgraph.c", + "src/src/tensor.c" - ] + ] - deps = xnnpack_deps + [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] + deps = xnnpack_deps + [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - public_configs = [ ":xnnpack_public_config" ] - } -@@ -1895,37 +2154,37 @@ if (build_with_internal_optimization_gui + public_configs = [ ":xnnpack_public_config" ] + } +@@ -1948,37 +2213,37 @@ if (build_with_internal_optimization_gui configs += [ ":xnnpack_private_config" ] sources = [ @@ -2202,93 +4070,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn public_configs = [ ":xnnpack_public_config" ] -@@ -1936,35 +2195,87 @@ if (build_with_internal_optimization_gui +@@ -1989,56261 +2254,65773 @@ if (build_with_internal_optimization_gui } if (current_cpu == "x64" || current_cpu == "x86") { -- source_set("configs_x64") { -- cflags = [] -+source_set("configs_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("configs_x64_standalone") { +- if (build_with_chromium) { +- source_set("configs_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("configs_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", + "src/src/configs/avgpool-config.c", + "src/src/configs/binary-elementwise-config.c", + "src/src/configs/cmul-config.c", @@ -2312,24 +4149,26 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "src/src/configs/x8-lut-config.c", + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" - ] ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -1976,75 +2287,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("configs_x64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -2376,79 +4215,89 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("enums_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("enums_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("enums_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("enums_x64_standalone") { ++ source_set("configs_x64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2056,56 +2352,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("enums_x64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -2481,64 +4330,53 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f16-avgpool_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f16-avgpool_f16c-no-avx2-no-fma") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f16-avgpool_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("enums_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2117,59 +2413,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -2571,77 +4409,68 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-dwconv_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f16-dwconv_f16c-fma-no-avx2") { +- if (build_with_chromium) { +- source_set("f16-dwconv_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- ++ source_set("enums_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2181,60 +2480,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -2677,72 +4506,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2246,62 +2543,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -2776,82 +4581,64 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set( -- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2313,61 +2612,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-avgpool_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" ++ ] + +- if (build_with_chromium) { +- source_set( +- "f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -2889,69 +4676,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", ++ source_set("f16-avgpool_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", + "-mno-avx2", + "-mno-fma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-f16c.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2379,55 +2673,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -2984,67 +4758,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("f16-f32-vcvt_sse2-no-sse3") { -+source_set("f16-f32-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2439,54 +2732,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { @@ -3075,66 +4829,61 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" -+ ] - -- source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2498,51 +2791,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-dwconv_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" ++ ] + +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3143,173 +4892,171 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c", - ] -+source_set("f16-f32-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-f32-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_x64_standalone") { ++ source_set("f16-dwconv_f16c-fma-no-avx2_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2554,53 +2848,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-f32-vcvt_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-fma3-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-fma3.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", - ] -+source_set("f16-f32acc-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-f32acc-gemm_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2612,58 +2911,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f16-f32acc-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3343,71 +5090,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-f32acc-igemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f16-f32acc-igemm_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f16-f32acc-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f16-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c", -+ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx-int16-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2675,62 +2974,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3441,82 +5175,237 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-avx512skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-avx512skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" ++ ] -- source_set( -- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f16-f32acc-rdsum2_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-f16c.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rdsum2_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-f16c.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", ++ source_set("f16-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", + "-mavx512cd", + "-mavx512dq", + "-mavx512f", + "-mavx512vl", + "-mf16c", + "-mfma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-avx512skx-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2742,61 +3043,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3534,7 +5423,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-c64.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -3554,69 +5443,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2808,61 +3104,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3629,7 +5496,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-c32.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -3649,82 +5516,229 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" ++ ] + +- if (build_with_chromium) { +- source_set( +- "f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-avx512skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-avx512skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f16-f32acc-rsum2_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-f16c.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-f16c-u16.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rsum2_f16c-no-avx2-no-fma_standalone") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-f16c.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2874,61 +3173,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3762,69 +5776,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -2940,56 +3234,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" ++ ] + +- if (build_with_chromium) { +- source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3857,69 +5860,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-ibilinear_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f16-ibilinear_f16c-fma-no-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f16-ibilinear_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- ++ source_set("f16-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse2-int16-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3001,56 +3295,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -3932,7 +5921,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-c8.c", +- "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-u8.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -3952,69 +5941,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f16-maxpool_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-maxpool_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set("f16-maxpool_f16c-fma-avx2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-maxpool_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3062,55 +3356,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -4047,66 +6014,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-maxpool_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-maxpool_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3122,51 +3415,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" ++ ] + +- if (build_with_chromium) { +- source_set("f16-maxpool_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -4115,253 +6073,242 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c", - ] -+source_set("f16-qs8-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-qs8-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-qs8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-qs8-vcvt_x64_standalone") { ++ source_set("f16-f32-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ -+ ++ "-mno-sse4.2", ++ "-msse4.1" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-sse41-int16-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3178,48 +3472,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-qs8-vcvt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", - ] -+source_set("f16-qu8-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-qu8-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qu8-vcvt_x64_standalone") { +- if (build_with_chromium) { +- source_set("f16-qu8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3231,52 +3529,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-qu8-vcvt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", - ] -+source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3288,53 +3590,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -4399,167 +6346,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f16-rdminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f16-rdminmax_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rdminmax_x64_standalone") { +- if (build_with_chromium) { +- source_set("f16-rdminmax_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-f32acc-gemm_f16c-fma-avx2") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3346,60 +3649,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-rdminmax_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c", - ] -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set( -- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- if (build_with_chromium) { +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", ++ source_set("f16-f32acc-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", + "-mf16c", + "-mfma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-gemm/gen/f16-f32acc-gemm-4x16-minmax-avx2-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3411,73 +3722,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -4599,96 +6521,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512fp16", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3489,66 +3801,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -4731,69 +6614,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-rminmax_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-rminmax_f16c-no-avx2-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", -+ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3560,54 +3862,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-f32acc-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" ++ ] + +- if (build_with_chromium) { +- source_set("f16-rminmax_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/f16-rmax-f16c-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -4826,78 +6700,28 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-rminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-rminmax_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f16-rminmax_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_x64_standalone") { ++ source_set("f16-f32acc-igemm_f16c-fma-avx2_standalone") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3619,50 +3923,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-rminmax_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f16-f32acc-igemm/gen/f16-f32acc-igemm-4x16-minmax-avx2-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -4905,236 +6729,263 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", - ] -+source_set("f16-vapproxgelu_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-avx512skx.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vapproxgelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vapproxgelu_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_x64_standalone") { ++ source_set("f16-f32acc-rdsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ -+ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3674,78 +3980,106 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vapproxgelu_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-avx512skx.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", - ] -+source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-f32acc-rdsum2_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-f16c.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set( -- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512fp16", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512fp16", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] +- if (build_with_chromium) { +- source_set( +- "f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512fp16", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", +- "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3757,100 +4091,92 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -5193,122 +7044,78 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-vbinary_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] - -- source_set("f16-vbinary_f16c-no-avx2-no-fma") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", ++ source_set("f16-f32acc-rdsum2_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", + "-mno-avx2", + "-mno-fma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-f16c.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3862,74 +4188,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f16-vbinary_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -5359,69 +7166,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-vclamp_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f16-vclamp_f16c-no-avx2-no-fma") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f16-vclamp_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", -+ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3941,52 +4249,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -5431,171 +7231,177 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-avx2", - "-mno-fma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c", - ] -+source_set("f16-vcos_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vcos_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vcos_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_x64_standalone") { ++ source_set("f16-f32acc-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ -+ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -3998,52 +4306,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vcos_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", - ] -+source_set("f16-velu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcos_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-velu_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-velu_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", -+ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4055,52 +4367,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f16-velu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -5605,253 +7411,284 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c", - ] -+source_set("f16-vexp_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vexp_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vexp_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_x64_standalone") { ++ source_set("f16-f32acc-rdsum_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4112,48 +4424,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vexp_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", - ] -+source_set("f16-vgelu_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-avx512skx.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vgelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vgelu_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_x64_standalone") { ++ source_set("f16-f32acc-rsum2_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { + cflags = [ -+ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4165,52 +4481,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vgelu_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-avx512skx.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] -+source_set("f16-vhswish_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vgelu_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-f32acc-rsum2_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-f16c.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vhswish_f16c-no-avx2-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f16-vhswish_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", -+ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4222,56 +4542,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -5884,69 +7721,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-vlrelu_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", ++ source_set("f16-f32acc-rsum2_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", + "-mno-avx2", + "-mno-fma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-f16c.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4283,56 +4603,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f16-vlrelu_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -5979,69 +7807,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-vmulcaddc_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f16-vmulcaddc_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4344,59 +4664,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6074,77 +7895,70 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-vrnd_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -- source_set("f16-vrnd_f16c-no-avx2-no-fma") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f16-vrnd_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- ++ source_set("f16-f32acc-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-avx512skx-u32-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4408,59 +4731,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6180,69 +7994,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4472,56 +4792,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6275,69 +8067,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-vsigmoid_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-vsigmoid_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4533,52 +4853,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" ++ ] + +- if (build_with_chromium) { +- source_set("f16-vsigmoid_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6347,171 +8129,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c", - ] -+source_set("f16-vsin_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vsin_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vsin_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_x64_standalone") { ++ source_set("f16-f32acc-rsum_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4590,52 +4910,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsin_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-f16c-u32-acc4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", - ] -+source_set("f16-vsqrt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-ibilinear_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f16-vsqrt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4647,56 +4971,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6544,69 +8323,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-vtanh_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vtanh_f16c-fma-no-avx2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", ++ source_set("f16-ibilinear_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", + "-mfma", + "-mno-avx2" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", -+ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-fma3-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4708,56 +5032,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f16-vtanh_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6639,69 +8409,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-vtanh_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f16-vtanh_f16c-no-avx2-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f16-vtanh_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-maxpool_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c", -+ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4769,56 +5093,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6734,69 +8493,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-vunary_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vunary_f16c-no-avx2-no-fma") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f16-vunary_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- ++ source_set("f16-maxpool_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c", -+ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-avx2-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4830,56 +5154,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6829,68 +8582,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f16-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-vunary_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f16-vunary_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vunary_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4891,55 +5215,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6923,66 +8655,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-argmaxpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-argmaxpool_sse2-no-sse3") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -4951,51 +5274,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-maxpool_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-argmaxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -6991,174 +8714,164 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c", - ] -+source_set("f32-argmaxpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-argmaxpool_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-argmaxpool_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_x64_standalone") { ++ source_set("f16-maxpool_sse4.1-no-sse4.2_standalone") { + cflags = [ -+ ++ "-mno-sse4.2", ++ "-msse4.1" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5007,53 +5331,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-argmaxpool_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-sse41-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-qs8-vcvt_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5065,53 +5394,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -7174,164 +8887,156 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-avgpool_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-avgpool_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-avgpool_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_avx512f_standalone") { ++ source_set("f16-qs8-vcvt_x64_standalone") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5123,51 +5451,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-avgpool_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", - ] -+source_set("f32-avgpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-avgpool_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f16-qu8-vcvt_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5179,51 +5510,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-avgpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -7340,168 +9045,163 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c", - ] -+source_set("f32-avgpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-avgpool_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-avgpool_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_x64_standalone") { ++ source_set("f16-qu8-vcvt_x64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5235,51 +5567,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-avgpool_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] -+source_set("f32-conv-hwc2chw_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-conv-hwc2chw_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- ++if (build_with_chromium) { ++ source_set("f16-raddstoreexpminusmax_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5291,51 +5626,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-conv-hwc2chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -7510,176 +9210,169 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse2", - "-msse", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c", - ] -+source_set("f32-conv-hwc2chw_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-conv-hwc2chw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-conv-hwc2chw_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_x64_standalone") { ++ source_set("f16-raddstoreexpminusmax_f16c-fma-avx2_standalone") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5347,54 +5683,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-conv-hwc2chw_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-avx2-rr1-p2-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] -+source_set("f32-dwconv2d-chw_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-conv-hwc2chw_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-dwconv2d-chw_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5406,57 +5748,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -7714,66 +9407,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- ++ source_set("f16-rdminmax_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5468,58 +5807,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -7805,88 +9490,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-dwconv2d-chw_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-dwconv2d-chw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ -+ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5531,63 +5878,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-dwconv2d-chw_x64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512skx-u64-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512skx-u64-acc4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -7917,80 +9614,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { -+source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5599,59 +5947,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8032,71 +9701,70 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-dwconv_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" -+ ] -- source_set("f32-dwconv_avx512f") { -- cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-dwconv_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { + cflags = [ -+ "-mavx512f" ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5663,58 +6010,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-dwconv_avx512f_standalone") { - cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -8123,77 +9791,68 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-dwconv_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-dwconv_f16c-fma-no-avx2") { +- if (build_with_chromium) { +- source_set("f32-dwconv_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", ++ source_set("f16-rminmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", + "-mfma", -+ "-mno-avx2" - ] -- ++ "-mgfni" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-avx512fp16-u128-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-avx512fp16-u128-acc4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5726,61 +6077,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8229,74 +9888,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-dwconv_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-dwconv_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-dwconv_sse-no-sse2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5792,63 +6142,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8331,94 +9965,84 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-dwconv_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-dwconv_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_x64_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("f16-rminmax_f16c-no-avx2-no-fma") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5860,62 +6217,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-dwconv_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-dwconv_x64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/f16-rmax-f16c-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -8451,72 +10075,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { -+source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5927,62 +6280,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8555,77 +10156,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" -+ ] -- source_set( -- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set( +- "f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-rminmax_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -5994,61 +6349,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8663,69 +10243,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { -+ cflags = [ -+ "-mf16c", -+ "-mno-avx2", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { +- cflags = [ +- "-mf16c", +- "-mno-avx2", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { - cflags = [ - "-mf16c", -- "-mno-avx2", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-fma" - ] -- ++ source_set("f16-rminmax_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6060,55 +6410,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8758,66 +10332,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-f16-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-f16-vcvt_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6120,54 +6469,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8849,66 +10403,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6179,51 +6528,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-vapproxgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -8917,182 +10461,195 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c", - ] -+source_set("f32-f16-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-f16-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_x64_standalone") { ++ source_set("f16-vapproxgelu_x64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6235,56 +6585,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-f16-vcvt_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", - ] -+source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6296,59 +6654,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -9129,77 +10686,125 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vbinary_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512fp16", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmax-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmin-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vminc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmul-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsub-avx512fp16-u64.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-avx512fp16-u64.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-gemm_avx512f") { +- cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-gemm_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-gemm_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6360,63 +6717,72 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-gemm_avx512f_standalone") { - cflags = [ "-mavx512f" ] -- ++if (build_with_chromium) { ++ source_set("f16-vbinary_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", @@ -9225,92 +10830,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-gemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", +- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-gemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" -+ ] - -- source_set("f32-gemm_f16c-fma-no-avx2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -- "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", -+ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6428,65 +6794,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -9351,71 +10921,79 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-gemm_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-gemm_sse-no-sse2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- ++ source_set("f16-vbinary_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vmax-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-f16c-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-f16c-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6498,60 +6857,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-gemm_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -9449,88 +11027,88 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-gemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-gemm_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-gemm_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-vclamp_f16c-no-avx2-no-fma") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6563,58 +6928,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-gemm_x64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vclamp_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-f16c-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -9561,66 +11139,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-ibilinear-chw_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear-chw_sse-no-sse2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6626,51 +6987,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-ibilinear-chw_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -9629,168 +11188,161 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse2", - "-msse", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c", - ] -+source_set("f32-ibilinear-chw_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear-chw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-ibilinear-chw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] ++if (build_with_chromium) { ++ source_set("f16-vcos_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6682,51 +7044,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-ibilinear-chw_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", - ] -+source_set("f32-ibilinear_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-ibilinear_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] +- if (build_with_chromium) { +- source_set("f32-ibilinear_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6738,51 +7103,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -9799,182 +11351,170 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse2", - "-msse", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-c8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-sse-u8.c", - ] -+source_set("f32-ibilinear_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-ibilinear_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c", +- ] ++if (build_with_chromium) { ++ source_set("f16-velu_f16c-fma-avx2") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6794,56 +7160,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-ibilinear_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-velu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-avx2-rr1-p3-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c", - ] -+source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6855,59 +7229,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10016,71 +11556,73 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-igemm_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" -+ ] -- source_set("f32-igemm_avx512f") { -- cflags = [ "-mavx512f" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-igemm_avx512f") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f16-vexp_x64") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6919,62 +7292,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-igemm_avx512f_standalone") { - cflags = [ "-mavx512f" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -10107,89 +11649,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-igemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-igemm_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", -+ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -6986,64 +7367,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-igemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", +- "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", +- "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10234,66 +11742,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-igemm_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-igemm_sse-no-sse2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] +- if (build_with_chromium) { +- source_set("f32-igemm_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-vgelu_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7055,60 +7430,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10327,88 +11819,76 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-igemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-igemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-igemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_x64_standalone") { ++ source_set("f16-vgelu_x64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7120,58 +7501,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-igemm_x64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -10444,61 +11924,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-maxpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-maxpool_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-maxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-vhswish_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7183,51 +7560,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10507,176 +11976,175 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c", - ] -+source_set("f32-maxpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-maxpool_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-maxpool_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_x64_standalone") { ++ source_set("f16-vhswish_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7239,54 +7617,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-maxpool_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-f16c-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", ++if (build_with_chromium) { ++ source_set("f16-vlrelu_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", + "-mno-avx2", -+ "-mno-f16c", + "-mno-fma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7298,59 +7682,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10711,71 +12179,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qc4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-qc4w-gemm_f16c-fma-avx2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f16-vlrelu_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7362,58 +7745,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10809,71 +12263,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7425,57 +7808,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -10907,68 +12338,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7487,53 +7869,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-vmulcaddc_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11001,159 +12423,150 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qc4w-gemm_x64") { -+ cflags = [ -- source_set("f32-qc4w-gemm_x64") { -- cflags = [] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_x64_standalone") { ++ source_set("f16-vmulcaddc_f16c-fma-no-avx2_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7545,55 +7928,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-qc4w-gemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-fma3-2x.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", - ] -+source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", ++if (build_with_chromium) { ++ source_set("f16-vrnd_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", + "-mno-avx2", -+ "-mno-f16c", + "-mno-fma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7605,59 +7993,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11188,71 +12601,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("f32-qc8w-gemm_f16c-fma-avx2") { -+source_set("f32-qc8w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f16-vrnd_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-f16c-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7669,65 +8056,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11286,90 +12688,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7739,65 +8131,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11410,71 +12777,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7809,57 +8194,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-vrsqrt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11508,68 +12864,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("f16-vrsqrt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-f16c-rsqrt-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7871,53 +8255,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11602,157 +12946,155 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-qc8w-gemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-qc8w-gemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("f16-vsigmoid_f16c-fma-avx2") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7929,54 +8314,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-qc8w-gemm_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsigmoid_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-avx2-rr1-p2-rcp-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -7988,57 +8377,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11791,64 +13133,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-qs8-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-qs8-vcvt_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-vsin_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8050,61 +8438,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11881,82 +13208,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f16-vsin_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8116,60 +8507,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -11994,66 +13305,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-qs8-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-qs8-vcvt_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8181,54 +8566,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12085,66 +13376,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8240,52 +8625,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-vsqrt_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12176,157 +13459,146 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qs8-vcvt_x64") { -+ cflags = [ -- source_set("f32-qs8-vcvt_x64") { -- cflags = [] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_x64_standalone") { ++ source_set("f16-vsqrt_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8297,54 +8684,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-qs8-vcvt_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-f16c-rsqrt-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] -+source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qs8-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-vtanh_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8356,57 +8747,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12360,69 +13632,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qu8-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-qu8-vcvt_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f16-vtanh_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-fma3-polynomial-p19h9t2-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8418,61 +8808,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12455,82 +13714,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8484,60 +8877,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12568,66 +13797,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-qu8-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-qu8-vcvt_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8549,52 +8936,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-vtanh_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12659,237 +13880,255 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qu8-vcvt_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-qu8-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_x64_standalone") { ++ source_set("f16-vtanh_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8606,49 +8995,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-qu8-vcvt_x64_standalone") { -- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-f16c-expm1minus-rr1-p3h2ts-rcp-u24.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-raddstoreexpminusmax_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qu8-vcvt_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-vunary_f16c-no-avx2-no-fma") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-raddstoreexpminusmax_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_avx512f_standalone") { ++ source_set("f16-vunary_f16c-no-avx2-no-fma_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8660,52 +9052,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vsqr-f16c-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", - ] -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f16-vunary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8717,61 +9113,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -12922,82 +14161,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f16-vunary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-sse2-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-sse2-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8783,60 +9182,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set( +- "f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -13035,66 +14257,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-argmaxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8848,51 +9241,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -13103,176 +14315,172 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c", - ] -+source_set("f32-raddstoreexpminusmax_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-raddstoreexpminusmax_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_x64_standalone") { ++ source_set("f32-argmaxpool_sse2-no-sse3_standalone") { + cflags = [ -+ ++ "-mno-sse3", ++ "-msse2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8904,54 +9298,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-raddstoreexpminusmax_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-sse2-c4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] -+source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-raddstoreexpminusmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-argmaxpool_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -8963,55 +9363,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -13286,8 +14494,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -13307,153 +14515,144 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-rdminmax_avx512f") { +- cflags = [ "-mavx512f" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-u32.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-rdminmax_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rdminmax_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9023,53 +9422,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rdminmax_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-u32.c", - ] -+source_set("f32-rdminmax_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rdminmax_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9081,53 +9483,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-rdminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -13465,8 +14664,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-c32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -13486,158 +14685,478 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-rdminmax_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-rdminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-rdminmax_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9139,54 +9542,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rdminmax_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c", - ] -+source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++if (build_with_chromium) { ++ source_set("f32-avgpool_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-rdsum2_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum2_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("f32-rdsum2_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++ source_set("f32-avgpool_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-avx512f-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9198,53 +9605,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx512f.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum2_avx512f_standalone") { +- cflags = [ "-mavx512f" ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++if (build_with_chromium) { ++ source_set("f32-avgpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-rdsum2_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum2_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-rdsum2_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-sse2-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum2_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++if (build_with_chromium) { ++ source_set("f32-avgpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -13647,169 +15166,162 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-c32.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-u32.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-rdsum_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rdsum_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-rdsum_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_avx512f_standalone") { ++ source_set("f32-avgpool_x64_standalone") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9256,51 +9662,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-u64.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rdsum_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-c64.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-u64.c", - ] -+source_set("f32-rdsum_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rdsum_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-conv-hwc2chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9312,51 +9721,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-rdsum_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -13818,179 +15330,166 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-u16.c", - ] -+source_set("f32-rdsum_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rdsum_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-rdsum_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_x64_standalone") { ++ source_set("f32-conv-hwc2chw_sse-no-sse2_standalone") { + cflags = [ -+ ++ "-mno-sse2", ++ "-msse" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9368,55 +9778,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rdsum_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-sse-2x2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] -+source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-conv-hwc2chw_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9428,57 +9845,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -14026,78 +15525,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-rminmax_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-rminmax_avx512f") { -- cflags = [ "-mavx512f" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-rminmax_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_avx512f_standalone") { ++ source_set("f32-conv-hwc2chw_x64_standalone") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9490,55 +9906,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rminmax_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -14105,81 +15551,122 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", - ] -+source_set("f32-rminmax_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rminmax_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", + "-msse" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9550,55 +9969,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-rminmax_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -14213,78 +15700,29 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-rminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rminmax_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-rminmax_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_x64_standalone") { ++ source_set("f32-dwconv2d-chw_sse-no-sse2_standalone") { + cflags = [ -+ ++ "-mno-sse2", ++ "-msse" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9610,55 +10030,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rminmax_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-sse-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-sse-1x4-acc3.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-sse-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-sse-2x4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -14292,83 +15730,471 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", - ] -+source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-rsum2_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-avx-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum2_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-avx-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("f32-rsum2_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", ++ source_set("f32-dwconv2d-chw_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-ssse3-2x4-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-avx512f-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum2_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-rsum2_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum2_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-rsum2_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum2_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++if (build_with_chromium) { ++ source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9670,53 +10093,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -14378,169 +16204,170 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-rsum_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rsum_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-rsum_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_avx512f_standalone") { ++ source_set("f32-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", -+ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9728,51 +10150,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rsum_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", - ] -+source_set("f32-rsum_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rsum_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-dwconv_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9784,51 +10209,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-rsum_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -14549,168 +16376,169 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c", - ] -+source_set("f32-rsum_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rsum_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-rsum_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_x64_standalone") { ++ source_set("f32-dwconv_avx512f_standalone") { + cflags = [ -+ ++ "-mavx512f" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9840,51 +10266,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rsum_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-avx512f.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-avx512f.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", - ] -+source_set("f32-spmm_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-spmm_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- ++if (build_with_chromium) { ++ source_set("f32-dwconv_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9896,53 +10325,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-spmm_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -14742,78 +16570,30 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-spmm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-spmm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-spmm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_x64_standalone") { ++ source_set("f32-dwconv_f16c-fma-no-avx2_standalone") { + cflags = [ -+ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -9954,55 +10386,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-spmm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p16c-minmax-fma3.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p16c-minmax-fma3.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -14821,82 +16601,122 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", - "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", - ] -+source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-spmm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-dwconv_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10014,53 +10449,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -14912,167 +16732,172 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vapproxgelu_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vapproxgelu_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_avx512f_standalone") { ++ source_set("f32-dwconv_sse-no-sse2_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse2", ++ "-msse" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10072,52 +10506,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vapproxgelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-sse.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-sse.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", - ] -+source_set("f32-vapproxgelu_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vapproxgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vapproxgelu_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10129,56 +10567,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -15105,68 +16930,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vapproxgelu_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vapproxgelu_sse2-no-sse3") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-dwconv_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10190,52 +10628,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -15175,228 +16999,190 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c", - ] -+source_set("f32-vapproxgelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vapproxgelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ -+ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10247,71 +10685,94 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vapproxgelu_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx-u24.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] -+source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", -- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10323,89 +10784,88 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -15453,116 +17239,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vbinary_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vbinary_avx512f") { -- cflags = [ "-mavx512f" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vbinary_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", +- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ -+ "-mavx512f" ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", -- "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10417,84 +10877,84 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vbinary_avx512f_standalone") { - cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -15604,110 +17354,74 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-vbinary_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-vbinary_sse-no-sse2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-vbinary_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- ++ source_set("f32-f16-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-avx512skx-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10506,71 +10966,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -15754,71 +17468,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-vbinary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vbinary_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vbinary_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10582,71 +11029,88 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -15852,121 +17543,93 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vbinary_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vbinary_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_x64_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_f16c-no-avx2-no-fma") { + cflags = [ -+ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10658,71 +11122,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vbinary_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vbinary_x64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_f16c-no-avx2-no-fma_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mno-avx2", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-f16c-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -16008,72 +17671,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10734,53 +11185,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -16089,164 +17729,158 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-avx.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vclamp_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vclamp_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vclamp_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_sse2-no-sse3") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse3", ++ "-msse2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10792,51 +11242,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vclamp_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse2-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c", - ] -+source_set("f32-vclamp_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vclamp_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10848,51 +11301,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -16255,254 +17889,244 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-sse2.c", - ] -+source_set("f32-vclamp_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vclamp_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vclamp_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_sse4.1-no-sse4.2") { + cflags = [ -+ ++ "-mno-sse4.2", ++ "-msse4.1" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10904,48 +11358,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vclamp_x64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vcmul_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcmul_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vcmul_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_avx512f_standalone") { ++ source_set("f32-f16-vcvt_sse4.1-no-sse4.2_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse4.2", ++ "-msse4.1" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -10957,52 +11415,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vcmul_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-sse41-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", - ] -+source_set("f32-vcmul_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcmul_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcmul_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vcmul_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11014,55 +11476,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -16535,66 +18159,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vcmul_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vcmul_sse-no-sse2") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- ++ source_set("f32-f16-vcvt_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11074,51 +11535,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vcmul_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -16603,179 +18218,179 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse2", - "-msse", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c", - ] -+source_set("f32-vcmul_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcmul_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcmul_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma") { + cflags = [ -+ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11130,55 +11592,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcmul_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-avx-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] -+source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11190,57 +11659,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -16816,73 +18431,77 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vcopysign_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-vcopysign_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcopysign_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-gemm_avx512f") { + cflags = [ + "-mavx512f" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11252,55 +11720,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcopysign_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x32-minmax-avx512f-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -16890,81 +18509,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c", - ] -+source_set("f32-vcopysign_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcopysign_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vcopysign_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11312,55 +11783,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -17004,72 +18609,90 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("f32-vcopysign_x64") { -- cflags = [] -+source_set("f32-vcopysign_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcopysign_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-gemm_f16c-fma-no-avx2") { + cflags = [ -+ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11372,55 +11844,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcopysign_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-2x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x16-minmax-fma3-broadcast.c", ++ "src/src/f32-gemm/gen/f32-gemm-5x8-minmax-fma3-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -17077,83 +18700,68 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", - ] -+source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11432,53 +11907,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -17163,172 +18771,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vcos_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcos_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcos_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-gemm_sse-no-sse2") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse2", ++ "-msse" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11490,52 +11964,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcos_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2c4-minmax-sse.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-sse-load1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c", - ] -+source_set("f32-vcos_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcos_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vcos_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11547,56 +12025,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -17366,63 +18970,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vcos_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcos_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vcos_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-gemm_x64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11608,52 +12086,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -17431,176 +19028,180 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", - "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c", - ] -+source_set("f32-vcos_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcos_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vcos_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_x64_standalone") { ++ source_set("f32-gemm_x64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11665,53 +12143,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vcos_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", - ] -+source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-ibilinear-chw_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", -+ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11723,53 +12206,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -17610,172 +19211,165 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-velu_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-velu_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-velu_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_avx512f_standalone") { ++ source_set("f32-ibilinear-chw_sse-no-sse2_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse2", ++ "-msse" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", -+ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11781,52 +12263,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-velu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-sse-p8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", - ] -+source_set("f32-velu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-ibilinear-chw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-velu_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("f32-velu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", -+ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11838,55 +12324,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -17808,67 +19402,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-velu_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-velu_sse2-no-sse3") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-ibilinear-chw_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", -+ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11898,51 +12383,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("f32-velu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-velu_sse2-no-sse3_standalone") { @@ -17876,7 +19461,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c", @@ -17899,155 +19484,145 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("f32-velu_x64") { -- cflags = [] -+source_set("f32-velu_x64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -11954,53 +12440,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-velu_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-velu_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", - ] -+source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++if (build_with_chromium) { ++ source_set("f32-ibilinear_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_x64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-sse-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12012,53 +12503,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -18057,172 +19632,162 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vexp_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vexp_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vexp_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-ibilinear_x64") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12070,52 +12560,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vexp_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c", - ] -+source_set("f32-vexp_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vexp_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vexp_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12127,56 +12621,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -18260,63 +19825,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vexp_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-vexp_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vexp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12188,52 +12682,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -18325,176 +19882,181 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", - "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c", - ] -+source_set("f32-vexp_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vexp_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vexp_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_x64_standalone") { ++ source_set("f32-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ -+ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12245,53 +12739,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vexp_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-avx-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-avx-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", - ] -+source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-igemm_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12303,53 +12802,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -18504,172 +20066,176 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vgelu_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vgelu_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vgelu_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_avx512f_standalone") { ++ source_set("f32-igemm_avx512f_standalone") { + cflags = [ + "-mavx512f" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12361,52 +12859,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vgelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x32-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x16-minmax-avx512f-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x32-minmax-avx512f-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", - ] -+source_set("f32-vgelu_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-igemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vgelu_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vgelu_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12418,56 +12920,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -18702,68 +20268,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vgelu_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vgelu_sse2-no-sse3") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-igemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-10x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16s4-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-fma3-broadcast.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x16-minmax-fma3-broadcast-prfm.c", ++ "src/src/f32-igemm/gen/f32-igemm-5x8-minmax-fma3-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12479,52 +12981,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vgelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -18772,176 +20337,173 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", - "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c", - ] -+source_set("f32-vgelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vgelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vgelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-igemm_sse-no-sse2") { + cflags = [ -+ ++ "-mno-sse2", ++ "-msse" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12536,53 +13038,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vgelu_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-sse-load1.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2c4-minmax-sse.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-sse-load1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", - ] -+source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12594,53 +13101,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -18951,172 +20513,176 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-avx.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vhswish_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vhswish_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vhswish_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-igemm_x64") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12652,52 +13158,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vhswish_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c", - ] -+source_set("f32-vhswish_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vhswish_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vhswish_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12709,56 +13219,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-fma3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -19154,63 +20720,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vhswish_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-vhswish_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vhswish_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", +- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-maxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", -- "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12770,52 +13280,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -19219,255 +20772,281 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", - "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c", - ] -+source_set("f32-vhswish_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vhswish_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vhswish_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_x64_standalone") { ++ source_set("f32-maxpool_sse2-no-sse3_standalone") { + cflags = [ -+ ++ "-mno-sse3", ++ "-msse2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12827,48 +13337,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vhswish_x64_standalone") { -- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-sse2-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vlog_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vhswish_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-maxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlog_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vlog_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_avx512f_standalone") { ++ source_set("f32-maxpool_x64_standalone") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12880,52 +13394,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vlog_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", - ] -+source_set("f32-vlog_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vlog_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("f32-vlog_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12937,56 +13455,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -19500,69 +21079,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("f32-vlog_f16c-fma-no-avx2") { -+source_set("f32-vlog_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] -- ++ source_set("f32-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -12998,56 +13516,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vlog_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -19595,68 +21167,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vlog_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" -+ ] -- source_set("f32-vlog_sse2-no-sse3") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vlog_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13059,52 +13577,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -19665,176 +21228,178 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", - "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c", - ] -+source_set("f32-vlog_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlog_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vlog_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_x64_standalone") { ++ source_set("f32-qc4w-gemm_f16c-fma-avx2_standalone") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13116,53 +13634,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vlog_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-avx2-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", - ] -+source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13174,53 +13697,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -19844,169 +21409,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vlrelu_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlrelu_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vlrelu_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_avx512f_standalone") { ++ source_set("f32-qc4w-gemm_f16c-fma-no-avx2_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13232,51 +13754,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vlrelu_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-3x16-minmax-fma3-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", - ] -+source_set("f32-vlrelu_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vlrelu_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] +- if (build_with_chromium) { +- source_set("f32-vlrelu_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13288,54 +13813,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20038,66 +21602,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vlrelu_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vlrelu_sse4.1-no-sse4.2") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", ++ source_set("f32-qc4w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", + "-msse4.1" - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-sse41-dup.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13347,51 +13872,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20106,168 +21663,165 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c", - ] -+source_set("f32-vlrelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlrelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vlrelu_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13403,51 +13929,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vlrelu_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", - ] -+source_set("f32-vmulcaddc_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vmulcaddc_sse-no-sse2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] +- if (build_with_chromium) { +- source_set("f32-vmulcaddc_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13459,51 +13988,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20304,157 +21858,146 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vmulcaddc_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vmulcaddc_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13515,56 +14045,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vmulcaddc_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vmulcaddc_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", - ] -+source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vmulcaddc_x64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx-broadcast.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13576,59 +14114,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20496,71 +22039,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vrnd_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-vrnd_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vrnd_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", +- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_f16c-fma-avx2") { + cflags = [ -+ "-mavx512f" ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -- "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13640,57 +14177,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrnd_avx512f_standalone") { - cflags = [ "-mavx512f" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -20587,74 +22121,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-vrnd_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vrnd_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-vrnd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-avx2-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-avx2-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13702,60 +14242,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20689,74 +22208,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-vrnd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vrnd_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vrnd_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13767,57 +14307,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20791,77 +22285,93 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vrnd_x64") { -+ cflags = [ - -- source_set("f32-vrnd_x64") { -- cflags = [] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_x64_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ -+ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13829,57 +14370,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vrnd_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrnd_x64_standalone") { - cflags = [] -- ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc4w-gemm-7x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x32-minmax-avx512skx-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-7x32-minmax-avx512skx-broadcast.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", @@ -20887,74 +22397,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" -+ ] - -- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13891,55 +14435,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -20994,148 +22480,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vrsqrt_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-vrsqrt_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vrsqrt_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_f16c-fma-no-avx2") { + cflags = [ -+ "-mavx512f" ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -13951,53 +14494,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrsqrt_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x16-minmax-fma3-broadcast.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-5x16-minmax-fma3-broadcast.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c", - ] -+source_set("f32-vrsqrt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vrsqrt_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vrsqrt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14009,53 +14555,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -21173,153 +22653,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vrsqrt_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vrsqrt_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vrsqrt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_sse4.1-no-sse4.2") { + cflags = [ -+ ++ "-mno-sse4.2", ++ "-msse4.1" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14067,54 +14614,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrsqrt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-sse41-dup.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-sse41-dup.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", - ] -+source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14126,53 +14677,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -21329,172 +22798,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vsigmoid_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsigmoid_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsigmoid_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_x64") { + cflags = [ -+ "-mavx512f" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14184,52 +14734,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsigmoid_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c", - ] -+source_set("f32-vsigmoid_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("f32-vsigmoid_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("f32-vsigmoid_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-qc8w-gemm_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14241,55 +14795,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -21527,66 +22981,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("f32-vsigmoid_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vsigmoid_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vsigmoid_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14301,54 +14854,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -21618,66 +23052,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vsigmoid_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14360,51 +14913,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-vsigmoid_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -21686,175 +23113,169 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c", - ] -+source_set("f32-vsigmoid_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsigmoid_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vsigmoid_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_x64_standalone") { ++ source_set("f32-qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { + cflags = [ -+ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14416,53 +14970,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vsigmoid_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", - ] -+source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14474,53 +15033,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -21864,172 +23285,172 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vsin_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsin_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vsin_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_avx512f_standalone") { ++ source_set("f32-qs8-vcvt_f16c-fma-avx2_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14532,52 +15090,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vsin_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx2-u64.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", - ] -+source_set("f32-vsin_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsin_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vsin_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14589,56 +15151,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -22062,68 +23483,64 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vsin_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - -- source_set("f32-vsin_sse2-no-sse3") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-qs8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-avx512skx-u128.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14650,52 +15212,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("f32-vsin_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -22132,178 +23549,170 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", - "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c", - ] -+source_set("f32-vsin_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsin_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsin_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_sse2-no-sse3") { + cflags = [ -+ ++ "-mno-sse3", ++ "-msse2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14707,54 +15269,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsin_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse2-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", - ] -+source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14766,54 +15334,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -22313,172 +23722,165 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", - "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vsqrt_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsqrt_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsqrt_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_sse4.1-no-sse4.2") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse4.2", ++ "-msse4.1" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14825,52 +15391,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsqrt_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-sse41-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c", - ] -+source_set("f32-vsqrt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsqrt_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vsqrt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14882,52 +15452,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -22487,176 +23889,167 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", - "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c", - ] -+source_set("f32-vsqrt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsqrt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_x64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsqrt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14939,53 +15509,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsqrt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] -+source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -14997,53 +15572,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -22666,172 +24059,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-f16c", - "-mno-fma", - ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f32-vtanh_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vtanh_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("f32-vtanh_avx512f") { +- cflags = [ "-mavx512f" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ -+ "-mavx512f" ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15055,52 +15629,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vtanh_avx512f_standalone") { - cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx-u32.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c", - ] -+source_set("f32-vtanh_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vtanh_f16c-fma-no-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { - cflags = [ - "-mf16c", -- "-mfma", -- "-mno-avx2", -+ "-mfma", -+ "-mno-avx2" - ] +- if (build_with_chromium) { +- source_set("f32-vtanh_f16c-fma-no-avx2") { +- cflags = [ +- "-mf16c", +- "-mfma", +- "-mno-avx2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15112,56 +15690,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -22869,63 +24258,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vtanh_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vtanh_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("f32-vtanh_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15173,52 +15751,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -22934,180 +24311,220 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", - "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c", - ] -+source_set("f32-vtanh_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vtanh_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vtanh_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_x64_standalone") { ++ source_set("f32-qu8-vcvt_f16c-fma-avx2_standalone") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15230,55 +15808,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vtanh_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx2-u64.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", - ] -+source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-avx.c", -+ "src/src/f32-vunary/gen/f32-vneg-avx.c", -+ "src/src/f32-vunary/gen/f32-vsqr-avx.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++ source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -+ "src/src/f32-vunary/gen/f32-vneg-avx.c", -+ "src/src/f32-vunary/gen/f32-vsqr-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15290,57 +15875,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-avx512skx-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -23143,160 +24560,203 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vunary_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -+ "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -+ "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vunary_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_avx512f_standalone") { +- } ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_sse2-no-sse3") { + cflags = [ -+ "-mavx512f" ++ "-mno-sse3", ++ "-msse2" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -+ "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -+ "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15352,55 +15936,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_avx512f_standalone") { -- cflags = [ "-mavx512f" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vunary_avx512f") { +- cflags = [ "-mavx512f" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-avx512f.c", - "src/src/f32-vunary/gen/f32-vneg-avx512f.c", - "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", - ] -+source_set("f32-vunary_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-sse2.c", -+ "src/src/f32-vunary/gen/f32-vneg-sse2.c", -+ "src/src/f32-vunary/gen/f32-vsqr-sse2.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("f32-vunary_sse2-no-sse3") { +- if (build_with_chromium) { +- source_set("f32-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-qu8-vcvt_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -+ "src/src/f32-vunary/gen/f32-vneg-sse2.c", -+ "src/src/f32-vunary/gen/f32-vsqr-sse2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15412,55 +15999,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -23330,73 +24790,102 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-vunary_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vunary_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vunary_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15472,70 +16060,92 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vunary_x64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -23422,128 +24911,118 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("operators_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("operators_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("operators_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("operators_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15547,73 +16157,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("operators_x64_standalone") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/operators/argmax-pooling-nhwc.c", @@ -23586,71 +25065,86 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15625,59 +16220,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -23684,74 +25178,94 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-sse2-rr2-p5-u16-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15689,59 +16285,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -23786,71 +25300,91 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15753,63 +16348,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -23884,84 +25418,104 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15821,69 +16419,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24000,87 +25554,99 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdminmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-avx512f-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15895,65 +16492,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24120,74 +25686,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-sse2-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -15965,59 +16557,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24222,71 +25810,93 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" -+ ] - -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16029,63 +16620,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24320,84 +25930,102 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum2_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum2_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16097,69 +16691,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24436,87 +26064,97 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum2_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum2_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16171,73 +16764,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24556,96 +26194,102 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum2_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum2_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16249,68 +16843,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24688,74 +26332,92 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum2_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum2_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16322,59 +16908,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24790,71 +26452,97 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16386,63 +16971,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -24888,84 +26576,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-avx512f-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16454,69 +17042,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25004,88 +26704,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16528,73 +17115,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set( @@ -25124,96 +26836,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rdsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16606,68 +17194,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25256,74 +26972,102 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx-u32-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16679,59 +17259,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25358,71 +27102,95 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rminmax_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-avx512f-u64-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-avx512f-u64-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16743,64 +17322,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25456,87 +27224,103 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rminmax_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-sse-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-sse-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16812,71 +17395,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25576,90 +27360,102 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16888,64 +17470,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25700,68 +27496,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rsum2_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-avx-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum2_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-avx-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -16957,56 +17531,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25794,68 +27618,90 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rsum2_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum2_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17018,53 +17592,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -25888,159 +27734,200 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qd8-f32-qb4w-gemm_x64") { -+ cflags = [ - -- source_set("qd8-f32-qb4w-gemm_x64") { -- cflags = [] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_x64_standalone") { +- } ++if (build_with_chromium) { ++ source_set("f32-rsum2_sse2-no-sse3") { + cflags = [ -+ ++ "-mno-sse3", ++ "-msse2" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17076,55 +17651,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum2_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-sse2-u4.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", - ] -+source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-rsum2_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-rsum2_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17136,59 +17716,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26075,71 +27962,97 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17200,65 +17779,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26173,90 +28086,98 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rsum_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-avx512f-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17270,71 +17854,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26297,87 +28218,99 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rsum_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-sse2-u16-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17346,71 +17927,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26417,90 +28350,98 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-rsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17422,74 +18002,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26541,96 +28482,102 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-spmm_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" -+ ] - -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17501,66 +18081,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26673,68 +28620,94 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-spmm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17572,56 +18142,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26767,68 +28740,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] - -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17633,53 +18203,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -26861,159 +28862,202 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qd8-f32-qc4w-gemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc4w-gemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- } ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_avx512f") { + cflags = [ -+ ++ "-mavx512f" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17691,55 +18262,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", - ] -+source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17751,59 +18327,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27048,71 +29092,95 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-sse2fma-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" -+ ] - -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17815,65 +18390,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27146,90 +29214,98 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17885,71 +18465,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27270,87 +29346,139 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx-u16.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -17961,73 +18538,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27390,96 +29518,136 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vbinary_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmax-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmin-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vminc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmul-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsub-avx512f-u32.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18039,66 +18617,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27522,68 +29690,122 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vbinary_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-sse-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18110,56 +18678,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27616,68 +29838,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vbinary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vprelu-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-sse2-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18171,54 +18739,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27710,163 +29960,242 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qd8-f32-qc8w-gemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-gemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_x64_standalone") { +- } ++if (build_with_chromium) { ++ source_set("f32-vbinary_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18230,56 +18800,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18291,59 +18865,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27901,71 +30230,91 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vclamp_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18355,65 +18928,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -27999,90 +30348,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vclamp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18425,71 +19003,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28123,87 +30482,97 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vclamp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18501,73 +19076,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28243,96 +30612,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vcmul_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-avx512f-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18579,66 +19155,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28375,69 +30748,95 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("f32-vcmul_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-fma3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { -+source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18650,56 +19216,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { @@ -28469,68 +30868,150 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vcmul_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" -+ ] -- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcmul_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("f32-vcmul_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18711,54 +19277,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28563,76 +31044,104 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc8w-igemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qd8-f32-qc8w-igemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_x64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vcopysign_avx512f") { + cflags = [ -+ ++ "-mavx512f" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18770,56 +19338,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -28642,84 +31151,233 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - ] -+source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vcopysign_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_x64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcopysign_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++ source_set("f32-vcopysign_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18831,59 +19403,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28754,71 +31412,155 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-dwconv_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-dwconv_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] +- if (build_with_chromium) { +- source_set("qs8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcos_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" ++ ] + -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vcos_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18895,63 +19466,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28852,84 +31594,162 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vcos_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcos_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vcos_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -18963,62 +19537,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -28968,68 +31788,154 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vcos_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-dwconv_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-dwconv_sse2-no-sse3") { +- if (build_with_chromium) { +- source_set("qs8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-velu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19030,56 +19598,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx-rr2-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29062,68 +31968,152 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-velu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx512f-rr1-p6-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-dwconv_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +- if (build_with_chromium) { +- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-velu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("f32-velu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19091,55 +19659,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29156,77 +32146,212 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-velu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-sse2-rr2-lut16-p3-u12.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-dwconv_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-dwconv_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-dwconv_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-velu_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19151,55 +19722,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-dwconv_x64_standalone") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -29257,64 +32382,90 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-f16-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vexp_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vexp_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19211,57 +19783,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29347,72 +32498,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vexp_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-fma3-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vexp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++ source_set("f32-vexp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19273,57 +19846,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-sse2-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-sse2fma-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29446,69 +32682,154 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vexp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-f32-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19335,61 +19907,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29541,82 +32862,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vgelu_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-avx512f-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vgelu_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vgelu_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19401,60 +19976,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-fma3-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29654,66 +33050,181 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vgelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-sse2fma-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vgelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} + -+source_set("qs8-f32-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-f32-vcvt_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19466,54 +20035,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29745,66 +33256,123 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vhswish_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("f32-vhswish_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19525,51 +20094,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -29813,91 +33381,201 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", - ] -+source_set("qs8-f32-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-f32-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_x64_standalone") { ++if (build_with_chromium) { ++ source_set("f32-vhswish_f16c-fma-no-avx2") { + cflags = [ -+ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19581,54 +20151,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-fma3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vhswish_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-f32-vcvt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++if (build_with_chromium) { ++ source_set("f32-vhswish_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -29905,84 +33583,141 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] -+source_set("qs8-packw_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vhswish_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19640,58 +20216,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - public_configs = [ ":xnnpack_public_config" ] -- } +- if (build_with_chromium) { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vlog_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx512f-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30017,69 +33752,185 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vlog_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-avx2-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-packw_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vlog_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-fma3-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} + -+source_set("qs8-packw_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-packw_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-vlog_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19703,64 +20277,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30112,90 +33963,131 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-sse2-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-sse2fma-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -+ "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vlog_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vlog_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -+ "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19772,63 +20352,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30236,76 +34128,209 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-packw_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-packw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-packw_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vlrelu_avx512f") { + cflags = [ -+ ++ "-mavx512f" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19840,57 +20415,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-packw_x64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vlrelu_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -30332,74 +34357,101 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vlrelu_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++ source_set("f32-vlrelu_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19902,59 +20480,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30434,71 +34486,341 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vlrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc4w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vmulcaddc_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vmulcaddc_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -19966,57 +20543,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-sse-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++if (build_with_chromium) { ++ source_set("f32-vmulcaddc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30532,68 +34854,564 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vrnd_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-avx512f-u16.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-avx512f-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vrnd_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- ++ source_set("f32-vrnd_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20028,52 +20604,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse2-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++if (build_with_chromium) { ++ source_set("f32-vrnd_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-sse41-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-sse41-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vrnd_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx512f-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30602,180 +35420,351 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", - ] -+source_set("qs8-qc4w-gemm_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc4w-gemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} - ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_x64_standalone") { ++ source_set("f32-vrsqrt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-sse2-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_x64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20085,55 +20661,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc4w-gemm_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -+source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", + "-mno-avx2", + "-mno-f16c", + "-mno-fma" -+ ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx-rr2-p5-nr2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++ source_set("f32-vsigmoid_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20145,61 +20728,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30811,74 +35800,156 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" ++ ] + -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vsigmoid_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20211,65 +20793,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -30913,87 +35984,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-vsigmoid_x64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20281,64 +20866,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31033,71 +36174,155 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-dwconv_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsin_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f32-vsin_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-avx512f-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20350,58 +20929,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31131,71 +36356,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vsin_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" -+ ] -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsin_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" ++ ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("f32-vsin_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20413,58 +20992,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-sse2-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-sse2fma-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31229,44 +36540,6240 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++if (build_with_chromium) { ++ source_set("f32-vsin_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} + -+source_set("qs8-qc8w-dwconv_x64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-vsqrt_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" ++ ] + -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-avx512f-rsqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vsqrt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-rsqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-sse2-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vsqrt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vtanh_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-avx512f-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vtanh_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-fma3-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vtanh_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-sse2fma-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vtanh_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vunary_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vneg-avx512f.c", ++ "src/src/f32-vunary/gen/f32-vsqr-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vunary_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-sse2.c", ++ "src/src/f32-vunary/gen/f32-vneg-sse2.c", ++ "src/src/f32-vunary/gen/f32-vsqr-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-sse2.c", ++ "src/src/f32-vunary/gen/f32-vneg-sse2.c", ++ "src/src/f32-vunary/gen/f32-vsqr-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vunary_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("operators_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("operators_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f16-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-packw_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-packw_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] ++ ] + -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-dwconv_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} - ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qs8-qc8w-dwconv_x64_standalone") { @@ -31274,38 +42781,24010 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20476,59 +21059,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnniint8", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { ++ cflags = [ ++ "-mamx-int8", ++ "-mamx-tile", ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma", ++ "-mgfni" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qu8-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rdsum_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rdsum_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rdsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mavxvnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mavx512vnni", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmul_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmul_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmul_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmulc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmulc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmulc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vprelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vprelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vrpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vrpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-gemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-gemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-gemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-gemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-igemm_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-igemm_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-igemm_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-igemm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-rdsum_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-rdsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-rsum_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-rsum_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-rsum_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vadd_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vadd_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vadd_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vadd_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vaddc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vaddc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vaddc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vaddc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vcvt_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vcvt_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vcvt_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vcvt_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vcvt_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmul_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmul_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmul_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmulc_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmulc_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vmulc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vprelu_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vprelu_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vrpreluc_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-vrpreluc_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("reference_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("reference_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-ibilinear_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-ibilinear_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-ibilinear_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-maxpool_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-maxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-rdminmax_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-rminmax_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-vclamp_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-vclamp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-vclamp_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("s8-vclamp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("subgraph_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("subgraph_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("tables_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("tables_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-ibilinear_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-ibilinear_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-ibilinear_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-lut32norm_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-lut32norm_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-maxpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-maxpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-maxpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-rdminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-rdminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-rminmax_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-rminmax_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-vclamp_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-vclamp_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("u8-vclamp_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x16-packw_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-packw_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x16-transposec_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x16-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x16-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x16-x32-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x24-transposec_ssse3-no-sse4.1") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_ssse3-no-sse4.1_standalone") { ++ cflags = [ ++ "-mno-sse4.1", ++ "-mssse3" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x24-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-packw_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x32c2-gemm-goi-avx512f-u4-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x32c2-gemm-goi-avx512f-u4-prfm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-packw_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-transposec_sse-no-sse2") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_sse-no-sse2_standalone") { ++ cflags = [ ++ "-mno-sse2", ++ "-msse" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/x32-transposec-4x4-sse.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-unpool_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x32-unpool_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x64-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x64-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x64-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-lut_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vbmi", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { ++ cflags = [ ++ "-mavx512bw", ++ "-mavx512cd", ++ "-mavx512dq", ++ "-mavx512f", ++ "-mavx512vbmi", ++ "-mavx512vl", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-lut_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-lut_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-packq_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packq_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-packw_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-transposec_f16c-fma-avx2") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_f16c-fma-avx2_standalone") { ++ cflags = [ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-transposec_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("x8-transposec_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("xx-copy_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("xx-fill_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-sse2-u64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("xx-fill_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-fill_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("xx-pad_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("xx-pad_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("xx-transposev_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-transposev_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++} ++ ++if (current_cpu == "arm64") { ++if (build_with_chromium) { ++ source_set("configs_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("configs_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("enums_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("enums_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-avgpool_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", ++ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-dwconv_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", ++ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-f32acc-rdsum2_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rdsum2_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-f32acc-rsum2_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rsum2_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-ibilinear_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-igemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", ++ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", ++ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-maxpool_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-qs8-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-qu8-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qu8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-rdminmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-u32.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-u32.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-rdminmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rdminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-rminmax_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-rminmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-spmm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vapproxgelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vbinary_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", ++ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", ++ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", ++ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vclamp_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vcmul_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vcos_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vcos_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-velu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vexp_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vexp_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vexp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vgelu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vgelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vhswish_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vlrelu_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vrnd_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", ++ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", ++ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vsin_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vsin_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsin_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vsqrt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", ++ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vtanh_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", ++ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f16-vunary_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", ++ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-argmaxpool_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-avgpool_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-avgpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-conv-hwc2chw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-dwconv_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-f16-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-2.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128-2.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-7x8-minmax-asm-aarch64-neonfma-ld128-2.S", ++ "src/src/f32-gemm/gen/f32-gemm-8x8-minmax-asm-aarch64-neonfma-ld128-2.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-2.S", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128-2.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-gemm/gen/f32-gemm-7x8-minmax-asm-aarch64-neonfma-ld128-2.S", ++ "src/src/f32-gemm/gen/f32-gemm-8x8-minmax-asm-aarch64-neonfma-ld128-2.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-ibilinear-chw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-ibilinear_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-u8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-u8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-u8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-u8.c", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", ++ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-igemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-maxpool_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-maxpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc8w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-rdminmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-u32.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-rdsum2_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-neon.c", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum2_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-neon.c", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-rdsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-u16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-u16.c", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-rminmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-rsum2_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-neon.c", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum2_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-neon.c", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-rsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-spmm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vapproxgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vbinary_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vclamp_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vclamp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vcmul_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vcopysign_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vcos_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-velu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", ++ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vexp_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vgelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vhswish_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-neon.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-neon.c", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vlog_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlog_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vlrelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vmulcaddc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vrnd_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vsin_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vsqrt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsqrt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vtanh_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vunary_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vunary_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-neon.c", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-neon.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-neon.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("operators_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("operators_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", ++ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", ++ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", ++ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", ++ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", ++ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qb4-packw_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", ++ "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", ++ "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16-minmax-neon-mlal-lane-prfm.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", ++ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-dwconv_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-packw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+i8mm+fp16" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-qu8-packw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qu8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rdsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-u32.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-u32.c", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-rsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vadd_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vaddc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmul_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vmulc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vprelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vprelu_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vpreluc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qs8-vrpreluc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-dwconv_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-dwconv_x64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -31338,69 +66817,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c" - ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20540,60 +21124,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31435,74 +66896,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20605,60 +21189,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31537,74 +66975,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnniint8", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -+ "-mavxvnniint8", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" - ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20670,59 +21254,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31639,71 +67061,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-gemm_f16c-fma-avx2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x8c8-minmax-fp32-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20734,65 +21317,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31737,90 +67136,71 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20804,71 +21392,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("qu8-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] + +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31861,87 +67241,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-gemm_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-7x16c8-minmax-fp32-avx512vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20880,73 +21465,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -31981,96 +67337,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -20958,66 +21544,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32118,63 +67436,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-qc8w-gemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc8w-gemm_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse2-ld64.c" - ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21029,56 +21605,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32207,68 +67511,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4c8-minmax-fp32-sse41-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21090,53 +21666,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32301,159 +67586,153 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-gemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-gemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_x64_standalone") { ++ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+fp16+dotprod" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" - ] ++ asmflags = cflags - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21148,55 +21725,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qu8-igemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21208,60 +21790,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32488,74 +67767,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-igemm_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21273,60 +21855,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32590,74 +67861,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnniint8", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -+ "-mavxvnniint8", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-rdsum_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21338,59 +21920,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32692,71 +67949,64 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qc8w-igemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-rdsum_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21402,65 +21983,70 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32790,90 +68040,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c8-minmax-fp32-avx256skx.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21472,71 +22058,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -32914,87 +68129,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21548,73 +22131,74 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("qu8-rsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-7x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33034,96 +68227,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ cflags = [ -+ "-mamx-int8", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" -+ ] -- source_set( -- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { - cflags = [ - "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -+ "-mamx-tile", -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma", -+ "-mgfni" - ] -- ++ source_set("qu8-rsum_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-16x64c4-minmax-fp32-avx512amx.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x64c4-minmax-fp32-avx512amx.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21626,66 +22210,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33166,68 +68328,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-igemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-qc8w-igemm_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse2-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21697,56 +22271,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33260,68 +68401,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - -- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21758,53 +22332,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("qu8-vadd_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33354,157 +68487,150 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qc8w-igemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-igemm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_x64_standalone") { ++ source_set("qu8-vadd_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21816,54 +22391,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qu8-vaddc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21875,63 +22454,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33538,85 +68664,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" -+ ] - -- source_set( -- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-vaddc_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -21943,58 +22525,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set( +- "qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33632,171 +68740,166 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-avx256vnni.c", - ] -+source_set("qs8-qu8-packw_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qu8-packw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-qu8-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vcvt_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22006,52 +22582,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qu8-packw_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", - ] -+source_set("qs8-rdsum_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-rdsum_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-rdsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22063,60 +22643,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33809,7 +68912,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-c64.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx2-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33834,76 +68937,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set( +- "qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22128,60 +22712,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -33921,7 +69003,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-c64.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-avx512skx-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33941,67 +69023,61 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("qs8-rdsum_sse4.1-no-sse4.2") { -- cflags = [ -+source_set("qs8-rdsum_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-rdsum_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_sse4.1-no-sse4.2_standalone") { ++ source_set("qu8-vlrelu_arm64_standalone") { + cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22193,51 +22771,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34010,174 +69086,174 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-c64.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-sse41-u64.c", - ] -+source_set("qs8-rdsum_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-rdsum_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-rdsum_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vmul_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22249,53 +22828,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-rdsum_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", - ] -+source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { -+ cflags = [ -+ "-mavx2", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -+ "-mavxvnni", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22307,57 +22891,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avxvnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34216,64 +69292,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-rsum_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-rsum_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vmulc_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx2-u64-acc2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22369,61 +22952,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34306,83 +69368,68 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-vmulc_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-avx256skx-u64-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx512skx-u128-acc2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22435,68 +23023,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34421,86 +69468,54 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set( -- "qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mavx512vnni", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-avx512vnni-u128-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22508,61 +23094,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set( @@ -34538,66 +69553,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-rsum_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-rsum_ssse3-no-sse4.1") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22574,51 +23153,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("qu8-vprelu_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-rsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34606,174 +69611,163 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-ssse3-u32-acc2.c", - ] -+source_set("qs8-rsum_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-rsum_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-rsum_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_x64_standalone") { ++ source_set("qu8-vprelu_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22630,53 +23210,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-rsum_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", - ] -+source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("qu8-vpreluc_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22688,57 +23273,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vadd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34807,69 +69801,54 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vadd_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vadd_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-vadd_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("qu8-vpreluc_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx2-mul32-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22750,60 +23334,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -34902,81 +69881,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-avx512skx-mul32-ld128-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22815,60 +23403,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35014,66 +69964,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vadd_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vadd_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22880,54 +23462,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("qu8-vrpreluc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vadd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35105,66 +70045,53 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vadd_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-vadd_sse4.1-no-sse4.2") { +- if (build_with_chromium) { +- source_set("qs8-vadd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("qu8-vrpreluc_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-sse41-mul16-ld64-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22939,52 +23521,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35196,157 +70123,155 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vadd_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-vadd_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vadd_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("reference_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -22996,54 +23580,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vadd_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("reference_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", - "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", - ] -+source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qs8-vaddc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23055,57 +23643,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35385,64 +70310,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-vaddc_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vaddc_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-vaddc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("s8-ibilinear_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx2-mul32-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23117,60 +23704,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35475,81 +70387,68 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("s8-ibilinear_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23182,60 +23773,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35587,66 +70486,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vaddc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vaddc_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vaddc_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse2-mul16-ld64-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23247,54 +23832,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35678,66 +70557,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vaddc_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" -+ ] - -- source_set("qs8-vaddc_sse4.1-no-sse4.2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23306,52 +23891,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("s8-maxpool_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vaddc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35769,157 +70639,146 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vaddc_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vaddc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-vaddc_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_x64_standalone") { ++ source_set("s8-maxpool_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23363,54 +23950,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vaddc_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", - ] -+source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vaddc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("s8-rdminmax_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23422,57 +24013,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -35953,69 +70812,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vcvt_f16c-fma-avx2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("s8-rdminmax_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-avx2-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23484,55 +24074,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36048,66 +70895,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vcvt_sse2-no-sse3") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-sse2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23544,54 +24133,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36139,66 +70966,61 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vcvt_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23603,54 +24192,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("s8-rminmax_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36230,66 +71052,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("qs8-vcvt_ssse3-no-sse4.1") { -+source_set("qs8-vcvt_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-vcvt_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- ++ source_set("s8-rminmax_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23662,51 +24251,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36298,174 +71112,174 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vcvt/gen/qs8-vcvt-ssse3-u32.c", - ] -+source_set("qs8-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_x64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("s8-vclamp_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23718,53 +24308,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vcvt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", - ] -+source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qs8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23776,57 +24371,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36504,64 +71318,77 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-vlrelu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-vlrelu_f16c-fma-avx2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qs8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("subgraph_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-avx2-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23838,55 +24432,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36594,66 +71421,88 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vlrelu_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vlrelu_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-vlrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("subgraph_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse2-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23898,54 +24491,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36685,66 +71534,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vlrelu_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - -- source_set("qs8-vlrelu_sse4.1-no-sse4.2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-sse41-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -23957,54 +24550,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36776,66 +71605,64 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vlrelu_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vlrelu_ssse3-no-sse4.1") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24016,51 +24609,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("tables_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vlrelu_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -36844,174 +71671,175 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-ssse3-u32.c", - ] -+source_set("qs8-vlrelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vlrelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-vlrelu_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_x64_standalone") { ++ source_set("tables_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24072,53 +24666,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vlrelu_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", - ] -+source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vlrelu_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("u8-ibilinear_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qs8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24130,56 +24729,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37045,66 +71873,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qs8-vmul_sse2-no-sse3") { -+source_set("qs8-vmul_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("u8-ibilinear_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24191,54 +24788,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37136,66 +71957,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vmul_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -- source_set("qs8-vmul_sse4.1-no-sse4.2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] +- if (build_with_chromium) { +- source_set("qs8-vmul_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("u8-lut32norm_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24250,51 +24847,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37227,154 +72037,150 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vmul_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vmul_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-vmul_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_x64_standalone") { ++ source_set("u8-lut32norm_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24306,53 +24904,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vmul_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", - ] -+source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("u8-maxpool_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qs8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24364,56 +24967,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37408,66 +72214,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vmulc_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vmulc_sse2-no-sse3") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("u8-maxpool_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24425,54 +25026,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37499,66 +72297,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vmulc_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-vmulc_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] +- if (build_with_chromium) { +- source_set("qs8-vmulc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("u8-rdminmax_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24484,51 +25085,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37590,151 +72380,154 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-vmulc_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-vmulc_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-vmulc_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_x64_standalone") { ++ source_set("u8-rdminmax_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24540,52 +25142,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vmulc_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", - ] -+source_set("qs8-vprelu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vprelu_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("u8-rminmax_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24597,52 +25203,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vprelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37744,171 +72537,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vprelu/gen/qs8-vprelu-avx2-u16.c", - ] -+source_set("qs8-vprelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vprelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-vprelu_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_x64_standalone") { ++ source_set("u8-rminmax_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24654,52 +25260,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vprelu_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", - ] -+source_set("qs8-vpreluc_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vprelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vpreluc_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("u8-vclamp_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24711,52 +25321,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -37918,171 +72708,163 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vpreluc/gen/qs8-vpreluc-avx2-u16.c", - ] -+source_set("qs8-vpreluc_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vpreluc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-vpreluc_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_x64_standalone") { ++ source_set("u8-vclamp_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24768,52 +25378,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vpreluc_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", - ] -+source_set("qs8-vrpreluc_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vrpreluc_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24825,52 +25439,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-vrpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38092,176 +72874,167 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-avx2-u16.c", - ] -+source_set("qs8-vrpreluc_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vrpreluc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-vrpreluc_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_x64_standalone") { ++ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24882,54 +25496,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vrpreluc_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", - ] -+source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vrpreluc_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("x16-packw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -24941,59 +25561,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38296,71 +73069,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qu8-dwconv_f16c-fma-avx2") { -+source_set("qu8-dwconv_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("x16-packw_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25005,63 +25624,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38394,84 +73156,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set( -- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set( +- "qu8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x16-transposec_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25073,62 +25695,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38510,68 +73251,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-dwconv_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-dwconv_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("x16-transposec_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse2-mul16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25140,56 +25756,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38604,68 +73339,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-dwconv_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - -- source_set("qu8-dwconv_sse4.1-no-sse4.2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8c-minmax-fp32-sse41-mul16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25201,55 +25817,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38698,77 +73412,77 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-dwconv_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-dwconv_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_x64_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("x16-x32-packw_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25261,56 +25880,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-dwconv_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-dwconv_x64_standalone") { - cflags = [] -- ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -38794,72 +73508,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25322,57 +25943,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38898,64 +73589,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qu8-f32-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qu8-f32-vcvt_f16c-fma-avx2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x24-transposec_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25384,61 +26004,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -38988,82 +73666,68 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set( -- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("x24-transposec_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-avx512skx-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25450,60 +26073,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39101,66 +73765,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-f32-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-f32-vcvt_sse2-no-sse3") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25515,54 +26132,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39192,66 +73836,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25574,51 +26191,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-pack-lh/x32-packlh-neonsme.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39260,176 +73894,174 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-sse41-u16.c", - ] -+source_set("qu8-f32-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-f32-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_x64_standalone") { ++ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25630,54 +26248,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-f32-vcvt_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-pack-lh/x32-packlh-neonsme.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] -+source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("x32-packw_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25689,59 +26313,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-gemm/gen/qu8-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39464,71 +74096,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-gemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qu8-gemm_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("qu8-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("x32-packw_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8c8-minmax-fp32-avx2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25753,62 +26376,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39562,83 +74188,53 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set( +- "qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-7x16c8-minmax-fp32-avx512skx-prfm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25820,62 +26447,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39677,68 +74273,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-gemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-gemm_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25887,56 +26508,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("x32-transposec_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", ++ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39771,68 +74358,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-gemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qu8-gemm_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++ source_set("x32-transposec_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4c8-minmax-fp32-sse41-ld64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", ++ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -25948,53 +26569,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -39865,159 +74440,154 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-gemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-gemm_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_x64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-gemm_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++if (build_with_chromium) { ++ source_set("x32-unpool_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26006,55 +26628,60 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-gemm_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-unpool_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26066,59 +26693,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qu8-igemm/gen/qu8-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40057,66 +74627,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qu8-igemm_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" -+ ] -- source_set("qu8-igemm_f16c-fma-avx2") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qu8-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x64-transposec_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8c8-minmax-fp32-avx2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26130,62 +26756,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40150,83 +74706,69 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- if (build_with_chromium) { +- source_set( +- "qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", +- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("x64-transposec_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x16c8-minmax-fp32-avx512skx-prfm.c", -- "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-7x16c8-minmax-fp32-avx512skx-prfm.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26197,62 +26827,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40265,68 +74807,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-igemm_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - -- source_set("qu8-igemm_sse2-no-sse3") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse2-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse2-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26264,56 +26888,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40359,68 +74880,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-igemm_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-igemm_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26325,53 +26949,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("x8-lut_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4c8-minmax-fp32-sse41-ld64.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4c8-minmax-fp32-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40453,151 +74964,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-igemm_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qu8-igemm_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qu8-igemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_x64_standalone") { ++ source_set("x8-lut_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26383,52 +27008,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-igemm_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+source_set("qu8-rdsum_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-rdsum_ssse3-no-sse4.1") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- ++if (build_with_chromium) { ++ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", ++ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26440,51 +27067,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-rdsum_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40606,171 +75108,166 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-c64.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-ssse3-u64.c", - ] -+source_set("qu8-rdsum_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-rdsum_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-rdsum_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_x64_standalone") { ++ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26496,52 +27124,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-rdsum_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", ++ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", - ] -+source_set("qu8-rsum_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rdsum_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("x8-packq_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-rsum_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qu8-rsum_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-avx2-u64-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26553,55 +27185,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40803,66 +75300,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-rsum_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-rsum_sse2-no-sse3") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("x8-packq_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26613,51 +27244,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-rsum_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -40871,174 +75360,171 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-sse2-u32-acc2.c", - ] -+source_set("qu8-rsum_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-rsum_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_x64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-rsum_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("x8-packw_arm64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26669,53 +27301,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-rsum_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", - ] -+source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26727,57 +27364,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41077,64 +75563,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qu8-vadd_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -- source_set("qu8-vadd_f16c-fma-avx2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qu8-vadd_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x8-transposec_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx2-mul32-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26789,60 +27425,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41167,81 +75639,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- if (build_with_chromium) { +- source_set( +- "qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("x8-transposec_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-avx512skx-mul32-ld128-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26854,60 +27494,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41279,66 +75737,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vadd_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vadd_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vadd_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse2-mul16-ld64-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26919,54 +27553,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41370,66 +75808,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-vadd_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vadd_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -26978,52 +27612,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("xx-copy_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vadd_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41461,157 +75889,145 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vadd_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qu8-vadd_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qu8-vadd_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_x64_standalone") { ++ source_set("xx-copy_arm64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27035,54 +27671,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vadd_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", - ] -+source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vadd_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("xx-fill_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-vaddc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx-mul32-ld32-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27094,57 +27734,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41645,69 +76061,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-vaddc_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vaddc_f16c-fma-avx2") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("xx-fill_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27156,60 +27795,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vaddc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx2-mul32-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41740,81 +76146,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set( +- "qu8-vaddc_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("xx-pad_arm64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-avx512skx-mul32-ld128-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27221,60 +27864,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41852,66 +76239,61 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vaddc_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" -+ ] -- source_set("qu8-vaddc_sse2-no-sse3") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-vaddc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("xx-pad_arm64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse2-mul16-ld64-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27286,54 +27923,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -41943,66 +76325,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vaddc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vaddc_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vaddc_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-sse41-mul16-ld64-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27345,52 +27982,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42034,74 +76396,89 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++if (build_with_chromium) { ++ source_set("xx-transposev_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qu8-vaddc_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-transposev_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vaddc_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qu8-vaddc_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27402,54 +28041,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vaddc_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } +} - sources = [ @@ -42109,82 +76486,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", - ] -+source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (current_cpu == "riscv64") { ++if (build_with_chromium) { ++ source_set("configs_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27461,57 +28104,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42218,69 +76613,77 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vcvt_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -- source_set("qu8-vcvt_f16c-fma-avx2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("configs_riscv64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-avx2-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27523,55 +28165,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42313,66 +76716,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vcvt_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vcvt_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-sse2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27583,54 +28224,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42404,66 +76787,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qu8-vcvt_sse4.1-no-sse4.2") { -+source_set("qu8-vcvt_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27642,54 +28283,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("enums_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42495,66 +76872,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vcvt_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" -+ ] -- source_set("qu8-vcvt_ssse3-no-sse4.1") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-vcvt_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- ++ source_set("enums_riscv64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27701,51 +28342,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42563,174 +76931,172 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-ssse3-u32.c", - ] -+source_set("qu8-vcvt_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vcvt_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_x64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-vcvt_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27757,53 +28399,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vcvt_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] -+source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-vlrelu_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27815,57 +28462,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42769,64 +77135,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qu8-vlrelu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qu8-vlrelu_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("qu8-vlrelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-qs8-vcvt_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-avx2-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27877,55 +28523,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42859,66 +77210,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vlrelu_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -- source_set("qu8-vlrelu_sse2-no-sse3") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-vlrelu_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f16-qs8-vcvt_riscv64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse2-u32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27937,54 +28582,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -42950,66 +77295,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vlrelu_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vlrelu_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-sse41-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -27996,54 +28641,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43041,66 +77366,56 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-vlrelu_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vlrelu_ssse3-no-sse4.1") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28055,51 +28700,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f16-qu8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vlrelu_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43109,174 +77424,166 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.1", - "-mssse3", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-ssse3-u32.c", - ] -+source_set("qu8-vlrelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vlrelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vlrelu_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_x64_standalone") { ++ source_set("f16-qu8-vcvt_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28111,53 +28757,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vlrelu_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", - ] -+source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vlrelu_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-rdminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-vmul_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28169,56 +28820,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43310,66 +77617,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-vmul_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] - -- source_set("qu8-vmul_sse2-no-sse3") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f16-rdminmax_riscv64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28230,54 +28879,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vmul_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43401,66 +77700,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vmul_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qu8-vmul_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] +- if (build_with_chromium) { +- source_set("qu8-vmul_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-rminmax_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-sse41-mul16-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28289,51 +28938,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43492,154 +77782,151 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vmul_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qu8-vmul_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qu8-vmul_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_x64_standalone") { ++ source_set("f16-rminmax_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28345,53 +28995,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vmul_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", - ] -+source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmul_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f16-vapproxgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("qu8-vmulc_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-avx-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28403,56 +29058,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43673,66 +77960,57 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-vmulc_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vmulc_sse2-no-sse3") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++ source_set("f16-vapproxgelu_riscv64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28464,54 +29117,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vmulc_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse2-mul16-ld64-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43764,66 +78042,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vmulc_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qu8-vmulc_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] +- if (build_with_chromium) { +- source_set("qu8-vmulc_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-vcos_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-sse41-mul16-ld64-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28523,51 +29176,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -43855,151 +78122,146 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qu8-vmulc_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vcos_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qu8-vmulc_x64") { -- cflags = [] -+source_set("qu8-vmulc_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28579,52 +29233,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vmulc_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", - ] -+source_set("qu8-vprelu_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vprelu_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-vexp_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28636,52 +29294,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vprelu_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -44009,171 +78271,162 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vprelu/gen/qu8-vprelu-avx2-u16.c", - ] -+source_set("qu8-vprelu_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vprelu_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vprelu_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_x64_standalone") { ++ source_set("f16-vexp_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28693,52 +29351,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vprelu_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", - ] -+source_set("qu8-vpreluc_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vprelu_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vpreluc_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-vgelu_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28750,52 +29412,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -44183,171 +78436,162 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vpreluc/gen/qu8-vpreluc-avx2-u16.c", - ] -+source_set("qu8-vpreluc_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vpreluc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vpreluc_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_x64_standalone") { ++ source_set("f16-vgelu_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28807,52 +29469,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vpreluc_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", - ] -+source_set("qu8-vrpreluc_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vpreluc_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vrpreluc_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f16-vsin_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28864,52 +29530,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qu8-vrpreluc_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -44357,180 +78601,180 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-avx2-u16.c", - ] -+source_set("qu8-vrpreluc_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vrpreluc_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vrpreluc_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_x64_standalone") { ++ source_set("f16-vsin_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28921,50 +29587,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vrpreluc_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", - ] -+source_set("reference_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("reference_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("reference_x64_standalone") { +- if (build_with_chromium) { +- source_set("reference_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] ++if (build_with_chromium) { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -28976,53 +29648,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("reference_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -44538,76 +78782,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/reference/packing.cc", - "src/src/reference/unary-elementwise.cc", - ] -+source_set("s8-ibilinear_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("s8-ibilinear_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("s8-ibilinear_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29034,54 +29707,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -44619,7 +78852,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-c8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse2-u8.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -44644,61 +78877,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("s8-ibilinear_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("s8-ibilinear_sse4.1-no-sse4.2") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] +- if (build_with_chromium) { +- source_set("s8-ibilinear_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-argmaxpool_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29093,51 +29766,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -44707,168 +78927,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-c16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-sse41-u16.c", - ] -+source_set("s8-ibilinear_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-ibilinear_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("s8-ibilinear_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_x64_standalone") { ++ source_set("f32-argmaxpool_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29149,51 +29823,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-ibilinear_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c", - ] -+source_set("s8-maxpool_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("s8-maxpool_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++if (build_with_chromium) { ++ source_set("f32-avgpool_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29205,51 +29882,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("s8-maxpool_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -44877,170 +79097,163 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-sse41-u16.c", - ] -+source_set("s8-maxpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-maxpool_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("s8-maxpool_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_x64_standalone") { ++ source_set("f32-avgpool_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29261,52 +29939,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("s8-maxpool_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("s8-rdminmax_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("s8-rdminmax_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++if (build_with_chromium) { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29318,53 +30000,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("s8-rdminmax_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -45052,8 +79265,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-c32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-sse41-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-sse41-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -45073,156 +79286,143 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("s8-rdminmax_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("s8-rdminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-rdminmax_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29376,54 +30059,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-rdminmax_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", - ] -+source_set("s8-rminmax_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("s8-rminmax_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- ++if (build_with_chromium) { ++ source_set("f32-conv-hwc2chw_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29435,55 +30122,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("s8-rminmax_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-sse41-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-sse41-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -45256,78 +79456,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("s8-rminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("s8-rminmax_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("s8-rminmax_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_x64_standalone") { ++ source_set("f32-conv-hwc2chw_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29495,54 +30183,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("s8-rminmax_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -45335,79 +79482,119 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", - "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", - ] -+source_set("s8-vclamp_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rminmax_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("s8-vclamp_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", -+ "src/src/s8-vclamp/s8-vclamp-avx2-u128.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29554,60 +30244,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("s8-vclamp_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -45440,81 +79627,61 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set( +- "s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c", -+ "src/src/s8-vclamp/s8-vclamp-avx512skx-u256.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29619,60 +30313,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -45552,66 +79719,46 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("s8-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("s8-vclamp_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("s8-vclamp_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse2-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-sse2-u64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29684,54 +30372,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -45643,66 +79790,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("s8-vclamp_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("s8-vclamp_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-sse41-u64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29743,51 +30431,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] + +- if (build_with_chromium) { +- source_set("s8-vclamp_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -45711,254 +79855,241 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-sse41-u64.c", - ] -+source_set("s8-vclamp_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-vclamp_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("s8-vclamp_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_x64_standalone") { ++ source_set("f32-dwconv2d-chw_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29799,76 +30488,108 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("s8-vclamp_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", - ] -+source_set("subgraph_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("subgraph_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("subgraph_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("subgraph_x64_standalone") { ++ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29880,84 +30601,68 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("subgraph_x64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/subgraph/argmax-pooling-2d.c", @@ -46014,86 +80145,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("tables_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("tables_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("tables_x64_standalone") { +- if (build_with_chromium) { +- source_set("tables_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-dwconv_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -29969,59 +30674,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("tables_x64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -46125,66 +80266,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("u8-ibilinear_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("u8-ibilinear_sse2-no-sse3") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30033,54 +30733,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("u8-ibilinear_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -46196,7 +80318,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-c8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse2-u8.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -46221,61 +80343,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("u8-ibilinear_sse4.1-no-sse4.2") { -+ cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("u8-ibilinear_sse4.1-no-sse4.2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { - cflags = [ - "-mno-sse4.2", -- "-msse4.1", -+ "-msse4.1" - ] +- if (build_with_chromium) { +- source_set("u8-ibilinear_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30092,51 +30792,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -46284,250 +80393,276 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse4.2", - "-msse4.1", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-c16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-sse41-u16.c", - ] -+source_set("u8-ibilinear_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-ibilinear_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("u8-ibilinear_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_x64_standalone") { ++ source_set("f32-f16-vcvt_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30148,48 +30849,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-ibilinear_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++if (build_with_chromium) { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", - ] -+source_set("u8-lut32norm_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("u8-lut32norm_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-lut32norm_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30201,51 +30906,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-lut32norm_x64_standalone") { +- if (build_with_chromium) { +- source_set("u8-lut32norm_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/u8-lut32norm/u8-lut32norm-scalar.c", - ] -+source_set("u8-maxpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-lut32norm_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- source_set("u8-maxpool_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("u8-maxpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-gemm_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30257,51 +30965,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -46536,170 +80671,176 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-sse2-u16.c", - ] -+source_set("u8-maxpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-maxpool_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("u8-maxpool_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_x64_standalone") { ++ source_set("f32-gemm_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30313,52 +31022,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-maxpool_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("u8-rdminmax_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-maxpool_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("u8-rdminmax_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-ibilinear-chw_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30370,53 +31083,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("u8-rdminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-u32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -46711,8 +80852,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-c32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-sse2-u32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-sse2-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -46732,156 +80873,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("u8-rdminmax_x64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("u8-rdminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-rdminmax_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30428,54 +31142,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-rdminmax_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c", - ] -+source_set("u8-rminmax_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("u8-rminmax_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-ibilinear_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", - "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30487,55 +31205,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("u8-rminmax_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-sse2-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-sse2-u32-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -46915,78 +81042,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("u8-rminmax_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("u8-rminmax_x64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("u8-rminmax_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_x64_standalone") { ++ source_set("f32-ibilinear_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30547,54 +31266,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-rminmax_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -46994,79 +81068,121 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", - "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", - ] -+source_set("u8-vclamp_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rminmax_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("u8-vclamp_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("u8-vclamp_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", -+ "src/src/u8-vclamp/u8-vclamp-avx2-u128.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30606,60 +31327,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47099,81 +81215,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", -+ "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30671,60 +31396,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set( +- "u8-vclamp_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-avx512skx-u256.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47211,66 +81311,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("u8-vclamp_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("u8-vclamp_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("u8-vclamp_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-igemm_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-sse2-u64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30736,51 +31455,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47279,171 +81375,179 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/u8-vclamp/u8-vclamp-sse2-u64.c", - ] -+source_set("u8-vclamp_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-vclamp_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("u8-vclamp_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_x64_standalone") { ++ source_set("f32-igemm_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30792,52 +31512,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-vclamp_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", - ] -+source_set("x16-packw_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x16-packw_f16c-fma-avx2") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-packw_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] +- if (build_with_chromium) { +- source_set("x16-packw_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-avx2-u16-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30849,56 +31573,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47476,69 +81580,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x16-transposec_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("x16-transposec_f16c-fma-avx2") { +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", -+ "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30910,55 +31634,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("x16-transposec_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-16x16-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47571,66 +81665,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("x16-transposec_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -- source_set("x16-transposec_sse2-no-sse3") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("x16-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-maxpool_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-multi-sse2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -30970,51 +31693,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47662,233 +81745,247 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x16-transposec_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x16-transposec_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("x16-transposec_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_x64_standalone") { ++ source_set("f32-maxpool_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31026,49 +31750,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x16-transposec_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", - ] -+source_set("x16-x32-packw_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x16-x32-packw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-x32-packw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31080,52 +31809,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x16-x32-packw_x64_standalone") { +- if (build_with_chromium) { +- source_set("x16-x32-packw_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", - ] -+source_set("x24-transposec_ssse3-no-sse4.1") { -+ cflags = [ -+ "-mno-sse4.1", -+ "-mssse3" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-x32-packw_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- source_set("x24-transposec_ssse3-no-sse4.1") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_ssse3-no-sse4.1_standalone") { - cflags = [ - "-mno-sse4.1", -- "-mssse3", -+ "-mssse3" - ] +- if (build_with_chromium) { +- source_set("x24-transposec_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/x24-transposec/x24-transposec-4x4-ssse3.c", -+ "src/src/x24-transposec/x24-transposec-4x4-ssse3.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31137,51 +31868,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -47920,165 +82017,155 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x24-transposec_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x24-transposec_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("x24-transposec_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_x64_standalone") { ++ source_set("f32-qc8w-gemm_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31193,57 +31925,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x24-transposec_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", - ] -+source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x24-transposec_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("x32-packw_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", - "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x16s4-gemm-goi-avx-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-gio-avx-u8.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-avx-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31255,60 +31996,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -48116,76 +82203,35 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x32-packw_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x32-packw_avx512f") { -- cflags = [ "-mavx512f" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_avx512f_standalone") { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-mavx512f" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31320,55 +32059,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x32-packw_avx512f_standalone") { +- if (build_with_chromium) { +- source_set("x32-packw_avx512f") { - cflags = [ "-mavx512f" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -48193,6 +82239,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", - "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", - "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32c2-gemm-goi-avx512f-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-packw_avx512f_standalone") { +- cflags = [ "-mavx512f" ] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-gio-avx512f-u8.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-avx512f-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x32c2-gemm-goi-avx512f-u4-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -48212,68 +82304,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("x32-packw_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x32-packw_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("x32-packw_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- -+ - sources = [ - "src/include/xnnpack.h", - "src/src/x32-packw/gen/x32-packw-x2c4-gemm-goi-sse2-u4.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-sse2-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31380,57 +32120,62 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -48306,82 +82379,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("x32-packw_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("x32-packw_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] -- source_set("x32-packw_x64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31442,58 +32187,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x32-packw_x64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -48410,72 +82482,50 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-reuse-multi-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31505,56 +32250,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -48509,66 +82559,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x32-transposec_sse-no-sse2") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/x32-transposec-4x4-sse.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("x32-transposec_sse-no-sse2") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_sse-no-sse2_standalone") { - cflags = [ - "-mno-sse2", -- "-msse", -+ "-msse" - ] -- ++ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-transposec/x32-transposec-4x4-sse.c", -+ "src/src/x32-transposec/x32-transposec-4x4-sse.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31566,51 +32309,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("x32-transposec_sse-no-sse2") { +- cflags = [ +- "-mno-sse2", +- "-msse", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/x32-transposec-4x4-sse.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -48600,148 +82642,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("x32-transposec_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("x32-transposec_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31622,51 +32366,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x32-transposec_x64_standalone") { +- if (build_with_chromium) { +- source_set("x32-transposec_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", - ] -+source_set("x32-unpool_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-sse2.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_x64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x32-unpool_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-unpool_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("x32-unpool_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-sse2.c", -+ "src/src/x32-unpool/x32-unpool-sse2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31678,51 +32425,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -48750,174 +82786,165 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x32-unpool/x32-unpool-sse2.c", - ] -+source_set("x32-unpool_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x32-unpool_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-unpool_x64_standalone") { +- if (build_with_chromium) { +- source_set("x32-unpool_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31734,53 +32482,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x32-unpool_x64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x32-unpool/x32-unpool-scalar.c", - ] -+source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] +- if (build_with_chromium) { +- source_set("x64-transposec_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31792,56 +32545,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x4-reuse-multi-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -48956,61 +82983,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("x64-transposec_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" -+ ] -- source_set("x64-transposec_sse2-no-sse3") { -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("x64-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31853,51 +32604,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49019,174 +83033,171 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x64-transposec/gen/x64-transposec-2x2-multi-mov-sse2.c", - ] -+source_set("x64-transposec_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x64-transposec_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("x64-transposec_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_x64_standalone") { ++ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31909,53 +32661,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x64-transposec_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", - ] -+source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx-u64.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_avx-no-avx2-no-f16c-no-fma_standalone") { - cflags = [ - "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" - ] -- ++if (build_with_chromium) { ++ source_set("f32-rdminmax_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx-u64.c", -+ "src/src/x8-lut/gen/x8-lut-avx-u64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -31967,57 +32724,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("x8-lut_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49220,69 +83231,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x8-lut_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("x8-lut_f16c-fma-avx2") { +- if (build_with_chromium) { +- source_set("x8-lut_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- ++ source_set("f32-rdminmax_riscv64_standalone") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx2-u128.c", -+ "src/src/x8-lut/gen/x8-lut-avx2-u128.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32029,60 +32785,64 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49315,81 +83312,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- if (build_with_chromium) { +- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c", -+ "src/src/x8-lut/gen/x8-lut-avx512skx-vpshufb-u64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32094,67 +32854,66 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49427,85 +83394,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { -+ cflags = [ -+ "-mavx512bw", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vbmi", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set( -- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi_standalone") { - cflags = [ - "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vbmi", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -+ "-mavx512cd", -+ "-mavx512dq", -+ "-mavx512f", -+ "-mavx512vbmi", -+ "-mavx512vl", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", -+ "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32166,58 +32925,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++if (build_with_chromium) { ++ source_set("f32-rdsum2_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] + +- if (build_with_chromium) { +- source_set( +- "x8-lut_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vbmi") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vbmi", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49521,261 +83466,286 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mf16c", - "-mfma", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x8-lut/gen/x8-lut-avx512vbmi-vpermx2b-u128.c", - ] -+source_set("x8-lut_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x8-lut_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("x8-lut_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_x64_standalone") { ++ source_set("f32-rdsum2_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32229,48 +32982,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-lut_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-lut/gen/x8-lut-scalar-u4.c", - ] -+source_set("x8-packq_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x8-packq_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-packq_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32282,51 +33039,58 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-packq_x64_standalone") { +- if (build_with_chromium) { +- source_set("x8-packq_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", - ] -+source_set("x8-packw_x64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packq_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x8-packw_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-packw_x64_standalone") { +- if (build_with_chromium) { +- source_set("x8-packw_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-rdsum_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32338,55 +33102,56 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x8-packw_x64_standalone") { - cflags = [] -- ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", @@ -49801,69 +83771,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x8-transposec_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] - -- source_set("x8-transposec_f16c-fma-avx2") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mf16c", -- "-mfma", -+ "-mf16c", -+ "-mfma" - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", -+ "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32398,55 +33163,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("x8-transposec_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-32x32-reuse-switch-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49901,61 +83850,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("x8-transposec_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("x8-transposec_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("x8-transposec_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32458,51 +33222,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -49964,250 +83903,272 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-mov-sse2.c", - ] -+source_set("x8-transposec_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x8-transposec_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("x8-transposec_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_x64_standalone") { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32514,48 +33279,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-transposec_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", - ] -+source_set("xx-copy_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-rminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("xx-copy_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-copy_x64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32567,51 +33336,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("xx-copy_x64_standalone") { +- if (build_with_chromium) { +- source_set("xx-copy_x64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-copy/xx-copy-scalar-memcpy.c", - ] -+source_set("xx-fill_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-sse2-u64.c" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-copy_x64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- source_set("xx-fill_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-fill_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] +- if (build_with_chromium) { +- source_set("xx-fill_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-sse2-u64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-rsum2_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-sse2-u64.c", -+ "src/src/xx-fill/xx-fill-sse2-u64.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32623,51 +33395,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -50216,168 +84177,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/xx-fill/xx-fill-sse2-u64.c", - ] -+source_set("xx-fill_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("xx-fill_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("xx-fill_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("xx-fill_x64_standalone") { ++ source_set("f32-rsum2_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32679,51 +33452,54 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("xx-fill_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-fill/xx-fill-scalar-u16.c", - ] -+source_set("xx-pad_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-fill_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("xx-pad_sse2-no-sse3") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-pad_sse2-no-sse3_standalone") { - cflags = [ - "-mno-sse3", -- "-msse2", -+ "-msse2" - ] -- ++if (build_with_chromium) { ++ source_set("f32-rsum_riscv64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", -+ "src/src/xx-pad/xx-pad-p16-sse2-u16.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32735,51 +33511,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("xx-pad_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-sse2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -50386,170 +84347,194 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mno-sse3", - "-msse2", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/xx-pad/xx-pad-p16-sse2-u16.c", - ] -+source_set("xx-pad_x64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("xx-pad_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("xx-pad_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("xx-pad_x64_standalone") { ++ source_set("f32-rsum_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32791,48 +33568,52 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("xx-pad_x64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-pad/xx-pad-p4-scalar-u16.c", - ] -+source_set("xx-transposev_x64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_x64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("xx-transposev_x64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("xx-transposev_x64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("xx-transposev_x64_standalone") { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32844,73 +33625,101 @@ if (current_cpu == "x64" || current_cpu - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("xx-transposev_x64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -50579,133 +84564,97 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } -+} -+ - if (current_cpu == "arm64") { -- source_set("configs_arm64") { -- cflags = [] -+source_set("configs_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("configs_arm64_standalone") { +-if (current_cpu == "arm64") { +- if (build_with_chromium) { +- source_set("configs_arm64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-spmm_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -32922,75 +33731,60 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("configs_arm64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-spmm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -50752,80 +84701,23 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("enums_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("enums_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("enums_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33002,52 +33796,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("enums_arm64_standalone") { +- if (build_with_chromium) { +- source_set("enums_arm64") { - cflags = [] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/enums/allocation-type.c", @@ -50834,92 +84726,210 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/enums/node-type.c", - "src/src/enums/operator-type.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-avgpool_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("enums_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-avgpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-avgpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vapproxgelu_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", -+ "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33059,48 +33853,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -50927,165 +84937,191 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", -+ "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33112,51 +33910,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vbinary_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", -+ "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33168,55 +33973,60 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3p1-minmax-neonfp16arith-2x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-3x3s2p1-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5p2-minmax-neonfp16arith-1x8.c", +- "src/src/f16-dwconv2d-chw/gen/f16-dwconv2d-chw-5x5s2p2-minmax-neonfp16arith-1x8.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -51112,80 +85148,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-dwconv_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", +- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", +- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f16-dwconv_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-dwconv_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", -- "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -- "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-3p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-4p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p16c-minmax-neonfp16arith.c", -+ "src/src/f16-dwconv/gen/f16-dwconv-9p8c-minmax-neonfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33228,54 +34038,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -- ++if (build_with_chromium) { ++ source_set("f32-vclamp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-dwconv/gen/f16-dwconv-25p8c-minmax-neonfp16arith-acc2.c", @@ -51212,73 +85235,37 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f16-f32-vcvt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-f32-vcvt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_arm64_standalone") { ++ source_set("f32-vclamp_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33287,50 +34099,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-f32-vcvt_arm64_standalone") { -- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -51286,92 +85273,310 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32-vcvt_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neon-int16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-neonfp16-u16.c", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-f32acc-rdsum2_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33342,48 +34156,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-minmax-neonfp16arith.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rdsum2_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vcmul_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum2/gen/f16-f32acc-rdsum2-7p7x-minmax-neonfp16arith.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vcopysign_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-c16.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-f32acc-rsum2_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-neonfp16arith.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -51379,170 +85584,176 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-f32acc-rsum2_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum2/gen/f16-f32acc-rsum2-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcos_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", -+ "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33395,51 +34213,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-f32acc-rsum_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-gemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33451,58 +34276,66 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-gemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -51551,100 +85762,112 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", - "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", - ] -+source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-velu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-gemm/gen/f16-gemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- asmflags = cflags +- if (build_with_chromium) { +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ source_set("f32-velu_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ + ] + -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33514,55 +34347,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - asmflags = cflags -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -51654,92 +85877,196 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", - "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("f32-vexp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-gemm/gen/f16-gemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vexp_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", -+ "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33574,48 +34404,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear-chw/gen/f16-ibilinear-chw-neonfp16arith-p8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-u8.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -51747,170 +86074,126 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-ibilinear_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-ibilinear_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", -+ "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33627,51 +34461,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-ibilinear_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-c8.c", +- "src/src/f16-ibilinear/gen/f16-ibilinear-neonfp16arith-u8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-igemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-igemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", +- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-igemm/gen/f16-igemm-1x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -- "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-1x8-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", -+ "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33683,58 +34524,66 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-igemm_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -51919,100 +86202,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-igemm/gen/f16-igemm-6x16-minmax-neonfp16arith-ld64.c", - "src/src/f16-igemm/gen/f16-igemm-6x8-minmax-neonfp16arith-ld64.c", - ] -+source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- asmflags = cflags +- if (build_with_chromium) { +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", -+ "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33746,55 +34595,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ ] - asmflags = cflags -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -52022,422 +86256,570 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", - "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-maxpool_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("f32-vhswish_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-4x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a55r0.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-cortex-a75.S", +- "src/src/f16-igemm/f16-igemm-6x16-minmax-asm-aarch64-neonfp16arith-ld64.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-maxpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-maxpool_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vhswish_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", -+ "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33806,48 +34652,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vlog_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-maxpool/gen/f16-maxpool-9p-minmax-neonfp16arith-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vlog_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33859,48 +34709,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", - ] -+source_set("f16-qs8-vcvt_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-neonfp16arith-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-qs8-vcvt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qs8-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33912,48 +34766,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-qs8-vcvt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f16-qs8-vcvt_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", - ] -+source_set("f16-qu8-vcvt_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-qu8-vcvt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qu8-vcvt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f16-qu8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vlrelu_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -33965,48 +34823,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-qu8-vcvt_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vlrelu_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", -+ "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34018,49 +34880,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vmulcaddc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-raddstoreexpminusmax/gen/f16-raddstoreexpminusmax-neonfp16arith-rr2-p2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-u32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-u32.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -52445,251 +86827,231 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-rdminmax_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vmulcaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-rdminmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34072,50 +34939,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-rdminmax_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-c32.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-c32.c", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-neonfp16arith-u32.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-neonfp16arith-u32.c", - ] -+source_set("f16-rdminmax_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-rdminmax_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rdminmax_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f16-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34127,51 +34998,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-rdminmax_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-rminmax_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-rminmax_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-rminmax_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34183,52 +35059,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rmin-neonfp16arith-u32-acc4.c", +- "src/src/f16-rminmax/gen/f16-rminmax-neonfp16arith-u32-acc4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -- ++if (build_with_chromium) { ++ source_set("f32-vrnd_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-neonfp16arith-u32-acc4.c", @@ -52714,73 +87076,22 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-rminmax_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-rminmax_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34240,50 +35120,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-rminmax_arm64_standalone") { ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-rminmax_arm64") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -52788,9 +87099,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -52798,247 +87107,267 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-spmm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrnd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-spmm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-spmm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", -+ "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34295,48 +35177,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-spmm_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-spmm/gen/f16-spmm-32x1-minmax-neonfp16arith-pipelined.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34348,48 +35234,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", - ] -+source_set("f16-vapproxgelu_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-neonfp16arith-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vapproxgelu_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34401,69 +35291,94 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vapproxgelu_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f16-vapproxgelu_arm64") { - cflags = [] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -53046,136 +87375,144 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vbinary_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vrsqrt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vapproxgelu_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vbinary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vbinary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", +- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", +- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", +- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vbinary/gen/f16-vadd-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -- "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -- "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -- "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vaddc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdiv-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vmax-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmaxc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmin-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vminc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmul-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vmulc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vprelu-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-aarch64-neonfp16arith-u8.c", -+ "src/src/f16-vbinary/gen/f16-vrdivc-fp16arith-u2.c", -+ "src/src/f16-vbinary/gen/f16-vrpreluc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vrsubc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiff-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsqrdiffc-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", -+ "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34475,69 +35390,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vbinary_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -53202,175 +87539,138 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-vbinary/gen/f16-vsub-neonfp16arith-u16.c", - "src/src/f16-vbinary/gen/f16-vsubc-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vclamp_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vclamp_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vclamp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { ++ source_set("f32-vsigmoid_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", -+ "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34549,48 +35447,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -- ++if (build_with_chromium) { ++ source_set("f32-vsin_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vclamp/gen/f16-vclamp-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vcmul_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vcmul_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", -+ "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34602,48 +35504,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vcmul_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -53378,247 +87678,259 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vcos_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsin_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcmul_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcmul/gen/f16-vcmul-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vcos_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vcos_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsqrt_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", -+ "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34655,48 +35561,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vcos_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-neonfp16arith-rational-3-2-div.c", - ] -+source_set("f16-vcos_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vcos_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vcos_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_arm64_standalone") { ++ source_set("f32-vsqrt_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34708,48 +35618,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vcos_arm64_standalone") { -- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-velu_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vcos_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vtanh_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-velu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", -+ "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34761,48 +35675,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-velu_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -53626,495 +87938,567 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vexp_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-velu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-velu/gen/f16-velu-neonfp16arith-rr1-p3-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vexp_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vexp_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vunary_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", -+ "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34814,48 +35732,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vexp_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vexp/gen/f16-vexp-neonfp16arith-poly-3.c", - ] -+source_set("f16-vexp_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vexp_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vexp_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_arm64_standalone") { ++ source_set("f32-vunary_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34867,48 +35789,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vexp_arm64_standalone") { -- cflags = [] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vgelu_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("operators_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vgelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", -+ "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34920,48 +35846,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vgelu_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", - ] -+source_set("f16-vgelu_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("operators_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vgelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-neonfp16arith-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vgelu_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f16-vgelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -34973,48 +35903,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vgelu_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vhswish_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vhswish_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vhswish_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { ++ source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", -+ "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35026,48 +35960,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vlrelu_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vhswish/gen/f16-vhswish-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", -+ "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35079,48 +36017,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vlrelu_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -54122,165 +88506,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vlrelu_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vlrelu/gen/f16-vlrelu-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", -+ "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35132,51 +36074,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vrnd_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vrnd_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vrnd_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { ++ source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -+ "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35188,51 +36137,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -54289,515 +88676,535 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", - "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", -+ "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35244,49 +36194,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { ++ source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", -+ "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35298,49 +36253,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", - "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vsin_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vsin_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -+ "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35352,48 +36310,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vsin_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", - ] -+source_set("f16-vsin_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vsin_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35405,49 +36367,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsin_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f16-vsin_arm64") { - cflags = [] - - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vsqrt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" ++ ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { ++ source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", -+ "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35459,50 +36426,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", - "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vtanh_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -+ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f16-vtanh_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -+ "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35514,51 +36485,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vtanh_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", - "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -54805,79 +89212,129 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("f16-vunary_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vunary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vunary_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -+ "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35570,51 +36546,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -54903,243 +89360,258 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-argmaxpool_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-argmaxpool_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-argmaxpool_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_arm64_standalone") { ++ source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35626,50 +36605,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-argmaxpool_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+source_set("f32-avgpool_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-avgpool_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35681,51 +36664,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-avgpool_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-avgpool_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", - "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] -+source_set("f32-conv-hwc2chw_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-conv-hwc2chw_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-conv-hwc2chw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35737,65 +36725,82 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-conv-hwc2chw_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -55165,117 +89637,26 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-dwconv2d-chw_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] - -- source_set("f32-dwconv2d-chw_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_arm64_standalone") { ++ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35807,65 +36812,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-dwconv2d-chw_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -55296,217 +89677,258 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", - ] -+source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv2d-chw_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-neon-2x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-aarch64-neonfma-2x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-aarch64-neonfma-4x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-aarch64-neonfma-1x4-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-neon-1x4.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35877,67 +36873,86 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- -- asmflags = cflags + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} +- if (build_with_chromium) { +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", - ] -+source_set("f32-dwconv_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-f32-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/f32-dwconv-9p4c-minmax-asm-aarch64-neonfma-cortex-a55.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-dwconv_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-dwconv_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-packw_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8c-minmax-neonfma-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8c-minmax-neonfma.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neon.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8c-minmax-neonfma.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -35949,67 +36964,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-dwconv_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -55547,78 +89969,28 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-f16-vcvt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-f16-vcvt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_arm64_standalone") { ++ source_set("qs8-packw_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36021,70 +37025,92 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-f16-vcvt_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -55626,146 +89998,98 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", - ] -+source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-f16-vcvt_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neon-u8.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-neonfp16-u16.c", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36096,86 +37122,88 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- if (build_with_chromium) { +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("f32-gemm_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - asmflags = cflags -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - sources = [ - "src/include/xnnpack.h", @@ -55773,7 +90097,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-2.S", - "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", - "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", - "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", @@ -55781,13 +90105,86 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", - "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", - "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128-2.S", - "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", - "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", - "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", - "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", - "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", - "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-7x8-minmax-asm-aarch64-neonfma-ld128-2.S", +- "src/src/f32-gemm/gen/f32-gemm-8x8-minmax-asm-aarch64-neonfma-ld128-2.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-2.S", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-asm-aarch64-neonfma-ld128-2.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-gemm/gen/f32-gemm-7x8-minmax-asm-aarch64-neonfma-ld128-2.S", +- "src/src/f32-gemm/gen/f32-gemm-8x8-minmax-asm-aarch64-neonfma-ld128-2.S", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -55807,112 +90204,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-gemm/gen/f32-gemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36187,68 +37215,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-gemm_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -55954,74 +90321,86 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-ibilinear-chw_arm64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-ibilinear-chw_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear-chw_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36260,52 +37276,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-ibilinear-chw_arm64_standalone") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neon-p8.c", @@ -56046,210 +90425,176 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-ibilinear_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36317,69 +37337,90 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-ibilinear_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-ibilinear_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-c8.c", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-u8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-u8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c", - ] -+source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neon-u8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-u8.c", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", -+ "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36391,85 +37432,88 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a55.S", +- "src/src/f32-igemm/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a73.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-asm-aarch64-neonfma-ld64.S", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-cortex-a75.S", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a53.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-cortex-a75-prfm.S", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -56257,11 +90602,21 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("f32-igemm_arm64") { -+ cflags = [ - +- - asmflags = cflags -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -56304,110 +90659,79 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - } - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-igemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f32-igemm_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-igemm/gen/f32-igemm-1x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x16-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-neon-lane-ld64.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8-minmax-neon-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x8s4-minmax-neonfma.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36481,67 +37525,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-igemm_arm64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -56449,170 +90773,162 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("f32-maxpool_arm64") { -- cflags = [] -+source_set("f32-maxpool_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36553,55 +37584,64 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-maxpool_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-maxpool_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("f32-qc4w-gemm_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-neon-u4.c", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-qc4w-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-aarch64-neonfma-lane-ld128.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36613,58 +37653,60 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-qc4w-gemm_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -56642,85 +90958,29 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36676,57 +37718,62 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] - -- asmflags = cflags -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -56728,93 +90988,153 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", - ] -+source_set("f32-qc8w-gemm_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128-acc4.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-asm-aarch64-neonfma-ld128.S", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-asm-aarch64-neonfma-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-qc8w-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_arm64_standalone") { ++ source_set("qs8-qc8w-igemm_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36738,56 +37785,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-aarch64-neonfma-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x8-minmax-neon-lane-ld64.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-6x8-minmax-aarch64-neonfma-lane-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-qc8w-gemm_arm64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", @@ -56847,72 +91167,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-qs8-vcvt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-qs8-vcvt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-qu8-packw_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neonv8-u32.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36799,54 +37848,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-qs8-vcvt_arm64_standalone") { - cflags = [] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-neon-u32.c", @@ -56938,77 +91246,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qu8-vcvt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-qu8-vcvt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_arm64_standalone") { ++ source_set("qs8-qu8-packw_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36858,52 +37911,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neonv8-u32.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-qu8-vcvt_arm64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-neon-u32.c", @@ -57039,163 +91336,254 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-raddstoreexpminusmax_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-raddstoreexpminusmax_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36915,52 +37970,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-raddstoreexpminusmax_arm64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-neonfma-rr1-lut64-p2-u16-acc2.c", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] -+source_set("f32-rdminmax_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-rdminmax_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f32-rdminmax_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -36972,52 +38033,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rdminmax_arm64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-rdsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-c32.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-neon-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-neon-u32.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-rdsum2_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-neon.c", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum2_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-neon.c", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -57220,162 +91608,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-rdsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-rdsum_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37029,54 +38092,62 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rdsum_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-rdsum_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-c16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-u16.c", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] -+source_set("f32-rminmax_arm64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum_arm64_standalone") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-neon-u16.c", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-rminmax_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f32-rminmax_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rminmax/gen/f32-rmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-neon-u16-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37088,54 +38159,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-rminmax_arm64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-rsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -57404,170 +91787,242 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-rsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-rsum_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37147,55 +38218,64 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rsum_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-rsum2_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- "src/src/f32-rsum2/gen/f32-rsum2-neon.c", +- "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c", - ] -+source_set("f32-spmm_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum2_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-neon.c", +- "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-rsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-neon-u16-acc4.c", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-spmm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-spmm_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_arm64_standalone") { ++ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", -- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37207,55 +38287,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neon.c", +- "src/src/f32-spmm/gen/f32-spmm-32x1-minmax-neonfma-pipelined.c", +- "src/src/f32-spmm/gen/f32-spmm-32x2-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-32x4-minmax-aarch64-neonfma.c", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-spmm_arm64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -57603,258 +92058,190 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("f32-vapproxgelu_arm64") { -- cflags = [] -+source_set("f32-vapproxgelu_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vadd_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37267,86 +38346,126 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vapproxgelu_arm64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-neon-rational-12-10-div.c", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] -+source_set("f32-vbinary_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vbinary_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37358,86 +38477,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- if (build_with_chromium) { +- source_set("f32-vbinary_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-aarch64-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-neon-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vbinary_arm64_standalone") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vbinary/gen/f32-vadd-neon-u8.c", @@ -57914,252 +92301,255 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vclamp_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vclamp_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-neon.c", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37449,50 +38536,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vclamp_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vclamp_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-neon.c", - "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] -+source_set("f32-vcmul_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vclamp_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-neon.c", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcmul_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcmul_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vaddc_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37504,54 +38595,62 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcmul_arm64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-neon-u8.c", - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] -+source_set("f32-vcopysign_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcopysign_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f32-vcopysign_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcopysign/gen/f32-vcopysign-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37563,54 +38662,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcopysign_arm64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -58188,161 +92578,157 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vcos_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-vcos_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37622,52 +38721,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vcos_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcos_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", - "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", - ] -+source_set("f32-velu_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-velu_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-velu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", +- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -- "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c", -+ "src/src/f32-velu/gen/f32-velu-neonfma-rr1-p6-u8.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37679,52 +38784,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-velu_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -58369,498 +92755,533 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-vexp_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-vexp_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-vexp_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_arm64_standalone") { ++ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37736,50 +38843,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vexp_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", - "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", - ] -+source_set("f32-vgelu_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-neon-rational-3-2-div.c", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vgelu_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37791,50 +38902,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vgelu_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vgelu_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", - "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", - ] -+source_set("f32-vhswish_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-neon-rational-12-10-div.c", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-neon.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vhswish_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vhswish_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-neon.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-neon.c", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37846,50 +38961,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vhswish_arm64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-neon.c", - "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] -+source_set("f32-vlog_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlog_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vlog_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_arm64_standalone") { ++ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37901,50 +39020,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vlog_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", - "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", - ] -+source_set("f32-vlrelu_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-vmul_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-neon-rational-3-3-div.c", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vlrelu_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -37956,51 +39079,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vlrelu_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vlrelu_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", - "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", - ] -+source_set("f32-vmulcaddc_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmul_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlrelu_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-neon-u8.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vmulcaddc_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vmulcaddc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neon-2x.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38012,61 +39140,74 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vmulcaddc_arm64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -58886,100 +93307,73 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vrnd_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vrnd_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vrnd_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrnd/gen/f32-vrndd-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neon-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38078,61 +39219,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrnd_arm64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-vmulc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -59014,73 +93408,75 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vrsqrt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vrsqrt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f32-vrsqrt_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_arm64_standalone") { ++ source_set("qs8-vmulc_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-neon-rsqrt.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38144,52 +39280,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrsqrt_arm64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -59111,68 +93507,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vsigmoid_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsigmoid_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsigmoid_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vprelu_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-neon-rr2-lut64-p2-nr2recps-u8.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-neonfma-rr1-lut64-p2-nr2recps-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38201,51 +39341,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsigmoid_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -59198,338 +93584,349 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-vsin_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsin_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-vsin_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_arm64_standalone") { ++ source_set("qs8-vprelu_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38257,50 +39400,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vsin_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", - "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", - ] -+source_set("f32-vsqrt_arm64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsin_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-vpreluc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-neon-rational-5-4-div.c", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsqrt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38312,50 +39459,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vsqrt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsqrt_arm64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", - "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] -+source_set("f32-vtanh_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-aarch64-neon-sqrt.c", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vtanh_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_arm64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vtanh_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vrpreluc_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38367,54 +39518,62 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vtanh_arm64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", - "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", - ] -+source_set("f32-vunary_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-neon.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-neon.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-neon.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vunary_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-neon.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-neon.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38426,73 +39585,92 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- if (build_with_chromium) { +- source_set("f32-vunary_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vunary_arm64_standalone") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-neon.c", @@ -59557,127 +93954,96 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("operators_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("operators_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("operators_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("operators_arm64_standalone") { ++ source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38504,69 +39682,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("operators_arm64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -59726,243 +94092,208 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -+ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-dwconv_riscv64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", -+ "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38578,50 +39741,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-dwconv_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", - "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -+ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", -+ "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38633,49 +39800,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", - "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", - "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", -+ "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38687,49 +39857,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -59970,257 +94301,266 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_riscv64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", -+ "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38741,50 +39916,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", - "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qb4-packw_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", -+ "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qb4-packw_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qb4-packw_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { ++ source_set("qu8-f32-vcvt_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", -- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", -+ "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38796,50 +39975,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", - "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38851,50 +40034,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -60228,343 +94568,376 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-igemm_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38906,50 +40093,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { ++ source_set("qu8-igemm_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -38961,50 +40152,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++if (build_with_chromium) { ++ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { ++ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39016,50 +40211,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++if (build_with_chromium) { ++ source_set("qu8-rdsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39071,50 +40270,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -60572,168 +94945,222 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39126,52 +40329,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x8c4-minmax-neondotfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39183,52 +40392,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++if (build_with_chromium) { ++ source_set("qu8-rsum_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -60760,171 +95187,29 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39240,52 +40451,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", - ] -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39297,52 +40514,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] - -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -60932,168 +95217,334 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c2s4-minmax-neonfp16arith.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-2x8c2s4-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39354,52 +40573,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondotfp16arith-cortex-a55.S", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vadd_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vadd_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-neondotfp16arith.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x8c4-minmax-neondotfp16arith.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39411,52 +40636,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] ++if (build_with_chromium) { ++ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -61120,171 +95571,29 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39468,52 +40695,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", - ] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39525,52 +40758,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] - -- asmflags = cflags -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -- ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -61292,339 +95601,506 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c2s4-minmax-neonfp16arith-mlal.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-2x8c2s4-minmax-neonfp16arith-mlal.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-vaddc_riscv64") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39582,50 +40817,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vaddc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vcvt_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ source_set("qu8-vcvt_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39637,50 +40876,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39692,52 +40935,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+source_set("qd8-f32-qb4w-gemm_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qb4w-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-6x16-minmax-neon-mlal-lane.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39749,52 +40998,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qb4w-gemm_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -61651,247 +96127,252 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ source_set("qu8-vlrelu_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39806,50 +41057,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39861,52 +41116,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+source_set("qd8-f32-qc4w-gemm_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc4w-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vmul_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16-minmax-neon-mlal-lane.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39918,54 +41179,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc4w-gemm_arm64_standalone") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -61918,81 +96399,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ source_set("qu8-vmul_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -39977,54 +41242,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -62001,274 +96426,339 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", - ] -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + -+ asmflags = cflags ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40036,52 +41305,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- - asmflags = cflags -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vmulc_riscv64") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40093,53 +41364,60 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vmulc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", - ] -+source_set("qd8-f32-qc8w-gemm_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc8w-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40151,55 +41429,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16-minmax-neon-mlal-lane-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16-minmax-neon-mlal-lane-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-gemm_arm64_standalone") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("qu8-vprelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] + - sources = [ - "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16-minmax-neon-mlal-lane-prfm.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c2s4-minmax-neon-mlal.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16-minmax-neon-mlal-lane-prfm.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", - ] - @@ -62289,81 +96779,37 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { ++ source_set("qu8-vprelu_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40211,54 +41492,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -62372,281 +96818,342 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", - ] -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("qu8-vpreluc_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ + ] + -+ asmflags = cflags ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40270,52 +41555,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -- - asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c4-minmax-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vrpreluc_riscv64") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40327,55 +41614,64 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-neoni8mm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] -+source_set("qd8-f32-qc8w-igemm_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc8w-igemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40387,56 +41683,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_arm64") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16-minmax-neon-mlal-lane-prfm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16-minmax-neon-mlal-lane-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("reference_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16-minmax-neon-mlal-lane-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8-minmax-neon-mlal-lane.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-2x8c2s4-minmax-neon-mlal.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16-minmax-neon-mlal-lane-prfm.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8-minmax-neon-mlal-lane.c", - ] @@ -62668,73 +97175,22 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40448,50 +41744,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { - cflags = [ "-march=armv8.2-a+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -62742,9 +97198,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", - "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -62752,162 +97206,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("reference_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c16s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-4x4c8s2-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("s8-ibilinear_riscv64") { + cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", -+ "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40503,50 +41801,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qb4w-gemm/qp8-f32-qb4w-gemm-minmax-16x4c16s2-mstep4-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ source_set("s8-ibilinear_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40558,50 +41862,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -62915,92 +97375,98 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++if (build_with_chromium) { ++ source_set("s8-maxpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x4c8s2-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x4c8s2-aarch64-neondot.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x8c16s2-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40613,49 +41919,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -63008,165 +97474,168 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-maxpool_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-8x8c16s2-mstep2-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", +- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("s8-rdminmax_riscv64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", -- "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c", -+ "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40667,51 +41978,56 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-16x64c4-neonsme2.c", - "src/src/qp8-f32-qc4w-gemm/qp8-f32-qc4w-gemm-minmax-1x64c4-neonsme2.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ source_set("s8-rdminmax_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+dotprod" ++ + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40723,50 +42039,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -63174,92 +97643,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++if (build_with_chromium) { ++ source_set("s8-rminmax_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c4-mstep4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c4-aarch64-neondot.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x4c8-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40778,49 +42096,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ public_configs = [ ":xnnpack_public_config" ] + } +} @@ -63267,176 +97744,180 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x4c8-mstep4-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", +- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c", +- ] ++if (build_with_chromium) { ++ source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", -- "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c", -+ "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40832,55 +42155,64 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-16x64c4-neonsme2.c", - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c", - ] -+source_set("qs8-dwconv_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-dwconv_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40892,54 +42224,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-dwconv_arm64") { - cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -63448,264 +97929,315 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", - "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("s8-vclamp_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-rndnu-neon-mla8-ld64.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", -+ "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -40951,49 +42281,54 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", - ] -+source_set("qs8-f32-vcvt_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-vclamp_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-neonfp16arith-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-f32-vcvt_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("subgraph_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41005,52 +42340,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-f32-vcvt_arm64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-neon-u32.c", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] -+source_set("qs8-packw_arm64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-packw_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-packw_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_arm64_standalone") { ++ source_set("subgraph_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41062,54 +42403,58 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_arm64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -63714,168 +98246,240 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", - "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", - ] -+source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ asmflags = cflags +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- asmflags = cflags -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41121,51 +42466,52 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } -- -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] - -- asmflags = cflags + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("tables_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", - ] -+source_set("qs8-qc4w-gemm_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("tables_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x16-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc4w-gemm_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] ++if (build_with_chromium) { ++ source_set("u8-ibilinear_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41177,61 +42523,141 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -63883,181 +98487,93 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-qc4w-gemm_arm64_standalone") { - cflags = [] -+source_set("qs8-qc8w-dwconv_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_arm64_standalone") { ++ source_set("u8-ibilinear_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } - } -+} - -- source_set("qs8-qc8w-dwconv_arm64") { -- cflags = [] -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neon-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld128.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neon-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-neonv8-mla8-ld64.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41243,64 +42669,133 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + } } +} @@ -64065,39 +98581,7 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-dwconv_arm64_standalone") { - cflags = [] -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-neonv8-mla8-ld64.c", @@ -64133,120 +98617,26 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("u8-lut32norm_riscv64") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ + ] + -+ asmflags = cflags -+ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41312,62 +42807,127 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qs8-qc8w-gemm_arm64") { -+ cflags = [ - sources = [ - "src/include/xnnpack.h", @@ -64255,184 +98645,152 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x8c4-minmax-fp32-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_arm64_standalone") { ++ source_set("u8-lut32norm_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- asmflags = cflags + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" -+ ] - -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- asmflags = cflags -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41379,60 +42939,133 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] ++if (build_with_chromium) { ++ source_set("u8-maxpool_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + -+ asmflags = cflags ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - asmflags = cflags -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -64465,276 +98823,144 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ source_set("u8-maxpool_riscv64_standalone") { + cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" ++ + ] + -+ asmflags = cflags -+ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+i8mm+fp16" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41444,55 +43077,121 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-qc8w-igemm_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16c8-minmax-fp32-neoni8mm.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x16c8-minmax-fp32-neoni8mm.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qu8-packw_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] - -- source_set("qs8-qc8w-gemm_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_arm64_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("u8-rdminmax_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41504,57 +43203,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -64742,16 +98968,18 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_arm64_standalone") { - cflags = [] -+source_set("qs8-rdsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -64781,143 +99009,22 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-rsum_arch=armv8.2-a+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+dotprod" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41566,62 +43319,117 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qs8-rsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - sources = [ - "src/include/xnnpack.h", @@ -64926,34 +99033,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", - ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_arm64_standalone") { +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++if (build_with_chromium) { ++ source_set("u8-rminmax_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-neondot.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x8c4-minmax-fp32-neondot.c", +- ] +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- asmflags = cflags ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rminmax_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -64961,100 +99176,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vadd_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- asmflags = cflags -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c8-minmax-fp32-asm-aarch64-neon-mlal.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16-minmax-fp32-asm-aarch64-neon-mlal-lane-ld64.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-cortex-a55.S", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c4-minmax-fp32-asm-aarch64-neondot-ld128.S", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41633,60 +43441,117 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("qs8-vaddc_arm64") { -+ cflags = [ - - asmflags = cflags -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -65087,121 +99210,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-vcvt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] -- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41698,55 +43563,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -65209,66 +99269,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-igemm_arch=armv8.2-a+i8mm+fp16_standalone") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+source_set("qs8-vlrelu_arm64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16c8-minmax-fp32-neoni8mm.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] -+ +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -65276,89 +99322,6 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vmul_arm64") { -+ cflags = [ - -- source_set("qs8-qc8w-igemm_arm64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41758,54 +43681,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_arm64_standalone") { -- cflags = [] -+source_set("qs8-vmulc_arm64") { -+ cflags = [ - - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", @@ -65369,164 +99332,93 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_arm64_standalone") { ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("u8-vclamp_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x16-minmax-fp32-neonv8-mlal-lane.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neon-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x8c2s4-minmax-fp32-neonv8-mlal.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qs8-qu8-packw_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-vprelu_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-qu8-packw_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41817,49 +43797,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qu8-packw_arm64_standalone") { -- cflags = [] -+source_set("qs8-vpreluc_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} - configs -= [ "//build/config/compiler:chromium_code" ] @@ -65535,21 +99427,21 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_arm64_standalone") { ++ source_set("u8-vclamp_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -65557,6 +99449,8 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -65564,454 +99458,264 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qs8-rdsum_arm64") { -- cflags = [] -+source_set("qs8-vrpreluc_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-rdsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-u32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x16-transposec_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41871,49 +43911,121 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-rdsum_arm64_standalone") { - cflags = [] -+source_set("qu8-dwconv_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-c32.c", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-minmax-fp32-neon-u32.c", - "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_public_config" ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -- public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_arm64_standalone") { ++ source_set("x16-transposec_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-f32-vcvt_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-rsum_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41925,49 +44037,131 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] -+source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] ++if (build_with_chromium) { ++ source_set("x16-x32-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c", - ] -+ asmflags = cflags - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qs8-rsum_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qs8-rsum_arm64") { -- cflags = [] -+source_set("qu8-gemm_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -41979,52 +44173,131 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-rsum_arm64_standalone") { -- cflags = [] -+source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", - "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -66019,9 +99723,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-rsum_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-neon-u32-acc2.c", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -66030,134 +99757,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qu8-igemm_arm64") { -+ cflags = [ -- source_set("qs8-vadd_arm64") { -- cflags = [] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42036,54 +44309,115 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vadd_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vadd_arm64") { - cflags = [] -+source_set("qu8-rdsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_arm64_standalone") { +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x24-transposec_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vadd_arm64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -66185,104 +99836,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } + public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } } +} -- source_set("qs8-vaddc_arm64") { -- cflags = [] -+source_set("qu8-rsum_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-vaddc_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_arm64_standalone") { ++ source_set("x24-transposec_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42095,52 +44429,121 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vaddc_arm64_standalone") { - cflags = [] -+source_set("qu8-vadd_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -66309,463 +99921,281 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qs8-vcvt_arm64") { -- cflags = [] -+source_set("qu8-vaddc_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vcvt_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x32-packw_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42152,50 +44555,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vcvt_arm64_standalone") { - cflags = [] -+source_set("qu8-vcvt_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vcvt/gen/qs8-vcvt-neon-u32.c", - "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-vlrelu_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_arm64_standalone") { ++ source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qu8-vlrelu_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-vlrelu_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42207,50 +44673,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vlrelu_arm64_standalone") { - cflags = [] -+source_set("qu8-vmul_arm64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("x32-packw_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-neon-u32.c", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qs8-vmul_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qu8-vmulc_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-vmul_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42262,50 +44791,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vmul_arm64_standalone") { -- cflags = [] -+source_set("qu8-vprelu_arm64") { -+ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", - "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", - ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_arm64_standalone") { ++ source_set("x32-packw_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmul_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -66775,414 +100205,235 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("qs8-vmulc_arm64") { -- cflags = [] -+source_set("qu8-vpreluc_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vmulc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42317,49 +44905,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vmulc_arm64_standalone") { - cflags = [] -+source_set("qu8-vrpreluc_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-rndnu-neon-ld64-u16.c", - ] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qs8-vprelu_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_arm64_standalone") { ++ source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", ++ "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" + ] -- public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("reference_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-vprelu_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("reference_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42371,48 +45023,115 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vprelu_arm64_standalone") { - cflags = [] -+source_set("s8-ibilinear_arm64") { -+ cflags = [ -+ -+ ] ++if (build_with_chromium) { ++ source_set("x32-transposec_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qs8-vpreluc_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("s8-maxpool_arm64") { -+ cflags = [ -+ -+ ] - -- source_set("qs8-vpreluc_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42424,48 +45143,125 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vpreluc_arm64_standalone") { -- cflags = [] -+source_set("s8-rdminmax_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_arm64_standalone") { ++ source_set("x32-transposec_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" + ] -- public_configs = [ ":xnnpack_public_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -67190,81 +100441,84 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vpreluc_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qs8-vrpreluc_arm64") { -- cflags = [] -+source_set("s8-rminmax_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vrpreluc_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] ++if (build_with_chromium) { ++ source_set("x32-unpool_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42477,53 +45273,167 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -67272,268 +100526,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-vrpreluc_arm64_standalone") { - cflags = [] -+source_set("s8-vclamp_arm64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_arm64_standalone") { ++ source_set("x32-unpool_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qu8-dwconv_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("subgraph_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-dwconv_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("subgraph_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p16c-minmax-rndnu-neon-mul8.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42535,54 +45445,129 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-dwconv_arm64_standalone") { - cflags = [] -+source_set("tables_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("tables_arm64_standalone") { ++if (build_with_chromium) { ++ source_set("x64-transposec_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - sources = [ @@ -67563,147 +100649,95 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("u8-ibilinear_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-f32-vcvt_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42594,54 +45579,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-f32-vcvt_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_arm64") { - cflags = [] -+source_set("u8-lut32norm_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-lut32norm_arm64_standalone") { ++ source_set("x64-transposec_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -67713,91 +100747,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("u8-maxpool_arm64") { -+ cflags = [ - -- asmflags = cflags -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("x8-lut_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42653,59 +45695,125 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("u8-rdminmax_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] - asmflags = cflags -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -67806,157 +100774,147 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", - "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_arm64_standalone") { ++ source_set("x8-lut_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- asmflags = cflags + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qu8-gemm_arm64") { -- cflags = [] -+source_set("u8-rminmax_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-gemm_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x8-packq_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42717,59 +45825,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-gemm_arm64_standalone") { - cflags = [] -+source_set("u8-vclamp_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -67986,130 +100944,27 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +- +- asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_arm64_standalone") { ++ source_set("x8-packq_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- asmflags = cflags -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42781,59 +45941,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] -+source_set("x16-packw_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" -+ ] - -- asmflags = cflags -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -68118,45 +100973,15 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", - "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" -+ ] -+ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- public_configs = [ ":xnnpack_public_config" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -68164,88 +100989,142 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("x16-transposec_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-igemm_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_arm64_standalone") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+fp16+dotprod" ] ++if (build_with_chromium) { ++ source_set("x8-packw_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42845,56 +46059,115 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} +- if (build_with_chromium) { +- source_set("qu8-igemm_arm64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", +- "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-igemm_arm64_standalone") { - cflags = [] -+source_set("x16-x32-packw_arm64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -68275,179 +101154,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-x32-packw_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("x24-transposec_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-rdsum_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-rdsum_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x8-transposec_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42906,51 +46179,129 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-rdsum_arm64_standalone") { - cflags = [] -+source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -68473,87 +101236,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x32-packw_arm64") { -+ cflags = [ -+ -+ ] -- source_set("qu8-rsum_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qu8-rsum_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_arm64_standalone") { ++ source_set("x8-transposec_riscv64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -+ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -42962,52 +46313,115 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -68561,145 +101296,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-rsum_arm64_standalone") { - cflags = [] -+source_set("x32-transposec_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -+ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -+ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", - "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - public_configs = [ ":xnnpack_public_config" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_arm64_standalone") { +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++if (build_with_chromium) { ++ source_set("xx-copy_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -+ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -+ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- if (build_with_chromium) { +- source_set("qu8-vadd_arm64") { +- cflags = [] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } + public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qu8-vadd_arm64") { -- cflags = [] -+source_set("x32-unpool_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-neon.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-unpool_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -+ "src/src/x32-unpool/x32-unpool-neon.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43019,54 +46433,115 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } } +} @@ -68707,29 +101377,17 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vadd_arm64_standalone") { - cflags = [] -+source_set("x64-transposec_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -68756,119 +101414,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qu8-vaddc_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("qu8-vaddc_arm64") { -- cflags = [] -+source_set("x8-lut_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -+ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43078,52 +46553,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vaddc_arm64_standalone") { - cflags = [] -+source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", -+ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" -+ ] ++if (build_with_chromium) { ++ source_set("xx-fill_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -68895,181 +101499,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+sve+sve2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", -+ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("qu8-vcvt_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("x8-packq_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - -- source_set("qu8-vcvt_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-packq_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43135,50 +46671,117 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vcvt_arm64_standalone") { -- cflags = [] -+source_set("x8-packw_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-packw_arm64_standalone") { ++ source_set("xx-fill_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -69077,9 +101562,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vcvt_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -69089,127 +101597,114 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("qu8-vlrelu_arm64") { -- cflags = [] -+source_set("x8-transposec_arm64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_arm64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-vlrelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("xx-pad_riscv64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43190,50 +46793,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vlrelu_arm64_standalone") { - cflags = [] -+source_set("xx-copy_arm64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-copy_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qu8-vmul_arm64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-pad_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -69217,295 +101712,181 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("xx-fill_arm64") { -+ cflags = [ - -- source_set("qu8-vmul_arm64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-fill_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43245,50 +46909,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vmul_arm64_standalone") { - cflags = [] -+source_set("xx-pad_arm64") { -+ cflags = [ -+ -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- public_configs = [ ":xnnpack_public_config" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-pad_arm64_standalone") { ++if (build_with_chromium) { ++ source_set("xx-transposev_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qu8-vmulc_arm64") { -- cflags = [] -+source_set("xx-transposev_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-transposev_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43300,49 +47025,166 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vmulc_arm64_standalone") { -- cflags = [] -+} ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c", - ] -+if (current_cpu == "riscv64") { -+source_set("configs_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qu8-vmulc_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("configs_riscv64_standalone") { ++ source_set("xx-transposev_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qu8-vprelu_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++} + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (current_cpu == "ppc64") { ++if (build_with_chromium) { ++ source_set("configs_ppc64") { + cflags = [ + + ] @@ -69537,142 +101918,291 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "src/src/configs/xx-fill-config.c", + "src/src/configs/xx-pad-config.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("enums_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vprelu_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("enums_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43354,48 +47196,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vprelu_arm64_standalone") { - cflags = [] -+source_set("f16-f32-vcvt_riscv64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("qu8-vpreluc_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_riscv64_standalone") { ++ source_set("configs_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vpreluc_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("enums_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qu8-vrpreluc_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("enums_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vrpreluc_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("reference_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-f32-vcvt_ppc64") { + cflags = [ + + ] @@ -69681,418 +102211,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-qs8-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vpreluc_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qs8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43407,48 +47310,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vpreluc_arm64_standalone") { -- cflags = [] -+source_set("f16-qu8-vcvt_riscv64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qu8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("qu8-vrpreluc_arm64") { -- cflags = [] -+source_set("f16-rdminmax_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rdminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43460,50 +47426,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vrpreluc_arm64_standalone") { -- cflags = [] -+source_set("f16-rminmax_riscv64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("reference_arm64") { -- cflags = [] -+source_set("f16-vapproxgelu_riscv64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43515,52 +47544,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("reference_arm64_standalone") { - cflags = [] -+source_set("f16-vcos_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -70118,68 +102255,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("s8-ibilinear_arm64") { -- cflags = [] -+source_set("f16-vexp_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("s8-ibilinear_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_riscv64_standalone") { ++ source_set("f16-f32-vcvt_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43572,51 +47658,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -70187,60 +102316,22 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("s8-ibilinear_arm64_standalone") { - cflags = [] -+source_set("f16-vgelu_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("f16-qs8-vcvt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c16.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-c8.c", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70260,145 +102351,95 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f16-vsin_riscv64") { -+ cflags = [ +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("s8-maxpool_arm64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43628,52 +47772,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("s8-maxpool_arm64_standalone") { +- if (build_with_chromium) { +- source_set("s8-maxpool_arm64") { - cflags = [] -+source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", - "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-qs8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -70408,86 +102449,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("s8-rdminmax_arm64") { -- cflags = [] -+source_set("f32-argmaxpool_riscv64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("s8-rdminmax_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-qu8-vcvt_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43685,56 +47888,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-rdminmax_arm64_standalone") { - cflags = [] -+source_set("f32-avgpool_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-c32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70507,123 +102527,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("s8-rminmax_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_riscv64_standalone") { ++ source_set("f16-qu8-vcvt_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("s8-rminmax_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43746,54 +48004,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-rminmax_arm64_standalone") { - cflags = [] -+source_set("f32-conv-hwc2chw_riscv64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -70652,339 +102616,172 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_riscv64_standalone") { + +- if (build_with_chromium) { +- source_set("s8-vclamp_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-rdminmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] - -- source_set("s8-vclamp_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43805,77 +48122,139 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-vclamp_arm64_standalone") { - cflags = [] -+source_set("f32-dwconv2d-chw_riscv64") { -+ cflags = [ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-neon-u64.c", - "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("subgraph_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_riscv64_standalone") { ++ source_set("f16-rdminmax_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" + ] -- public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("subgraph_arm64") { -- cflags = [] -+source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43887,84 +48266,127 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("subgraph_arm64_standalone") { - cflags = [] -+source_set("f32-dwconv_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -71036,136 +102833,71 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_riscv64_standalone") { + +- if (build_with_chromium) { +- source_set("tables_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-rminmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-f16-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("tables_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -43976,58 +48398,127 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("tables_arm64_standalone") { - cflags = [] -+source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -71197,195 +102929,105 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("u8-ibilinear_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f16-rminmax_ppc64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] - -- source_set("u8-ibilinear_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44039,50 +48530,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-ibilinear_arm64_standalone") { - cflags = [] -+source_set("f32-ibilinear-chw_riscv64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c16.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-c8.c", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("f16-vapproxgelu_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -71395,71 +103037,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] + + public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } } +} -+ -+source_set("f32-ibilinear_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] -- source_set("u8-lut32norm_arm64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("u8-lut32norm_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_riscv64_standalone") { ++ source_set("f16-vapproxgelu_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44094,49 +48644,127 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -71467,65 +103098,40 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("u8-lut32norm_arm64_standalone") { - cflags = [] -+source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++if (build_with_chromium) { ++ source_set("f16-vcos_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/u8-lut32norm/u8-lut32norm-scalar.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" -+ ] -+ +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -71535,86 +103141,61 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] + + public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } } +} -- source_set("u8-maxpool_arm64") { -- cflags = [] -+source_set("f32-igemm_riscv64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("u8-maxpool_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_riscv64_standalone") { ++ source_set("f16-vcos_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44148,52 +48776,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -71622,141 +103203,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("u8-maxpool_arm64_standalone") { - cflags = [] -+source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", - "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-maxpool_riscv64") { -+ cflags = [ - -- source_set("u8-rdminmax_arm64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_riscv64_standalone") { +- } +- } ++if (build_with_chromium) { ++ source_set("f16-vexp_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44205,56 +48892,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- if (build_with_chromium) { +- source_set("u8-rdminmax_arm64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -71764,56 +103284,24 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("u8-rdminmax_arm64_standalone") { - cflags = [] -+source_set("f32-qc4w-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_riscv64_standalone") { ++ source_set("f16-vexp_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-c32.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71833,94 +103321,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("u8-rminmax_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-qc8w-gemm_riscv64") { -+ cflags = [ -+ -+ ] - -- source_set("u8-rminmax_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44266,54 +49010,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-rminmax_arm64_standalone") { - cflags = [] -+source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++if (build_with_chromium) { ++ source_set("f16-vgelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -71949,182 +103410,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("u8-vclamp_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-qs8-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("u8-vclamp_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44325,49 +49128,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-vclamp_arm64_standalone") { -- cflags = [] -+source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - sources = [ - "src/include/xnnpack.h", - "src/src/u8-vclamp/u8-vclamp-neon-u64.c", - "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", - ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vgelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -72132,9 +103473,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-neon-u64.c", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -72144,407 +103508,228 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+source_set("f32-qu8-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f16-vsin_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-pack-lh/x16-packlh-neonsme2.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44379,49 +49246,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] -+source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-pack-lh/x16-packlh-neonsme2.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("x16-packw_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f16-vsin_ppc64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", +- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-raddstoreexpminusmax_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("x16-packw_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -- "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44433,50 +49362,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x16-packw_arm64_standalone") { - cflags = [] -+source_set("f32-rdminmax_riscv64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-argmaxpool_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", - "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] -+ +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("x16-transposec_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("x16-transposec_arm64") { -- cflags = [] -+source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44488,50 +49480,115 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x16-transposec_arm64_standalone") { -- cflags = [] -+source_set("f32-rdsum_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", - "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_riscv64_standalone") { ++ source_set("f32-argmaxpool_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -72552,9 +103737,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -72564,234 +103772,99 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("x16-x32-packw_arm64") { -- cflags = [] -+source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { +- if (build_with_chromium) { +- source_set("x16-x32-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-avgpool_ppc64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44543,51 +49600,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x16-x32-packw_arm64_standalone") { - cflags = [] -+source_set("f32-rminmax_riscv64") { -+ cflags = [ -+ -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("x24-transposec_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_riscv64_standalone") { ++ source_set("f32-avgpool_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-rsum_riscv64") { -+ cflags = [ - -- source_set("x24-transposec_arm64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44599,50 +49718,119 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x24-transposec_arm64_standalone") { -- cflags = [] -+source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -72799,47 +103872,15 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", - "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -72847,302 +103888,222 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-spmm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_riscv64_standalone") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x24-transposec_arm64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-conv-hwc2chw_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44654,58 +49842,141 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", +- "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } +- if (build_with_chromium) { +- source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-pack-lh/x32-packlh-neonsme.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-conv-hwc2chw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] -+source_set("f32-vapproxgelu_riscv64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", +- "src/src/x32-pack-lh/x32-packlh-neonsme.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_riscv64_standalone") { + +- if (build_with_chromium) { +- source_set("x32-packw_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", +- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", +- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("x32-packw_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -- "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -- "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44717,60 +49988,145 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x32-packw_arm64_standalone") { - cflags = [] -+source_set("f32-vbinary_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -73176,168 +104137,92 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("x32-transposec_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_riscv64_standalone") { ++ source_set("f32-dwconv2d-chw_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", +- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("x32-transposec_arm64") { -- cflags = [] -+source_set("f32-vclamp_riscv64") { -+ cflags = [ -+ -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -- "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44782,51 +50138,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x32-transposec_arm64_standalone") { - cflags = [] -+source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { ++if (build_with_chromium) { ++ source_set("f32-dwconv_ppc64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - sources = [ @@ -73364,228 +104249,164 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vcmul_riscv64") { -+ cflags = [ +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x32-unpool_arm64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-neon.c", -- "src/src/x32-unpool/x32-unpool-scalar.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44838,51 +50254,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x32-unpool_arm64_standalone") { +- if (build_with_chromium) { +- source_set("x32-unpool_arm64") { - cflags = [] -+source_set("f32-vcopysign_riscv64") { -+ cflags = [ -+ -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x32-unpool/x32-unpool-neon.c", - "src/src/x32-unpool/x32-unpool-scalar.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_riscv64_standalone") { ++ source_set("f32-dwconv_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-unpool_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-neon.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vcos_riscv64") { -+ cflags = [ -+ -+ ] -- source_set("x64-transposec_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("x64-transposec_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-f16-vcvt_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44894,51 +50372,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x64-transposec_arm64_standalone") { - cflags = [] -+source_set("f32-velu_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -73611,386 +104432,257 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- if (build_with_chromium) { +- source_set("x8-lut_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_riscv64_standalone") { ++ source_set("f32-f16-vcvt_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vexp_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("x8-lut_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -44950,50 +50486,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x8-lut_arm64_standalone") { - cflags = [] -+source_set("f32-vgelu_riscv64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-gemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", - "src/src/x8-lut/gen/x8-lut-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", -- "src/src/x8-pack-lh/x8-packlh-neonsme2.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45005,50 +50602,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -+source_set("f32-vhswish_riscv64") { -+ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", - "src/src/x8-pack-lh/x8-packlh-neonsme2.c", - ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_riscv64_standalone") { ++ source_set("f32-gemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", +- "src/src/x8-pack-lh/x8-packlh-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vlog_riscv64") { -+ cflags = [ -+ -+ ] -- source_set("x8-packq_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("x8-packq_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-ibilinear-chw_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45060,52 +50716,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -73998,66 +104690,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("x8-packq_arm64_standalone") { - cflags = [] -+source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-ibilinear-chw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", - "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" -+ ] -+ +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("x8-packw_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74065,122 +104742,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("x8-packw_arm64") { -- cflags = [] -+source_set("f32-vlrelu_riscv64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45117,52 +50832,117 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x8-packw_arm64_standalone") { - cflags = [] -+source_set("f32-vmulcaddc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("f32-ibilinear_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -74207,154 +104810,62 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("x8-transposec_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- source_set("x8-transposec_arm64") { -- cflags = [] -+source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45174,49 +50954,117 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-transposec_arm64_standalone") { -- cflags = [] -+source_set("f32-vrnd_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - sources = [ - "src/include/xnnpack.h", - "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", - "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", - ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_riscv64_standalone") { ++ source_set("f32-ibilinear_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -74362,9 +104873,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } @@ -74373,517 +104907,335 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -- source_set("xx-copy_arm64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" -+ ] - -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { +- if (build_with_chromium) { +- source_set("xx-copy_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-igemm_ppc64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45228,49 +51076,111 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("xx-copy_arm64_standalone") { - cflags = [] -+source_set("f32-vrsqrt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-copy/xx-copy-scalar-memcpy.c", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("xx-fill_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_riscv64_standalone") { ++ source_set("f32-igemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] -- public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-neon-u64.c", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("xx-fill_arm64") { -- cflags = [] -+source_set("f32-vsigmoid_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-neon-u64.c", -- "src/src/xx-fill/xx-fill-scalar-u16.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45282,50 +51192,109 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("xx-fill_arm64_standalone") { - cflags = [] -+source_set("f32-vsin_riscv64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-maxpool_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-fill/xx-fill-neon-u64.c", - "src/src/xx-fill/xx-fill-scalar-u16.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] -+ +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("xx-pad_arm64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vsqrt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("xx-pad_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p16-neon-u16.c", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45337,49 +51306,113 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("xx-pad_arm64_standalone") { -- cflags = [] -+source_set("f32-vtanh_riscv64") { -+ cflags = [ - sources = [ - "src/include/xnnpack.h", - "src/src/xx-pad/xx-pad-p16-neon-u16.c", - "src/src/xx-pad/xx-pad-p4-scalar-u16.c", - ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_riscv64_standalone") { ++ source_set("f32-maxpool_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_arm64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p16-neon-u16.c", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("f32-vunary_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("xx-transposev_arm64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("xx-transposev_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc4w-gemm_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45391,73 +51424,151 @@ if (current_cpu == "arm64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("xx-transposev_arm64_standalone") { - cflags = [] -+source_set("operators_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -74907,183 +105259,87 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- } ++ public_configs = [ ":xnnpack_public_config" ] + } + } + +-if (current_cpu == "riscv64") { +- if (build_with_chromium) { +- source_set("configs_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("operators_riscv64_standalone") { ++ source_set("f32-qc4w-gemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/configs/argmaxpool-config.c", +- "src/src/configs/avgpool-config.c", +- "src/src/configs/binary-elementwise-config.c", +- "src/src/configs/cmul-config.c", +- "src/src/configs/conv-hwc2chw-config.c", +- "src/src/configs/dwconv-config.c", +- "src/src/configs/dwconv2d-chw-config.c", +- "src/src/configs/gemm-config.c", +- "src/src/configs/hardware-config.c", +- "src/src/configs/ibilinear-chw-config.c", +- "src/src/configs/ibilinear-config.c", +- "src/src/configs/lut32norm-config.c", +- "src/src/configs/maxpool-config.c", +- "src/src/configs/pack-lh-config.c", +- "src/src/configs/raddstoreexpminusmax-config.c", +- "src/src/configs/reduce-config.c", +- "src/src/configs/spmm-config.c", +- "src/src/configs/transpose-config.c", +- "src/src/configs/unary-elementwise-config.c", +- "src/src/configs/unpool-config.c", +- "src/src/configs/vmulcaddc-config.c", +- "src/src/configs/x8-lut-config.c", +- "src/src/configs/xx-fill-config.c", +- "src/src/configs/xx-pad-config.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } - } - --if (current_cpu == "riscv64") { -- source_set("configs_riscv64") { -- cflags = [] -+source_set("qd8-f32-qb4w-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/configs/argmaxpool-config.c", -- "src/src/configs/avgpool-config.c", -- "src/src/configs/binary-elementwise-config.c", -- "src/src/configs/cmul-config.c", -- "src/src/configs/conv-hwc2chw-config.c", -- "src/src/configs/dwconv-config.c", -- "src/src/configs/dwconv2d-chw-config.c", -- "src/src/configs/gemm-config.c", -- "src/src/configs/hardware-config.c", -- "src/src/configs/ibilinear-chw-config.c", -- "src/src/configs/ibilinear-config.c", -- "src/src/configs/lut32norm-config.c", -- "src/src/configs/maxpool-config.c", -- "src/src/configs/pack-lh-config.c", -- "src/src/configs/raddstoreexpminusmax-config.c", -- "src/src/configs/reduce-config.c", -- "src/src/configs/spmm-config.c", -- "src/src/configs/transpose-config.c", -- "src/src/configs/unary-elementwise-config.c", -- "src/src/configs/unpool-config.c", -- "src/src/configs/vmulcaddc-config.c", -- "src/src/configs/x8-lut-config.c", -- "src/src/configs/xx-fill-config.c", -- "src/src/configs/xx-pad-config.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45469,75 +51580,115 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("configs_riscv64_standalone") { - cflags = [] -+source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -75130,115 +105386,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qd8-f32-qc4w-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("enums_riscv64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("enums_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/enums/allocation-type.c", +- "src/src/enums/datatype-strings.c", +- "src/src/enums/microkernel-type.c", +- "src/src/enums/node-type.c", +- "src/src/enums/operator-type.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qc8w-gemm_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45549,52 +51700,117 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("enums_riscv64_standalone") { - cflags = [] -+source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -75248,488 +105455,323 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/enums/node-type.c", - "src/src/enums/operator-type.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f16-f32-vcvt_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-qc8w-gemm_ppc64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("f16-f32-vcvt_riscv64") { -- cflags = [] -+source_set("qd8-f32-qc8w-gemm_riscv64") { -+ cflags = [ -+ -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45606,48 +51822,117 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-f32-vcvt_riscv64_standalone") { - cflags = [] -+source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" -+ ] ++if (build_with_chromium) { ++ source_set("f32-qs8-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - public_configs = [ ":xnnpack_public_config" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" -+ ] -+ +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- if (build_with_chromium) { +- source_set("f16-qs8-vcvt_riscv64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qd8-f32-qc8w-igemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] - -- source_set("f16-qs8-vcvt_riscv64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45659,48 +51944,119 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-qs8-vcvt_riscv64_standalone") { -- cflags = [] -+source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qs8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- public_configs = [ ":xnnpack_public_config" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-qs8-vcvt_riscv64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-dwconv_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -- source_set("f16-qu8-vcvt_riscv64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f16-qu8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-qu8-vcvt_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45712,49 +52068,111 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-qu8-vcvt_riscv64_standalone") { - cflags = [] -+source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", - ] -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f16-rdminmax_riscv64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -75737,3095 +105779,545 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- public_configs = [ ":xnnpack_public_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-f32-vcvt_riscv64") { -+ cflags = [ -+ -+ ] - -- source_set("f16-rdminmax_riscv64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45766,51 +52184,115 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-rdminmax_riscv64_standalone") { - cflags = [] -+source_set("qs8-packw_riscv64") { -+ cflags = [ - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c", -- ] -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("f32-raddstoreexpminusmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", +- "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("f16-rminmax_riscv64") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("qs8-qc4w-gemm_riscv64") { -+ cflags = [ - -- source_set("f16-rminmax_riscv64") { -- cflags = [] -+ ] - -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45822,50 +52304,125 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-rminmax_riscv64_standalone") { -- cflags = [] -+source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] - - sources = [ - "src/include/xnnpack.h", - "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", - "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-raddstoreexpminusmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- public_configs = [ ":xnnpack_public_config" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-rminmax_riscv64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", +- "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("f16-vapproxgelu_riscv64") { -- cflags = [] -+source_set("qs8-qc8w-dwconv_riscv64") { -+ cflags = [ - -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f16-vapproxgelu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-rdminmax_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45877,48 +52434,115 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vapproxgelu_riscv64_standalone") { - cflags = [] -+source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f16-vcos_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-rdminmax_ppc64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ -+source_set("qs8-qc8w-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f16-vcos_riscv64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45930,48 +52554,2390 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vcos_riscv64_standalone") { - cflags = [] -+source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] ++if (build_with_chromium) { ++ source_set("f32-rdsum2_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-qc8w-igemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-qu8-packw_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+source_set("qs8-rdsum_riscv64") { -+ cflags = [ - +- - public_configs = [ ":xnnpack_public_config" ] -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-vexp_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_riscv64_standalone") { ++ source_set("f32-rdsum2_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vexp_riscv64_standalone") { +- cflags = [] + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- source_set("f16-vexp_riscv64") { -- cflags = [] -+source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-rsum_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vadd_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vaddc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vlrelu_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vmul_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vmulc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vprelu_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vpreluc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qs8-vrpreluc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-dwconv_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-f32-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-igemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-rdsum_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-rsum_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vadd_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vaddc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vlrelu_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vmul_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} -+ -+source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -45983,48 +54949,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vexp_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f16-vgelu_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c", +- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] -+source_set("qu8-vmulc_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vgelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("f32-rdsum_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46036,48 +55006,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-vgelu_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c", - ] -+source_set("qu8-vprelu_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f16-vsin_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f16-vsin_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_riscv64_standalone") { ++ source_set("f32-rdsum_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46089,51 +55063,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -78833,79 +106325,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f16-vsin_riscv64_standalone") { - cflags = [] -+source_set("qu8-vpreluc_riscv64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("f32-rminmax_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46145,51 +55120,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -78914,252 +106408,260 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c", - ] -+source_set("qu8-vrpreluc_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-argmaxpool_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-argmaxpool_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_riscv64_standalone") { ++ source_set("f32-rminmax_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46201,48 +55177,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-argmaxpool_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+source_set("reference_riscv64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-avgpool_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("reference_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46254,51 +55238,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-avgpool_riscv64_standalone") { +- source_set("f32-argmaxpool_riscv64_standalone") { - cflags = [] -+source_set("s8-ibilinear_riscv64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-rsum2_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-avgpool_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("f32-rsum2_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46310,51 +55295,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-rsum_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -79168,86 +106670,88 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c", - ] -+source_set("s8-maxpool_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-conv-hwc2chw_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-conv-hwc2chw_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_riscv64_standalone") { ++ source_set("f32-rsum_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46366,52 +55352,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -79255,82 +106759,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-conv-hwc2chw_riscv64_standalone") { - cflags = [] -+source_set("s8-rdminmax_riscv64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("f32-spmm_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46423,59 +55411,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -79363,79 +106867,71 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("s8-rminmax_riscv64") { -+ cflags = [ -- source_set("f32-dwconv2d-chw_riscv64") { -- cflags = [] -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_riscv64_standalone") { ++ source_set("f32-spmm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46487,65 +55472,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", +- "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-dwconv2d-chw_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -79471,68 +106967,55 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { - cflags = [ - "-mabi=lp64d", -- "-march=rv64gcv", -+ "-march=rv64gcv" - ] +- if (build_with_chromium) { +- source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vapproxgelu_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c", -+ "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46557,67 +55531,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -79571,82 +107054,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("s8-vclamp_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-dwconv_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-dwconv_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_riscv64_standalone") { ++ source_set("f32-vapproxgelu_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46629,57 +55588,108 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-dwconv_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -79661,132 +107094,138 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", - "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", - ] -+source_set("subgraph_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-dwconv_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", +- "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-f16-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("subgraph_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-f16-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vbinary_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46691,52 +55701,68 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -79794,96 +107233,100 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-f16-vcvt_riscv64_standalone") { - cflags = [] -+source_set("tables_riscv64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vbinary_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("tables_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46748,59 +55774,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", +- "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -79921,75 +107364,63 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("u8-ibilinear_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-gemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", +- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vclamp_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -- "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46812,55 +55831,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-gemm_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -80002,241 +107433,256 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", - "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c", - ] -+source_set("u8-lut32norm_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear-chw_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-ibilinear-chw_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-lut32norm_riscv64_standalone") { ++ source_set("f32-vclamp_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46872,48 +55888,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-ibilinear-chw_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", - ] -+source_set("u8-maxpool_riscv64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-ibilinear_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46925,52 +55945,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-ibilinear_riscv64_standalone") { +- source_set("f32-ibilinear-chw_riscv64_standalone") { - cflags = [] -+source_set("u8-rdminmax_riscv64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-vcmul_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c", +- "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-ibilinear_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("f32-vcmul_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -46982,59 +56004,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-ibilinear_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", +- "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcopysign_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -80269,79 +107715,78 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("u8-rminmax_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("f32-igemm_riscv64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-igemm_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_riscv64_standalone") { ++ source_set("f32-vcopysign_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47046,58 +56065,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", +- "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-igemm_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -80377,61 +107822,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_arch=rv64gcv-abi=lp64d_standalone") { - cflags = [ - "-mabi=lp64d", -- "-march=rv64gcv", -+ "-march=rv64gcv" - ] +- if (build_with_chromium) { +- source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcos_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", -+ "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47109,51 +56124,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -80440,255 +107872,271 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c", - ] -+source_set("u8-vclamp_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-maxpool_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-maxpool_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_riscv64_standalone") { ++ source_set("f32-vcos_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47165,49 +56181,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-maxpool_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("x16-transposec_riscv64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-maxpool_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-velu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-qc4w-gemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47219,50 +56238,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-qc4w-gemm_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-qc4w-gemm_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", - ] -+source_set("x16-x32-packw_riscv64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-velu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-qc4w-gemm_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-qc8w-gemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-x32-packw_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-qc8w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vexp_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47274,52 +56297,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -80696,80 +108144,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-qc8w-gemm_riscv64_standalone") { - cflags = [] -+source_set("x24-transposec_riscv64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vexp_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47331,52 +56354,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -80806,64 +108256,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("x32-packw_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-qs8-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_arch=rv64gcv-abi=lp64d_standalone") { +- if (build_with_chromium) { +- source_set("f32-qs8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vgelu_ppc64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47388,52 +56413,62 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -80871,90 +108309,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-qs8-vcvt_riscv64_standalone") { - cflags = [] -+source_set("x32-packw_riscv64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vgelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47445,52 +56480,60 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -80991,70 +108421,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", -+ "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", -+ "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-qu8-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_arch=rv64gcv-abi=lp64d_standalone") { +- if (build_with_chromium) { +- source_set("f32-qu8-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", +- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vhswish_ppc64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -- "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", -+ "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", -+ "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", -+ "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", -+ "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47502,52 +56545,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -81062,80 +108474,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-qu8-vcvt_riscv64_standalone") { - cflags = [] -+source_set("x32-transposec_riscv64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", - "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47559,51 +56602,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -81144,169 +108558,160 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c", - ] -+source_set("x32-unpool_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-raddstoreexpminusmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-unpool_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-raddstoreexpminusmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vlog_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47615,49 +56659,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-raddstoreexpminusmax_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] -+source_set("x64-transposec_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rdminmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-rdminmax_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_riscv64_standalone") { ++ source_set("f32-vlog_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47669,52 +56716,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -81314,80 +108719,177 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-rdminmax_riscv64_standalone") { - cflags = [] -+source_set("x8-lut_riscv64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("f32-vlrelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c", +- "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", +- "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-rdsum2_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("f32-vlrelu_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47726,51 +56773,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rdsum2_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vmulcaddc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -81396,86 +108898,88 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c", - ] -+source_set("x8-packq_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rdsum_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-rdsum_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-packq_riscv64_standalone") { ++ source_set("f32-vmulcaddc_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47782,53 +56830,58 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -81483,87 +108987,84 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-rdsum_riscv64_standalone") { - cflags = [] -+source_set("x8-packw_riscv64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-packw_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("f32-vrnd_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", +- "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47840,55 +56893,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -81597,75 +109098,28 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x8-transposec_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-rminmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-rminmax_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_riscv64_standalone") { ++ source_set("f32-vrnd_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47900,50 +56950,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-rminmax_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -81673,76 +109127,218 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", - "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", - ] -+source_set("xx-copy_riscv64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rminmax_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vrsqrt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", +- "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-rsum_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("f32-rsum2_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("xx-copy_riscv64_standalone") { ++ source_set("f32-vrsqrt_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -47955,53 +57007,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-rsum2_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-rsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -81750,81 +109346,83 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-rsum_riscv64_standalone") { - cflags = [] -+source_set("xx-fill_riscv64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-fill_riscv64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48013,55 +57064,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", +- "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -81863,70 +109461,58 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("xx-pad_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("f32-spmm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-pad_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-spmm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", +- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsin_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -- "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48073,50 +57121,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-spmm_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -81934,76 +109520,76 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", - "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c", - ] -+source_set("xx-transposev_riscv64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vapproxgelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vapproxgelu_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("xx-transposev_riscv64_standalone") { ++ source_set("f32-vsin_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48128,66 +57178,101 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -82011,143 +109597,94 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-vapproxgelu_riscv64_standalone") { - cflags = [] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] -+if (current_cpu == "ppc64") { -+source_set("configs_ppc64") { -+ cflags = [ -+ -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("configs_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("f32-vsqrt_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] + +- if (build_with_chromium) { +- source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", +- "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48199,84 +57284,60 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -82194,99 +109731,25 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("enums_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vbinary_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-vbinary_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("enums_ppc64_standalone") { ++ source_set("f32-vsqrt_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48288,66 +57349,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vbinary_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -82310,76 +109773,129 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", - "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", - ] -+source_set("f16-f32-vcvt_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vbinary_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", +- "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", +- "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vclamp_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vclamp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("f32-vtanh_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48359,51 +57406,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -82387,79 +109903,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("f32-vclamp_riscv64_standalone") { - cflags = [] -+source_set("f16-qs8-vcvt_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vtanh_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vclamp/gen/f32-vclamp-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qs8-vcvt_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48415,51 +57463,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -82468,179 +109986,130 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c", - ] -+source_set("f16-qu8-vcvt_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcmul_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-qu8-vcvt_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vcmul_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vunary_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48471,50 +57520,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vcmul_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] -+source_set("f16-rdminmax_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcopysign_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vcopysign_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-rdminmax_ppc64_standalone") { ++ source_set("f32-vunary_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-c2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48526,50 +57579,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vcopysign_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -82648,406 +110117,519 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", - "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", - ] -+source_set("f16-rminmax_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vcos_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48581,48 +57640,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vcos_riscv64_standalone") { -- cflags = [] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", -- ] -+source_set("f16-vapproxgelu_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-velu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48634,48 +57697,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-velu_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", -- ] -+source_set("f16-vcos_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vexp_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48687,48 +57754,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vexp_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", -- ] -+source_set("f16-vexp_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vgelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48740,51 +57811,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-vgelu_riscv64_standalone") { +- source_set("f32-vcopysign_riscv64_standalone") { - cflags = [] -+source_set("f16-vgelu_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("operators_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", +- "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vcos_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("operators_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48796,51 +57868,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vcos_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-velu_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-velu_riscv64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("f32-vexp_riscv64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vexp_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vgelu_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vgelu_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-gemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -83056,248 +110638,274 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c", - ] -+source_set("f16-vsin_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vhswish_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vhswish_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_ppc64_standalone") { ++ source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48852,48 +57925,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vhswish_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] -+source_set("f32-argmaxpool_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlog_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48905,51 +57982,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-vlog_riscv64_standalone") { +- source_set("f32-vhswish_riscv64_standalone") { - cflags = [] -+source_set("f32-avgpool_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc8w-igemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- "src/src/f32-vhswish/gen/f32-vhswish-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vlog_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -48961,51 +58039,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vlog_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-dwconv_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -83306,283 +110914,274 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c", - ] -+source_set("f32-conv-hwc2chw_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vlrelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vlrelu_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_ppc64_standalone") { ++ source_set("qs8-dwconv_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49017,48 +58096,66 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vlrelu_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", - ] -+source_set("f32-dwconv2d-chw_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vmulcaddc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49070,54 +58167,70 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-vmulcaddc_riscv64_standalone") { +- source_set("f32-vlrelu_riscv64_standalone") { - cflags = [] -+source_set("f32-dwconv_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("qs8-f32-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f32-vmulcaddc_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("qs8-f32-vcvt_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49129,57 +58242,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vmulcaddc_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", +- "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-packw_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -83617,71 +111216,75 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("f32-vrnd_riscv64") { -- cflags = [] -+source_set("f32-f16-vcvt_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- if (build_with_chromium) { +- source_set("f32-vrnd_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_ppc64_standalone") { ++ source_set("qs8-packw_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49191,54 +58299,66 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", +- "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vrnd_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -83713,74 +111316,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-gemm_ppc64") { -+ cflags = [ -+ -+ ] -- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-qc4w-gemm_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49250,52 +58370,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -83812,501 +111390,530 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-ibilinear-chw_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" -+ ] - -- source_set("f32-vrsqrt_riscv64") { -- cflags = [] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("f32-vrsqrt_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_ppc64_standalone") { ++ source_set("qs8-qc4w-gemm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49307,49 +58427,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vrsqrt_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", - "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", - ] -+source_set("f32-ibilinear_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vrsqrt_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-dwconv_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", +- "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vsigmoid_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49361,48 +58484,66 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vsigmoid_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsigmoid_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", - ] -+source_set("f32-igemm_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-dwconv_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsigmoid_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsin_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vsin_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-gemm_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49414,48 +58555,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vsin_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c", - ] -+source_set("f32-maxpool_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vsqrt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("f32-vsqrt_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_ppc64_standalone") { ++ source_set("qs8-qc8w-gemm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49467,48 +58612,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vsqrt_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", - ] -+source_set("f32-qc4w-gemm_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vsqrt_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-qc8w-igemm_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("f32-vtanh_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49520,50 +58671,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vtanh_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vtanh_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", - ] -+source_set("f32-qc8w-gemm_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-qc8w-igemm_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("f32-vunary_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("f32-vunary_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-qu8-packw_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49575,70 +58730,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f32-vunary_riscv64_standalone") { - cflags = [] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f32-vunary/gen/f32-vabs-scalar.c", @@ -84331,90 +111938,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-qs8-vcvt_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("operators_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("operators_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_ppc64_standalone") { ++ source_set("qs8-qu8-packw_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49650,69 +58789,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("operators_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -84463,64 +112062,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-qu8-vcvt_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qd8-f32-qb4w-gemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-rdsum_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49724,53 +58848,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -84528,81 +112115,83 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { - cflags = [] -+source_set("f32-raddstoreexpminusmax_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rdsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49782,53 +58905,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -84640,64 +112229,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-rdminmax_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc4w-gemm_riscv64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-rsum_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-c2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49840,53 +58964,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -84705,81 +112282,83 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc4w-gemm_riscv64_standalone") { - cflags = [] -+source_set("f32-rdsum_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-rsum_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49898,54 +59021,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -84817,67 +112396,54 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-rminmax_ppc64") { -+ cflags = [ -+ -+ ] -- source_set("qd8-f32-qc8w-gemm_riscv64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vadd_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -49957,54 +59082,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -84885,8 +112451,18 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { - cflags = [] -+source_set("f32-rsum_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vadd_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -84894,73 +112470,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50016,54 +59139,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4v-minmax-rvv.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -84998,67 +112567,54 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-spmm_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qd8-f32-qc8w-igemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vaddc_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50075,54 +59200,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -85066,8 +112622,18 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { - cflags = [] -+source_set("f32-vapproxgelu_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vaddc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -85075,73 +112641,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50134,55 +59257,88 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -85179,102 +112738,73 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vbinary_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qs8-dwconv_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-dwconv_riscv64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qs8-vcvt_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50194,54 +59350,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-dwconv_riscv64_standalone") { - cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -85301,65 +112831,47 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ -+source_set("f32-vclamp_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] -- -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50253,51 +59407,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -85368,182 +112880,136 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c", - ] -+source_set("f32-vcmul_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-f32-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vlrelu_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50309,51 +59464,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-f32-vcvt_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] -+source_set("f32-vcopysign_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-packw_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50365,51 +59525,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-packw_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -85552,158 +113018,208 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", - "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", - ] -+source_set("f32-vcos_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc4w-gemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50421,53 +59582,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_riscv64_standalone") { +- source_set("qs8-packw_riscv64_standalone") { - cflags = [] -+source_set("f32-velu_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("qs8-vmul_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("qs8-vmul_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50479,58 +59639,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vmulc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -85737,73 +113253,74 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-vexp_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qc8w-dwconv_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_ppc64_standalone") { ++ source_set("qs8-vmulc_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50542,57 +59696,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-dwconv_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -85837,61 +113354,49 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("f32-vgelu_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vprelu_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50604,53 +59753,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -85924,67 +113429,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("f32-vhswish_ppc64") { -+ cflags = [ -+ -+ ] -- source_set("qs8-qc8w-gemm_riscv64") { -- cflags = [] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_ppc64_standalone") { ++ source_set("qs8-vprelu_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50662,53 +59810,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -85992,81 +113496,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_riscv64_standalone") { - cflags = [] -+source_set("f32-vlog_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qs8-vpreluc_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50720,53 +59867,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -86099,236 +113603,240 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("qs8-qc8w-igemm_riscv64") { -- cflags = [] -+source_set("f32-vlrelu_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_ppc64_standalone") { ++ source_set("qs8-vpreluc_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50778,49 +59924,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+source_set("f32-vmulcaddc_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-qu8-packw_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50832,51 +59981,58 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qu8-packw_riscv64_standalone") { +- source_set("qs8-qc8w-igemm_riscv64_standalone") { - cflags = [] -+source_set("f32-vrnd_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("qs8-vrpreluc_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-qu8-packw_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("qs8-vrpreluc_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50888,51 +60044,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-dwconv_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -86337,88 +113845,91 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c", - ] -+source_set("f32-vrsqrt_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-rdsum_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-rdsum_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_ppc64_standalone") { ++ source_set("qu8-dwconv_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -50944,51 +60103,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -86426,79 +113937,79 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-rdsum_riscv64_standalone") { - cflags = [] -+source_set("f32-vsigmoid_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qu8-f32-vcvt_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51000,51 +60160,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -86507,86 +114018,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c", - ] -+source_set("f32-vsin_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-rsum_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-rsum_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_ppc64_standalone") { ++ source_set("qu8-f32-vcvt_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51056,51 +60217,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -86594,79 +114100,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-rsum_riscv64_standalone") { - cflags = [] -+source_set("f32-vsqrt_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qu8-gemm_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51112,52 +60274,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -86698,67 +114205,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("qs8-vadd_riscv64") { -- cflags = [] -+source_set("f32-vtanh_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- if (build_with_chromium) { +- source_set("qs8-vadd_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_ppc64_standalone") { ++ source_set("qu8-gemm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51169,52 +60331,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", +- "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -86766,84 +114266,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-vadd_riscv64_standalone") { - cflags = [] -+source_set("f32-vunary_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", - "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qu8-igemm_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51226,52 +60392,92 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -86875,274 +114372,238 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("operators_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vaddc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-vaddc_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("operators_ppc64_standalone") { ++ source_set("qu8-igemm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51283,49 +60489,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vaddc_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", - "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", - ] -+source_set("qd8-f32-qb4w-gemm_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51337,51 +60548,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-vcvt_riscv64_standalone") { +- source_set("qs8-vaddc_riscv64_standalone") { - cflags = [] -+source_set("qd8-f32-qc4w-gemm_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("qu8-rdsum_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", +- "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("qs8-vcvt_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} -- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++ source_set("qu8-rdsum_ppc64_standalone") { ++ cflags = [ + - ] -- ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51393,51 +60607,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vcvt_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-rsum_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -87151,90 +114612,88 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c", - ] -+source_set("qd8-f32-qc8w-gemm_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vlrelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-vlrelu_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { ++ source_set("qu8-rsum_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51449,51 +60668,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -87242,83 +114701,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-vlrelu_riscv64_standalone") { - cflags = [] -+source_set("qd8-f32-qc8w-igemm_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qu8-vadd_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51505,51 +60729,58 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -87350,72 +114806,59 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-dwconv_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vmul_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-vmul_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_ppc64_standalone") { ++ source_set("qu8-vadd_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51561,51 +60792,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -87423,79 +114866,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-vmul_riscv64_standalone") { - cflags = [] -+source_set("qs8-f32-vcvt_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qu8-vaddc_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51617,51 +60849,58 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -87527,330 +114971,319 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-packw_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vmulc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qs8-vmulc_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_ppc64_standalone") { ++ source_set("qu8-vaddc_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51673,48 +60912,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vmulc_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", - ] -+source_set("qs8-qc4w-gemm_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vmulc_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qu8-vcvt_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qs8-vprelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", -+ "src/src/qs8-qc4w-gemm/qs8-qc4w-gemm-1x2-minmax-fp32-scalar-lrintf.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51726,48 +60969,62 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-vprelu_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vprelu_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", - ] -+source_set("qs8-qc8w-dwconv_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vcvt_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-vprelu_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vpreluc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qs8-vpreluc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vlrelu_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51779,48 +61036,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-vpreluc_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c", - ] -+source_set("qs8-qc8w-gemm_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qs8-vrpreluc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qs8-vrpreluc_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_ppc64_standalone") { ++ source_set("qu8-vlrelu_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51832,52 +61095,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -87858,82 +115291,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-vrpreluc_riscv64_standalone") { - cflags = [] -+source_set("qs8-qc8w-igemm_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("qu8-vmul_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p8vc-minmax-fp32-rvv.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51889,55 +61154,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -87966,72 +115397,66 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qs8-qu8-packw_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-dwconv_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qu8-dwconv_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_ppc64_standalone") { ++ source_set("qu8-vmul_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -51949,54 +61211,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-dwconv_riscv64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", @@ -88062,60 +115487,48 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-rdsum_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vmulc_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52008,51 +61268,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -88124,257 +115537,271 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-rvv-u2v.c", - ] -+source_set("qs8-rsum_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-f32-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-f32-vcvt_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_ppc64_standalone") { ++ source_set("qu8-vmulc_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52064,49 +61325,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-f32-vcvt_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", - ] -+source_set("qs8-vadd_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-f32-vcvt_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qu8-vprelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-gemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52118,50 +61384,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-gemm_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-gemm_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+source_set("qs8-vaddc_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vprelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-gemm_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-igemm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-igemm_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vpreluc_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52173,52 +61443,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -88382,80 +115809,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-igemm_riscv64_standalone") { - cflags = [] -+source_set("qs8-vcvt_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", - "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52230,51 +61500,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -88464,86 +115893,79 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c", - ] -+source_set("qs8-vlrelu_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-rdsum_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-rdsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vrpreluc_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52286,51 +61557,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -88551,79 +115973,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-rdsum_riscv64_standalone") { - cflags = [] -+source_set("qs8-vmul_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-vrpreluc_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52342,51 +61614,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -88632,86 +116056,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c", - ] -+source_set("qs8-vmulc_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-rsum_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-rsum_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("reference_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52398,51 +61671,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -88719,79 +116138,83 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-rsum_riscv64_standalone") { - cflags = [] -+source_set("qs8-vprelu_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("reference_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52454,52 +61728,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -88828,62 +116251,52 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("qs8-vpreluc_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("qu8-vadd_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-vadd_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("s8-ibilinear_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52511,52 +61785,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -88891,80 +116304,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vadd_riscv64_standalone") { - cflags = [] -+source_set("qs8-vrpreluc_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("s8-ibilinear_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", - "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52568,52 +61842,58 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -89002,150 +116417,132 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } +} -- source_set("qu8-vaddc_riscv64") { -- cflags = [] -+source_set("qu8-dwconv_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-vaddc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", +- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("s8-maxpool_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -- "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52625,49 +61905,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vaddc_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c", - ] -+source_set("qu8-f32-vcvt_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vcvt_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vcvt_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_ppc64_standalone") { ++ source_set("s8-maxpool_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52679,51 +61962,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -89153,81 +116550,80 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vcvt_riscv64_standalone") { - cflags = [] -+source_set("qu8-gemm_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("s8-rdminmax_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52735,51 +62021,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -89236,88 +116632,82 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c", - ] -+source_set("qu8-igemm_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vlrelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vlrelu_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_ppc64_standalone") { ++ source_set("s8-rdminmax_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52791,51 +62080,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -89325,79 +116715,81 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vlrelu_riscv64_standalone") { - cflags = [] -+source_set("qu8-rdsum_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("s8-rminmax_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52847,51 +62137,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -89429,66 +116821,60 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("qu8-vmul_riscv64") { -- cflags = [] -+source_set("qu8-rsum_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- if (build_with_chromium) { +- source_set("qu8-vmul_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_ppc64_standalone") { ++ source_set("s8-rminmax_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52903,51 +62194,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -89496,81 +116882,79 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vmul_riscv64_standalone") { - cflags = [] -+source_set("qu8-vadd_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("s8-vclamp_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] + +- if (build_with_chromium) { +- source_set("qu8-vmulc_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-f32-rvv-u2v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -52959,51 +62253,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -89602,405 +116986,446 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("qu8-vaddc_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vmulc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} +- if (build_with_chromium) { +- source_set("qu8-vmulc_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_ppc64_standalone") { ++ source_set("s8-vclamp_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53015,48 +62312,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vmulc_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", - ] -+source_set("qu8-vcvt_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vmulc_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("subgraph_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("qu8-vprelu_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53068,48 +62369,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vprelu_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-vprelu_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", - ] -+source_set("qu8-vlrelu_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("subgraph_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vprelu_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vpreluc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("qu8-vpreluc_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("tables_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53121,48 +62426,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vpreluc_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c", - ] -+source_set("qu8-vmul_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("qu8-vrpreluc_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("qu8-vrpreluc_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_ppc64_standalone") { ++ source_set("tables_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53174,50 +62483,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-vrpreluc_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", - ] -+source_set("qu8-vmulc_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-vrpreluc_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("u8-ibilinear_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("reference_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/reference/binary-elementwise.cc", -- "src/src/reference/packing.cc", -- "src/src/reference/unary-elementwise.cc", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53229,50 +62540,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("reference_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("reference_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -90008,330 +117433,392 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/reference/packing.cc", - "src/src/reference/unary-elementwise.cc", - ] -+source_set("qu8-vprelu_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-ibilinear_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("reference_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/reference/binary-elementwise.cc", +- "src/src/reference/packing.cc", +- "src/src/reference/unary-elementwise.cc", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-ibilinear_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("s8-ibilinear_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("u8-lut32norm_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53284,48 +62597,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-ibilinear_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c", +- "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c", - ] -+source_set("qu8-vpreluc_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-maxpool_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("s8-maxpool_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_ppc64_standalone") { ++ source_set("u8-lut32norm_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53337,49 +62654,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("s8-maxpool_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", - ] -+source_set("qu8-vrpreluc_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-maxpool_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("u8-maxpool_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("s8-rdminmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("s8-rdminmax_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_ppc64_standalone") { ++ source_set("u8-maxpool_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53391,51 +62711,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-rdminmax_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", - ] -+source_set("reference_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-rminmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("reference_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("s8-rminmax_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] ++if (build_with_chromium) { ++ source_set("u8-rdminmax_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53447,53 +62772,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -90339,8 +117826,18 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("s8-rminmax_riscv64_standalone") { - cflags = [] -+source_set("s8-ibilinear_ppc64") { -+ cflags = [ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("u8-rdminmax_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -90348,72 +117845,65 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", - "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("s8-vclamp_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-c1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53505,51 +62829,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ public_configs = [ ":xnnpack_public_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -90422,201 +117912,196 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/gen/s8-vclamp-rvv-u4v.c", - ] -+source_set("s8-maxpool_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("s8-vclamp_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("s8-vclamp_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("u8-rminmax_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53561,76 +62886,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("s8-vclamp_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", - ] -+source_set("s8-rdminmax_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("subgraph_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("subgraph_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_ppc64_standalone") { ++ source_set("u8-rminmax_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-c2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-c2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53642,84 +62945,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/subgraph/argmax-pooling-2d.c", +- "src/src/subgraph/average-pooling-2d.c", +- "src/src/subgraph/batch-matrix-multiply.c", +- "src/src/subgraph/binary.c", +- "src/src/subgraph/concatenate.c", +- "src/src/subgraph/convolution-2d.c", +- "src/src/subgraph/copy.c", +- "src/src/subgraph/deconvolution-2d.c", +- "src/src/subgraph/deprecated.c", +- "src/src/subgraph/depth-to-space-2d.c", +- "src/src/subgraph/depthwise-convolution-2d.c", +- "src/src/subgraph/even-split.c", +- "src/src/subgraph/fully-connected-sparse.c", +- "src/src/subgraph/fully-connected.c", +- "src/src/subgraph/max-pooling-2d.c", +- "src/src/subgraph/pack-lh.c", +- "src/src/subgraph/reshape-helpers.c", +- "src/src/subgraph/rope.c", +- "src/src/subgraph/softmax.c", +- "src/src/subgraph/space-to-depth-2d.c", +- "src/src/subgraph/static-constant-pad.c", +- "src/src/subgraph/static-reduce.c", +- "src/src/subgraph/static-resize-bilinear-2d.c", +- "src/src/subgraph/static-slice.c", +- "src/src/subgraph/static-transpose.c", +- "src/src/subgraph/subgraph-utils.c", +- "src/src/subgraph/unary.c", +- "src/src/subgraph/unpooling-2d.c", +- "src/src/subgraph/validation.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("subgraph_riscv64_standalone") { - cflags = [] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/subgraph/argmax-pooling-2d.c", @@ -90672,80 +118157,64 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("s8-rminmax_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("tables_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("tables_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/tables/exp2-k-over-2048.c", +- "src/src/tables/exp2-k-over-64.c", +- "src/src/tables/exp2minus-k-over-16.c", +- "src/src/tables/exp2minus-k-over-2048.c", +- "src/src/tables/exp2minus-k-over-32.c", +- "src/src/tables/exp2minus-k-over-4.c", +- "src/src/tables/exp2minus-k-over-64.c", +- "src/src/tables/exp2minus-k-over-8.c", +- "src/src/tables/vlog.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("u8-vclamp_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/tables/exp2-k-over-2048.c", -- "src/src/tables/exp2-k-over-64.c", -- "src/src/tables/exp2minus-k-over-16.c", -- "src/src/tables/exp2minus-k-over-2048.c", -- "src/src/tables/exp2minus-k-over-32.c", -- "src/src/tables/exp2minus-k-over-4.c", -- "src/src/tables/exp2minus-k-over-64.c", -- "src/src/tables/exp2minus-k-over-8.c", -- "src/src/tables/vlog.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53731,56 +63006,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("tables_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -90759,489 +118228,396 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/tables/exp2minus-k-over-8.c", - "src/src/tables/vlog.c", - ] -+source_set("s8-vclamp_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-ibilinear_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("u8-ibilinear_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_ppc64_standalone") { ++ source_set("u8-vclamp_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53792,48 +63063,108 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-ibilinear_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", - ] -+source_set("subgraph_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-lut32norm_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("subgraph_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53845,48 +63176,68 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-lut32norm_riscv64_standalone") { -- cflags = [] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", -- ] -+source_set("tables_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-maxpool_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("tables_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53898,49 +63249,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-maxpool_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", -- ] -+source_set("u8-ibilinear_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-rdminmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-c1.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -53952,51 +63306,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-rdminmax_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c", -- ] -+source_set("u8-lut32norm_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-rminmax_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-lut32norm_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54008,53 +63363,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } + } } +} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("u8-rminmax_riscv64_standalone") { +- source_set("u8-ibilinear_riscv64_standalone") { - cflags = [] -+source_set("u8-maxpool_ppc64") { -+ cflags = [ ++if (build_with_chromium) { ++ source_set("x16-transposec_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("u8-lut32norm_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-lut32norm_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("u8-maxpool_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x16-x32-packw_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-maxpool_riscv64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("u8-rdminmax_riscv64") { +- cflags = [] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x16-x32-packw_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rdminmax_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("x24-transposec_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", +- "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("u8-rminmax_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -91249,72 +118625,129 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", - "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", - ] -+ ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x24-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-rminmax_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", +- "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("u8-vclamp_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x32-packw_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54066,51 +63420,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -91323,340 +118756,355 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "-mabi=lp64d", - "-march=rv64gcv", - ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/u8-vclamp/gen/u8-vclamp-rvv-u4v.c", - ] -+source_set("u8-rdminmax_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("u8-vclamp_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("u8-vclamp_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_ppc64_standalone") { ++ source_set("x32-packw_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-c2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-c2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54122,48 +63479,56 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-vclamp_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", - ] -+source_set("u8-rminmax_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-vclamp_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("x32-transposec_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-vclamp/u8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x16-transposec_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54175,49 +63540,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x16-transposec_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("x16-transposec_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", - ] -+source_set("u8-vclamp_ppc64") { -+ cflags = [ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x32-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x16-transposec_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x16-x32-packw_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_ppc64_standalone") { +- if (build_with_chromium) { +- source_set("x16-x32-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", +- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x32-unpool_ppc64") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -- "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54229,49 +63597,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x16-x32-packw_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", - "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c", - ] -+source_set("x16-transposec_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x24-transposec_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("x24-transposec_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_ppc64_standalone") { ++ source_set("x32-unpool_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-unpool/x32-unpool-scalar.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54283,51 +63654,54 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } + } } +} @@ -91664,81 +119112,79 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("x24-transposec_riscv64_standalone") { - cflags = [] -+source_set("x16-x32-packw_ppc64") { -+ cflags = [ - +- - sources = [ - "src/include/xnnpack.h", - "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", - ] -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ public_configs = [ ":xnnpack_public_config" ] -+} - -- source_set("x32-packw_arch=rv64gcv-abi=lp64d") { -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x16-x32-packw_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", ++if (build_with_chromium) { ++ source_set("x64-transposec_ppc64") { ++ cflags = [ + - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] + +- if (build_with_chromium) { +- source_set("x32-packw_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" - ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x4v-gemm-goi-rvv-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54339,56 +63713,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -91770,73 +119216,67 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} -- source_set("x32-packw_riscv64") { -- cflags = [] -+source_set("x24-transposec_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} - +- if (build_with_chromium) { +- source_set("x32-packw_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_ppc64_standalone") { ++ source_set("x64-transposec_ppc64_standalone") { + cflags = [ + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" - ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54400,59 +63770,62 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", +- "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", +- "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", +- ] - +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x32-packw_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -91870,73 +119310,51 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn } } +} -+ -+source_set("x32-packw_ppc64") { -+ cflags = [ -+ -+ ] -- source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_ppc64_standalone") { - cflags = [ -- "-mabi=lp64d", -- "-march=rv64gcv", -+ - ] +- if (build_with_chromium) { +- source_set("x32-transposec_arch=rv64gcv-abi=lp64d") { +- cflags = [ +- "-mabi=lp64d", +- "-march=rv64gcv", +- ] - +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", +- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x8-lut_ppc64") { ++ cflags = [ + - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-16x8-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-32x8-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-4x4-rvv.c", -- "src/src/x32-transposec/gen/x32-transposec-8x8-rvv.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" - ] ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54464,54 +63837,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -91971,285 +119389,21 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} -+ -+source_set("x32-transposec_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -- source_set("x32-transposec_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54523,48 +63894,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x32-transposec_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("x32-transposec_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -- ] -+source_set("x32-unpool_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x32-unpool_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x32-unpool_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54576,48 +63951,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x32-unpool_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x32-unpool/x32-unpool-scalar.c", -- ] -+source_set("x64-transposec_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x64-transposec_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54629,48 +64008,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x64-transposec_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", -- ] -+source_set("x8-lut_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x8-lut_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("x8-lut_ppc64_standalone") { @@ -92257,81 +119411,112 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54682,48 +64065,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-lut_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", - ] -+source_set("x8-packq_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x32-transposec_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("x8-packq_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("x8-packq_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("x32-unpool_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x32-unpool/x32-unpool-scalar.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("x8-packq_ppc64_standalone") { @@ -92339,84 +119524,149 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" - ] ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54735,51 +64122,58 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("x8-packq_riscv64_standalone") { +- source_set("x32-unpool_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- "src/src/x32-unpool/x32-unpool-scalar.c", - ] -+source_set("x8-packw_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("x64-transposec_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x8-packw_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x64-transposec_riscv64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x8-packw_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("x8-lut_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("x8-packw_ppc64_standalone") { @@ -92424,38 +119674,234 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", - "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" - ] ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54791,51 +64185,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", - ] ++ ] - public_configs = [ ":xnnpack_public_config" ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-lut_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("x8-transposec_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-lut/gen/x8-lut-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("x8-packq_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-packq_riscv64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("x8-packw_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", +- "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("xx-copy_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("x8-packw_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -92464,131 +119910,32 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn - "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", - "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c", - ] -+source_set("x8-transposec_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("x8-transposec_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ - sources = [ - "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54847,48 +64242,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("x8-transposec_riscv64_standalone") { +- if (build_with_chromium) { +- source_set("x8-transposec_riscv64") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", -- ] -+source_set("xx-copy_ppc64") { -+ cflags = [ - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("xx-copy_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] -+} - +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("xx-copy_ppc64_standalone") { @@ -92596,81 +119943,112 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/xx-copy/xx-copy-scalar-memcpy.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54900,48 +64299,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("xx-copy_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ ] - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", - ] -+source_set("xx-fill_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("x8-transposec_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("xx-fill_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("xx-fill_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("xx-copy_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("xx-fill_ppc64_standalone") { @@ -92678,81 +120056,146 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/xx-fill/xx-fill-scalar-u16.c" - ] ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -54953,48 +64356,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("xx-fill_riscv64_standalone") { +- source_set("xx-copy_riscv64_standalone") { - cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-fill/xx-fill-scalar-u16.c", +- "src/src/xx-copy/xx-copy-scalar-memcpy.c", - ] -+source_set("xx-pad_ppc64") { -+ cflags = [ - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("xx-fill_riscv64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("xx-pad_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-fill_riscv64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-fill/xx-fill-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- source_set("xx-pad_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } +} +- if (build_with_chromium) { +- source_set("xx-pad_riscv64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("xx-pad_ppc64_standalone") { @@ -92760,81 +120203,112 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/xx-pad/xx-pad-p4-scalar-u16.c" - ] - - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -55006,48 +64413,52 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] - - public_configs = [ ":xnnpack_public_config" ] -- } - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("xx-pad_riscv64_standalone") { -- cflags = [] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] -+ } -+ } -+} ++ ] - sources = [ - "src/include/xnnpack.h", - "src/src/xx-pad/xx-pad-p4-scalar-u16.c", - ] -+source_set("xx-transposev_ppc64") { -+ cflags = [ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("xx-pad_riscv64_standalone") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("xx-transposev_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-pad/xx-pad-p4-scalar-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] -- source_set("xx-transposev_riscv64") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] +- if (build_with_chromium) { +- source_set("xx-transposev_riscv64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } +} +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("xx-transposev_ppc64_standalone") { @@ -92842,28 +120316,37 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/BUILD.gn + + ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c", ++ sources = [ ++ "src/include/xnnpack.h", + "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" - ] ++ ] - configs -= [ "//build/config/compiler:chromium_code" ] -@@ -55059,39 +64470,15 @@ if (current_cpu == "riscv64") { - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", -+ "//third_party/pthreadpool:pthreadpool_standalone", - ] +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } - } -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("xx-transposev_riscv64_standalone") { - cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", diff --git a/add-ppc64-architecture-to-extensions.diff b/add-ppc64-architecture-to-extensions.diff index 7c9e3f1..14c3b1f 100644 --- a/add-ppc64-architecture-to-extensions.diff +++ b/add-ppc64-architecture-to-extensions.diff @@ -1,21 +1,21 @@ -Index: chromium-140.0.7339.41/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +Index: chromium-142.0.7444.52/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc =================================================================== ---- chromium-140.0.7339.41.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -+++ chromium-140.0.7339.41/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -@@ -378,6 +378,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo +--- chromium-142.0.7444.52.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ++++ chromium-142.0.7444.52/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +@@ -383,6 +383,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo info->arch = extensions::api::runtime::PlatformArch::kMips64; - } else if (strcmp(arch, "riscv64") == 0) { + } else if (arch == "riscv64") { info->arch = extensions::api::runtime::PlatformArch::kRiscv64; -+ } else if (strcmp(arch, "ppc64") == 0) { ++ } else if (arch == "ppc64") { + info->arch = extensions::api::runtime::PlatformArch::kPpc64; } else { NOTREACHED(); } -Index: chromium-140.0.7339.41/extensions/common/api/runtime.json +Index: chromium-142.0.7444.52/extensions/common/api/runtime.json =================================================================== ---- chromium-140.0.7339.41.orig/extensions/common/api/runtime.json -+++ chromium-140.0.7339.41/extensions/common/api/runtime.json -@@ -99,7 +99,8 @@ +--- chromium-142.0.7444.52.orig/extensions/common/api/runtime.json ++++ chromium-142.0.7444.52/extensions/common/api/runtime.json +@@ -98,7 +98,8 @@ {"name": "x86-64", "description": "Specifies the processer architecture as x86-64."}, {"name": "mips", "description": "Specifies the processer architecture as mips."}, {"name": "mips64", "description": "Specifies the processer architecture as mips64."}, @@ -25,7 +25,7 @@ Index: chromium-140.0.7339.41/extensions/common/api/runtime.json ], "description": "The machine's processor architecture." }, -@@ -112,7 +113,8 @@ +@@ -111,7 +112,8 @@ {"name": "x86-32", "description": "Specifies the native client architecture as x86-32."}, {"name": "x86-64", "description": "Specifies the native client architecture as x86-64."}, {"name": "mips", "description": "Specifies the native client architecture as mips."}, diff --git a/chromium-136-system-brotli.patch b/chromium-136-system-brotli.patch deleted file mode 100644 index 6aed6c3..0000000 --- a/chromium-136-system-brotli.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -up chromium-136.0.7103.33/net/filter/brotli_source_stream.cc.system-brotli chromium-136.0.7103.33/net/filter/brotli_source_stream.cc ---- chromium-136.0.7103.33/net/filter/brotli_source_stream.cc.system-brotli 2025-04-15 23:18:07.000000000 +0200 -+++ chromium-136.0.7103.33/net/filter/brotli_source_stream.cc 2025-04-21 11:12:15.771632937 +0200 -@@ -17,8 +17,8 @@ - #include "base/metrics/histogram_macros.h" - #include "net/base/io_buffer.h" - #include "net/filter/source_stream_type.h" --#include "third_party/brotli/include/brotli/decode.h" --#include "third_party/brotli/include/brotli/shared_dictionary.h" -+#include -+#include - - namespace net { - -diff -up chromium-136.0.7103.33/net/ssl/cert_compression.cc.system-brotli chromium-136.0.7103.33/net/ssl/cert_compression.cc ---- chromium-136.0.7103.33/net/ssl/cert_compression.cc.system-brotli 2025-04-15 23:18:07.000000000 +0200 -+++ chromium-136.0.7103.33/net/ssl/cert_compression.cc 2025-04-21 11:12:15.775633048 +0200 -@@ -9,7 +9,7 @@ - #include "third_party/boringssl/src/include/openssl/ssl.h" - - #if !defined(NET_DISABLE_BROTLI) --#include "third_party/brotli/include/brotli/decode.h" -+#include - #endif - - namespace net { -diff -up chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc.system-brotli chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc ---- chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc.system-brotli 2025-04-15 23:18:07.000000000 +0200 -+++ chromium-136.0.7103.33/ui/base/resource/resource_bundle.cc 2025-04-21 11:19:08.136223039 +0200 -@@ -39,7 +39,7 @@ - #include "build/build_config.h" - #include "net/filter/gzip_header.h" - #include "skia/ext/image_operations.h" --#include "third_party/brotli/include/brotli/decode.h" -+#include - #include "third_party/skia/include/codec/SkPngDecoder.h" - #include "third_party/skia/include/core/SkBitmap.h" - #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium-138-clang++-unknown-argument.patch b/chromium-138-clang++-unknown-argument.patch deleted file mode 100644 index afd09cf..0000000 --- a/chromium-138-clang++-unknown-argument.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up chromium-140.0.7339.80/build/config/compiler/BUILD.gn.me chromium-140.0.7339.80/build/config/compiler/BUILD.gn ---- chromium-140.0.7339.80/build/config/compiler/BUILD.gn.me 2025-09-03 15:51:28.599633500 +0200 -+++ chromium-140.0.7339.80/build/config/compiler/BUILD.gn 2025-09-03 15:52:46.285444744 +0200 -@@ -2134,9 +2134,6 @@ config("default_warnings") { - - # TODO(crbug.com/40284799): Fix and re-enable. - "-Wno-thread-safety-reference-return", -- -- # TODO(crbug.com/376641662): Fix and re-enable. -- "-Wno-nontrivial-memcall", - ] - - cflags_cc += [ diff --git a/chromium-141-el9-ffmpeg-5.x-duration.patch b/chromium-141-el9-ffmpeg-5.x-duration.patch deleted file mode 100644 index 5c10bb9..0000000 --- a/chromium-141-el9-ffmpeg-5.x-duration.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -up chromium-141.0.7390.37/media/filters/audio_file_reader.cc.ffmpeg-5.x-duration chromium-141.0.7390.37/media/filters/audio_file_reader.cc ---- chromium-141.0.7390.37/media/filters/audio_file_reader.cc.ffmpeg-5.x-duration 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/media/filters/audio_file_reader.cc 2025-09-28 10:12:28.117594728 +0200 -@@ -274,10 +274,10 @@ bool AudioFileReader::OnNewFrame( - // silence from being output. In the case where we are also discarding some - // portion of the packet (as indicated by a negative pts), we further want to - // adjust the duration downward by however much exists before zero. -- if (audio_codec_ == AudioCodec::kAAC && frame->duration) { -+ if (audio_codec_ == AudioCodec::kAAC && frame->pkt_duration) { - const base::TimeDelta pkt_duration = ConvertFromTimeBase( - UNSAFE_TODO(glue_->format_context()->streams[stream_index_])->time_base, -- frame->duration + std::min(static_cast(0), frame->pts)); -+ frame->pkt_duration + std::min(static_cast(0), frame->pts)); - const base::TimeDelta frame_duration = - base::Seconds(frames_read / static_cast(sample_rate_)); - diff --git a/chromium-141-glibc-2.42-SYS_SECCOMP.patch b/chromium-141-glibc-2.42-SYS_SECCOMP.patch new file mode 100644 index 0000000..0288cb2 --- /dev/null +++ b/chromium-141-glibc-2.42-SYS_SECCOMP.patch @@ -0,0 +1,29 @@ +Fix FTBFS + +/usr/include/bits/siginfo-consts.h:219:3: error: expected identifier + 219 | SYS_SECCOMP = 1, /* Seccomp triggered. */ + | ^ +../../sandbox/linux/system_headers/linux_seccomp.h:220:39: note: expanded from macro 'SYS_SECCOMP' + 220 | #define SYS_SECCOMP 1 + | ^ +../../sandbox/linux/seccomp-bpf/trap.cc:159:46: error: use of undeclared identifier 'SYS_SECCOMP' + 159 | if (nr != LINUX_SIGSYS || info->si_code != SYS_SECCOMP || !ctx || + | ^~~~~~~~~~~ +/usr/include/bits/siginfo-consts.h:220:23: note: expanded from macro 'SYS_SECCOMP' + 220 | # define SYS_SECCOMP SYS_SECCOMP + +diff -up chromium-141.0.7390.122/sandbox/linux/system_headers/linux_seccomp.h.me chromium-141.0.7390.122/sandbox/linux/system_headers/linux_seccomp.h +--- chromium-141.0.7390.122/sandbox/linux/system_headers/linux_seccomp.h.me 2025-10-28 10:05:44.970248151 +0100 ++++ chromium-141.0.7390.122/sandbox/linux/system_headers/linux_seccomp.h 2025-10-28 10:05:52.291345772 +0100 +@@ -214,8 +214,11 @@ struct seccomp_notif_addfd { + #define SECCOMP_RET_INVALID 0x00010000U // Illegal return value + #endif + ++// check glibc version < 2.42 ++#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 42) + #ifndef SYS_SECCOMP + #define SYS_SECCOMP 1 + #endif ++#endif + + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_ diff --git a/chromium-142-clang++-unknown-argument.patch b/chromium-142-clang++-unknown-argument.patch new file mode 100644 index 0000000..def6e25 --- /dev/null +++ b/chromium-142-clang++-unknown-argument.patch @@ -0,0 +1,13 @@ +diff -up chromium-142.0.7444.52/build/config/compiler/BUILD.gn.clang++-unsupported-argument chromium-142.0.7444.52/build/config/compiler/BUILD.gn +--- chromium-142.0.7444.52/build/config/compiler/BUILD.gn.clang++-unsupported-argument 2025-10-28 19:41:59.131433882 +0100 ++++ chromium-142.0.7444.52/build/config/compiler/BUILD.gn 2025-10-28 19:42:51.792779638 +0100 +@@ -2160,9 +2160,6 @@ config("default_warnings") { + # TODO(crbug.com/40284799): Fix and re-enable. + "-Wno-thread-safety-reference-return", + +- # TODO(crbug.com/376641662): Fix and re-enable. +- "-Wno-nontrivial-memcall", +- + # TODO(crbug.com/432275627): Fix and re-enable. + "-Wno-uninitialized-const-pointer", + ] diff --git a/chromium-142-crabbyavif-ftbfs-old-rust.patch b/chromium-142-crabbyavif-ftbfs-old-rust.patch new file mode 100644 index 0000000..5f72fe1 --- /dev/null +++ b/chromium-142-crabbyavif-ftbfs-old-rust.patch @@ -0,0 +1,24 @@ +Workaround for FTBFS + +error: cannot find attribute `sanitize` in this scope + --> ../../third_party/crabbyavif/src/src/capi/io.rs:210:41 + | +210 | #[cfg_attr(feature = "disable_cfi", sanitize(cfi = "off"))] + +diff -up chromium-142.0.7444.52/third_party/crabbyavif/BUILD.gn.me chromium-142.0.7444.52/third_party/crabbyavif/BUILD.gn +--- chromium-142.0.7444.52/third_party/crabbyavif/BUILD.gn.me 2025-10-27 10:40:59.373768499 +0100 ++++ chromium-142.0.7444.52/third_party/crabbyavif/BUILD.gn 2025-10-27 10:45:12.142749942 +0100 +@@ -197,12 +197,11 @@ rust_static_library("crabbyavif") { + "dav1d", + "libyuv", + "capi", +- "disable_cfi", + ] + + # Required for disable_cfi feature. + configs -= [ "//build/config/compiler:disallow_unstable_features" ] +- rustflags = [ "-Zallow-features=sanitize" ] ++ rustflags = [ "-Zallow-features=no_sanitize" ] + + public_deps = [ ":header_files" ] + deps = [ diff --git a/chromium-142-dawn-commit-hash.patch b/chromium-142-dawn-commit-hash.patch new file mode 100644 index 0000000..d0629a6 --- /dev/null +++ b/chromium-142-dawn-commit-hash.patch @@ -0,0 +1,18 @@ +Fix FTBFS + +../../components/viz/host/gpu_host_impl.cc -o obj/components/viz/host/host/gpu_host_impl.o +../../components/viz/host/gpu_host_impl.cc:30:10: fatal error: 'gpu/webgpu/dawn_commit_hash.h' file not found + 30 | #include "gpu/webgpu/dawn_commit_hash.h" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- /dev/null ++++ b/gpu/webgpu/dawn_commit_hash.h +@@ -0,0 +1,8 @@ ++/* Generated by lastchange.py, do not edit.*/ ++ ++#ifndef GPU_WEBGPU_DAWN_COMMIT_HASH_H_ ++#define GPU_WEBGPU_DAWN_COMMIT_HASH_H_ ++ ++#define DAWN_COMMIT_HASH "cee9cb0d67e749bf42f5e90cb3b8a6f525dbb920" ++ ++#endif // GPU_WEBGPU_DAWN_COMMIT_HASH_H_ diff --git a/chromium-142-missing-include-for-form_field_data.patch b/chromium-142-missing-include-for-form_field_data.patch new file mode 100644 index 0000000..2fcdbb5 --- /dev/null +++ b/chromium-142-missing-include-for-form_field_data.patch @@ -0,0 +1,32 @@ +commit 069d424e41f42c6f4a4551334eafc7cfaed6e880 +Author: Nathan Pratta Teodosio +Date: Mon Oct 13 02:29:29 2025 -0700 + + Add missing include for FormFieldData type completeness. + + Bug: 450752866 + Change-Id: I25b2d6cd627063e006014289de68d2ecc70a2db7 + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7030724 + Reviewed-by: Christoph Schwering + Reviewed-by: Jihad Hanna + Commit-Queue: Jihad Hanna + Reviewed-by: Matthias Körber + Cr-Commit-Position: refs/heads/main@{#1528799} + +diff --git a/components/autofill/core/browser/form_parsing/autofill_scanner.h b/components/autofill/core/browser/form_parsing/autofill_scanner.h +index 844526a5f77..eab073266e8 100644 +--- a/components/autofill/core/browser/form_parsing/autofill_scanner.h ++++ b/components/autofill/core/browser/form_parsing/autofill_scanner.h +@@ -10,11 +10,10 @@ + #include "base/compiler_specific.h" + #include "base/containers/span.h" + #include "base/memory/raw_span.h" ++#include "components/autofill/core/common/form_field_data.h" + + namespace autofill { + +-class FormFieldData; +- + // A helper class for parsing a stream of |FormFieldData|'s with lookahead. + class AutofillScanner { + private: diff --git a/chromium-142-python-3.9-ftbfs.patch b/chromium-142-python-3.9-ftbfs.patch new file mode 100644 index 0000000..093205a --- /dev/null +++ b/chromium-142-python-3.9-ftbfs.patch @@ -0,0 +1,65 @@ +Fix FTBFS caused by old python-3.9.x on el9 + +File "/builddir/build/BUILD/chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py", line 81, in EnumDict + type: str | None +TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' + +File "/builddir/build/BUILD/chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py", line 106, in + + ) -> tuple[str | None, ExtractionErrors]: + +TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' + +File "/builddir/build/BUILD/chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py", line 643, in + + def _GetObsoleteReason(node: xml.dom.minidom.Element) -> str | None: + +TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' + +diff -up chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py.me chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py +--- chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py.me 2025-10-28 20:14:35.609014587 +0100 ++++ chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py 2025-10-28 20:30:30.123641508 +0100 +@@ -21,6 +21,7 @@ from typing import Any, TypedDict + import xml.dom.minidom + + import histogram_configuration_model ++from typing import Optional, Union + + sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) + import xml_utils +@@ -78,7 +79,7 @@ class EnumDict(TypedDict, total=False): + """A dict representing an enum.""" + + name: str +- type: str | None ++ type: Optional[str] + buckets: list[_BucketDict] + summary: str + +@@ -102,7 +103,7 @@ def ExpandHistogramNameWithSuffixes( + suffix_name: str, + histogram_name: str, + histogram_suffixes_node: xml.dom.minidom.Element, +-) -> tuple[str | None, ExtractionErrors]: ++) -> tuple[Optional[str], ExtractionErrors]: + """Creates a new histogram name based on a histogram suffix. + + Args: +@@ -304,7 +305,7 @@ def _ExtractOwners(node: xml.dom.minidom + + def _ExtractImprovementDirection( + histogram_node: xml.dom.minidom.Element, +-) -> tuple[str | None, ExtractionErrors]: ++) -> tuple[Union[str, None], ExtractionErrors]: + """Extracts improvement direction from the given histogram element, if any. + + Args: +@@ -639,7 +640,7 @@ def ExtractVariantsFromXmlTree( + return variants_dict, errors + + +-def _GetObsoleteReason(node: xml.dom.minidom.Element) -> str | None: ++def _GetObsoleteReason(node: xml.dom.minidom.Element) -> Optional[str]: + """If the node's histogram is obsolete, returns a string explanation. + + Otherwise, returns None. diff --git a/chromium-126-split-threshold-for-reg-with-hint.patch b/chromium-142-split-threshold-for-reg-with-hint.patch similarity index 53% rename from chromium-126-split-threshold-for-reg-with-hint.patch rename to chromium-142-split-threshold-for-reg-with-hint.patch index 4ae1f29..8caaf42 100644 --- a/chromium-126-split-threshold-for-reg-with-hint.patch +++ b/chromium-142-split-threshold-for-reg-with-hint.patch @@ -1,15 +1,13 @@ -diff -up chromium-126.0.6478.26/build/config/compiler/BUILD.gn.me chromium-126.0.6478.26/build/config/compiler/BUILD.gn ---- chromium-126.0.6478.26/build/config/compiler/BUILD.gn.me 2024-06-02 14:02:52.516602574 +0200 -+++ chromium-126.0.6478.26/build/config/compiler/BUILD.gn 2024-06-02 14:17:24.527503540 +0200 -@@ -575,24 +575,6 @@ config("compiler") { +diff -up chromium-142.0.7444.52/build/config/compiler/BUILD.gn.split-threshold-for-reg-with-hint chromium-142.0.7444.52/build/config/compiler/BUILD.gn +--- chromium-142.0.7444.52/build/config/compiler/BUILD.gn.split-threshold-for-reg-with-hint 2025-10-28 19:31:53.885979941 +0100 ++++ chromium-142.0.7444.52/build/config/compiler/BUILD.gn 2025-10-28 19:39:50.279574752 +0100 +@@ -680,22 +680,6 @@ config("compiler") { } } - # TODO(crbug.com/40283598): This causes binary size growth and potentially - # other problems. -- # TODO(crbug.com/40284925): This isn't supported by Cronet's mainline llvm version. -- if (default_toolchain != "//build/toolchain/cros:target" && -- !llvm_android_mainline) { +- if (default_toolchain != "//build/toolchain/cros:target") { - cflags += [ - "-mllvm", - "-split-threshold-for-reg-with-hint=0", diff --git a/chromium-142-system-brotli.patch b/chromium-142-system-brotli.patch new file mode 100644 index 0000000..c1ccfb8 --- /dev/null +++ b/chromium-142-system-brotli.patch @@ -0,0 +1,38 @@ +diff -up chromium-142.0.7444.52/net/filter/brotli_source_stream.cc.system-brotli chromium-142.0.7444.52/net/filter/brotli_source_stream.cc +--- chromium-142.0.7444.52/net/filter/brotli_source_stream.cc.system-brotli 2025-10-21 22:19:54.000000000 +0200 ++++ chromium-142.0.7444.52/net/filter/brotli_source_stream.cc 2025-10-26 16:55:51.220605842 +0100 +@@ -14,8 +14,8 @@ + #include "base/metrics/histogram_macros.h" + #include "net/base/io_buffer.h" + #include "net/filter/source_stream_type.h" +-#include "third_party/brotli/include/brotli/decode.h" +-#include "third_party/brotli/include/brotli/shared_dictionary.h" ++#include ++#include + + namespace net { + +diff -up chromium-142.0.7444.52/net/ssl/cert_compression.cc.system-brotli chromium-142.0.7444.52/net/ssl/cert_compression.cc +--- chromium-142.0.7444.52/net/ssl/cert_compression.cc.system-brotli 2025-10-21 22:19:54.000000000 +0200 ++++ chromium-142.0.7444.52/net/ssl/cert_compression.cc 2025-10-26 16:55:51.220845216 +0100 +@@ -9,7 +9,7 @@ + #include "third_party/boringssl/src/include/openssl/ssl.h" + + #if !defined(NET_DISABLE_BROTLI) +-#include "third_party/brotli/include/brotli/decode.h" ++#include + #endif + + namespace net { +diff -up chromium-142.0.7444.52/ui/base/resource/resource_bundle.cc.system-brotli chromium-142.0.7444.52/ui/base/resource/resource_bundle.cc +--- chromium-142.0.7444.52/ui/base/resource/resource_bundle.cc.system-brotli 2025-10-21 22:19:54.000000000 +0200 ++++ chromium-142.0.7444.52/ui/base/resource/resource_bundle.cc 2025-10-26 17:04:17.085726059 +0100 +@@ -37,7 +37,7 @@ + #include "build/build_config.h" + #include "net/filter/gzip_header.h" + #include "skia/ext/image_operations.h" +-#include "third_party/brotli/include/brotli/decode.h" ++#include + #include "third_party/skia/include/codec/SkPngRustDecoder.h" + #include "third_party/skia/include/core/SkBitmap.h" + #include "third_party/skia/include/core/SkColor.h" diff --git a/chromium.spec b/chromium.spec index 9f85f60..ad9b405 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,7 +244,7 @@ %endif Name: chromium -Version: 141.0.7390.122 +Version: 142.0.7444.59 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -266,7 +266,7 @@ Patch21: chromium-123-screen-ai-service.patch Patch82: chromium-98.0.4758.102-remoting-no-tests.patch # patch for using system brotli -Patch89: chromium-136-system-brotli.patch +Patch89: chromium-142-system-brotli.patch # patch for using system libxml Patch90: chromium-121-system-libxml.patch @@ -283,11 +283,23 @@ Patch93: chromium-141-csss_style_sheet.patch # Revert due to incorrect display of links on startpage in Darkmode Patch94: chromium-141-revert-remove-darkmode-image-policy.patch +# FTBFS - fatal error: 'gpu/webgpu/dawn_commit_hash.h' file not found +Patch95: chromium-142-dawn-commit-hash.patch + +# FTBFS - error: cannot find attribute `sanitize` in this scope +# --> ../../third_party/crabbyavif/src/src/capi/io.rs:210:41 +# | +# 210 | #[cfg_attr(feature = "disable_cfi", sanitize(cfi = "off"))] +Patch96: chromium-142-crabbyavif-ftbfs-old-rust.patch + +# FTBFS - /usr/include/bits/siginfo-consts.h:219:3: error: expected identifier +# 219 | SYS_SECCOMP = 1, /* Seccomp triggered. */ +Patch97: chromium-141-glibc-2.42-SYS_SECCOMP.patch + # system ffmpeg # need for old ffmpeg 5.x on epel9 Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch Patch129: chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch -Patch130: chromium-141-el9-ffmpeg-5.x-duration.patch # disable the check Patch131: chromium-107-proprietary-codecs.patch # fix tab crash with SIGTRAP error when using system ffmpeg @@ -302,6 +314,9 @@ Patch136: chromium-133-workaround-system-ffmpeg-whitelist.patch # file conflict with old kernel on el8/el9 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch +# fix ftbfs caused by old python-3.9 on el8 +Patch142: chromium-142-python-3.9-ftbfs.patch + # add correct path for Qt6Gui header and libs Patch150: chromium-124-qt6.patch @@ -340,7 +355,7 @@ Patch315: chromium-134-rust-libadler2.patch Patch316: chromium-122-clang-build-flags.patch # unknown warning option -Wno-nontrivial-memcall -Patch317: chromium-138-clang++-unknown-argument.patch +Patch317: chromium-142-clang++-unknown-argument.patch # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 @@ -351,7 +366,7 @@ Patch352: chromium-117-workaround_for_crash_on_BTI_capable_system.patch Patch353: chromium-127-aarch64-duplicate-case-value.patch # remove flag split-threshold-for-reg-with-hint, it's not supported in clang <= 17 -Patch354: chromium-126-split-threshold-for-reg-with-hint.patch +Patch354: chromium-142-split-threshold-for-reg-with-hint.patch # fix build error: no member named 'hardware_destructive_interference_size' in namespace 'std' Patch355: chromium-130-hardware_destructive_interference_size.patch @@ -387,7 +402,6 @@ Patch384: Rtc_base-system-arch.h-PPC.patch Patch386: 0004-third_party-crashpad-port-curl-transport-ppc64.patch Patch387: HACK-third_party-libvpx-use-generic-gnu.patch -Patch388: 0001-third-party-hwy-wrong-include.patch Patch389: HACK-debian-clang-disable-base-musttail.patch Patch390: HACK-debian-clang-disable-pa-musttail.patch Patch391: 0001-Add-ppc64-target-to-libaom.patch @@ -440,6 +454,10 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch %endif # upstream patches +# Fix FTBFS +# ../../base/containers/span.h:1387:63: error: arithmetic on a pointer to an incomplete type 'element_type' (aka 'const autofill::FormFieldData') +# 1387 | typename iterator::AssumeValid(data(), data(), data() + size()))); +Patch1000: chromium-142-missing-include-for-form_field_data.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -974,12 +992,17 @@ Qt6 UI for chromium. %patch -P92 -p1 -b .nodejs-checkversion %patch -P93 -p1 -b .ftbfs-csss_style_sheet %patch -P94 -p1 -R -b .revert-remove-darkmode-image-policy +%patch -P95 -p1 -b .dawn-commit-hash +%patch -P96 -p1 -b .crabbyavif-ftbfs-old-rust + +%if 0%{?fedora} > 43 +%patch -P97 -p1 -b .glibc-2.42-SYS_SECCOMP +%endif %if ! %{bundleffmpegfree} %if 0%{?rhel} == 9 %patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis %patch -P129 -p1 -b .el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE -%patch -P130 -p1 -b .ffmpeg-5.x-duration %patch -P133 -p1 -b .el9-ffmpeg-5.1.x %endif %patch -P131 -p1 -b .prop-codecs @@ -990,6 +1013,7 @@ Qt6 UI for chromium. %if 0%{?rhel} == 8 || 0%{?rhel} == 9 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict +%patch -P142 -p1 -b .python-3.9-ftbfs %endif %patch -P150 -p1 -b .qt6 @@ -1052,7 +1076,6 @@ Qt6 UI for chromium. %patch -P384 -p1 -b .Rtc_base-system-arch.h-PPC %patch -P386 -p1 -b .0004-third_party-crashpad-port-curl-transport-ppc64 %patch -P387 -p1 -b .HACK-third_party-libvpx-use-generic-gnu -%patch -P388 -p1 -b .0001-third-party-hwy-wrong-include.patch %patch -P389 -p1 -b .HACK-debian-clang-disable-base-musttail %patch -P390 -p1 -b .HACK-debian-clang-disable-pa-musttail %patch -P391 -p1 -b .0001-Add-ppc64-target-to-libaom @@ -1090,6 +1113,7 @@ Qt6 UI for chromium. %endif # Upstream patches +%patch -P1000 -p1 -b .missing-include-for-form_field_data.patch # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1721,6 +1745,18 @@ fi %endif %changelog +* Thu Oct 30 2025 Than Ngo - 142.0.7444.59-1 +- Update to 142.0.7444.59 + * Refreshed ppc64le patches + * Refreshed system-brotli patch + * Refreshed clang++-unknown-argument patch + * Refreshed split-threshold-for-reg-with-hint patch + * Fixed some FTBFS caused by missing header files + * Fixed FTBFS caused by old rust compiler + * Fixed FTBFS caused by new glibc-2.42 in Rawhide + * Fixed FTBFS caused by old python-3.9.x in EL8/9 + * Dropped obsoleted chromium-141-el9-ffmpeg-5.x-duration.patch for old ffmpeg on EL9 + * Wed Oct 22 2025 Than Ngo - 141.0.7390.122-1 - Update to 141.0.7390.122 * High CVE-2025-12036 chromium: Inappropriate implementation in V8 diff --git a/sources b/sources index beef471..32c4a88 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-141.0.7390.122-clean.tar.xz) = c57188e37a3432cf0a0e1cd0350b5a6b623576c94a7d2bae0cec852a28c3dd689a98b8646e22e9caf49f61eb05a1fc1c4a669f40f2644df2dacb2835e65fb2d6 +SHA512 (chromium-142.0.7444.59-clean.tar.xz) = 66de58d75d9fbf0bb11d45fc064897725731b51d232f7be20b5e7bd4bc3bc49092171243f1e4fa7b6e00f5b21af04c0416d79b2ba00ec5f019131e42dc09b0f4 From 7b1d533db7307255eed6a26da869fa3780646278 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 3 Nov 2025 09:15:55 +0100 Subject: [PATCH 210/244] Fixed FTBFS due to old ffmpeg-5.x on EL9 --- ...tch => chromium-142-el9-ffmpeg-5.1.x.patch | 44 +++++++++---------- chromium-142-el9-ffmpeg-5.x-duration.patch | 18 ++++++++ ...ust_alloc_error_handler_should_panic.patch | 20 +++++++++ 3 files changed, 59 insertions(+), 23 deletions(-) rename chromium-139-el9-ffmpeg-5.1.x.patch => chromium-142-el9-ffmpeg-5.1.x.patch (68%) create mode 100644 chromium-142-el9-ffmpeg-5.x-duration.patch create mode 100644 chromium-142-el9-rust_alloc_error_handler_should_panic.patch diff --git a/chromium-139-el9-ffmpeg-5.1.x.patch b/chromium-142-el9-ffmpeg-5.1.x.patch similarity index 68% rename from chromium-139-el9-ffmpeg-5.1.x.patch rename to chromium-142-el9-ffmpeg-5.1.x.patch index 992197c..fe526f7 100644 --- a/chromium-139-el9-ffmpeg-5.1.x.patch +++ b/chromium-142-el9-ffmpeg-5.1.x.patch @@ -1,7 +1,7 @@ -diff -up chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc ---- chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x 2025-07-06 20:30:36.125746197 +0200 -+++ chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc 2025-07-06 20:36:47.648896691 +0200 -@@ -784,8 +784,13 @@ bool AVStreamToVideoDecoderConfig(const +diff -up chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.cc +--- chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x 2025-11-01 22:14:10.116779876 +0100 ++++ chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.cc 2025-11-01 22:14:10.134140132 +0100 +@@ -800,8 +803,13 @@ bool AVStreamToVideoDecoderConfig(const } VideoTransformation video_transformation = VideoTransformation(); @@ -15,28 +15,26 @@ diff -up chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.cc.el9-ffmpeg-5.1.x ch switch (side_data.type) { case AV_PKT_DATA_DISPLAYMATRIX: { CHECK_EQ(side_data.size, sizeof(int32_t) * 3 * 3); -diff -up chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h ---- chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h.el9-ffmpeg-5.1.x 2025-06-25 00:02:26.000000000 +0200 -+++ chromium-139.0.7258.5/media/ffmpeg/ffmpeg_common.h 2025-07-06 20:30:36.131085710 +0200 -@@ -93,6 +93,7 @@ inline base::span AVPacke - base::span(packet.data, base::checked_cast(packet.size))); - } - +diff -up chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.h.el9-ffmpeg-5.1.x chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.h +--- chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.h.el9-ffmpeg-5.1.x 2025-10-24 18:42:30.000000000 +0200 ++++ chromium-142.0.7444.59/media/ffmpeg/ffmpeg_common.h 2025-11-02 08:06:48.997329630 +0100 +@@ -111,9 +111,13 @@ inline base::span AVCo + // https://ffmpeg.org/doxygen/trunk/structAVCodecParameters.html#a29643cfd94231e2d148a5d17b08d115b + // ffmpeg documentation: `nb_coded_side_data` is the amount of entries in + // `coded_side_data`. +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 31, 102) - inline base::span AVFormatContextToSpan( - const AVFormatContext* codec_context) { - // SAFETY: -@@ -114,6 +115,7 @@ inline base::span AVCo + return UNSAFE_BUFFERS( base::span(codecpar->coded_side_data, base::checked_cast(codecpar->nb_coded_side_data))); - } ++#else ++ return base::span(); +#endif + } // Converts an int64_t timestamp in |time_base| units to a base::TimeDelta. - // For example if |timestamp| equals 11025 and |time_base| equals {1, 44100} -diff -up chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc ---- chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc.el9-ffmpeg-5.1.x 2025-06-25 00:02:26.000000000 +0200 -+++ chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc 2025-07-06 20:30:36.131372795 +0200 +diff -up chromium-142.0.7444.59/media/filters/audio_video_metadata_extractor.cc.el9-ffmpeg-5.1.x chromium-142.0.7444.59/media/filters/audio_video_metadata_extractor.cc +--- chromium-142.0.7444.59/media/filters/audio_video_metadata_extractor.cc.el9-ffmpeg-5.1.x 2025-10-24 18:42:30.000000000 +0200 ++++ chromium-142.0.7444.59/media/filters/audio_video_metadata_extractor.cc 2025-11-01 22:14:10.124748634 +0100 @@ -109,17 +109,33 @@ bool AudioVideoMetadataExtractor::Extrac container_info.type = format_context->iformat->name; ExtractDictionary(format_context->metadata, &container_info.tags); @@ -95,9 +93,9 @@ diff -up chromium-139.0.7258.5/media/filters/audio_video_metadata_extractor.cc.e extracted_ = true; return true; -diff -up chromium-139.0.7258.5/media/filters/media_file_checker.cc.el9-ffmpeg-5.1.x chromium-139.0.7258.5/media/filters/media_file_checker.cc ---- chromium-139.0.7258.5/media/filters/media_file_checker.cc.el9-ffmpeg-5.1.x 2025-06-25 00:02:26.000000000 +0200 -+++ chromium-139.0.7258.5/media/filters/media_file_checker.cc 2025-07-06 20:30:36.131615487 +0200 +diff -up chromium-142.0.7444.59/media/filters/media_file_checker.cc.el9-ffmpeg-5.1.x chromium-142.0.7444.59/media/filters/media_file_checker.cc +--- chromium-142.0.7444.59/media/filters/media_file_checker.cc.el9-ffmpeg-5.1.x 2025-10-24 18:42:30.000000000 +0200 ++++ chromium-142.0.7444.59/media/filters/media_file_checker.cc 2025-11-01 22:14:10.125099595 +0100 @@ -64,6 +64,10 @@ bool MediaFileChecker::Start(base::TimeD // Remember the codec context for any decodable audio or video streams. bool found_streams = false; diff --git a/chromium-142-el9-ffmpeg-5.x-duration.patch b/chromium-142-el9-ffmpeg-5.x-duration.patch new file mode 100644 index 0000000..8b42cb2 --- /dev/null +++ b/chromium-142-el9-ffmpeg-5.x-duration.patch @@ -0,0 +1,18 @@ +Fix FTBFS on EL9 due to old ffmpeg-5.x + +diff -up chromium-142.0.7444.59/media/filters/legacy_audio_file_reader.cc.me chromium-142.0.7444.59/media/filters/legacy_audio_file_reader.cc +--- chromium-142.0.7444.59/media/filters/legacy_audio_file_reader.cc.me 2025-11-02 08:20:16.949092776 +0100 ++++ chromium-142.0.7444.59/media/filters/legacy_audio_file_reader.cc 2025-11-02 08:22:01.331132435 +0100 +@@ -273,10 +273,10 @@ bool LegacyAudioFileReader::OnNewFrame( + // silence from being output. In the case where we are also discarding some + // portion of the packet (as indicated by a negative pts), we further want to + // adjust the duration downward by however much exists before zero. +- if (audio_codec_ == AudioCodec::kAAC && frame->duration) { ++ if (audio_codec_ == AudioCodec::kAAC && frame->pkt_duration) { + const base::TimeDelta pkt_duration = ConvertFromTimeBase( + UNSAFE_TODO(glue_->format_context()->streams[stream_index_])->time_base, +- frame->duration + std::min(static_cast(0), frame->pts)); ++ frame->pkt_duration + std::min(static_cast(0), frame->pts)); + const base::TimeDelta frame_duration = + base::Seconds(frames_read / static_cast(sample_rate_)); + diff --git a/chromium-142-el9-rust_alloc_error_handler_should_panic.patch b/chromium-142-el9-rust_alloc_error_handler_should_panic.patch new file mode 100644 index 0000000..5b07869 --- /dev/null +++ b/chromium-142-el9-rust_alloc_error_handler_should_panic.patch @@ -0,0 +1,20 @@ +Fix FTBFS due to old rust compiler on EL9 + +error: undefined symbol: __rust_alloc_error_handler_should_panic + + +diff -up chromium-142.0.7444.52/build/rust/allocator/lib.rs.me chromium-142.0.7444.52/build/rust/allocator/lib.rs +--- chromium-142.0.7444.52/build/rust/allocator/lib.rs.me 2025-10-31 12:29:40.849457901 +0100 ++++ chromium-142.0.7444.52/build/rust/allocator/lib.rs 2025-10-31 12:30:37.753590615 +0100 +@@ -101,6 +101,11 @@ mod both_allocators { + #[linkage = "weak"] + static __rust_no_alloc_shim_is_unstable: u8 = 0; + ++ // Mangle the symbol name as rustc (1.84) expects on EL9 ++ #[no_mangle] ++ #[linkage = "weak"] ++ static __rust_alloc_error_handler_should_panic: u8 = 0; ++ + // Mangle the symbol name as rustc expects. + #[rustc_std_internal_symbol] + #[allow(non_upper_case_globals)] From aa25e963da816d712ef34c970c9eb9cf16fa423d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 3 Nov 2025 09:21:06 +0100 Subject: [PATCH 211/244] Update spec file for the FTBFS on EL9 --- chromium.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index ad9b405..f19f0e1 100644 --- a/chromium.spec +++ b/chromium.spec @@ -300,12 +300,13 @@ Patch97: chromium-141-glibc-2.42-SYS_SECCOMP.patch # need for old ffmpeg 5.x on epel9 Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch Patch129: chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch +Patch130: chromium-142-el9-ffmpeg-5.x-duration.patch # disable the check Patch131: chromium-107-proprietary-codecs.patch # fix tab crash with SIGTRAP error when using system ffmpeg Patch132: chromium-118-sigtrap_system_ffmpeg.patch # need for old ffmpeg 6.0/5.x on epel9 and fedora < 40 -Patch133: chromium-139-el9-ffmpeg-5.1.x.patch +Patch133: chromium-142-el9-ffmpeg-5.1.x.patch # revert, it causes build error: use of undeclared identifier 'AVFMT_FLAG_NOH264PARSE' Patch135: chromium-133-disable-H.264-video-parser-during-demuxing.patch # Workaround for youtube stop working @@ -343,6 +344,10 @@ Patch311: chromium-rust-no-alloc-shim-is-unstable.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch +# Fix FTBFS on EL9 +# - error: undefined symbol: __rust_alloc_error_handler_should_panic +Patch313: chromium-142-el9-rust_alloc_error_handler_should_panic.patch + # old rust version causes build error on el8: # error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope Patch314: chromium-136-rust-skrifa-build-error.patch @@ -1003,6 +1008,7 @@ Qt6 UI for chromium. %if 0%{?rhel} == 9 %patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis %patch -P129 -p1 -b .el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE +%patch -P130 -p1 -b .el9-ffmpeg-5.x-duration %patch -P133 -p1 -b .el9-ffmpeg-5.1.x %endif %patch -P131 -p1 -b .prop-codecs @@ -1036,6 +1042,7 @@ Qt6 UI for chromium. %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings %patch -P311 -p1 -b .rust-no-alloc-shim-is-unstable %patch -P312 -p1 -b .fstack-protector-strong +%patch -P313 -p1 -b .el9-rust_alloc_error_handler_should_panic %if 0%{?rhel} && 0%{?rhel} < 10 %patch -P315 -p1 -b .rust-libadler2 From 1abce2e2df335937a50bd3df7ba9e4fb0ec27b5a Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 4 Nov 2025 13:37:09 +0100 Subject: [PATCH 212/244] Add CVEs in changelog * High CVE-2025-12428: Type Confusion in V8 * High CVE-2025-12429: Inappropriate implementation in V8 * High CVE-2025-12430: Object lifecycle issue in Media * High CVE-2025-12431: Inappropriate implementation in Extensions * High CVE-2025-12432: Race in V8 * High CVE-2025-12433: Inappropriate implementation in V8 * High CVE-2025-12036: Inappropriate implementation in V8 * Medium CVE-2025-12434: Race in Storage * Medium CVE-2025-12435: Incorrect security UI in Omnibox * Medium CVE-2025-12436: Policy bypass in Extensions * Medium CVE-2025-12437: Use after free in PageInfo * Medium CVE-2025-12438: Use after free in Ozone * Medium CVE-2025-12439: Inappropriate implementation in App-Bound Encryption * Low CVE-2025-12440: Inappropriate implementation in Autofill * Medium CVE-2025-12441: Out of bounds read in V8 * Medium CVE-2025-12443: Out of bounds read in WebXR * Low CVE-2025-12444: Incorrect security UI in Fullscreen UI * Low CVE-2025-12445: Policy bypass in Extensions * Low CVE-2025-12446: Incorrect security UI in SplitView * Low CVE-2025-12447: Incorrect security UI in Omnibox --- chromium.spec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/chromium.spec b/chromium.spec index f19f0e1..f6915ee 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1754,6 +1754,26 @@ fi %changelog * Thu Oct 30 2025 Than Ngo - 142.0.7444.59-1 - Update to 142.0.7444.59 + * High CVE-2025-12428: Type Confusion in V8 + * High CVE-2025-12429: Inappropriate implementation in V8 + * High CVE-2025-12430: Object lifecycle issue in Media + * High CVE-2025-12431: Inappropriate implementation in Extensions + * High CVE-2025-12432: Race in V8 + * High CVE-2025-12433: Inappropriate implementation in V8 + * High CVE-2025-12036: Inappropriate implementation in V8 + * Medium CVE-2025-12434: Race in Storage + * Medium CVE-2025-12435: Incorrect security UI in Omnibox + * Medium CVE-2025-12436: Policy bypass in Extensions + * Medium CVE-2025-12437: Use after free in PageInfo + * Medium CVE-2025-12438: Use after free in Ozone + * Medium CVE-2025-12439: Inappropriate implementation in App-Bound Encryption + * Low CVE-2025-12440: Inappropriate implementation in Autofill + * Medium CVE-2025-12441: Out of bounds read in V8 + * Medium CVE-2025-12443: Out of bounds read in WebXR + * Low CVE-2025-12444: Incorrect security UI in Fullscreen UI + * Low CVE-2025-12445: Policy bypass in Extensions + * Low CVE-2025-12446: Incorrect security UI in SplitView + * Low CVE-2025-12447: Incorrect security UI in Omnibox * Refreshed ppc64le patches * Refreshed system-brotli patch * Refreshed clang++-unknown-argument patch From aacc24ed2bce0af0d2f09b1c7f3c7bb693fff708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luan=20Vitor=20Simi=C3=A3o=20oliveira?= Date: Tue, 4 Nov 2025 21:43:59 -0300 Subject: [PATCH 213/244] reduce nvidia power consumption during video accel environment variable added on latest driver 580.105.08, this halves power consumption with no performance regression --- chromium.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/chromium.conf b/chromium.conf index 6e48cb8..c66a04a 100644 --- a/chromium.conf +++ b/chromium.conf @@ -42,6 +42,7 @@ case "$GRAPHIC_DRIVER" in # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs FEATURES+=",VaapiOnNvidiaGPUs" + export CUDA_DISABLE_PERF_BOOST=1 ;; *) FEATURES+=",AcceleratedVideoEncoder" From 1385ef1e2dab00148a1ee36d3ba52672659227f4 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Wed, 5 Nov 2025 14:30:45 +0100 Subject: [PATCH 214/244] Rebuilt for FFmpeg 8 --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index f6915ee..4f9bc8d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.59 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1752,6 +1752,9 @@ fi %endif %changelog +* Wed Nov 05 2025 Dominik Mierzejewski - 142.0.7444.59-2 +- Rebuilt for FFmpeg 8 + * Thu Oct 30 2025 Than Ngo - 142.0.7444.59-1 - Update to 142.0.7444.59 * High CVE-2025-12428: Type Confusion in V8 From 05db1f4ea956d529ad311d3c33204f1a1073e949 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 6 Nov 2025 11:00:11 +0100 Subject: [PATCH 215/244] - Update to 142.0.7444.134 * High CVE-2025-12725: Out of bounds write in WebGPU * High CVE-2025-12726: Inappropriate implementation in Views * High CVE-2025-12727: Inappropriate implementation in V8 * Medium CVE-2025-12728: Inappropriate implementation in Omnibox * Medium CVE-2025-12729: Inappropriate implementation in Omnibox --- chromium.spec | 12 ++++++++++-- sources | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 4f9bc8d..f5c2236 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 142.0.7444.59 -Release: 2%{?dist} +Version: 142.0.7444.134 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1752,6 +1752,14 @@ fi %endif %changelog +* Thu Nov 06 2025 Than Ngo - 142.0.7444.134-1 +- Update to 142.0.7444.134 + * High CVE-2025-12725: Out of bounds write in WebGPU + * High CVE-2025-12726: Inappropriate implementation in Views + * High CVE-2025-12727: Inappropriate implementation in V8 + * Medium CVE-2025-12728: Inappropriate implementation in Omnibox + * Medium CVE-2025-12729: Inappropriate implementation in Omnibox + * Wed Nov 05 2025 Dominik Mierzejewski - 142.0.7444.59-2 - Rebuilt for FFmpeg 8 diff --git a/sources b/sources index 32c4a88..2cad739 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-142.0.7444.59-clean.tar.xz) = 66de58d75d9fbf0bb11d45fc064897725731b51d232f7be20b5e7bd4bc3bc49092171243f1e4fa7b6e00f5b21af04c0416d79b2ba00ec5f019131e42dc09b0f4 +SHA512 (chromium-142.0.7444.134-clean.tar.xz) = 3136555e8f372a0a7578c292fdb3742d86db0b9bdad489d2e3136ddf80ec60352a9f009d36282ada5b1a7a6d808c13109a9be6d00bc0081e28a528aee2955efb From e5504d6b935c6001988fe9b51e5d4d258ddd4b16 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Tue, 11 Nov 2025 17:19:38 +0100 Subject: [PATCH 216/244] Rebuilt for FFmpeg 8 --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index f5c2236..7e0339b 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.134 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1752,6 +1752,9 @@ fi %endif %changelog +* Tue Nov 11 2025 Dominik Mierzejewski - 142.0.7444.134-2 +- Rebuilt for FFmpeg 8 + * Thu Nov 06 2025 Than Ngo - 142.0.7444.134-1 - Update to 142.0.7444.134 * High CVE-2025-12725: Out of bounds write in WebGPU From 50983cda3a8d93f01aba29f350d256e7c2194743 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 12 Nov 2025 12:04:30 +0100 Subject: [PATCH 217/244] - Update to 142.0.7444.162 * High CVE-2025-13042: Inappropriate implementation in V8 --- chromium.spec | 8 ++++++-- sources | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 7e0339b..abbef7e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 142.0.7444.134 -Release: 2%{?dist} +Version: 142.0.7444.162 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1752,6 +1752,10 @@ fi %endif %changelog +* Wed Nov 12 2025 Than Ngo - 142.0.7444.162-1 +- Update to 142.0.7444.162 + * High CVE-2025-13042: Inappropriate implementation in V8 + * Tue Nov 11 2025 Dominik Mierzejewski - 142.0.7444.134-2 - Rebuilt for FFmpeg 8 diff --git a/sources b/sources index 2cad739..c42340c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-142.0.7444.134-clean.tar.xz) = 3136555e8f372a0a7578c292fdb3742d86db0b9bdad489d2e3136ddf80ec60352a9f009d36282ada5b1a7a6d808c13109a9be6d00bc0081e28a528aee2955efb +SHA512 (chromium-142.0.7444.162-clean.tar.xz) = 8033999c0f37f42413c7cd8ec316f2f17c2840ba145b8fa1a7863ef3ac0f0844087336ec540c6b17f8979835be1c1b22dfb22c98f4dab9afe803588358f5cc62 From cd7bcb965cccbd6c0efe0633bb5b9cee629fd390 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 13 Nov 2025 17:20:14 +0100 Subject: [PATCH 218/244] Fix FTBFS - epel9 has new rust-1.88, dropp chromium-134-rust-libadler2.patch --- chromium-134-rust-libadler2.patch | 14 -------------- chromium.spec | 5 ----- 2 files changed, 19 deletions(-) delete mode 100644 chromium-134-rust-libadler2.patch diff --git a/chromium-134-rust-libadler2.patch b/chromium-134-rust-libadler2.patch deleted file mode 100644 index cada806..0000000 --- a/chromium-134-rust-libadler2.patch +++ /dev/null @@ -1,14 +0,0 @@ -Fix warning: libadler2 not found - -diff -up chromium-134.0.6998.23/build/rust/std/BUILD.gn.than chromium-134.0.6998.23/build/rust/std/BUILD.gn ---- chromium-134.0.6998.23/build/rust/std/BUILD.gn.than 2025-02-24 09:47:57.560506410 +0100 -+++ chromium-134.0.6998.23/build/rust/std/BUILD.gn 2025-02-24 09:48:02.335676712 +0100 -@@ -89,7 +89,7 @@ if (toolchain_has_rust) { - # These are no longer present in the Windows toolchain. - stdlib_files += [ - "addr2line", -- "adler2", -+ "adler", - "gimli", - "libc", - "memchr", diff --git a/chromium.spec b/chromium.spec index abbef7e..c7c70f2 100644 --- a/chromium.spec +++ b/chromium.spec @@ -352,10 +352,6 @@ Patch313: chromium-142-el9-rust_alloc_error_handler_should_panic.patch # error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope Patch314: chromium-136-rust-skrifa-build-error.patch -# build error: libadler2 not found, rust-1.86 or newer replaces adler with adler2 -# we have rust-1.86 in f41 and newer -Patch315: chromium-134-rust-libadler2.patch - # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch @@ -1045,7 +1041,6 @@ Qt6 UI for chromium. %patch -P313 -p1 -b .el9-rust_alloc_error_handler_should_panic %if 0%{?rhel} && 0%{?rhel} < 10 -%patch -P315 -p1 -b .rust-libadler2 %patch -P354 -p1 -b .split-threshold-for-reg-with-hint %endif %patch -P316 -p1 -b .clang-build-flags From ed7df45b804bbccc71914ea3bb0ffff90955523e Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 14 Nov 2025 08:10:40 +0900 Subject: [PATCH 219/244] Rebuild for ffmpeg 8 again --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index c7c70f2..d9452f5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.162 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1747,6 +1747,9 @@ fi %endif %changelog +* Thu Nov 13 2025 Mamoru TASAKA - 142.0.7444.162-2 +- Rebuild for ffmpeg 8 again + * Wed Nov 12 2025 Than Ngo - 142.0.7444.162-1 - Update to 142.0.7444.162 * High CVE-2025-13042: Inappropriate implementation in V8 From 6f66ead77dacbdd3b1623bfe30057d41b2aa4005 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 14 Nov 2025 21:11:22 +0100 Subject: [PATCH 220/244] Fix FTBFS caused by rust-1.88 on EL9 --- ...2-el9-rust-no-alloc-shim-is-unstable.patch | 0 ...ust_alloc_error_handler_should_panic.patch | 31 +++++++++---------- chromium.spec | 17 +++++----- 3 files changed, 24 insertions(+), 24 deletions(-) rename chromium-rust-no-alloc-shim-is-unstable.patch => chromium-142-el9-rust-no-alloc-shim-is-unstable.patch (100%) diff --git a/chromium-rust-no-alloc-shim-is-unstable.patch b/chromium-142-el9-rust-no-alloc-shim-is-unstable.patch similarity index 100% rename from chromium-rust-no-alloc-shim-is-unstable.patch rename to chromium-142-el9-rust-no-alloc-shim-is-unstable.patch diff --git a/chromium-142-el9-rust_alloc_error_handler_should_panic.patch b/chromium-142-el9-rust_alloc_error_handler_should_panic.patch index 5b07869..032c4a2 100644 --- a/chromium-142-el9-rust_alloc_error_handler_should_panic.patch +++ b/chromium-142-el9-rust_alloc_error_handler_should_panic.patch @@ -1,20 +1,17 @@ -Fix FTBFS due to old rust compiler on EL9 - -error: undefined symbol: __rust_alloc_error_handler_should_panic - - -diff -up chromium-142.0.7444.52/build/rust/allocator/lib.rs.me chromium-142.0.7444.52/build/rust/allocator/lib.rs ---- chromium-142.0.7444.52/build/rust/allocator/lib.rs.me 2025-10-31 12:29:40.849457901 +0100 -+++ chromium-142.0.7444.52/build/rust/allocator/lib.rs 2025-10-31 12:30:37.753590615 +0100 -@@ -101,6 +101,11 @@ mod both_allocators { - #[linkage = "weak"] - static __rust_no_alloc_shim_is_unstable: u8 = 0; +diff -up chromium-142.0.7444.162/build/rust/allocator/lib.rs.el9-rust_alloc_error_handler_should_panic chromium-142.0.7444.162/build/rust/allocator/lib.rs +--- chromium-142.0.7444.162/build/rust/allocator/lib.rs.el9-rust_alloc_error_handler_should_panic 2025-11-12 09:39:31.616713829 +0100 ++++ chromium-142.0.7444.162/build/rust/allocator/lib.rs 2025-11-14 11:43:32.115426831 +0100 +@@ -96,6 +96,13 @@ mod both_allocators { + 0 + } -+ // Mangle the symbol name as rustc (1.84) expects on EL9 -+ #[no_mangle] ++ // Mangle the symbol name as rustc (1.88) expects on EL9 ++ #[rustc_std_internal_symbol] + #[linkage = "weak"] -+ static __rust_alloc_error_handler_should_panic: u8 = 0; ++ fn __rust_alloc_error_handler_should_panic() -> u8 { ++ 0 ++ } + - // Mangle the symbol name as rustc expects. - #[rustc_std_internal_symbol] - #[allow(non_upper_case_globals)] + // Mangle the symbol name as rustc (1.84) expects on EL9 + #[no_mangle] + #[linkage = "weak"] diff --git a/chromium.spec b/chromium.spec index d9452f5..18f6a36 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.162 -Release: 2%{?dist} +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -338,11 +338,11 @@ Patch309: chromium-132-el8-unsupport-rustc-flags.patch # Fix rhbz#2387446, FTBFS with rust-1.89.0 Patch310: chromium-139-rust-FTBFS-suppress-warnings.patch -# Fix FTBFS: undefined symbol: __rust_no_alloc_shim_is_unstable -Patch311: chromium-rust-no-alloc-shim-is-unstable.patch - # enable fstack-protector-strong -Patch312: chromium-123-fstack-protector-strong.patch +Patch311: chromium-123-fstack-protector-strong.patch + +# Fix FTBFS: undefined symbol: __rust_no_alloc_shim_is_unstable on EL9 +Patch312: chromium-142-el9-rust-no-alloc-shim-is-unstable.patch # Fix FTBFS on EL9 # - error: undefined symbol: __rust_alloc_error_handler_should_panic @@ -1036,9 +1036,12 @@ Qt6 UI for chromium. %endif %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings -%patch -P311 -p1 -b .rust-no-alloc-shim-is-unstable -%patch -P312 -p1 -b .fstack-protector-strong +%patch -P311 -p1 -b .fstack-protector-strong + +%if 0%{?rhel} == 9 +%patch -P312 -p1 -b .el9-rust-no-alloc-shim-is-unstable %patch -P313 -p1 -b .el9-rust_alloc_error_handler_should_panic +%endif %if 0%{?rhel} && 0%{?rhel} < 10 %patch -P354 -p1 -b .split-threshold-for-reg-with-hint From 6cdfef9f8985abcb76c99875c3dbdaaee3958d1c Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 15 Nov 2025 11:18:32 +0100 Subject: [PATCH 221/244] Disable LensOverlay feature by default Google Lens does not work in chromium provided by Fedora, it displays the following error message when attempting to use it: Something went wrong Couldn't load this panel, try again --- chromium.conf | 3 +++ chromium.spec | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/chromium.conf b/chromium.conf index c66a04a..24ecd8e 100644 --- a/chromium.conf +++ b/chromium.conf @@ -17,6 +17,7 @@ else NATIVE_WAYLAND=off fi +DISABLE_FEATURES="LensOverlay" FEATURES="AllowQt" CHROMIUM_FLAGS=" --enable-chrome-browser-cloud-management" if [ "$NATIVE_WAYLAND" == "on" ] ; then @@ -52,6 +53,7 @@ esac if [ "$MODE" != "none" ] ; then # chromium in VM, running with standard setting CHROMIUM_FLAGS="" + DISABLE_FEATURES="" FEATURES="" fi @@ -65,4 +67,5 @@ if [ "$WEB_DARKMODE" == "on" ] ; then fi fi +[ -z "$DISABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --disable-features=$DISABLE_FEATURES" [ -z "$FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$FEATURES" diff --git a/chromium.spec b/chromium.spec index 18f6a36..98cdb79 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.162 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1750,6 +1750,9 @@ fi %endif %changelog +* Sat Nov 15 2025 LuK1337 - 142.0.7444.162-2 +- Disable LensOverlay feature by default + * Thu Nov 13 2025 Mamoru TASAKA - 142.0.7444.162-2 - Rebuild for ffmpeg 8 again From be4261aa12a6b2341a55b22f9d114ff5a95a5de0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 18 Nov 2025 16:51:14 +0100 Subject: [PATCH 222/244] - Update to 142.0.7444.175 * High CVE-2025-13223: Type Confusion in V8 * High CVE-2025-13224: Type Confusion in V8 --- chromium-142-dawn-commit-hash.patch | 18 ------------------ chromium.conf | 18 +++++++++--------- chromium.spec | 13 +++++++------ sources | 2 +- 4 files changed, 17 insertions(+), 34 deletions(-) delete mode 100644 chromium-142-dawn-commit-hash.patch diff --git a/chromium-142-dawn-commit-hash.patch b/chromium-142-dawn-commit-hash.patch deleted file mode 100644 index d0629a6..0000000 --- a/chromium-142-dawn-commit-hash.patch +++ /dev/null @@ -1,18 +0,0 @@ -Fix FTBFS - -../../components/viz/host/gpu_host_impl.cc -o obj/components/viz/host/host/gpu_host_impl.o -../../components/viz/host/gpu_host_impl.cc:30:10: fatal error: 'gpu/webgpu/dawn_commit_hash.h' file not found - 30 | #include "gpu/webgpu/dawn_commit_hash.h" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ---- /dev/null -+++ b/gpu/webgpu/dawn_commit_hash.h -@@ -0,0 +1,8 @@ -+/* Generated by lastchange.py, do not edit.*/ -+ -+#ifndef GPU_WEBGPU_DAWN_COMMIT_HASH_H_ -+#define GPU_WEBGPU_DAWN_COMMIT_HASH_H_ -+ -+#define DAWN_COMMIT_HASH "cee9cb0d67e749bf42f5e90cb3b8a6f525dbb920" -+ -+#endif // GPU_WEBGPU_DAWN_COMMIT_HASH_H_ diff --git a/chromium.conf b/chromium.conf index 24ecd8e..28573a1 100644 --- a/chromium.conf +++ b/chromium.conf @@ -18,7 +18,7 @@ else fi DISABLE_FEATURES="LensOverlay" -FEATURES="AllowQt" +ENABLE_FEATURES="AllowQt" CHROMIUM_FLAGS=" --enable-chrome-browser-cloud-management" if [ "$NATIVE_WAYLAND" == "on" ] ; then FEATURES+=",WaylandLinuxDrmSyncobj,WaylandPerSurfaceScale,WaylandUiScale" @@ -29,24 +29,24 @@ else CHROMIUM_FLAGS+=" --enable-gpu-rasterization" fi -FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" +ENABLE_FEATURES+=",AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" case "$GRAPHIC_DRIVER" in amd|intel) # Need new mesa with AMD multi planes support, is supported in fedora >= 40 (mesa-24.1.1 or newer) # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165 CHROMIUM_FLAGS+=" --enable-accelerated-video-decode" - FEATURES+=",VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" + ENABLE_FEATURES+=",VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo" ;; nvidia) # The NVIDIA VaAPI drivers are known to not support Chromium # see https://crbug.com/1492880. This feature switch is # provided for developers to test VaAPI drivers on NVIDIA GPUs - FEATURES+=",VaapiOnNvidiaGPUs" + ENABLE_FEATURES+=",VaapiOnNvidiaGPUs" export CUDA_DISABLE_PERF_BOOST=1 ;; *) - FEATURES+=",AcceleratedVideoEncoder" + ENABLE_FEATURES+=",AcceleratedVideoEncoder" ;; esac @@ -54,18 +54,18 @@ if [ "$MODE" != "none" ] ; then # chromium in VM, running with standard setting CHROMIUM_FLAGS="" DISABLE_FEATURES="" - FEATURES="" + ENABLE_FEATURES="" fi # Web Dark mode if [ "$WEB_DARKMODE" == "on" ] ; then darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" if [ -z "$FEATURES" ] ; then - FEATURES+="$darktype" + ENABLE_FEATURES+="$darktype" else - FEATURES+=",$darktype" + ENABLE_FEATURES+=",$darktype" fi fi [ -z "$DISABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --disable-features=$DISABLE_FEATURES" -[ -z "$FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$FEATURES" +[ -z "$FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$ENABLE_FEATURES" diff --git a/chromium.spec b/chromium.spec index 98cdb79..59f58f6 100644 --- a/chromium.spec +++ b/chromium.spec @@ -244,8 +244,8 @@ %endif Name: chromium -Version: 142.0.7444.162 -Release: 2%{?dist} +Version: 142.0.7444.175 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -283,9 +283,6 @@ Patch93: chromium-141-csss_style_sheet.patch # Revert due to incorrect display of links on startpage in Darkmode Patch94: chromium-141-revert-remove-darkmode-image-policy.patch -# FTBFS - fatal error: 'gpu/webgpu/dawn_commit_hash.h' file not found -Patch95: chromium-142-dawn-commit-hash.patch - # FTBFS - error: cannot find attribute `sanitize` in this scope # --> ../../third_party/crabbyavif/src/src/capi/io.rs:210:41 # | @@ -993,7 +990,6 @@ Qt6 UI for chromium. %patch -P92 -p1 -b .nodejs-checkversion %patch -P93 -p1 -b .ftbfs-csss_style_sheet %patch -P94 -p1 -R -b .revert-remove-darkmode-image-policy -%patch -P95 -p1 -b .dawn-commit-hash %patch -P96 -p1 -b .crabbyavif-ftbfs-old-rust %if 0%{?fedora} > 43 @@ -1750,6 +1746,11 @@ fi %endif %changelog +* Tue Nov 18 2025 Than Ngo - 142.0.7444.175-1 +- Update to 142.0.7444.175 + * High CVE-2025-13223: Type Confusion in V8 + * High CVE-2025-13224: Type Confusion in V8 + * Sat Nov 15 2025 LuK1337 - 142.0.7444.162-2 - Disable LensOverlay feature by default diff --git a/sources b/sources index c42340c..47c25ae 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-142.0.7444.162-clean.tar.xz) = 8033999c0f37f42413c7cd8ec316f2f17c2840ba145b8fa1a7863ef3ac0f0844087336ec540c6b17f8979835be1c1b22dfb22c98f4dab9afe803588358f5cc62 +SHA512 (chromium-142.0.7444.175-clean.tar.xz) = 5840ab104f4993f4b7033cd2b5fdc3f468d8ac06f1477e643d4e70dbc42dcf15f2e4f60456dc568a3e15f8f3c8e365d332a9fcac3f9b7701fe88151b55d70d17 From dcc67153dc6446a762012f0d0cadc261c506674e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 19 Nov 2025 16:12:46 +0100 Subject: [PATCH 223/244] Fix some typos --- chromium.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chromium.conf b/chromium.conf index 28573a1..4644c35 100644 --- a/chromium.conf +++ b/chromium.conf @@ -21,7 +21,7 @@ DISABLE_FEATURES="LensOverlay" ENABLE_FEATURES="AllowQt" CHROMIUM_FLAGS=" --enable-chrome-browser-cloud-management" if [ "$NATIVE_WAYLAND" == "on" ] ; then - FEATURES+=",WaylandLinuxDrmSyncobj,WaylandPerSurfaceScale,WaylandUiScale" + ENABLE_FEATURES+=",WaylandLinuxDrmSyncobj,WaylandPerSurfaceScale,WaylandUiScale" else CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames" CHROMIUM_FLAGS+=" --enable-zero-copy" @@ -60,7 +60,7 @@ fi # Web Dark mode if [ "$WEB_DARKMODE" == "on" ] ; then darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" - if [ -z "$FEATURES" ] ; then + if [ -z "$ENABLE_FEATURES" ] ; then ENABLE_FEATURES+="$darktype" else ENABLE_FEATURES+=",$darktype" @@ -68,4 +68,4 @@ if [ "$WEB_DARKMODE" == "on" ] ; then fi [ -z "$DISABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --disable-features=$DISABLE_FEATURES" -[ -z "$FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$ENABLE_FEATURES" +[ -z "$ENABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --enable-features=$ENABLE_FEATURES" From f73dbc6fc419b39e236c4af5bdeb2230f1b97986 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 19 Nov 2025 16:16:12 +0100 Subject: [PATCH 224/244] Fix typos in chromium.conf --- chromium.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 59f58f6..cfe4b3e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.175 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -1746,6 +1746,9 @@ fi %endif %changelog +* Wed Nov 19 2025 Than Ngo - 142.0.7444.175-2 +- Fix typos in chromium.conf + * Tue Nov 18 2025 Than Ngo - 142.0.7444.175-1 - Update to 142.0.7444.175 * High CVE-2025-13223: Type Confusion in V8 From 5bf1f4083299bd86a8499efb67dd0eb6256f5c92 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 20 Nov 2025 22:49:58 +0100 Subject: [PATCH 225/244] Backport Wayland DnD bug fix from upstream --- ...xtractData-support-for-text-uri-list.patch | 72 +++++++++++++++++++ chromium.spec | 8 ++- 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 chromium-142-Add-ExtractData-support-for-text-uri-list.patch diff --git a/chromium-142-Add-ExtractData-support-for-text-uri-list.patch b/chromium-142-Add-ExtractData-support-for-text-uri-list.patch new file mode 100644 index 0000000..71d7e94 --- /dev/null +++ b/chromium-142-Add-ExtractData-support-for-text-uri-list.patch @@ -0,0 +1,72 @@ +From 3e6fd579fa63e68c9d0092ea56f7a457c03bdb7d Mon Sep 17 00:00:00 2001 +From: LuK1337 +Date: Thu, 20 Nov 2025 14:27:50 -0800 +Subject: [PATCH] [ozone/wayland] Add ExtractData() support for text/uri-list + +When dragging a file from chrome://downloads to KDE Konsole, the +following message shows up in the debug output: "Cannot deliver data of +type text/uri-list and no text representation is available.". + +After making it so text/uri-list is handled the same way as +text/x-moz-url, the log message is gone and path to file is pasted into +terminal as one would expect. + +Bug: 460074619 +Test: ozone_unittests +Change-Id: Iab0144ca7d3d3983d0e61d74f42a53b366f9e830 +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7145698 +Auto-Submit: Łukasz Patron +Reviewed-by: Kramer Ge +Reviewed-by: Peter McNeeley +Commit-Queue: Peter McNeeley +Cr-Commit-Position: refs/heads/main@{#1548075} +--- + +diff --git a/AUTHORS b/AUTHORS +index abceab66..98ced4a 100644 +--- a/AUTHORS ++++ b/AUTHORS +@@ -943,6 +943,7 @@ + Luka Dojcilovic + Lukas Lihotzki + Lukasz Krakowiak ++Lukasz Patron + Luke Inman-Semerau + Luke Gu + Luke Warlow +diff --git a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc +index 2d32cc9..da6da7ae 100644 +--- a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc ++++ b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc +@@ -277,7 +277,8 @@ + DCHECK(out_content); + DCHECK(IsMimeTypeSupported(mime_type)); + if (std::optional url_info; +- mime_type == ui::kMimeTypeMozillaUrl && ++ (mime_type == ui::kMimeTypeMozillaUrl || ++ mime_type == ui::kMimeTypeUriList) && + (url_info = GetURLAndTitle(kFilenameToURLPolicy)).has_value()) { + out_content->append(url_info->url.spec()); + return true; +diff --git a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc +index 70b6d9d..29a8ad0 100644 +--- a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc ++++ b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc +@@ -61,6 +61,17 @@ + EXPECT_EQ("pickled-str", read_pickled_str); + } + ++TEST(WaylandExchangeDataProviderTest, FileNameAsUriList) { ++ WaylandExchangeDataProvider provider; ++ std::string extracted; ++ EXPECT_FALSE(provider.ExtractData(kMimeTypeUriList, &extracted)); ++ ++ extracted.clear(); ++ provider.AddData(ToClipboardData("file:///dev/null"), kMimeTypeUriList); ++ EXPECT_TRUE(provider.ExtractData(kMimeTypeUriList, &extracted)); ++ EXPECT_EQ("file:///dev/null", extracted); ++} ++ + TEST(WaylandExchangeDataProviderTest, FileContents) { + constexpr std::string kName("filename"); + constexpr std::string kContents("contents"); diff --git a/chromium.spec b/chromium.spec index cfe4b3e..857d545 100644 --- a/chromium.spec +++ b/chromium.spec @@ -245,7 +245,7 @@ Name: chromium Version: 142.0.7444.175 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -456,6 +456,8 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch # ../../base/containers/span.h:1387:63: error: arithmetic on a pointer to an incomplete type 'element_type' (aka 'const autofill::FormFieldData') # 1387 | typename iterator::AssumeValid(data(), data(), data() + size()))); Patch1000: chromium-142-missing-include-for-form_field_data.patch +# Fix Wayland URI DnD issue +Patch1001: chromium-142-Add-ExtractData-support-for-text-uri-list.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1115,6 +1117,7 @@ Qt6 UI for chromium. # Upstream patches %patch -P1000 -p1 -b .missing-include-for-form_field_data.patch +%patch -P1001 -p1 -b .Add-ExtractData-support-for-text-uri-list.patch # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1746,6 +1749,9 @@ fi %endif %changelog +* Thu Nov 20 2025 LuK1337 - 142.0.7444.175-3 +- Backport Wayland DnD bug fix from upstream + * Wed Nov 19 2025 Than Ngo - 142.0.7444.175-2 - Fix typos in chromium.conf From c2f0304e514d7bda44124e0a8f2c216c852eeb58 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 24 Nov 2025 09:28:20 +0100 Subject: [PATCH 226/244] - Enable system libcxx - Fix link error when building with system libcxx - Apply memory-allocator-dcheck-assert-fix for aarch64 --- chromium-131-fix-qt-ui.pach | 19 +++++++++++++++ chromium.spec | 47 +++++++++++++++++++++++++++++-------- 2 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 chromium-131-fix-qt-ui.pach diff --git a/chromium-131-fix-qt-ui.pach b/chromium-131-fix-qt-ui.pach new file mode 100644 index 0000000..d0b778c --- /dev/null +++ b/chromium-131-fix-qt-ui.pach @@ -0,0 +1,19 @@ +From b9075d0e1f687f9a5cf80a7778bde99cece9fdf7 Mon Sep 17 00:00:00 2001 +From: Than Ngo +Date: Sat, 23 Nov 2024 12:33:22 +0100 +Subject: [PATCH] Enable qt-ui + + +diff -up chromium-131.0.6778.85/ui/qt/qt_shim.cc.me chromium-131.0.6778.85/ui/qt/qt_shim.cc +--- chromium-131.0.6778.85/ui/qt/qt_shim.cc.me 2024-11-23 10:04:16.789121846 +0100 ++++ chromium-131.0.6778.85/ui/qt/qt_shim.cc 2024-11-23 11:40:02.905064702 +0100 +@@ -265,7 +265,7 @@ FontRenderParams QtShim::GetFontRenderPa + FontDescription QtShim::GetFontDescription() const { + QFont font = app_.font(); + return { +- .family = String(font.family().toStdString().c_str()), ++ .family = String(font.family().toUtf8().constData()), + .size_pixels = font.pixelSize(), + .size_points = font.pointSize(), + .is_italic = IsStyleItalic(font.style()), + diff --git a/chromium.spec b/chromium.spec index 857d545..31e6242 100644 --- a/chromium.spec +++ b/chromium.spec @@ -9,6 +9,13 @@ # official builds have less debugging and go faster... but we have to shut some things off. %global official_build 1 +# enable|disble use_custom_libcxx +%global use_custom_libcxx 0 +%if 0%{?rhel} +# no libcxx in el +%global use_custom_libcxx 1 +%endif + # enable|disble bootstrap %global bootstrap 0 # workaround for old gn on el9, it causes build error: unknown function filter_labels_include() @@ -125,9 +132,6 @@ # enable|disable control flow integrity support %global cfi 0 -%ifarch x86_64 -%global cfi 0 -%endif # enable qt backend %global enable_qt 1 @@ -245,7 +249,7 @@ Name: chromium Version: 142.0.7444.175 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -262,6 +266,9 @@ Patch20: chromium-disable-font-tests.patch # don't download binary blob Patch21: chromium-123-screen-ai-service.patch +# Fix link error when building with system libcxx +Patch22: chromium-131-fix-qt-ui.pach + # Disable tests on remoting build Patch82: chromium-98.0.4758.102-remoting-no-tests.patch @@ -355,6 +362,8 @@ Patch316: chromium-122-clang-build-flags.patch # unknown warning option -Wno-nontrivial-memcall Patch317: chromium-142-clang++-unknown-argument.patch +Patch318: memory-allocator-dcheck-assert-fix.patch + # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 # Disable BTI until this is fixed upstream. @@ -422,7 +431,6 @@ Patch402: fix-rust-linking.patch Patch403: fix-breakpad-compile.patch Patch404: fix-partition-alloc-compile.patch Patch405: fix-study-crash.patch -Patch406: memory-allocator-dcheck-assert-fix.patch Patch407: fix-different-data-layouts.patch Patch408: 0002-Add-ppc64-trap-instructions.patch @@ -496,6 +504,10 @@ BuildRequires: clang-tools-extra BuildRequires: llvm BuildRequires: lld +%if ! %{use_custom_libcxx} +BuildRequires: libcxx-devel +%endif + %if 0%{?rhel} && 0%{?rhel} <= 9 BuildRequires: gcc-toolset-14-libatomic-devel %endif @@ -972,6 +984,9 @@ Qt6 UI for chromium. %patch -P20 -p1 -b .disable-font-test %patch -P21 -p1 -b .screen-ai-service +%if ! %{use_custom_libcxx} +%patch -P22 -p1 -b .fix-qt-ui +%endif %patch -P82 -p1 -b .remoting-no-tests @@ -1050,6 +1065,8 @@ Qt6 UI for chromium. %patch -P317 -p1 -b .clang++-unsupported-argument %endif +%patch -P318 -p1 -b .memory-allocator-dcheck-assert-fix + %if %{disable_bti} %patch -P352 -p1 -b .workaround_for_crash_on_BTI_capable_system %endif @@ -1096,7 +1113,6 @@ Qt6 UI for chromium. %patch -P403 -p1 -b .fix-breakpad-compile %patch -P404 -p1 -b .fix-partition-alloc-compile %patch -P405 -p1 -b .fix-study-crash -%patch -P406 -p1 -b .memory-allocator-dcheck-assert-fix %patch -P407 -p1 -b .fix-different-data-layouts %patch -P408 -p1 -b .0002-Add-ppc64-trap-instructions %patch -P409 -p1 -b .fix-page-allocator-overflow @@ -1199,6 +1215,11 @@ CXXFLAGS="$FLAGS" CXXFLAGS+=' -faltivec-src-compat=mixed -Wno-deprecated-altivec-src-compat' %endif +%if ! %{use_custom_libcxx} +LDFLAGS="${LDFLAGS} -stdlib=libc++" +CXXFLAGS="${CXXFLAGS} -stdlib=libc++" +%endif + export CC=clang export CXX=clang++ export AR=llvm-ar @@ -1206,6 +1227,7 @@ export NM=llvm-nm export READELF=llvm-readelf export CFLAGS export CXXFLAGS +export LDFLAGS # need for error: the option `Z` is only accepted on the nightly compiler export RUSTC_BOOTSTRAP=1 @@ -1229,6 +1251,9 @@ CHROMIUM_CORE_GN_DEFINES="" # using system toolchain CHROMIUM_CORE_GN_DEFINES+=' custom_toolchain="//build/toolchain/linux/unbundle:default"' CHROMIUM_CORE_GN_DEFINES+=' host_toolchain="//build/toolchain/linux/unbundle:default"' +%if ! %{use_custom_libcxx} +CHROMIUM_BROWSER_GN_DEFINES+=' use_custom_libcxx=false' +%endif CHROMIUM_CORE_GN_DEFINES+=' is_debug=false dcheck_always_on=false dcheck_is_configurable=false' CHROMIUM_CORE_GN_DEFINES+=' enable_enterprise_companion=false' CHROMIUM_CORE_GN_DEFINES+=' system_libdir="%{_lib}"' @@ -1286,10 +1311,7 @@ CHROMIUM_CORE_GN_DEFINES+=' symbol_level=%{debug_level} blink_symbol_level=%{deb CHROMIUM_CORE_GN_DEFINES+=' angle_has_histograms=false' # drop unrar CHROMIUM_CORE_GN_DEFINES+=' safe_browsing_use_unrar=false' -# Disable --warning-suppression-mappings as it causes FTBFS on el/f40/f41 due to old llvm -%if 0%{?rhel} || 0%{?fedora} == 40 || 0%{?fedora} == 41 -CHROMIUM_CORE_GN_DEFINES+=' clang_warning_suppression_file=""' -%endif +CHROMIUM_CORE_GN_DEFINES+=' v8_enable_backtrace=true' export CHROMIUM_CORE_GN_DEFINES # browser gn defines @@ -1749,6 +1771,11 @@ fi %endif %changelog +* Mon Nov 24 2025 Than Ngo - 142.0.7444.175-4 +- Enable system libcxx +- Fix link error when building with system libcxx +- Apply memory-allocator-dcheck-assert-fix for aarch64 + * Thu Nov 20 2025 LuK1337 - 142.0.7444.175-3 - Backport Wayland DnD bug fix from upstream From c33bc728739f1bb39f0f35b1e13ddafcc39d6747 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 25 Nov 2025 17:55:14 +0100 Subject: [PATCH 227/244] Set gtk version to 3 by default --- chromium.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chromium.conf b/chromium.conf index 4644c35..3685849 100644 --- a/chromium.conf +++ b/chromium.conf @@ -57,6 +57,10 @@ if [ "$MODE" != "none" ] ; then ENABLE_FEATURES="" fi +# Set gtk version to 3 by default +# todo: switch to gtk4 in the future +CHROMIUM_FLAGS+=" --gtk-version=3" + # Web Dark mode if [ "$WEB_DARKMODE" == "on" ] ; then darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" From 21c645393dd764701f3c95f28a6471ce178c5c85 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 1 Dec 2025 09:07:42 +0100 Subject: [PATCH 228/244] Backport one more Wayland DnD bug fix from upstream --- ...date-pointer-position-during-draggin.patch | 80 +++++++++++++++++++ chromium.spec | 9 ++- 2 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 chromium-142-Update-pointer-position-during-draggin.patch diff --git a/chromium-142-Update-pointer-position-during-draggin.patch b/chromium-142-Update-pointer-position-during-draggin.patch new file mode 100644 index 0000000..eb0e1c8 --- /dev/null +++ b/chromium-142-Update-pointer-position-during-draggin.patch @@ -0,0 +1,80 @@ +From 4aed3650884fb2eb5605a051e92387204ae88cad Mon Sep 17 00:00:00 2001 +From: LuK1337 +Date: Sun, 30 Nov 2025 20:36:28 -0800 +Subject: [PATCH] [ozone/wayland] Update pointer position during dragging + +Prior to this change, dragging a file from chrome://downloads by its +filename would often open the file after it was dropped somewhere, this +is because the synthetic mouse release has outdated location. + +After ensuring that pointer location is updated during drag motion, +similarly to WaylandWindowDragController::OnDragLeave(), this is no +longer a problem. + +Bug: 462468355 +Test: ozone_unittests +Change-Id: Ib377b7ec04a9f5a02a21e36f7c43871a3e414798 +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7182320 +Reviewed-by: Peter McNeeley +Commit-Queue: Peter McNeeley +Auto-Submit: Łukasz Patron +Reviewed-by: Kramer Ge +Cr-Commit-Position: refs/heads/main@{#1551919} +--- + +diff --git a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc +index b557e465..47b0911 100644 +--- a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc ++++ b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc +@@ -486,17 +486,9 @@ + if (drag_source_.has_value()) { + // Update the cursor position only for drag with mouse. + if (*drag_source_ == mojom::DragEventSource::kMouse) { +- auto* cursor_position = connection_->wayland_cursor_position(); +- if (cursor_position) { +- CHECK(window_); +- // TODO(crbug.com/41494257): Once we enable the input region for +- // subsurfaces, we need to update this part since the location will no +- // longer be relative to the window. +- auto location_in_screen = +- gfx::ToRoundedPoint(location) + +- window_->GetBoundsInDIP().origin().OffsetFromOrigin(); +- cursor_position->OnCursorPositionChanged(location_in_screen); +- } ++ pointer_delegate_->OnPointerMotionEvent( ++ location, timestamp, wl::EventDispatchPolicy::kImmediate, ++ /*is_synthesized=*/true); + } + } + +diff --git a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h +index e1239e6b..9a3ea8a2 100644 +--- a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h ++++ b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h +@@ -130,6 +130,10 @@ + // TODO(crbug.com/40598679): Remove once focus is fixed during DND sessions. + WaylandWindow* entered_window() const { return window_; } + ++ WaylandPointer::Delegate* pointer_delegate() const { ++ return pointer_delegate_; ++ } ++ + // Returns false iff the data is for a window dragging session. + bool ShouldReleaseCaptureForDrag(ui::OSExchangeData* data) const; + +diff --git a/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc b/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc +index 4156ce4..d2a867acaf 100644 +--- a/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc ++++ b/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc +@@ -1441,8 +1441,10 @@ + // Send a drag motion and see if cursor position is updated. + SendDndMotion(gfx::Point(10, 11)); + WaitForDragDropTasks(); +- // Cursor position should be updated. ++ // Cursor and pointer positions should be updated. ++ auto* pointer_delegate = drag_controller()->pointer_delegate(); + EXPECT_EQ(gfx::Point(10, 11), cursor_position->GetCursorSurfacePoint()); ++ EXPECT_EQ(gfx::PointF(10, 11), pointer_delegate->GetPointerLocation()); + + SendDndLeave(); + SendDndCancelled(); diff --git a/chromium.spec b/chromium.spec index 31e6242..b40b88d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -249,7 +249,7 @@ Name: chromium Version: 142.0.7444.175 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -464,8 +464,9 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch # ../../base/containers/span.h:1387:63: error: arithmetic on a pointer to an incomplete type 'element_type' (aka 'const autofill::FormFieldData') # 1387 | typename iterator::AssumeValid(data(), data(), data() + size()))); Patch1000: chromium-142-missing-include-for-form_field_data.patch -# Fix Wayland URI DnD issue +# Fix Wayland URI DnD issues Patch1001: chromium-142-Add-ExtractData-support-for-text-uri-list.patch +Patch1002: chromium-142-Update-pointer-position-during-draggin.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1134,6 +1135,7 @@ Qt6 UI for chromium. # Upstream patches %patch -P1000 -p1 -b .missing-include-for-form_field_data.patch %patch -P1001 -p1 -b .Add-ExtractData-support-for-text-uri-list.patch +%patch -P1002 -p1 -b .Update-pointer-position-during-draggin.patch # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1771,6 +1773,9 @@ fi %endif %changelog +* Mon Dec 01 2025 LuK1337 - 142.0.7444.175-5 +- Backport one more Wayland DnD bug fix from upstream + * Mon Nov 24 2025 Than Ngo - 142.0.7444.175-4 - Enable system libcxx - Fix link error when building with system libcxx From ffdc3cb0550bf5f3301dcf7a4a4275573f7fc624 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 3 Dec 2025 19:49:16 +0100 Subject: [PATCH 229/244] Update to 143.0.7499.40 * High CVE-2025-13630: Type Confusion in V8 * High CVE-2025-13631: Inappropriate implementation in Google Updater * High CVE-2025-13632: Inappropriate implementation in DevTools * High CVE-2025-13633: Use after free in Digital Credentials * Medium CVE-2025-13634: Inappropriate implementation in Downloads * Medium CVE-2025-13720: Bad cast in Loader * Medium CVE-2025-13721: Race in v8 * Low CVE-2025-13635: Inappropriate implementation in Downloads * Low CVE-2025-13636: Inappropriate implementation in Split View * Low CVE-2025-13637: Inappropriate implementation in Downloads * Low CVE-2025-13638: Use after free in Media Stream * Low CVE-2025-13639: Inappropriate implementation in WebRTC * Low CVE-2025-13640: Inappropriate implementation in Passwords - Drop workaround darkmode-image-policy.patch - Fix build error due to Unresolved dependencies - Fix swiftshader to compile with llvm-16.0 - Refresh python-3.9-ftbfs patch for el9 - Refresh ppc64le patches - Refresh chromium.conf --- 0001-Add-PPC64-support-for-boringssl.patch | 224 +++--- 0001-Add-ppc64-target-to-libaom.patch | 12 +- ...generated-config-for-libaom-on-ppc64.patch | 24 +- 0001-Enable-ppc64-pointer-compression.patch | 8 +- ...OWER8-AltiVec-VSX-CPU-features-when-.patch | 8 +- ...Implement-support-for-PPC64-on-Linux.patch | 206 ++--- ...Implement-support-for-ppc64-on-Linux.patch | 170 ++--- 0001-add-xnn-ppc64el-support.patch | 14 +- ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 703 +++++++++--------- 0001-swiftshader-fix-build.patch | 12 - ...e-Include-missing-header-cstddef-in-.patch | 6 +- ...ibvpx-Properly-generate-gni-on-ppc64.patch | 6 +- ...t-Include-altivec.h-on-ppc64-with-SI.patch | 6 +- ...-PPC64-generated-files-for-boringssl.patch | 40 +- 0002-Add-ppc64-trap-instructions.patch | 6 +- 0002-regenerate-xnn-buildgn.patch | 345 +++++---- ...party-libvpx-Remove-bad-ppc64-config.patch | 28 +- 0002-third_party-lss-kernel-structs.patch | 20 +- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- ...y-crashpad-port-curl-transport-ppc64.patch | 6 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- HACK-debian-clang-disable-base-musttail.patch | 6 +- HACK-debian-clang-disable-pa-musttail.patch | 8 +- HACK-third_party-libvpx-use-generic-gnu.patch | 18 +- Rtc_base-system-arch.h-PPC.patch | 6 +- add-ppc64-architecture-string.patch | 8 +- add-ppc64-architecture-to-extensions.diff | 12 +- add-ppc64-pthread-stack-size.patch | 6 +- chromium-143-python-3.9-ftbfs.patch | 47 ++ chromium-143-revert-libpng_for_testonly.patch | 137 ++++ chromium-143-swiftshader-llvm-16.0.patch | 12 + chromium.conf | 8 +- chromium.spec | 41 +- dawn-fix-ppc64le-detection.patch | 6 +- fix-breakpad-compile.patch | 6 +- fix-clang-selection.patch | 10 +- fix-different-data-layouts.patch | 8 +- fix-page-allocator-overflow.patch | 14 +- fix-partition-alloc-compile.patch | 8 +- fix-rust-linking.patch | 10 +- fix-rustc.patch | 11 +- fix-study-crash.patch | 14 +- fix-unknown-warning-option-messages.diff | 10 +- skia-vsx-instructions.patch | 124 +-- sources | 2 +- 45 files changed, 1353 insertions(+), 1069 deletions(-) create mode 100644 chromium-143-python-3.9-ftbfs.patch create mode 100644 chromium-143-revert-libpng_for_testonly.patch create mode 100644 chromium-143-swiftshader-llvm-16.0.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index 106c6f7..a9139b0 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/cpu_ppc64le.cc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/cpu_ppc64le.cc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/cpu_ppc64le.cc +} + +#endif // OPENSSL_PPC64LE -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/crypto.cc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/crypto.cc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/crypto.cc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/crypto.cc @@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -350,10 +350,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/crypto.cc #elif (defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) && \ !defined(OPENSSL_STATIC_ARMCAP) HIDDEN uint32_t OPENSSL_armcap_P = 0; -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,10 +4164,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -81,6 +81,12 @@ inline int vpaes_capable(void) { return inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4195,11 +4195,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // OPENSSL_NO_ASM -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -@@ -104,6 +104,7 @@ +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +@@ -105,6 +105,7 @@ #include "self_check/fips.cc.inc" #include "self_check/self_check.cc.inc" #include "service_indicator/service_indicator.cc.inc" @@ -4207,10 +4207,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bcm.cc #include "sha/sha1.cc.inc" #include "sha/sha256.cc.inc" #include "sha/sha512.cc.inc" -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc @@ -330,6 +330,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4235,10 +4235,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc @@ -1229,6 +1229,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) @@ -4248,10 +4248,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4924,10 +4924,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc @@ -233,6 +233,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4942,10 +4942,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gc #endif gcm_init_nohw(out_table, H); -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc @@ -169,5 +169,15 @@ TEST(GCMTest, ABI) { } } @@ -4962,10 +4962,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/aes/gc +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/rand/getrandom_fillin.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4975,11 +4975,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/rand/getrandom_fi #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -@@ -431,6 +431,11 @@ bcm_infallible BCM_rand_bytes_with_addit +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +@@ -425,6 +425,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with // |rand_thread_state_clear_all|. @@ -4990,11 +4990,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/rand/r + // kernel, syscalls made with |syscall| did not abort the transaction. CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif - if (!CTR_DRBG_reseed(&state->drbg, seed, reseed_additional_data, -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h + if (!CTR_DRBG_reseed_ex(&state->drbg, seed, sizeof(seed), +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5012,10 +5012,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc @@ -0,0 +1,369 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. @@ -5386,11 +5386,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/internal.h +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/internal.h -@@ -62,8 +62,9 @@ extern "C" { +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/internal.h +@@ -66,8 +66,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) @@ -5402,7 +5402,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1412,6 +1413,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl +@@ -1419,6 +1420,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5419,10 +5419,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5744,10 +5744,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5854,10 +5854,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6121,10 +6121,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-140.0.7339.41/third_party/boringssl/src/include/openssl/target.h +Index: chromium-143.0.7499.40/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-140.0.7339.41/third_party/boringssl/src/include/openssl/target.h +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-143.0.7499.40/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6135,11 +6135,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -@@ -35,6 +35,8 @@ int main(int argc, char **argv) { +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +@@ -31,6 +31,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) puts("aarch64 (64-bit)"); @@ -6148,10 +6148,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -56,7 +56,8 @@ type stringWriter interface { type processorType int @@ -6751,10 +6751,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. @@ -6768,10 +6768,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ # To regenerate delocate.peg.go: # -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6784,10 +6784,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6798,10 +6798,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6865,19 +6865,19 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6951,10 +6951,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.cc" + .abiversion 2 @@ -7117,10 +7117,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -7674,10 +7674,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.cc" + .abiversion 2 @@ -7905,10 +7905,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8587,10 +8587,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8615,10 +8615,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8798,10 +8798,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -+++ chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc @@ -377,6 +377,10 @@ static void sha1_block_data_order(uint32 return; } @@ -8813,11 +8813,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-140.0.7339.41/third_party/boringssl/src/build.json +Index: chromium-143.0.7499.40/third_party/boringssl/src/build.json =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/build.json -+++ chromium-140.0.7339.41/third_party/boringssl/src/build.json -@@ -128,6 +128,10 @@ +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/build.json ++++ chromium-143.0.7499.40/third_party/boringssl/src/build.json +@@ -130,6 +130,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} ], @@ -8828,7 +8828,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/fipsmodule/aes/asm/aesni-x86.pl"}, {"src": "crypto/fipsmodule/bn/asm/bn-586.pl"}, -@@ -237,6 +241,7 @@ +@@ -239,6 +243,7 @@ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", @@ -8836,7 +8836,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/build.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -805,6 +810,9 @@ +@@ -803,6 +808,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8846,10 +8846,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-140.0.7339.41/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-143.0.7499.40/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-140.0.7339.41/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-143.0.7499.40/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8868,10 +8868,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-140.0.7339.41/third_party/boringssl/README.ppc64le +Index: chromium-143.0.7499.40/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/README.ppc64le ++++ chromium-143.0.7499.40/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8881,11 +8881,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.gni +Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.gni -@@ -121,6 +121,7 @@ bcm_sources_asm = [ +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.gni +@@ -123,6 +123,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", "gen/bcm/aesv8-gcm-armv8-win.S", @@ -8893,7 +8893,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.gni "gen/bcm/armv4-mont-linux.S", "gen/bcm/armv8-mont-apple.S", "gen/bcm/armv8-mont-linux.S", -@@ -137,6 +138,7 @@ bcm_sources_asm = [ +@@ -139,6 +140,7 @@ bcm_sources_asm = [ "gen/bcm/ghash-neon-armv8-apple.S", "gen/bcm/ghash-neon-armv8-linux.S", "gen/bcm/ghash-neon-armv8-win.S", @@ -8901,7 +8901,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.gni "gen/bcm/ghash-ssse3-x86-apple.S", "gen/bcm/ghash-ssse3-x86-linux.S", "gen/bcm/ghash-ssse3-x86_64-apple.S", -@@ -336,6 +338,7 @@ crypto_sources = [ +@@ -338,6 +340,7 @@ crypto_sources = [ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", diff --git a/0001-Add-ppc64-target-to-libaom.patch b/0001-Add-ppc64-target-to-libaom.patch index 5699f03..c328bda 100644 --- a/0001-Add-ppc64-target-to-libaom.patch +++ b/0001-Add-ppc64-target-to-libaom.patch @@ -8,10 +8,10 @@ Subject: [PATCH] Add ppc64 target to libaom third_party/libaom/cmake_update.sh | 3 +++ 2 files changed, 15 insertions(+) -Index: chromium-140.0.7339.41/third_party/libaom/BUILD.gn +Index: chromium-143.0.7499.40/third_party/libaom/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libaom/BUILD.gn -+++ chromium-140.0.7339.41/third_party/libaom/BUILD.gn +--- chromium-143.0.7499.40.orig/third_party/libaom/BUILD.gn ++++ chromium-143.0.7499.40/third_party/libaom/BUILD.gn @@ -299,6 +299,18 @@ if (current_cpu == "arm64" || current_cp } } @@ -41,10 +41,10 @@ Index: chromium-140.0.7339.41/third_party/libaom/BUILD.gn if (is_android) { deps += [ "//third_party/cpu_features:ndk_compat" ] } -Index: chromium-140.0.7339.41/third_party/libaom/cmake_update.sh +Index: chromium-143.0.7499.40/third_party/libaom/cmake_update.sh =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libaom/cmake_update.sh -+++ chromium-140.0.7339.41/third_party/libaom/cmake_update.sh +--- chromium-143.0.7499.40.orig/third_party/libaom/cmake_update.sh ++++ chromium-143.0.7499.40/third_party/libaom/cmake_update.sh @@ -167,6 +167,9 @@ egrep \ "#define [A-Z0-9_]+[[:space:]]+[01]" "${CFG}/win/ia32/config/aom_config.h" \ | awk '{print "%define " $2 " " $3}' > "${CFG}/win/ia32/config/aom_config.asm" diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 2766473..176ab0d 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm ++++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm @@ -0,0 +1,100 @@ +; +; Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -103,10 +103,10 @@ Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/confi +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -121,10 +121,10 @@ Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/confi +#include "aom/aom_codec.h" +static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_config.h ++++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.h @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -229,10 +229,10 @@ Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/confi +#define HAVE_WXWIDGETS 0 +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h ++++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h @@ -0,0 +1,1177 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -1411,10 +1411,10 @@ Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif // AOM_DSP_RTCD_H_ -Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -1507,10 +1507,10 @@ Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif // AOM_SCALE_RTCD_H_ -Index: chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h ++++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h @@ -0,0 +1,405 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. diff --git a/0001-Enable-ppc64-pointer-compression.patch b/0001-Enable-ppc64-pointer-compression.patch index bea6992..b8ef777 100644 --- a/0001-Enable-ppc64-pointer-compression.patch +++ b/0001-Enable-ppc64-pointer-compression.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/v8/gni/v8.gni +Index: chromium-143.0.7499.40/v8/gni/v8.gni =================================================================== ---- chromium-140.0.7339.41.orig/v8/gni/v8.gni -+++ chromium-140.0.7339.41/v8/gni/v8.gni -@@ -274,7 +274,7 @@ assert(!(v8_enable_webassembly && v8_ena +--- chromium-143.0.7499.40.orig/v8/gni/v8.gni ++++ chromium-143.0.7499.40/v8/gni/v8.gni +@@ -298,7 +298,7 @@ assert( if (v8_enable_pointer_compression == "") { v8_enable_pointer_compression = v8_current_cpu == "arm64" || v8_current_cpu == "x64" || diff --git a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch index 13bf38d..6842368 100644 --- a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +++ b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) -Index: chromium-140.0.7339.41/v8/BUILD.gn +Index: chromium-143.0.7499.40/v8/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/v8/BUILD.gn -+++ chromium-140.0.7339.41/v8/BUILD.gn -@@ -1555,7 +1555,14 @@ config("toolchain") { +--- chromium-143.0.7499.40.orig/v8/BUILD.gn ++++ chromium-143.0.7499.40/v8/BUILD.gn +@@ -1577,7 +1577,14 @@ config("toolchain") { if (v8_current_cpu == "ppc64") { defines += [ "V8_TARGET_ARCH_PPC64" ] cflags += [ "-ffp-contract=off" ] diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index 2cdf46b..2bfce0a 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -686,6 +686,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +192,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +383,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +399,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -443,10 +443,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +571,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +592,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +666,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -94,6 +94,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +679,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index f2f76ea..5923874 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dum #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dum +#endif + } // namespace google_breakpad -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dum }; } // namespace google_breakpad -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dum #endif } // namespace google_breakpad -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,11 +247,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/dum #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -@@ -465,6 +465,13 @@ bool ExceptionHandler::HandleSignal(int +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +@@ -466,6 +466,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); } @@ -265,7 +265,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han #elif GOOGLE_BREAKPAD_CRASH_CONTEXT_HAS_FLOAT_STATE ucontext_t* uc_ptr = (ucontext_t*)uc; if (uc_ptr->uc_mcontext.fpregs) { -@@ -703,10 +710,18 @@ bool ExceptionHandler::WriteMinidump() { +@@ -704,10 +711,18 @@ bool ExceptionHandler::WriteMinidump() { } #endif @@ -285,7 +285,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han context.tid = sys_gettid(); // Add an exception stream to the minidump for better reporting. -@@ -727,6 +742,9 @@ bool ExceptionHandler::WriteMinidump() { +@@ -728,6 +743,9 @@ bool ExceptionHandler::WriteMinidump() { #elif defined(__mips__) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.pc); @@ -295,11 +295,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -@@ -200,7 +200,11 @@ class ExceptionHandler { +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +@@ -197,7 +197,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. ucontext_t context; @@ -312,11 +312,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han fpstate_t float_state; #endif }; -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -@@ -326,7 +326,7 @@ TEST(ExceptionHandlerTest, ParallelChild +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +@@ -325,7 +325,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; } else { @@ -325,7 +325,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han } } -@@ -582,6 +582,8 @@ const unsigned char kIllegalInstruction[ +@@ -581,6 +581,8 @@ const unsigned char kIllegalInstruction[ #if defined(__mips__) // mfc2 zero,Impl - usually illegal in userspace. 0x48, 0x00, 0x00, 0x48 @@ -334,7 +334,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han #else // This crashes with SIGILL on x86/x86-64/arm. 0xff, 0xff, 0xff, 0xff -@@ -777,10 +779,10 @@ TEST(ExceptionHandlerTest, InstructionPo +@@ -776,10 +778,10 @@ TEST(ExceptionHandlerTest, InstructionPo // These are defined here so the parent can use them to check the // data from the minidump afterwards. @@ -347,10 +347,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/han const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -143,7 +143,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -393,11 +393,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/mic const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -@@ -282,10 +282,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +@@ -281,10 +281,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/mic #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,10 +446,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -789,7 +789,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -461,10 +461,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,10 +475,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -57,6 +57,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -488,10 +488,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -533,11 +533,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -@@ -470,6 +470,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +@@ -469,6 +469,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = reinterpret_cast(one_thread.mcontext.__gregs[4]); @@ -547,7 +547,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -@@ -569,6 +572,8 @@ TEST_F(LinuxPtraceDumperTest, SanitizeSt +@@ -568,6 +571,8 @@ TEST_F(LinuxPtraceDumperTest, SanitizeSt uintptr_t heap_addr = thread_info.mcontext.gregs[1]; #elif defined(__riscv) uintptr_t heap_addr = thread_info.mcontext.__gregs[4]; @@ -556,10 +556,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -145,7 +145,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -613,10 +613,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,11 +654,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/mem struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -@@ -179,9 +179,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +@@ -178,9 +178,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be // done on page boundaries, so we need a two page file to test this. @@ -672,10 +672,10 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/linux/mem for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -64,8 +64,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); @@ -687,11 +687,11 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/common/memory_al for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == nullptr); -Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -@@ -83,6 +83,8 @@ +--- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +@@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) #define ELF_ARCH EM_RISCV @@ -700,7 +700,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2c #endif #if defined(__arm__) -@@ -93,6 +95,8 @@ typedef user_regs user_regs_struct; +@@ -92,6 +94,8 @@ typedef user_regs user_regs_struct; #elif defined (__mips__) || defined(__riscv) // This file-local typedef simplifies the source code. typedef gregset_t user_regs_struct; @@ -709,7 +709,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2c #endif using google_breakpad::MDTypeHelper; -@@ -326,6 +330,9 @@ struct CrashedProcess { +@@ -325,6 +329,9 @@ struct CrashedProcess { #if defined(__aarch64__) user_fpsimd_struct fpregs; #endif @@ -719,7 +719,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2c uintptr_t stack_addr; const uint8_t* stack; size_t stack_length; -@@ -629,6 +636,38 @@ ParseThreadRegisters(CrashedProcess::Thr +@@ -628,6 +635,38 @@ ParseThreadRegisters(CrashedProcess::Thr #error "Unexpected __riscv_xlen" #endif } @@ -758,7 +758,7 @@ Index: chromium-140.0.7339.41/third_party/breakpad/breakpad/src/tools/linux/md2c #else #error "This code has not been ported to your platform yet" #endif -@@ -734,6 +773,12 @@ ParseSystemInfo(const Options& options, +@@ -733,6 +772,12 @@ ParseSystemInfo(const Options& options, # else # error "Unexpected __riscv_xlen" # endif diff --git a/0001-add-xnn-ppc64el-support.patch b/0001-add-xnn-ppc64el-support.patch index dfa5595..9fd2f46 100644 --- a/0001-add-xnn-ppc64el-support.patch +++ b/0001-add-xnn-ppc64el-support.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/third_party/xnnpack/generate_build_gn.py +Index: chromium-143.0.7499.40/third_party/xnnpack/generate_build_gn.py =================================================================== ---- chromium-140.0.7339.41.orig/third_party/xnnpack/generate_build_gn.py -+++ chromium-140.0.7339.41/third_party/xnnpack/generate_build_gn.py -@@ -232,7 +232,10 @@ _PLATFORMS = [ +--- chromium-143.0.7499.40.orig/third_party/xnnpack/generate_build_gn.py ++++ chromium-143.0.7499.40/third_party/xnnpack/generate_build_gn.py +@@ -239,7 +239,10 @@ _PLATFORMS = [ bazel_platform='//:linux_aarch64'), _Platform(gn_cpu='riscv64', bazel_cpu='riscv64', @@ -14,10 +14,10 @@ Index: chromium-140.0.7339.41/third_party/xnnpack/generate_build_gn.py ] -Index: chromium-140.0.7339.41/third_party/xnnpack/bazelroot/BUILD +Index: chromium-143.0.7499.40/third_party/xnnpack/bazelroot/BUILD =================================================================== ---- chromium-140.0.7339.41.orig/third_party/xnnpack/bazelroot/BUILD -+++ chromium-140.0.7339.41/third_party/xnnpack/bazelroot/BUILD +--- chromium-143.0.7499.40.orig/third_party/xnnpack/bazelroot/BUILD ++++ chromium-143.0.7499.40/third_party/xnnpack/bazelroot/BUILD @@ -29,6 +29,14 @@ platform( ], ) diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index 8825b67..2e4cbc3 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -1,6 +1,32 @@ -diff -up chromium-141.0.7390.37/sandbox/features.gni.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/features.gni ---- chromium-141.0.7390.37/sandbox/features.gni.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/features.gni 2025-09-28 10:15:55.414893495 +0200 +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/trap.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf/trap.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/trap.cc +@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* + SetIsInSigHandler(); + } + ++#if defined(__powerpc64__) ++ // On ppc64+glibc, some syscalls seem to accidentally negate the first ++ // parameter which causes checks against it to fail. For now, manually ++ // negate them back. ++ // TODO(sanastasio@raptorengineering.com): investigate this issue further ++ auto nr = SECCOMP_SYSCALL(ctx); ++ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat || ++ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) { ++ if (static_cast(SECCOMP_PARM1(ctx)) > 0) { ++ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx); ++ } ++ } ++#endif ++ + // Copy the seccomp-specific data into a arch_seccomp_data structure. This + // is what we are showing to TrapFnc callbacks that the system call + // evaluator registered with the sandbox. +Index: chromium-143.0.7499.40/sandbox/features.gni +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/features.gni ++++ chromium-143.0.7499.40/sandbox/features.gni @@ -9,4 +9,5 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || @@ -8,9 +34,35 @@ diff -up chromium-141.0.7390.37/sandbox/features.gni.0001-sandbox-Enable-seccomp - current_cpu == "mipsel" || current_cpu == "mips64el") + current_cpu == "mipsel" || current_cpu == "mips64el" || + current_cpu == "ppc64") -diff -up chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ---- chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h 2025-09-28 10:15:55.415120766 +0200 +Index: chromium-143.0.7499.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-143.0.7499.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc +@@ -17,6 +17,11 @@ + #include "sandbox/linux/system_headers/linux_syscalls.h" + #include "sandbox/policy/linux/sandbox_linux.h" + ++// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h ++#ifdef __powerpc64__ ++#include ++#endif ++ + // TODO(vignatti): replace the local definitions below with #include + // once kernel version 4.6 becomes widely used. + #include +@@ -86,7 +91,7 @@ ResultExpr RendererProcessPolicy::Evalua + case __NR_ftruncate64: + #endif + #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + case __NR_getrlimit: + case __NR_setrlimit: + // We allow setrlimit to dynamically adjust the address space limit as +Index: chromium-143.0.7499.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-143.0.7499.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -56,6 +56,13 @@ #define MAX_PUBLIC_SYSCALL __NR_syscalls #define MAX_SYSCALL MAX_PUBLIC_SYSCALL @@ -25,75 +77,11 @@ diff -up chromium-141.0.7390.37/sandbox/linux/bpf_dsl/linux_syscall_ranges.h.000 #else #error "Unsupported architecture" #endif -diff -up chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h ---- chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/bpf_dsl/seccomp_macros.h 2025-09-28 10:15:55.416743928 +0200 -@@ -14,6 +14,9 @@ - #if defined(__mips__) - // sys/user.h in eglibc misses size_t definition - #include -+#elif defined(__powerpc64__) -+// Manually define greg_t on ppc64 -+typedef unsigned long long greg_t; - #endif - #endif - -@@ -343,6 +346,51 @@ struct regs_struct { - #define SECCOMP_PT_PARM4(_regs) (_regs).regs[3] - #define SECCOMP_PT_PARM5(_regs) (_regs).regs[4] - #define SECCOMP_PT_PARM6(_regs) (_regs).regs[5] -+ -+#elif defined(__powerpc64__) -+#include -+ -+typedef struct pt_regs regs_struct; -+ -+#ifdef ARCH_CPU_LITTLE_ENDIAN -+#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE -+#else -+#define SECCOMP_ARCH AUDIT_ARCH_PPC64 -+#endif -+ -+#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) -+ -+#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3) -+#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) -+#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip -+#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3) -+#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4) -+#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5) -+#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6) -+#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7) -+#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8) -+ -+#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr)) -+#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch)) -+#define SECCOMP_IP_MSB_IDX \ -+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4) -+#define SECCOMP_IP_LSB_IDX \ -+ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0) -+#define SECCOMP_ARG_MSB_IDX(nr) \ -+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4) -+#define SECCOMP_ARG_LSB_IDX(nr) \ -+ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0) -+ -+#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3] -+#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0] -+#define SECCOMP_PT_IP(_regs) (_regs).nip -+#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3] -+#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4] -+#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5] -+#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6] -+#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7] -+#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8] -+ - #else - #error Unsupported target platform - -diff -up chromium-141.0.7390.37/sandbox/linux/BUILD.gn.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/BUILD.gn ---- chromium-141.0.7390.37/sandbox/linux/BUILD.gn.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/BUILD.gn 2025-09-28 10:15:55.415227970 +0200 -@@ -377,6 +377,8 @@ component("sandbox_services") { +Index: chromium-143.0.7499.40/sandbox/linux/BUILD.gn +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/BUILD.gn ++++ chromium-143.0.7499.40/sandbox/linux/BUILD.gn +@@ -376,6 +376,8 @@ component("sandbox_services") { source_set("sandbox_services_headers") { sources = [ @@ -102,9 +90,83 @@ diff -up chromium-141.0.7390.37/sandbox/linux/BUILD.gn.0001-sandbox-Enable-secco "system_headers/arm64_linux_syscalls.h", "system_headers/arm_linux_syscalls.h", "system_headers/arm_linux_ucontext.h", -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc 2025-09-28 10:15:55.415675419 +0200 +Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_syscalls.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_syscalls.h ++++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_syscalls.h +@@ -44,4 +44,8 @@ + #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" + #endif + ++#if defined(__powerpc64__) ++#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h" ++#endif ++ + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ +Index: chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_syscalls.h +=================================================================== +--- /dev/null ++++ chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_syscalls.h +@@ -0,0 +1,25 @@ ++// Copyright 2014 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ ++#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ ++ ++#include ++ ++//TODO: is it necessary to redefine syscall numbers for PPC64? ++// Needed for Ubuntu/Debian/Centos/RHEL: ++#if !defined(__NR_shmget) ++#define __NR_shmget 395 ++#endif ++#if !defined(__NR_shmdt) ++#define __NR_shmdt 398 ++#endif ++#if !defined(__NR_shmctl) ++#define __NR_shmctl 396 ++#endif ++#if !defined(__NR_shmat) ++#define __NR_shmat 397 ++#endif ++ ++#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ +Index: chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_ucontext.h +=================================================================== +--- /dev/null ++++ chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_ucontext.h +@@ -0,0 +1,12 @@ ++// Copyright 2014 The Chromium Authors. All rights reserved. ++// Use of this source code is governed by a BSD-style license that can be ++// found in the LICENSE file. ++ ++#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ ++#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ ++ ++#include ++ ++//TODO: is it necessary to redefine ucontext on PPC64? ++ ++#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ +Index: chromium-143.0.7499.40/sandbox/linux/syscall_broker/broker_process.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/syscall_broker/broker_process.cc ++++ chromium-143.0.7499.40/sandbox/linux/syscall_broker/broker_process.cc +@@ -167,7 +167,7 @@ bool BrokerProcess::IsSyscallBrokerable( + #if defined(__NR_fstatat64) + case __NR_fstatat64: + #endif +-#if defined(__x86_64__) || defined(__aarch64__) ++#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) + case __NR_newfstatat: + #endif + return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -134,45 +196,11 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_polic if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc 2025-09-28 10:15:55.417132817 +0200 -@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) - - #if !defined(__aarch64__) - TEST_BASELINE_SIGSYS(__NR_inotify_init) -+#if !defined(__powerpc64__) - TEST_BASELINE_SIGSYS(__NR_vserver) - #endif -+#endif - - #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS) - BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc 2025-09-28 10:15:55.417609762 +0200 -@@ -389,7 +389,16 @@ intptr_t SIGSYSFstatatHandler(const stru - if (args.nr == __NR_fstatat_default) { - if (*reinterpret_cast(args.args[1]) == '\0' && - args.args[3] == static_cast(AT_EMPTY_PATH)) { -- return syscall(__NR_fstat_default, static_cast(args.args[0]), -+ int fd = static_cast(args.args[0]); -+#if defined(__powerpc64__) -+ // On ppc64+glibc, some syscalls seem to accidentally negate the first -+ // parameter which causes checks against it to fail. For now, manually -+ // negate them back. -+ // TODO: Investigate the root cause and fix in glibc -+ if (fd < 0) -+ fd = -fd; -+#endif -+ return syscall(__NR_fstat_default, fd, - reinterpret_cast(args.args[2])); - } - return -reinterpret_cast(fs_denied_errno); -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc 2025-09-28 10:15:55.415814493 +0200 -@@ -43,7 +43,7 @@ +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -44,7 +44,7 @@ #define MAP_DROPPABLE 0x08 // Zero memory under memory pressure. #endif @@ -181,7 +209,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -52,6 +52,11 @@ +@@ -53,6 +53,11 @@ #include #endif @@ -193,7 +221,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame #if BUILDFLAG(IS_ANDROID) #if !defined(F_DUPFD_CLOEXEC) -@@ -109,6 +114,15 @@ inline bool IsArchitectureMips() { +@@ -110,6 +115,15 @@ inline bool IsArchitectureMips() { #endif } @@ -209,7 +237,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame // Ubuntu's version of glibc has a race condition in sem_post that can cause // it to call futex(2) with bogus op arguments. To workaround this, we need // to allow those futex(2) calls to fail with EINVAL, instead of crashing the -@@ -287,9 +301,11 @@ ResultExpr RestrictFcntlCommands() { +@@ -288,9 +302,11 @@ ResultExpr RestrictFcntlCommands() { // operator. // Glibc overrides the kernel's O_LARGEFILE value. Account for this. uint64_t kOLargeFileFlag = O_LARGEFILE; @@ -222,7 +250,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame const Arg cmd(1); const Arg long_arg(2); -@@ -312,8 +328,17 @@ ResultExpr RestrictFcntlCommands() { +@@ -313,8 +329,17 @@ ResultExpr RestrictFcntlCommands() { F_SETLKW, F_GETLK, F_DUPFD, @@ -242,7 +270,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame .Case(F_SETFL, If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) .Case(F_ADD_SEALS, -@@ -322,7 +347,7 @@ ResultExpr RestrictFcntlCommands() { +@@ -323,7 +348,7 @@ ResultExpr RestrictFcntlCommands() { // clang-format on } @@ -251,7 +279,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame ResultExpr RestrictSocketcallCommand() { // Unfortunately, we are unable to restrict the first parameter to // socketpair(2). Whilst initially sounding bad, it's noteworthy that very -@@ -488,7 +513,7 @@ ResultExpr RestrictPtrace() { +@@ -489,7 +514,7 @@ ResultExpr RestrictPtrace() { #endif return Switch(request) .Cases({ @@ -260,7 +288,7 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA, PTRACE_GETREGSET, #endif -@@ -528,13 +553,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr +@@ -529,13 +554,14 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr size_t argIndex; switch (sysno) { #if defined(__arm__) || \ @@ -277,9 +305,10 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame case __NR_sendto: // Could specify destination. argIndex = 3; break; -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h 2025-09-28 10:15:55.415949009 +0200 +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -56,7 +56,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -289,9 +318,10 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_parame // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc 2025-09-28 10:15:55.416060681 +0200 +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -751,9 +781,10 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.c case __NR_vserver: #endif return true; -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h 2025-09-28 10:15:55.416557304 +0200 +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -803,9 +834,129 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc 2025-09-28 10:15:55.417019291 +0200 +Index: chromium-143.0.7499.40/sandbox/linux/services/syscall_wrappers.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-143.0.7499.40/sandbox/linux/services/syscall_wrappers.cc +@@ -68,7 +68,7 @@ long sys_clone(unsigned long flags, + #if defined(ARCH_CPU_X86_64) + return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); + #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ +- defined(ARCH_CPU_MIPS_FAMILY) ++ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) + // CONFIG_CLONE_BACKWARDS defined. + return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); + #endif +Index: chromium-143.0.7499.40/sandbox/linux/bpf_dsl/seccomp_macros.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/bpf_dsl/seccomp_macros.h ++++ chromium-143.0.7499.40/sandbox/linux/bpf_dsl/seccomp_macros.h +@@ -14,6 +14,9 @@ + #if defined(__mips__) + // sys/user.h in eglibc misses size_t definition + #include ++#elif defined(__powerpc64__) ++// Manually define greg_t on ppc64 ++typedef unsigned long long greg_t; + #endif + #endif + +@@ -343,6 +346,51 @@ struct regs_struct { + #define SECCOMP_PT_PARM4(_regs) (_regs).regs[3] + #define SECCOMP_PT_PARM5(_regs) (_regs).regs[4] + #define SECCOMP_PT_PARM6(_regs) (_regs).regs[5] ++ ++#elif defined(__powerpc64__) ++#include ++ ++typedef struct pt_regs regs_struct; ++ ++#ifdef ARCH_CPU_LITTLE_ENDIAN ++#define SECCOMP_ARCH AUDIT_ARCH_PPC64LE ++#else ++#define SECCOMP_ARCH AUDIT_ARCH_PPC64 ++#endif ++ ++#define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) ++ ++#define SECCOMP_RESULT(_ctx) SECCOMP_REG(_ctx, 3) ++#define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) ++#define SECCOMP_IP(_ctx) (_ctx)->uc_mcontext.regs->nip ++#define SECCOMP_PARM1(_ctx) SECCOMP_REG(_ctx, 3) ++#define SECCOMP_PARM2(_ctx) SECCOMP_REG(_ctx, 4) ++#define SECCOMP_PARM3(_ctx) SECCOMP_REG(_ctx, 5) ++#define SECCOMP_PARM4(_ctx) SECCOMP_REG(_ctx, 6) ++#define SECCOMP_PARM5(_ctx) SECCOMP_REG(_ctx, 7) ++#define SECCOMP_PARM6(_ctx) SECCOMP_REG(_ctx, 8) ++ ++#define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr)) ++#define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch)) ++#define SECCOMP_IP_MSB_IDX \ ++ (offsetof(struct arch_seccomp_data, instruction_pointer) + 4) ++#define SECCOMP_IP_LSB_IDX \ ++ (offsetof(struct arch_seccomp_data, instruction_pointer) + 0) ++#define SECCOMP_ARG_MSB_IDX(nr) \ ++ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 4) ++#define SECCOMP_ARG_LSB_IDX(nr) \ ++ (offsetof(struct arch_seccomp_data, args) + 8 * (nr) + 0) ++ ++#define SECCOMP_PT_RESULT(_regs) (_regs).gpr[3] ++#define SECCOMP_PT_SYSCALL(_regs) (_regs).gpr[0] ++#define SECCOMP_PT_IP(_regs) (_regs).nip ++#define SECCOMP_PT_PARM1(_regs) (_regs).gpr[3] ++#define SECCOMP_PT_PARM2(_regs) (_regs).gpr[4] ++#define SECCOMP_PT_PARM3(_regs) (_regs).gpr[5] ++#define SECCOMP_PT_PARM4(_regs) (_regs).gpr[6] ++#define SECCOMP_PT_PARM5(_regs) (_regs).gpr[7] ++#define SECCOMP_PT_PARM6(_regs) (_regs).gpr[8] ++ + #else + #error Unsupported target platform + +Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_seccomp.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_seccomp.h ++++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_seccomp.h +@@ -38,6 +38,9 @@ + #ifndef EM_AARCH64 + #define EM_AARCH64 183 + #endif ++#ifndef EM_PPC64 ++#define EM_PPC64 21 ++#endif + + #ifndef __AUDIT_ARCH_64BIT + #define __AUDIT_ARCH_64BIT 0x80000000 +@@ -70,6 +73,12 @@ + #ifndef AUDIT_ARCH_AARCH64 + #define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) + #endif ++#ifndef AUDIT_ARCH_PPC64 ++#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT) ++#endif ++#ifndef AUDIT_ARCH_PPC64LE ++#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) ++#endif + + // For prctl.h + #ifndef PR_SET_SECCOMP +Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_signal.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_signal.h ++++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_signal.h +@@ -13,7 +13,7 @@ + // (not undefined, but defined different values and in different memory + // layouts). So, fill the gap here. + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ +- defined(__aarch64__) ++ defined(__aarch64__) || defined(__powerpc64__) + + #define LINUX_SIGHUP 1 + #define LINUX_SIGINT 2 +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/syscall.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf/syscall.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/syscall.cc @@ -19,7 +19,7 @@ namespace sandbox { namespace { @@ -900,33 +1051,58 @@ diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/syscall.cc.0001-sandbo #endif SECCOMP_RESULT(ctx) = static_cast(ret_val); } -diff -up chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc ---- chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/seccomp-bpf/trap.cc 2025-09-28 10:15:55.414751305 +0200 -@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* - SetIsInSigHandler(); - } +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) -+#if defined(__powerpc64__) -+ // On ppc64+glibc, some syscalls seem to accidentally negate the first -+ // parameter which causes checks against it to fail. For now, manually -+ // negate them back. -+ // TODO(sanastasio@raptorengineering.com): investigate this issue further -+ auto nr = SECCOMP_SYSCALL(ctx); -+ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat || -+ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) { -+ if (static_cast(SECCOMP_PARM1(ctx)) > 0) { -+ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx); -+ } -+ } + #if !defined(__aarch64__) + TEST_BASELINE_SIGSYS(__NR_inotify_init) ++#if !defined(__powerpc64__) + TEST_BASELINE_SIGSYS(__NR_vserver) + #endif +#endif -+ - // Copy the seccomp-specific data into a arch_seccomp_data structure. This - // is what we are showing to TrapFnc callbacks that the system call - // evaluator registered with the sandbox. -diff -up chromium-141.0.7390.37/sandbox/linux/services/credentials.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/services/credentials.cc ---- chromium-141.0.7390.37/sandbox/linux/services/credentials.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/services/credentials.cc 2025-09-28 10:18:58.609023878 +0200 + + #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS) + BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { +Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_stat.h +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_stat.h ++++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_stat.h +@@ -173,6 +173,28 @@ struct kernel_stat { + unsigned int __unused4; + unsigned int __unused5; + }; ++#elif defined(__powerpc64__) ++struct kernel_stat { ++ unsigned long st_dev; ++ ino_t st_ino; ++ unsigned long st_nlink; ++ mode_t st_mode; ++ uid_t st_uid; ++ gid_t st_gid; ++ unsigned long st_rdev; ++ long st_size; ++ unsigned long st_blksize; ++ unsigned long st_blocks; ++ // unsigned long st_atime; ++ unsigned long st_atime_nsec; ++ //unsigned long st_mtime; ++ unsigned long st_mtime_nsec; ++ //unsigned long st_ctime; ++ unsigned long st_ctime_nsec; ++ unsigned long __unused4; ++ unsigned long __unused5; ++ unsigned long __unused6; ++}; + #endif + + #if !defined(AT_EMPTY_PATH) +Index: chromium-143.0.7499.40/sandbox/linux/services/credentials.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/services/credentials.cc ++++ chromium-143.0.7499.40/sandbox/linux/services/credentials.cc @@ -85,7 +85,7 @@ bool ChrootToSafeEmptyDir() { alignas(16) std::array stack_buf; @@ -958,185 +1134,10 @@ diff -up chromium-141.0.7390.37/sandbox/linux/services/credentials.cc.0001-sandb clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; -diff -up chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc ---- chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/services/syscall_wrappers.cc 2025-09-28 10:15:55.416648236 +0200 -@@ -68,7 +68,7 @@ long sys_clone(unsigned long flags, - #if defined(ARCH_CPU_X86_64) - return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); - #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ -- defined(ARCH_CPU_MIPS_FAMILY) -+ defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_PPC64_FAMILY) - // CONFIG_CLONE_BACKWARDS defined. - return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); - #endif -diff -up chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc ---- chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/syscall_broker/broker_process.cc 2025-09-28 10:15:55.415563066 +0200 -@@ -167,7 +167,7 @@ bool BrokerProcess::IsSyscallBrokerable( - #if defined(__NR_fstatat64) - case __NR_fstatat64: - #endif --#if defined(__x86_64__) || defined(__aarch64__) -+#if defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__) - case __NR_newfstatat: - #endif - return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); -diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h ---- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_seccomp.h 2025-09-28 10:15:55.416845160 +0200 -@@ -38,6 +38,9 @@ - #ifndef EM_AARCH64 - #define EM_AARCH64 183 - #endif -+#ifndef EM_PPC64 -+#define EM_PPC64 21 -+#endif - - #ifndef __AUDIT_ARCH_64BIT - #define __AUDIT_ARCH_64BIT 0x80000000 -@@ -70,6 +73,12 @@ - #ifndef AUDIT_ARCH_AARCH64 - #define AUDIT_ARCH_AARCH64 (EM_AARCH64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) - #endif -+#ifndef AUDIT_ARCH_PPC64 -+#define AUDIT_ARCH_PPC64 (EM_PPC64 | __AUDIT_ARCH_64BIT) -+#endif -+#ifndef AUDIT_ARCH_PPC64LE -+#define AUDIT_ARCH_PPC64LE (EM_PPC64 | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) -+#endif - - // For prctl.h - #ifndef PR_SET_SECCOMP -diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h ---- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_signal.h 2025-09-28 10:15:55.416926335 +0200 -@@ -13,7 +13,7 @@ - // (not undefined, but defined different values and in different memory - // layouts). So, fill the gap here. - #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - - #define LINUX_SIGHUP 1 - #define LINUX_SIGINT 2 -diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h ---- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_stat.h 2025-09-28 10:15:55.417253506 +0200 -@@ -173,6 +173,28 @@ struct kernel_stat { - unsigned int __unused4; - unsigned int __unused5; - }; -+#elif defined(__powerpc64__) -+struct kernel_stat { -+ unsigned long st_dev; -+ ino_t st_ino; -+ unsigned long st_nlink; -+ mode_t st_mode; -+ uid_t st_uid; -+ gid_t st_gid; -+ unsigned long st_rdev; -+ long st_size; -+ unsigned long st_blksize; -+ unsigned long st_blocks; -+ // unsigned long st_atime; -+ unsigned long st_atime_nsec; -+ //unsigned long st_mtime; -+ unsigned long st_mtime_nsec; -+ //unsigned long st_ctime; -+ unsigned long st_ctime_nsec; -+ unsigned long __unused4; -+ unsigned long __unused5; -+ unsigned long __unused6; -+}; - #endif - - #if !defined(AT_EMPTY_PATH) -diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h ---- chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/system_headers/linux_syscalls.h 2025-09-28 10:15:55.415341084 +0200 -@@ -35,5 +35,9 @@ - #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" - #endif - -+#if defined(__powerpc64__) -+#include "sandbox/linux/system_headers/ppc64_linux_syscalls.h" -+#endif -+ - #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ - -diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h ---- chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-28 10:15:55.415404074 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_syscalls.h 2025-09-28 10:15:55.415404074 +0200 -@@ -0,0 +1,25 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -+ -+#include -+ -+//TODO: is it necessary to redefine syscall numbers for PPC64? -+// Needed for Ubuntu/Debian/Centos/RHEL: -+#if !defined(__NR_shmget) -+#define __NR_shmget 395 -+#endif -+#if !defined(__NR_shmdt) -+#define __NR_shmdt 398 -+#endif -+#if !defined(__NR_shmctl) -+#define __NR_shmctl 396 -+#endif -+#if !defined(__NR_shmat) -+#define __NR_shmat 397 -+#endif -+ -+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -diff -up chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h ---- chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-28 10:15:55.415474818 +0200 -+++ chromium-141.0.7390.37/sandbox/linux/system_headers/ppc64_linux_ucontext.h 2025-09-28 10:15:55.415474818 +0200 -@@ -0,0 +1,12 @@ -+// Copyright 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -+#define SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -+ -+#include -+ -+//TODO: is it necessary to redefine ucontext on PPC64? -+ -+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -diff -up chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc ---- chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/policy/linux/bpf_renderer_policy_linux.cc 2025-09-28 10:15:55.415005076 +0200 -@@ -17,6 +17,11 @@ - #include "sandbox/linux/system_headers/linux_syscalls.h" - #include "sandbox/policy/linux/sandbox_linux.h" - -+// On PPC64, TCGETS is defined in terms of struct termios, so we must include termios.h -+#ifdef __powerpc64__ -+#include -+#endif -+ - // TODO(vignatti): replace the local definitions below with #include - // once kernel version 4.6 becomes widely used. - #include -@@ -86,7 +91,7 @@ ResultExpr RendererProcessPolicy::Evalua - case __NR_ftruncate64: - #endif - #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ -- defined(__aarch64__) -+ defined(__aarch64__) || defined(__powerpc64__) - case __NR_getrlimit: - case __NR_setrlimit: - // We allow setrlimit to dynamically adjust the address space limit as -diff -up chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc ---- chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc.0001-sandbox-Enable-seccomp_bpf-for-ppc64 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc 2025-09-28 10:15:55.417510624 +0200 +Index: chromium-143.0.7499.40/sandbox/policy/linux/bpf_utility_policy_linux.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-143.0.7499.40/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -1146,3 +1147,25 @@ diff -up chromium-141.0.7390.37/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) +Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +=================================================================== +--- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +@@ -389,7 +389,16 @@ intptr_t SIGSYSFstatatHandler(const stru + if (args.nr == __NR_fstatat_default) { + if (*reinterpret_cast(args.args[1]) == '\0' && + args.args[3] == static_cast(AT_EMPTY_PATH)) { +- return syscall(__NR_fstat_default, static_cast(args.args[0]), ++ int fd = static_cast(args.args[0]); ++#if defined(__powerpc64__) ++ // On ppc64+glibc, some syscalls seem to accidentally negate the first ++ // parameter which causes checks against it to fail. For now, manually ++ // negate them back. ++ // TODO: Investigate the root cause and fix in glibc ++ if (fd < 0) ++ fd = -fd; ++#endif ++ return syscall(__NR_fstat_default, fd, + reinterpret_cast(args.args[2])); + } + return -reinterpret_cast(fs_denied_errno); diff --git a/0001-swiftshader-fix-build.patch b/0001-swiftshader-fix-build.patch index 646e27b..c3f8771 100644 --- a/0001-swiftshader-fix-build.patch +++ b/0001-swiftshader-fix-build.patch @@ -1,15 +1,3 @@ -diff -up chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn.me chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn ---- chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn.me 2025-09-04 06:47:12.233139911 +0200 -+++ chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn 2025-09-04 06:52:37.001661643 +0200 -@@ -1261,6 +1261,8 @@ swiftshader_llvm_source_set("swiftshader - "llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp", - "llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp", - "llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp", -+ "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp", -+ "llvm/lib/MC/MCAsmInfoXCOFF.cpp", - ] - } - diff -up chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn.me chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn --- chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn.me 2025-09-04 06:45:21.570780130 +0200 +++ chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn 2025-09-04 06:55:56.278501043 +0200 diff --git a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch index bbe406a..0377a9b 100644 --- a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch +++ b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/angle/src/libANGLE/Constants.h +Index: chromium-143.0.7499.40/third_party/angle/src/libANGLE/Constants.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/angle/src/libANGLE/Constants.h -+++ chromium-140.0.7339.41/third_party/angle/src/libANGLE/Constants.h +--- chromium-143.0.7499.40.orig/third_party/angle/src/libANGLE/Constants.h ++++ chromium-143.0.7499.40/third_party/angle/src/libANGLE/Constants.h @@ -9,6 +9,7 @@ #ifndef LIBANGLE_CONSTANTS_H_ #define LIBANGLE_CONSTANTS_H_ diff --git a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch index 3dd4ab9..8f06a2d 100644 --- a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch +++ b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/libvpx: Properly generate gni on ppc64 third_party/libvpx/generate_gni.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) -Index: chromium-140.0.7339.41/third_party/libvpx/BUILD.gn +Index: chromium-143.0.7499.40/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/BUILD.gn -+++ chromium-140.0.7339.41/third_party/libvpx/BUILD.gn +--- chromium-143.0.7499.40.orig/third_party/libvpx/BUILD.gn ++++ chromium-143.0.7499.40/third_party/libvpx/BUILD.gn @@ -297,6 +297,8 @@ if (current_cpu == "x86" || (current_cpu } else if (current_cpu == "x64") { deps = [ ":libvpx_x86_64_headers" ] diff --git a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch index c324852..2ba1e48 100644 --- a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch +++ b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/pffft: Include altivec.h on ppc64 with SIMD third_party/pffft/src/pffft.c | 1 + 1 file changed, 1 insertion(+) -Index: chromium-140.0.7339.41/third_party/pffft/src/pffft.c +Index: chromium-143.0.7499.40/third_party/pffft/src/pffft.c =================================================================== ---- chromium-140.0.7339.41.orig/third_party/pffft/src/pffft.c -+++ chromium-140.0.7339.41/third_party/pffft/src/pffft.c +--- chromium-143.0.7499.40.orig/third_party/pffft/src/pffft.c ++++ chromium-143.0.7499.40/third_party/pffft/src/pffft.c @@ -100,6 +100,7 @@ Altivec support macros */ diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 6369cfe..12d7619 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,11 +4271,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake +Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake -@@ -120,6 +120,7 @@ set( +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.cmake +@@ -122,6 +122,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S gen/bcm/aesni-x86_64-linux.S @@ -4283,7 +4283,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake gen/bcm/aesv8-armv7-linux.S gen/bcm/aesv8-armv8-apple.S gen/bcm/aesv8-armv8-linux.S -@@ -151,6 +152,7 @@ set( +@@ -153,6 +154,7 @@ set( gen/bcm/ghash-x86-linux.S gen/bcm/ghash-x86_64-apple.S gen/bcm/ghash-x86_64-linux.S @@ -4291,7 +4291,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake gen/bcm/ghashv8-armv7-linux.S gen/bcm/ghashv8-armv8-apple.S gen/bcm/ghashv8-armv8-linux.S -@@ -350,6 +352,7 @@ set( +@@ -352,6 +354,7 @@ set( crypto/cpu_arm_freebsd.cc crypto/cpu_arm_linux.cc crypto/cpu_intel.cc @@ -4299,7 +4299,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake crypto/crypto.cc crypto/curve25519/curve25519.cc crypto/curve25519/curve25519_64_adx.cc -@@ -2925,6 +2928,7 @@ set( +@@ -2971,6 +2974,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -4307,11 +4307,11 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json +Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-140.0.7339.41.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json -@@ -98,6 +98,7 @@ +--- chromium-143.0.7499.40.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.json +@@ -100,6 +100,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", "gen/bcm/aesni-x86_64-linux.S", @@ -4319,7 +4319,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json "gen/bcm/aesv8-armv7-linux.S", "gen/bcm/aesv8-armv8-apple.S", "gen/bcm/aesv8-armv8-linux.S", -@@ -129,6 +130,7 @@ +@@ -131,6 +132,7 @@ "gen/bcm/ghash-x86-linux.S", "gen/bcm/ghash-x86_64-apple.S", "gen/bcm/ghash-x86_64-linux.S", @@ -4327,7 +4327,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json "gen/bcm/ghashv8-armv7-linux.S", "gen/bcm/ghashv8-armv8-apple.S", "gen/bcm/ghashv8-armv8-linux.S", -@@ -320,6 +322,7 @@ +@@ -322,6 +324,7 @@ "crypto/cpu_arm_freebsd.cc", "crypto/cpu_arm_linux.cc", "crypto/cpu_intel.cc", @@ -4335,7 +4335,7 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -2841,6 +2844,7 @@ +@@ -2883,6 +2886,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -4343,10 +4343,10 @@ Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-140.0.7339.41/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-143.0.7499.40/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-Add-ppc64-trap-instructions.patch b/0002-Add-ppc64-trap-instructions.patch index e76ea40..61e9992 100644 --- a/0002-Add-ppc64-trap-instructions.patch +++ b/0002-Add-ppc64-trap-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/v8/src/base/immediate-crash.h +Index: chromium-143.0.7499.40/v8/src/base/immediate-crash.h =================================================================== ---- chromium-140.0.7339.41.orig/v8/src/base/immediate-crash.h -+++ chromium-140.0.7339.41/v8/src/base/immediate-crash.h +--- chromium-143.0.7499.40.orig/v8/src/base/immediate-crash.h ++++ chromium-143.0.7499.40/v8/src/base/immediate-crash.h @@ -98,6 +98,13 @@ #define TRAP_SEQUENCE1_() asm volatile(".2byte 0x0001"); #define TRAP_SEQUENCE2_() asm volatile("") diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch index 8633f39..09eb811 100644 --- a/0002-regenerate-xnn-buildgn.patch +++ b/0002-regenerate-xnn-buildgn.patch @@ -1,9 +1,10 @@ File regenerated by running 'python3 generate_build_gn.py' +Requires Bazel 8 or higher to regenerate -Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn =================================================================== ---- chromium-142.0.7444.52.orig/third_party/xnnpack/BUILD.gn -+++ chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +--- chromium-143.0.7499.40.orig/third_party/xnnpack/BUILD.gn ++++ chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn @@ -35,10 +35,10 @@ config("xnnpack_public_config") { } @@ -264,16 +265,16 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":f32-vunary_x64", + ":operators_x64", + ":qd8-f16-qb4w-gemm_f16c-fma-avx2", -+ ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni", + ":qd8-f16-qc4w-gemm_f16c-fma-avx2", + ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", -+ ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni", + ":qd8-f16-qc8w-gemm_f16c-fma-avx2", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", -+ ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni", + ":qd8-f16-qc8w-igemm_f16c-fma-avx2", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -285,7 +286,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qd8-f32-qb4w-gemm_sse2-no-sse3", + ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2", + ":qd8-f32-qb4w-gemm_x64", -+ ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni", + ":qd8-f32-qc4w-gemm_f16c-fma-avx2", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -294,7 +295,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qd8-f32-qc4w-gemm_sse2-no-sse3", + ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1", + ":qd8-f32-qc4w-gemm_x64", -+ ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni", + ":qd8-f32-qc8w-gemm_f16c-fma-avx2", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -302,7 +303,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qd8-f32-qc8w-gemm_sse2-no-sse3", + ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2", + ":qd8-f32-qc8w-gemm_x64", -+ ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma", ++ ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni", + ":qd8-f32-qc8w-igemm_f16c-fma-avx2", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -323,12 +324,12 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-f32-vcvt_sse2-no-sse3", + ":qs8-f32-vcvt_sse4.1-no-sse4.2", + ":qs8-f32-vcvt_x64", -+ ":qs8-packw_avx2-avxvnni-f16c-fma", ++ ":qs8-packw_avx2-avxvnni-f16c-fma-gfni", + ":qs8-packw_f16c-fma-avx2", + ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", + ":qs8-packw_x64", + ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma", -+ ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma", ++ ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni", + ":qs8-qc4w-gemm_f16c-fma-avx2", + ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -341,8 +342,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-qc8w-dwconv_sse4.1-no-sse4.2", + ":qs8-qc8w-dwconv_x64", + ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma", -+ ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma", -+ ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma", ++ ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni", ++ ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni", + ":qs8-qc8w-gemm_f16c-fma-avx2", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -351,8 +352,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-qc8w-gemm_sse4.1-no-sse4.2", + ":qs8-qc8w-gemm_x64", + ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma", -+ ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma", -+ ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma", ++ ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni", ++ ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni", + ":qs8-qc8w-igemm_f16c-fma-avx2", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -360,14 +361,14 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-qc8w-igemm_sse2-no-sse3", + ":qs8-qc8w-igemm_sse4.1-no-sse4.2", + ":qs8-qc8w-igemm_x64", -+ ":qs8-qu8-packw_avx2-avxvnni-f16c-fma", ++ ":qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni", + ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", + ":qs8-qu8-packw_x64", + ":qs8-rdsum_f16c-fma-avx2", + ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qs8-rdsum_sse4.1-no-sse4.2", + ":qs8-rdsum_x64", -+ ":qs8-rsum_avx2-avxvnni-f16c-fma", ++ ":qs8-rsum_avx2-avxvnni-f16c-fma-gfni", + ":qs8-rsum_f16c-fma-avx2", + ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", + ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -785,16 +786,16 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":f32-vunary_x64_standalone", + ":operators_x64_standalone", + ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", -+ ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", + ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", -+ ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", -+ ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -806,7 +807,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", + ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", + ":qd8-f32-qb4w-gemm_x64_standalone", -+ ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -815,7 +816,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", + ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", + ":qd8-f32-qc4w-gemm_x64_standalone", -+ ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -823,7 +824,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", + ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", + ":qd8-f32-qc8w-gemm_x64_standalone", -+ ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -844,12 +845,12 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-f32-vcvt_sse2-no-sse3_standalone", + ":qs8-f32-vcvt_sse4.1-no-sse4.2_standalone", + ":qs8-f32-vcvt_x64_standalone", -+ ":qs8-packw_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qs8-packw_f16c-fma-avx2_standalone", + ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-packw_x64_standalone", + ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -+ ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", + ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -862,8 +863,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone", + ":qs8-qc8w-dwconv_x64_standalone", + ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -+ ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", -+ ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", ++ ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", ++ ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -872,8 +873,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", + ":qs8-qc8w-gemm_x64_standalone", + ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone", -+ ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", -+ ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", ++ ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone", ++ ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -881,14 +882,14 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ":qs8-qc8w-igemm_sse2-no-sse3_standalone", + ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", + ":qs8-qc8w-igemm_x64_standalone", -+ ":qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", + ":qs8-qu8-packw_x64_standalone", + ":qs8-rdsum_f16c-fma-avx2_standalone", + ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-rdsum_sse4.1-no-sse4.2_standalone", + ":qs8-rdsum_x64_standalone", -+ ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", ++ ":qs8-rsum_avx2-avxvnni-f16c-fma-gfni_standalone", + ":qs8-rsum_f16c-fma-avx2_standalone", + ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", + ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -1308,16 +1309,16 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":f32-vunary_x64", - ":operators_x64", - ":qd8-f16-qb4w-gemm_f16c-fma-avx2", -- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni", - ":qd8-f16-qc4w-gemm_f16c-fma-avx2", - ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", -- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni", - ":qd8-f16-qc8w-gemm_f16c-fma-avx2", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8", -- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma", +- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni", - ":qd8-f16-qc8w-igemm_f16c-fma-avx2", - ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1329,7 +1330,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qd8-f32-qb4w-gemm_sse2-no-sse3", - ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2", - ":qd8-f32-qb4w-gemm_x64", -- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni", - ":qd8-f32-qc4w-gemm_f16c-fma-avx2", - ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1338,7 +1339,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qd8-f32-qc4w-gemm_sse2-no-sse3", - ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1", - ":qd8-f32-qc4w-gemm_x64", -- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma", +- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni", - ":qd8-f32-qc8w-gemm_f16c-fma-avx2", - ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1346,7 +1347,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qd8-f32-qc8w-gemm_sse2-no-sse3", - ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2", - ":qd8-f32-qc8w-gemm_x64", -- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma", +- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni", - ":qd8-f32-qc8w-igemm_f16c-fma-avx2", - ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1367,12 +1368,12 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-f32-vcvt_sse2-no-sse3", - ":qs8-f32-vcvt_sse4.1-no-sse4.2", - ":qs8-f32-vcvt_x64", -- ":qs8-packw_avx2-avxvnni-f16c-fma", +- ":qs8-packw_avx2-avxvnni-f16c-fma-gfni", - ":qs8-packw_f16c-fma-avx2", - ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", - ":qs8-packw_x64", - ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma", -- ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma", +- ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni", - ":qs8-qc4w-gemm_f16c-fma-avx2", - ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1385,8 +1386,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-qc8w-dwconv_sse4.1-no-sse4.2", - ":qs8-qc8w-dwconv_x64", - ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma", -- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma", -- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma", +- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni", +- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni", - ":qs8-qc8w-gemm_f16c-fma-avx2", - ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1395,8 +1396,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-qc8w-gemm_sse4.1-no-sse4.2", - ":qs8-qc8w-gemm_x64", - ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma", -- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma", -- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma", +- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni", +- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni", - ":qs8-qc8w-igemm_f16c-fma-avx2", - ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -1404,14 +1405,14 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-qc8w-igemm_sse2-no-sse3", - ":qs8-qc8w-igemm_sse4.1-no-sse4.2", - ":qs8-qc8w-igemm_x64", -- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma", +- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni", - ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", - ":qs8-qu8-packw_x64", - ":qs8-rdsum_f16c-fma-avx2", - ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qs8-rdsum_sse4.1-no-sse4.2", - ":qs8-rdsum_x64", -- ":qs8-rsum_avx2-avxvnni-f16c-fma", +- ":qs8-rsum_avx2-avxvnni-f16c-fma-gfni", - ":qs8-rsum_f16c-fma-avx2", - ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl", - ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni", @@ -2046,16 +2047,16 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":f32-vunary_x64_standalone", - ":operators_x64_standalone", - ":qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone", -- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone", - ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", -- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone", - ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -2067,7 +2068,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qd8-f32-qb4w-gemm_sse2-no-sse3_standalone", - ":qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone", - ":qd8-f32-qb4w-gemm_x64_standalone", -- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone", - ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone", @@ -2076,7 +2077,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qd8-f32-qc4w-gemm_sse2-no-sse3_standalone", - ":qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone", - ":qd8-f32-qc4w-gemm_x64_standalone", -- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone", - ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -2084,7 +2085,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qd8-f32-qc8w-gemm_sse2-no-sse3_standalone", - ":qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone", - ":qd8-f32-qc8w-gemm_x64_standalone", -- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", +- ":qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone", - ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -2105,12 +2106,12 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-f32-vcvt_sse2-no-sse3_standalone", - ":qs8-f32-vcvt_sse4.1-no-sse4.2_standalone", - ":qs8-f32-vcvt_x64_standalone", -- ":qs8-packw_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qs8-packw_f16c-fma-avx2_standalone", - ":qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-packw_x64_standalone", - ":qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qs8-qc4w-gemm_f16c-fma-avx2_standalone", - ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", @@ -2123,8 +2124,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone", - ":qs8-qc8w-dwconv_x64_standalone", - ":qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone", +- ":qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone", +- ":qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni_standalone", - ":qs8-qc8w-gemm_f16c-fma-avx2_standalone", - ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qs8-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -2133,8 +2134,8 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-qc8w-gemm_sse4.1-no-sse4.2_standalone", - ":qs8-qc8w-gemm_x64_standalone", - ":qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma_standalone", -- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone", -- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone", +- ":qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone", +- ":qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni_standalone", - ":qs8-qc8w-igemm_f16c-fma-avx2_standalone", - ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone", - ":qs8-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", @@ -2142,14 +2143,14 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - ":qs8-qc8w-igemm_sse2-no-sse3_standalone", - ":qs8-qc8w-igemm_sse4.1-no-sse4.2_standalone", - ":qs8-qc8w-igemm_x64_standalone", -- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qs8-qu8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-qu8-packw_x64_standalone", - ":qs8-rdsum_f16c-fma-avx2_standalone", - ":qs8-rdsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", - ":qs8-rdsum_sse4.1-no-sse4.2_standalone", - ":qs8-rdsum_x64_standalone", -- ":qs8-rsum_avx2-avxvnni-f16c-fma_standalone", +- ":qs8-rsum_avx2-avxvnni-f16c-fma-gfni_standalone", - ":qs8-rsum_f16c-fma-avx2_standalone", - ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone", - ":qs8-rsum_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone", @@ -4070,7 +4071,7 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn public_configs = [ ":xnnpack_public_config" ] -@@ -1989,56261 +2254,65773 @@ if (build_with_internal_optimization_gui +@@ -1989,56289 +2254,65801 @@ if (build_with_internal_optimization_gui } if (current_cpu == "x64" || current_cpu == "x86") { @@ -25208,12 +25209,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -25269,12 +25271,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -25717,12 +25720,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -25779,12 +25783,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -26361,12 +26366,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -26421,12 +26427,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -27871,12 +27878,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -27931,12 +27939,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -28999,12 +29008,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -29061,12 +29071,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -30136,12 +30147,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -30199,12 +30211,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -33634,12 +33647,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qs8-packw_avx2-avxvnni-f16c-fma") { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -33721,12 +33735,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -34546,12 +34561,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -34635,12 +34651,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -37606,12 +37623,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -37638,12 +37656,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -37886,12 +37905,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -37918,12 +37938,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -38247,12 +38268,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -38279,12 +38301,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -39079,12 +39102,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -39111,12 +39135,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -39708,12 +39733,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -39740,12 +39766,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -40262,12 +40289,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -40294,12 +40322,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -41655,12 +41684,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-packw_avx2-avxvnni-f16c-fma") { ++ source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -41687,12 +41717,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -41994,12 +42025,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma") { ++ source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -42026,12 +42058,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -42879,12 +42912,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { ++ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -42911,12 +42945,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -42946,12 +42981,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { ++ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnniint8", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -42978,12 +43014,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { ++ source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnniint8", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -43565,12 +43602,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { ++ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -43597,12 +43635,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -43632,12 +43671,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { ++ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnniint8", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -43664,12 +43704,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { ++ source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnniint8", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -44184,12 +44225,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { ++ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -44215,12 +44257,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -44635,12 +44678,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { -+ source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { ++ source_set("qs8-rsum_avx2-avxvnni-f16c-fma-gfni") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -44666,12 +44710,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { ++ source_set("qs8-rsum_avx2-avxvnni-f16c-fma-gfni_standalone") { + cflags = [ + "-mavx2", + "-mavxvnni", + "-mf16c", -+ "-mfma" ++ "-mfma", ++ "-mgfni" + ] + + sources = [ @@ -66904,12 +66949,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma") { +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -66944,12 +66990,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -66987,12 +67034,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + asmflags = cflags - if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma") { +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnniint8", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -67030,12 +67078,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma_standalone") { +- source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnniint8", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -67788,12 +67837,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + ] - if (build_with_chromium) { -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma") { +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -67830,12 +67880,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -67870,12 +67921,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma") { +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnniint8", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -67918,12 +67970,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma_standalone") { +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnniint8", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -68595,12 +68648,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma") { +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -68634,12 +68688,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qs8-qu8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -69219,12 +69274,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma") { +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma-gfni") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ @@ -69257,12 +69313,13 @@ Index: chromium-142.0.7444.52/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-rsum_avx2-avxvnni-f16c-fma_standalone") { +- source_set("qs8-rsum_avx2-avxvnni-f16c-fma-gfni_standalone") { - cflags = [ - "-mavx2", - "-mavxvnni", - "-mf16c", - "-mfma", +- "-mgfni", - ] - - sources = [ diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index e58e489..c8c0a6e 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,6 +1,6 @@ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null @@ -1,186 +0,0 @@ -/* @@ -189,9 +189,9 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif // VP8_RTCD_H_ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null @@ -1,119 +0,0 @@ -/* @@ -313,9 +313,9 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif // VP9_RTCD_H_ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,107 +0,0 @@ -@ This file was created from a .asm file @@ -425,9 +425,9 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -440,9 +440,9 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_c -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,116 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -561,9 +561,9 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null @@ -1,858 +0,0 @@ -/* @@ -1424,9 +1424,9 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif // VPX_DSP_RTCD_H_ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null @@ -1,83 +0,0 @@ -/* diff --git a/0002-third_party-lss-kernel-structs.patch b/0002-third_party-lss-kernel-structs.patch index b234a14..9b2d8e5 100644 --- a/0002-third_party-lss-kernel-structs.patch +++ b/0002-third_party-lss-kernel-structs.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h +Index: chromium-143.0.7499.40/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/lss/linux_syscall_support.h -+++ chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h +--- chromium-143.0.7499.40.orig/third_party/lss/linux_syscall_support.h ++++ chromium-143.0.7499.40/third_party/lss/linux_syscall_support.h @@ -86,7 +86,7 @@ * Porting to other related platforms should not be difficult. */ @@ -11,7 +11,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h defined(__aarch64__) || defined(__s390__) || defined(__e2k__) || \ (defined(__riscv) && __riscv_xlen == 64) || defined(__loongarch_lp64)) \ && (defined(__linux) || defined(__ANDROID__)) -@@ -398,7 +398,7 @@ struct kernel_stat64 { +@@ -400,7 +400,7 @@ struct kernel_stat64 { unsigned __pad2; unsigned long long st_blocks; }; @@ -20,7 +20,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h struct kernel_stat64 { unsigned long long st_dev; unsigned long long st_ino; -@@ -420,6 +420,28 @@ struct kernel_stat64 { +@@ -422,6 +422,28 @@ struct kernel_stat64 { unsigned long __unused4; unsigned long __unused5; }; @@ -49,7 +49,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h #elif defined(__e2k__) struct kernel_stat64 { unsigned long long st_dev; -@@ -536,7 +558,7 @@ struct kernel_stat { +@@ -538,7 +560,7 @@ struct kernel_stat { uint64_t st_ctime_nsec_; int64_t __unused4[3]; }; @@ -58,7 +58,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h typedef unsigned long kernel_blkcnt_t; typedef unsigned long kernel_blksize_t; typedef unsigned kernel_dev_t; -@@ -567,6 +589,37 @@ struct kernel_stat { +@@ -569,6 +591,37 @@ struct kernel_stat { unsigned long __unused4; unsigned long __unused5; }; @@ -96,7 +96,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h #elif (defined(__mips__) && _MIPS_SIM != _MIPS_SIM_ABI64) typedef int kernel_blkcnt_t; typedef int kernel_blksize_t; -@@ -1823,6 +1876,28 @@ struct kernel_statx { +@@ -1825,6 +1878,28 @@ struct kernel_statx { #ifndef __NR_getcpu #define __NR_getcpu 302 #endif @@ -125,7 +125,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h /* End of powerpc definitions */ #elif defined(__s390__) #ifndef __NR_quotactl -@@ -4824,7 +4899,7 @@ struct kernel_statx { +@@ -4826,7 +4901,7 @@ struct kernel_statx { LSS_INLINE _syscall6(void*, mmap, void*, addr, size_t, length, int, prot, int, flags, int, fd, int64_t, offset) #endif @@ -134,7 +134,7 @@ Index: chromium-140.0.7339.41/third_party/lss/linux_syscall_support.h #undef LSS_SC_LOADARGS_0 #define LSS_SC_LOADARGS_0(dummy...) #undef LSS_SC_LOADARGS_1 -@@ -5214,7 +5289,11 @@ struct kernel_statx { +@@ -5216,7 +5291,11 @@ struct kernel_statx { #endif #if !defined(__NR_pipe) diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index 73fb10f..b4d484c 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-140.0.7339.41/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-third_party-crashpad-port-curl-transport-ppc64.patch b/0004-third_party-crashpad-port-curl-transport-ppc64.patch index edaff0a..550213d 100644 --- a/0004-third_party-crashpad-port-curl-transport-ppc64.patch +++ b/0004-third_party-crashpad-port-curl-transport-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc -+++ chromium-140.0.7339.41/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +--- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc ++++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc @@ -239,6 +239,12 @@ std::string UserAgent() { #endif #elif defined (ARCH_CPU_RISCV64) diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index 727edd7..58aed49 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vp9/encoder/ppc/v eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct3 } // Returns 1 if negative 0 if positive -Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/HACK-debian-clang-disable-base-musttail.patch b/HACK-debian-clang-disable-base-musttail.patch index 73026f5..566c8d9 100644 --- a/HACK-debian-clang-disable-base-musttail.patch +++ b/HACK-debian-clang-disable-base-musttail.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/base/compiler_specific.h +Index: chromium-143.0.7499.40/base/compiler_specific.h =================================================================== ---- chromium-140.0.7339.41.orig/base/compiler_specific.h -+++ chromium-140.0.7339.41/base/compiler_specific.h +--- chromium-143.0.7499.40.orig/base/compiler_specific.h ++++ chromium-143.0.7499.40/base/compiler_specific.h @@ -198,7 +198,7 @@ // MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. // } diff --git a/HACK-debian-clang-disable-pa-musttail.patch b/HACK-debian-clang-disable-pa-musttail.patch index 22a4618..f124de4 100644 --- a/HACK-debian-clang-disable-pa-musttail.patch +++ b/HACK-debian-clang-disable-pa-musttail.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +Index: chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h =================================================================== ---- chromium-140.0.7339.41.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h -+++ chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h -@@ -144,7 +144,7 @@ +--- chromium-143.0.7499.40.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h ++++ chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +@@ -139,7 +139,7 @@ // PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. // } // ``` diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index e735cf0..44c118d 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/libvpx/generate_gni.sh +Index: chromium-143.0.7499.40/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/generate_gni.sh -+++ chromium-140.0.7339.41/third_party/libvpx/generate_gni.sh +--- chromium-143.0.7499.40.orig/third_party/libvpx/generate_gni.sh ++++ chromium-143.0.7499.40/third_party/libvpx/generate_gni.sh @@ -429,7 +429,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ @@ -11,10 +11,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-140.0.7339.41/third_party/libvpx/source/libvpx/build/make/rtcd.pl +--- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/build/make/rtcd.pl @@ -527,8 +527,9 @@ if ($opts{arch} eq 'x86') { } arm; @@ -27,10 +27,10 @@ Index: chromium-140.0.7339.41/third_party/libvpx/source/libvpx/build/make/rtcd.p } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-140.0.7339.41/third_party/libvpx/BUILD.gn +Index: chromium-143.0.7499.40/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/libvpx/BUILD.gn -+++ chromium-140.0.7339.41/third_party/libvpx/BUILD.gn +--- chromium-143.0.7499.40.orig/third_party/libvpx/BUILD.gn ++++ chromium-143.0.7499.40/third_party/libvpx/BUILD.gn @@ -98,6 +98,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] diff --git a/Rtc_base-system-arch.h-PPC.patch b/Rtc_base-system-arch.h-PPC.patch index c2cf7cc..4985a70 100644 --- a/Rtc_base-system-arch.h-PPC.patch +++ b/Rtc_base-system-arch.h-PPC.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/webrtc/rtc_base/system/arch.h +Index: chromium-143.0.7499.40/third_party/webrtc/rtc_base/system/arch.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/webrtc/rtc_base/system/arch.h -+++ chromium-140.0.7339.41/third_party/webrtc/rtc_base/system/arch.h +--- chromium-143.0.7499.40.orig/third_party/webrtc/rtc_base/system/arch.h ++++ chromium-143.0.7499.40/third_party/webrtc/rtc_base/system/arch.h @@ -46,6 +46,18 @@ #endif #if defined(__MIPSEL__) diff --git a/add-ppc64-architecture-string.patch b/add-ppc64-architecture-string.patch index 32942bc..ab36e41 100644 --- a/add-ppc64-architecture-string.patch +++ b/add-ppc64-architecture-string.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/base/system/sys_info.cc +Index: chromium-143.0.7499.40/base/system/sys_info.cc =================================================================== ---- chromium-140.0.7339.41.orig/base/system/sys_info.cc -+++ chromium-140.0.7339.41/base/system/sys_info.cc -@@ -254,6 +254,8 @@ std::string SysInfo::ProcessCPUArchitect +--- chromium-143.0.7499.40.orig/base/system/sys_info.cc ++++ chromium-143.0.7499.40/base/system/sys_info.cc +@@ -263,6 +263,8 @@ std::string SysInfo::ProcessCPUArchitect return "ARM"; #elif defined(ARCH_CPU_ARM64) return "ARM_64"; diff --git a/add-ppc64-architecture-to-extensions.diff b/add-ppc64-architecture-to-extensions.diff index 14c3b1f..2053505 100644 --- a/add-ppc64-architecture-to-extensions.diff +++ b/add-ppc64-architecture-to-extensions.diff @@ -1,7 +1,7 @@ -Index: chromium-142.0.7444.52/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +Index: chromium-143.0.7499.40/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc =================================================================== ---- chromium-142.0.7444.52.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -+++ chromium-142.0.7444.52/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +--- chromium-143.0.7499.40.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ++++ chromium-143.0.7499.40/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc @@ -383,6 +383,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo info->arch = extensions::api::runtime::PlatformArch::kMips64; } else if (arch == "riscv64") { @@ -11,10 +11,10 @@ Index: chromium-142.0.7444.52/chrome/browser/extensions/api/runtime/chrome_runti } else { NOTREACHED(); } -Index: chromium-142.0.7444.52/extensions/common/api/runtime.json +Index: chromium-143.0.7499.40/extensions/common/api/runtime.json =================================================================== ---- chromium-142.0.7444.52.orig/extensions/common/api/runtime.json -+++ chromium-142.0.7444.52/extensions/common/api/runtime.json +--- chromium-143.0.7499.40.orig/extensions/common/api/runtime.json ++++ chromium-143.0.7499.40/extensions/common/api/runtime.json @@ -98,7 +98,8 @@ {"name": "x86-64", "description": "Specifies the processer architecture as x86-64."}, {"name": "mips", "description": "Specifies the processer architecture as mips."}, diff --git a/add-ppc64-pthread-stack-size.patch b/add-ppc64-pthread-stack-size.patch index b70c238..ceb2849 100644 --- a/add-ppc64-pthread-stack-size.patch +++ b/add-ppc64-pthread-stack-size.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/base/process/launch.h +Index: chromium-143.0.7499.40/base/process/launch.h =================================================================== ---- chromium-140.0.7339.41.orig/base/process/launch.h -+++ chromium-140.0.7339.41/base/process/launch.h +--- chromium-143.0.7499.40.orig/base/process/launch.h ++++ chromium-143.0.7499.40/base/process/launch.h @@ -58,6 +58,9 @@ enum TerminationStatus : int; #if defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_LOONGARCH64) #define PTHREAD_STACK_MIN_CONST \ diff --git a/chromium-143-python-3.9-ftbfs.patch b/chromium-143-python-3.9-ftbfs.patch new file mode 100644 index 0000000..fc7dc46 --- /dev/null +++ b/chromium-143-python-3.9-ftbfs.patch @@ -0,0 +1,47 @@ +diff -up chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py.python-3.9-ftbfs chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py +--- chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py.python-3.9-ftbfs 2025-11-19 22:40:05.000000000 +0100 ++++ chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py 2025-12-02 17:23:41.996802101 +0100 +@@ -18,6 +18,7 @@ import re + import sys + from typing import TypedDict + import xml.dom.minidom ++from typing import Optional, Union + + sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) + import xml_utils +@@ -84,7 +85,7 @@ class EnumDict(TypedDict, total=False): + """A dict representing an enum.""" + + name: str +- type: str | None ++ type: Optional[str] + buckets: list[_BucketDict] + summary: str + +@@ -108,7 +109,7 @@ def ExpandHistogramNameWithSuffixes( + suffix_name: str, + histogram_name: str, + histogram_suffixes_node: xml.dom.minidom.Element, +-) -> tuple[str | None, ExtractionErrors]: ++) -> tuple[Optional[str], ExtractionErrors]: + """Creates a new histogram name based on a histogram suffix. + + Args: +@@ -310,7 +311,7 @@ def _ExtractOwners(node: xml.dom.minidom + + def _ExtractImprovementDirection( + histogram_node: xml.dom.minidom.Element, +-) -> tuple[str | None, ExtractionErrors]: ++) -> tuple[Union[str, None], ExtractionErrors]: + """Extracts improvement direction from the given histogram element, if any. + + Args: +@@ -644,7 +645,7 @@ def ExtractVariantsFromXmlTree( + return variants_dict, errors + + +-def _GetObsoleteReason(node: xml.dom.minidom.Element) -> str | None: ++def _GetObsoleteReason(node: xml.dom.minidom.Element) -> Optional[str]: + """If the node's histogram is obsolete, returns a string explanation. + + Otherwise, returns None. diff --git a/chromium-143-revert-libpng_for_testonly.patch b/chromium-143-revert-libpng_for_testonly.patch new file mode 100644 index 0000000..7ece43c --- /dev/null +++ b/chromium-143-revert-libpng_for_testonly.patch @@ -0,0 +1,137 @@ +commit 4f7637304eca894adf2e70078a55654a88224a30 +Author: Lukasz Anforowicz +Date: Tue Sep 30 07:08:03 2025 -0700 + + [rust png] Reland: Reinforce `testonly`-ness of some users of `libpng`. + + This reverts commit 7fa4c2d7ab42a48247ce8e0290cbb7e854990f1e and + effectively relands https://crrev.com/c/6976870. The reland is + attempted after using wildcards to cover extra gni-generated targets. + `Cq-Include-Trybots` directives in the CL description should verify + correctness of the reland. Original CL description follows: + + This CL extracts a separate `third_party/libpng:libpng_for_testonly` + target which: + + 1) Is a `group` that proxies/forwards to the `libpng` target by listing + it as its `public_deps` + 2) Has limited visibility (based on the new `libpng_testonly_visibility` + introduced in the refactored `third_party/libpng/visibility.gni`). + The new visibility is almost unchanged, except for explicitly + spelling out some targets instead of using wildcards + 3) Is marked as `testonly` + + Bug: 443128323 + Change-Id: If7ba0d184324a5c662aaf2d52122994ea778d452 + Cq-Include-Trybots: luci.chromium.try:ios-catalyst + Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6991491 + Auto-Submit: Łukasz Anforowicz + Commit-Queue: Łukasz Anforowicz + Reviewed-by: Nico Weber + Cr-Commit-Position: refs/heads/main@{#1522830} + +diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn +index a4703c3692d..2d70f7a5fe9 100644 +--- a/chrome/test/BUILD.gn ++++ b/chrome/test/BUILD.gn +@@ -11152,7 +11152,7 @@ if (!is_android) { + "//testing/gtest", + "//third_party/hunspell", + "//third_party/icu", +- "//third_party/libpng", ++ "//third_party/libpng:libpng_for_testonly", + "//ui/base:test_support", + "//ui/events:test_support", + "//ui/ozone", +@@ -11512,7 +11512,7 @@ if (!is_android && !is_chromeos_device) { + "//testing/gtest", + "//third_party/hunspell", + "//third_party/icu", +- "//third_party/libpng", ++ "//third_party/libpng:libpng_for_testonly", + "//ui/base:base_interactive_ui_tests", + "//ui/base:ozone_buildflags", + "//ui/base:test_support", +@@ -12470,7 +12470,7 @@ if (!is_android) { + "//testing/gtest", + "//third_party/hunspell", + "//third_party/icu", +- "//third_party/libpng", ++ "//third_party/libpng:libpng_for_testonly", + "//ui/base:test_support", + "//ui/resources:ui_test_pak", + "//ui/views", +diff --git a/testing/libfuzzer/fuzzers/BUILD.gn b/testing/libfuzzer/fuzzers/BUILD.gn +index 7d242e177f0..1c67eee1598 100644 +--- a/testing/libfuzzer/fuzzers/BUILD.gn ++++ b/testing/libfuzzer/fuzzers/BUILD.gn +@@ -104,7 +104,7 @@ fuzzer_test("libpng_progressive_read_fuzzer") { + sources = [ "libpng_read_fuzzer.cc" ] + deps = [ + "//base", +- "//third_party/libpng", ++ "//third_party/libpng:libpng_for_testonly", + ] + dict = "dicts/png.dict" + seed_corpuses = libpng_seed_corpuses +diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn +index d4bdea1e33c..3e31348b94f 100644 +--- a/third_party/libpng/BUILD.gn ++++ b/third_party/libpng/BUILD.gn +@@ -130,6 +130,14 @@ if (is_win) { + } + } + ++group("libpng_for_testonly") { ++ testonly = true ++ public_deps = [ ":libpng" ] ++ ++ visibility = [] ++ visibility = libpng_testonly_visibility ++} ++ + if (build_with_chromium) { + libpng_ossfuzz_seed_corpuses = [ + "//components/test/data/viz", +diff --git a/tools/imagediff/BUILD.gn b/tools/imagediff/BUILD.gn +index d56651bedc7..2b5f3d38488 100644 +--- a/tools/imagediff/BUILD.gn ++++ b/tools/imagediff/BUILD.gn +@@ -34,6 +34,7 @@ if (target_os == "win" && host_os != "win") { + # If the current toolchain is the test host toolchain, build the tool. + if (current_toolchain == imagediff_toolchain) { + executable("imagediff") { ++ testonly = true + output_name = "image_diff" # Different than dir name for historical + # reasons. + sources = [ +@@ -47,7 +48,7 @@ if (current_toolchain == imagediff_toolchain) { + deps = [ + "//base", + "//build/win:default_exe_manifest", +- "//third_party/libpng", ++ "//third_party/libpng:libpng_for_testonly", + "//third_party/zlib", + ] + } +@@ -60,6 +61,7 @@ if (current_toolchain == imagediff_toolchain) { + } else if (current_toolchain == default_toolchain && + default_toolchain != imagediff_toolchain) { + binary_symlink("imagediff") { ++ testonly = true + binary_label = ":$target_name($imagediff_toolchain)" + binary_output_name = "image_diff" + +diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn +index f6a40abfe99..83d8f55027a 100644 +--- a/ui/gfx/BUILD.gn ++++ b/ui/gfx/BUILD.gn +@@ -906,7 +906,7 @@ test("gfx_unittests") { + "//skia:skcms", + "//testing/gtest", + "//third_party/icu:icuuc", +- "//third_party/libpng", ++ "//third_party/libpng:libpng_for_testonly", + "//third_party/zlib", + "//ui/base", + "//ui/gfx/animation", diff --git a/chromium-143-swiftshader-llvm-16.0.patch b/chromium-143-swiftshader-llvm-16.0.patch new file mode 100644 index 0000000..c74a900 --- /dev/null +++ b/chromium-143-swiftshader-llvm-16.0.patch @@ -0,0 +1,12 @@ +diff -up chromium-143.0.7499.40/third_party/swiftshader/src/Reactor/BUILD.gn.llvm-16 chromium-143.0.7499.40/third_party/swiftshader/src/Reactor/BUILD.gn +--- chromium-143.0.7499.40/third_party/swiftshader/src/Reactor/BUILD.gn.llvm-16 2025-12-02 23:25:25.379315827 +0100 ++++ chromium-143.0.7499.40/third_party/swiftshader/src/Reactor/BUILD.gn 2025-12-02 23:25:58.697291861 +0100 +@@ -307,7 +307,7 @@ if (supports_subzero) { + + if (supports_llvm) { + swiftshader_source_set("swiftshader_llvm_reactor") { +- llvm_dir = "../../third_party/llvm-10.0" ++ llvm_dir = "../../third_party/llvm-16.0" + + deps = [ + ":swiftshader_reactor_base", diff --git a/chromium.conf b/chromium.conf index 3685849..d0a610e 100644 --- a/chromium.conf +++ b/chromium.conf @@ -6,8 +6,8 @@ MODE="$(systemd-detect-virt)" # GRAPHIC_DRIVER=[amd|intel|nvidia|default] GRAPHIC_DRIVER=default -# WEB_DARKMODE=[on|off] -WEB_DARKMODE=off +# WEB_AUTO_DARKMODE_WEBCONTENT=[on|off] +WEB_AUTO_DARKMODE_WEBCONTENT=off # NATIVE_WAYLAND=[on|off] # chromium >=141 switched to --ozone-platform-hint=auto @@ -62,8 +62,8 @@ fi CHROMIUM_FLAGS+=" --gtk-version=3" # Web Dark mode -if [ "$WEB_DARKMODE" == "on" ] ; then - darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205" +if [ "$WEB_AUTO_DARKMODE_WEBCONTENT" == "on" ] ; then + darktype="WebContentsForceDark" if [ -z "$ENABLE_FEATURES" ] ; then ENABLE_FEATURES+="$darktype" else diff --git a/chromium.spec b/chromium.spec index b40b88d..f099d8a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -248,8 +248,8 @@ %endif Name: chromium -Version: 142.0.7444.175 -Release: 5%{?dist} +Version: 143.0.7499.40 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -269,6 +269,11 @@ Patch21: chromium-123-screen-ai-service.patch # Fix link error when building with system libcxx Patch22: chromium-131-fix-qt-ui.pach +# Workaround for build error: ERROR Unresolved dependencies. +#//chrome/test:captured_sites_interactive_tests(//build/toolchain/linux/unbundle:default) +# needs //third_party/libpng:libpng_for_testonly(//build/toolchain/linux/unbundle:default) +Patch23: chromium-143-revert-libpng_for_testonly.patch + # Disable tests on remoting build Patch82: chromium-98.0.4758.102-remoting-no-tests.patch @@ -287,9 +292,6 @@ Patch92: chromium-138-checkversion-nodejs.patch # fix build error Patch93: chromium-141-csss_style_sheet.patch -# Revert due to incorrect display of links on startpage in Darkmode -Patch94: chromium-141-revert-remove-darkmode-image-policy.patch - # FTBFS - error: cannot find attribute `sanitize` in this scope # --> ../../third_party/crabbyavif/src/src/capi/io.rs:210:41 # | @@ -320,7 +322,7 @@ Patch136: chromium-133-workaround-system-ffmpeg-whitelist.patch Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch # fix ftbfs caused by old python-3.9 on el8 -Patch142: chromium-142-python-3.9-ftbfs.patch +Patch142: chromium-143-python-3.9-ftbfs.patch # add correct path for Qt6Gui header and libs Patch150: chromium-124-qt6.patch @@ -364,6 +366,9 @@ Patch317: chromium-142-clang++-unknown-argument.patch Patch318: memory-allocator-dcheck-assert-fix.patch +# compile swiftshader against llvm-16.0 +Patch319: chromium-143-swiftshader-llvm-16.0.patch + # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2239523 # https://bugs.chromium.org/p/chromium/issues/detail?id=1145581#c60 # Disable BTI until this is fixed upstream. @@ -460,10 +465,6 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch %endif # upstream patches -# Fix FTBFS -# ../../base/containers/span.h:1387:63: error: arithmetic on a pointer to an incomplete type 'element_type' (aka 'const autofill::FormFieldData') -# 1387 | typename iterator::AssumeValid(data(), data(), data() + size()))); -Patch1000: chromium-142-missing-include-for-form_field_data.patch # Fix Wayland URI DnD issues Patch1001: chromium-142-Add-ExtractData-support-for-text-uri-list.patch Patch1002: chromium-142-Update-pointer-position-during-draggin.patch @@ -989,6 +990,8 @@ Qt6 UI for chromium. %patch -P22 -p1 -b .fix-qt-ui %endif +%patch -P23 -p1 -R -b .revert-libpng_for_testonly + %patch -P82 -p1 -b .remoting-no-tests %if ! %{bundlebrotli} @@ -1007,7 +1010,6 @@ Qt6 UI for chromium. %patch -P92 -p1 -b .nodejs-checkversion %patch -P93 -p1 -b .ftbfs-csss_style_sheet -%patch -P94 -p1 -R -b .revert-remove-darkmode-image-policy %patch -P96 -p1 -b .crabbyavif-ftbfs-old-rust %if 0%{?fedora} > 43 @@ -1133,7 +1135,6 @@ Qt6 UI for chromium. %endif # Upstream patches -%patch -P1000 -p1 -b .missing-include-for-form_field_data.patch %patch -P1001 -p1 -b .Add-ExtractData-support-for-text-uri-list.patch %patch -P1002 -p1 -b .Update-pointer-position-during-draggin.patch @@ -1773,6 +1774,22 @@ fi %endif %changelog +* Tue Dec 02 2025 Than Ngo - 143.0.7499.40-1 +- Update to 143.0.7499.40 + * High CVE-2025-13630: Type Confusion in V8 + * High CVE-2025-13631: Inappropriate implementation in Google Updater + * High CVE-2025-13632: Inappropriate implementation in DevTools + * High CVE-2025-13633: Use after free in Digital Credentials + * Medium CVE-2025-13634: Inappropriate implementation in Downloads + * Medium CVE-2025-13720: Bad cast in Loader + * Medium CVE-2025-13721: Race in v8 + * Low CVE-2025-13635: Inappropriate implementation in Downloads + * Low CVE-2025-13636: Inappropriate implementation in Split View + * Low CVE-2025-13637: Inappropriate implementation in Downloads + * Low CVE-2025-13638: Use after free in Media Stream + * Low CVE-2025-13639: Inappropriate implementation in WebRTC + * Low CVE-2025-13640: Inappropriate implementation in Passwords + * Mon Dec 01 2025 LuK1337 - 142.0.7444.175-5 - Backport one more Wayland DnD bug fix from upstream diff --git a/dawn-fix-ppc64le-detection.patch b/dawn-fix-ppc64le-detection.patch index 6f84774..a32fa4e 100644 --- a/dawn-fix-ppc64le-detection.patch +++ b/dawn-fix-ppc64le-detection.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/dawn/src/dawn/common/Platform.h +Index: chromium-143.0.7499.40/third_party/dawn/src/dawn/common/Platform.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-140.0.7339.41/third_party/dawn/src/dawn/common/Platform.h +--- chromium-143.0.7499.40.orig/third_party/dawn/src/dawn/common/Platform.h ++++ chromium-143.0.7499.40/third_party/dawn/src/dawn/common/Platform.h @@ -163,10 +163,12 @@ #elif defined(__s390x__) #define DAWN_PLATFORM_IS_S390X 1 diff --git a/fix-breakpad-compile.patch b/fix-breakpad-compile.patch index 670194e..1ce2a60 100644 --- a/fix-breakpad-compile.patch +++ b/fix-breakpad-compile.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/third_party/breakpad/BUILD.gn +Index: chromium-143.0.7499.40/third_party/breakpad/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/breakpad/BUILD.gn -+++ chromium-140.0.7339.41/third_party/breakpad/BUILD.gn +--- chromium-143.0.7499.40.orig/third_party/breakpad/BUILD.gn ++++ chromium-143.0.7499.40/third_party/breakpad/BUILD.gn @@ -804,7 +804,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/minidump_file_writer.h", "breakpad/src/common/convert_UTF.cc", diff --git a/fix-clang-selection.patch b/fix-clang-selection.patch index ef15813..a503030 100644 --- a/fix-clang-selection.patch +++ b/fix-clang-selection.patch @@ -1,12 +1,12 @@ -Index: chromium-140.0.7339.41/build/config/BUILDCONFIG.gn +Index: chromium-143.0.7499.40/build/config/BUILDCONFIG.gn =================================================================== ---- chromium-140.0.7339.41.orig/build/config/BUILDCONFIG.gn -+++ chromium-140.0.7339.41/build/config/BUILDCONFIG.gn +--- chromium-143.0.7499.40.orig/build/config/BUILDCONFIG.gn ++++ chromium-143.0.7499.40/build/config/BUILDCONFIG.gn @@ -138,7 +138,6 @@ declare_args() { # Set to true when compiling with the Clang compiler. is_clang = current_os != "linux" || (current_cpu != "s390x" && current_cpu != "s390" && - current_cpu != "ppc64" && current_cpu != "ppc" && - current_cpu != "mips" && current_cpu != "mips64" && - current_cpu != "riscv64") + current_cpu != "mips" && current_cpu != "mips64") + # Allows the path to a custom target toolchain to be injected as a single diff --git a/fix-different-data-layouts.patch b/fix-different-data-layouts.patch index c62678f..f2e5403 100644 --- a/fix-different-data-layouts.patch +++ b/fix-different-data-layouts.patch @@ -24,11 +24,11 @@ inconsistency in data layouts when targeting this particular platform. The error reported by the linker is not technically an error, however, only a warning goosed up by a --fatal-warnings flag. -Index: chromium-140.0.7339.41/build/config/compiler/BUILD.gn +Index: chromium-143.0.7499.40/build/config/compiler/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/build/config/compiler/BUILD.gn -+++ chromium-140.0.7339.41/build/config/compiler/BUILD.gn -@@ -455,7 +455,7 @@ config("compiler") { +--- chromium-143.0.7499.40.orig/build/config/compiler/BUILD.gn ++++ chromium-143.0.7499.40/build/config/compiler/BUILD.gn +@@ -470,7 +470,7 @@ config("compiler") { # Linker warnings. if (fatal_linker_warnings && !is_apple && current_os != "aix" && diff --git a/fix-page-allocator-overflow.patch b/fix-page-allocator-overflow.patch index 7770b86..dbfc560 100644 --- a/fix-page-allocator-overflow.patch +++ b/fix-page-allocator-overflow.patch @@ -1,7 +1,7 @@ -Index: chromium-140.0.7339.41/base/allocator/dispatcher/tls.h +Index: chromium-143.0.7499.40/base/allocator/dispatcher/tls.h =================================================================== ---- chromium-140.0.7339.41.orig/base/allocator/dispatcher/tls.h -+++ chromium-140.0.7339.41/base/allocator/dispatcher/tls.h +--- chromium-143.0.7499.40.orig/base/allocator/dispatcher/tls.h ++++ chromium-143.0.7499.40/base/allocator/dispatcher/tls.h @@ -88,6 +88,8 @@ struct BASE_EXPORT MMapAllocator { constexpr static size_t AllocationChunkSize = 16384; #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) @@ -11,11 +11,11 @@ Index: chromium-140.0.7339.41/base/allocator/dispatcher/tls.h #else constexpr static size_t AllocationChunkSize = 4096; #endif -Index: chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +Index: chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h =================================================================== ---- chromium-140.0.7339.41.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -+++ chromium-140.0.7339.41/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -@@ -397,7 +397,7 @@ PA_ALWAYS_INLINE constexpr size_t MaxDir +--- chromium-143.0.7499.40.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h ++++ chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +@@ -399,7 +399,7 @@ PA_ALWAYS_INLINE constexpr size_t MaxDir // TODO(casey.smalley@arm.com): under 64k pages we can end up in a situation // where a normal slot span will be large enough to contain multiple items, // but the address will go over the final partition page after being aligned. diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index 0c27718..8721f1b 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,10 +1,10 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-140.0.7339.41/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-143.0.7499.40/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-140.0.7339.41.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-140.0.7339.41/base/allocator/partition_allocator/partition_alloc.gni -@@ -66,7 +66,7 @@ is_clang_or_gcc = is_clang || !is_win +--- chromium-143.0.7499.40.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-143.0.7499.40/base/allocator/partition_allocator/partition_alloc.gni +@@ -71,7 +71,7 @@ is_clang_or_gcc = is_clang || !is_win # Whether 64-bit pointers are used. # A static_assert in partition_alloc_config.h verifies that. if (current_cpu == "x64" || current_cpu == "arm64" || current_cpu == "arm64e" || diff --git a/fix-rust-linking.patch b/fix-rust-linking.patch index 5f06471..28f2a1f 100644 --- a/fix-rust-linking.patch +++ b/fix-rust-linking.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/build/toolchain/gcc_toolchain.gni +Index: chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni =================================================================== ---- chromium-140.0.7339.41.orig/build/toolchain/gcc_toolchain.gni -+++ chromium-140.0.7339.41/build/toolchain/gcc_toolchain.gni -@@ -430,7 +430,13 @@ template("single_gcc_toolchain") { +--- chromium-143.0.7499.40.orig/build/toolchain/gcc_toolchain.gni ++++ chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni +@@ -422,7 +422,13 @@ template("single_gcc_toolchain") { # -soname flag is not available on aix ld soname_flag = "-Wl,-soname=\"$soname\"" } @@ -17,7 +17,7 @@ Index: chromium-140.0.7339.41/build/toolchain/gcc_toolchain.gni # Generate a map file to be used for binary size analysis. # Map file adds ~10% to the link time on a z620. -@@ -542,7 +548,13 @@ template("single_gcc_toolchain") { +@@ -534,7 +540,13 @@ template("single_gcc_toolchain") { whole_archive_flag = "-Wl,--whole-archive" no_whole_archive_flag = "-Wl,--no-whole-archive" } diff --git a/fix-rustc.patch b/fix-rustc.patch index a3f4669..1655042 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,7 +1,10 @@ -diff -up chromium-141.0.7390.37/build/config/rust.gni.fix-rustc chromium-141.0.7390.37/build/config/rust.gni ---- chromium-141.0.7390.37/build/config/rust.gni.fix-rustc 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/build/config/rust.gni 2025-09-28 10:23:04.982735749 +0200 -@@ -179,6 +179,9 @@ rust_abi_target = "" +author: Andres Salomon +description: allow ppc64le to build by using proper rustc target +Index: chromium-143.0.7499.40/build/config/rust.gni +=================================================================== +--- chromium-143.0.7499.40.orig/build/config/rust.gni ++++ chromium-143.0.7499.40/build/config/rust.gni +@@ -176,6 +176,9 @@ rust_abi_target = "" if (is_linux || is_chromeos) { if (current_cpu == "arm64") { rust_abi_target = "aarch64-unknown-linux-gnu" diff --git a/fix-study-crash.patch b/fix-study-crash.patch index e186c89..2d1058a 100644 --- a/fix-study-crash.patch +++ b/fix-study-crash.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/components/variations/proto/study.proto +Index: chromium-143.0.7499.40/components/variations/proto/study.proto =================================================================== ---- chromium-140.0.7339.41.orig/components/variations/proto/study.proto -+++ chromium-140.0.7339.41/components/variations/proto/study.proto -@@ -262,6 +262,9 @@ message Study { +--- chromium-143.0.7499.40.orig/components/variations/proto/study.proto ++++ chromium-143.0.7499.40/components/variations/proto/study.proto +@@ -293,6 +293,9 @@ message Study { // A Mac-only value, indicating an x86-64 binary running on an arm64 host // via "Rosetta 2" binary translation. TRANSLATED_X86_64 = 4; @@ -12,10 +12,10 @@ Index: chromium-140.0.7339.41/components/variations/proto/study.proto } // Enum to pass as optional bool. -Index: chromium-140.0.7339.41/components/variations/service/variations_field_trial_creator.cc +Index: chromium-143.0.7499.40/components/variations/service/variations_field_trial_creator.cc =================================================================== ---- chromium-140.0.7339.41.orig/components/variations/service/variations_field_trial_creator.cc -+++ chromium-140.0.7339.41/components/variations/service/variations_field_trial_creator.cc +--- chromium-143.0.7499.40.orig/components/variations/service/variations_field_trial_creator.cc ++++ chromium-143.0.7499.40/components/variations/service/variations_field_trial_creator.cc @@ -105,6 +105,9 @@ Study::CpuArchitecture GetCurrentCpuArch if (process_arch == "x86") { return Study::X86_32; diff --git a/fix-unknown-warning-option-messages.diff b/fix-unknown-warning-option-messages.diff index b8138a2..8c767e1 100644 --- a/fix-unknown-warning-option-messages.diff +++ b/fix-unknown-warning-option-messages.diff @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/build/config/compiler/BUILD.gn +Index: chromium-143.0.7499.40/build/config/compiler/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/build/config/compiler/BUILD.gn -+++ chromium-140.0.7339.41/build/config/compiler/BUILD.gn -@@ -2086,7 +2086,9 @@ config("default_warnings") { +--- chromium-143.0.7499.40.orig/build/config/compiler/BUILD.gn ++++ chromium-143.0.7499.40/build/config/compiler/BUILD.gn +@@ -2134,7 +2134,9 @@ config("default_warnings") { # Don't warn about "maybe" uninitialized. Clang doesn't include this # in -Wall but gcc does, and it gives false positives. @@ -13,7 +13,7 @@ Index: chromium-140.0.7339.41/build/config/compiler/BUILD.gn cflags += [ "-Wno-deprecated-declarations" ] # -Wcomment gives too many false positives in the case a -@@ -2097,7 +2099,9 @@ config("default_warnings") { +@@ -2145,7 +2147,9 @@ config("default_warnings") { # -Wpacked-not-aligned complains all generated mojom-shared-internal.h # files. diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index 610bb88..b84166c 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,8 +1,8 @@ -Index: chromium-140.0.7339.41/third_party/skia/BUILD.gn +Index: chromium-143.0.7499.40/third_party/skia/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/BUILD.gn -+++ chromium-140.0.7339.41/third_party/skia/BUILD.gn -@@ -188,6 +188,12 @@ opts("lasx") { +--- chromium-143.0.7499.40.orig/third_party/skia/BUILD.gn ++++ chromium-143.0.7499.40/third_party/skia/BUILD.gn +@@ -192,6 +192,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-140.0.7339.41/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1694,6 +1700,7 @@ skia_component("skia") { +@@ -1686,6 +1692,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,11 +23,11 @@ Index: chromium-140.0.7339.41/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -Index: chromium-140.0.7339.41/third_party/skia/gn/skia/BUILD.gn +Index: chromium-143.0.7499.40/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-140.0.7339.41/third_party/skia/gn/skia/BUILD.gn -@@ -152,6 +152,8 @@ config("default") { +--- chromium-143.0.7499.40.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-143.0.7499.40/third_party/skia/gn/skia/BUILD.gn +@@ -142,6 +142,8 @@ config("default") { "-mfpmath=sse", ] ldflags += [ "-m32" ] @@ -36,10 +36,10 @@ Index: chromium-140.0.7339.41/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-140.0.7339.41/third_party/skia/include/core/SkTypes.h +Index: chromium-143.0.7499.40/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-140.0.7339.41/third_party/skia/include/core/SkTypes.h +--- chromium-143.0.7499.40.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-143.0.7499.40/third_party/skia/include/core/SkTypes.h @@ -198,4 +198,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -84,10 +84,10 @@ Index: chromium-140.0.7339.41/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-140.0.7339.41/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -98,10 +98,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-140.0.7339.41/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-143.0.7499.40/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -117,10 +117,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-140.0.7339.41/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-143.0.7499.40/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -130,10 +130,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -394,7 +394,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define SKRP_NARROW_STAGES 0 -@@ -5563,6 +5773,10 @@ SI F sqrt_(F x) { +@@ -5574,6 +5784,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -405,7 +405,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5594,6 +5808,10 @@ SI F floor_(F x) { +@@ -5605,6 +5819,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -416,7 +416,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5613,6 +5831,7 @@ SI F floor_(F x) { +@@ -5624,6 +5842,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -424,7 +424,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5624,6 +5843,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5635,6 +5854,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); @@ -447,7 +447,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5651,7 +5886,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5662,7 +5897,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -474,7 +474,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6707,8 +6961,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6718,8 +6972,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -489,7 +489,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6720,7 +6980,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6731,7 +6991,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -502,7 +502,7 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6754,9 +7019,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6765,9 +7030,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -519,10 +519,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-140.0.7339.41/third_party/skia/src/base/SkVx.h +Index: chromium-143.0.7499.40/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/base/SkVx.h -+++ chromium-140.0.7339.41/third_party/skia/src/base/SkVx.h +--- chromium-143.0.7499.40.orig/third_party/skia/src/base/SkVx.h ++++ chromium-143.0.7499.40/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -537,10 +537,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -550,10 +550,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -563,10 +563,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -576,10 +576,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -589,10 +589,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkCpu.h +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkCpu.h +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -602,10 +602,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -615,10 +615,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-140.0.7339.41/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-143.0.7499.40/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-140.0.7339.41/third_party/skia/include/private/base/SkFeatures.h +--- chromium-143.0.7499.40.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-143.0.7499.40/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -628,10 +628,10 @@ Index: chromium-140.0.7339.41/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-140.0.7339.41/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-143.0.7499.40/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -678,10 +678,10 @@ Index: chromium-140.0.7339.41/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-140.0.7339.41/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-140.0.7339.41.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-140.0.7339.41/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-143.0.7499.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -129,6 +129,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index 47c25ae..f3053ba 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-142.0.7444.175-clean.tar.xz) = 5840ab104f4993f4b7033cd2b5fdc3f468d8ac06f1477e643d4e70dbc42dcf15f2e4f60456dc568a3e15f8f3c8e365d332a9fcac3f9b7701fe88151b55d70d17 +SHA512 (chromium-143.0.7499.40-clean.tar.xz) = 482721d372000d05a3e86c91f231c5ee206389890a19ad210e99de1ed86ccbb4dd155f461f98daf8648b6c9a6eeec3c9b4ae17e192bd816ead561a77174bd00c From a0dda14ce464623354c6e69e68d5d820efe73304 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 4 Dec 2025 00:59:02 -0500 Subject: [PATCH 230/244] Update flatpak patches from flathub --- flatpak-Add-initial-sandbox-support.patch | 78 +++++++++---------- flatpak-Adjust-paths-for-the-sandbox.patch | 18 ++--- ...pak-Expose-Widevine-into-the-sandbox.patch | 18 ++--- 3 files changed, 57 insertions(+), 57 deletions(-) diff --git a/flatpak-Add-initial-sandbox-support.patch b/flatpak-Add-initial-sandbox-support.patch index 3551ae3..9a042f7 100644 --- a/flatpak-Add-initial-sandbox-support.patch +++ b/flatpak-Add-initial-sandbox-support.patch @@ -1,4 +1,4 @@ -From 1915558377f7dc194ff2238c79b70ceacd88f474 Mon Sep 17 00:00:00 2001 +From c82dcae326090d3b7e31694a7e229f536ead56b7 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 17 Mar 2020 13:18:27 -0500 Subject: [PATCH] flatpak: Add initial sandbox support @@ -30,10 +30,10 @@ Subject: [PATCH] flatpak: Add initial sandbox support create mode 100644 sandbox/linux/services/flatpak_sandbox.h diff --git a/.gitignore b/.gitignore -index 375db3d02ce28..1eee661c2bed4 100644 +index 22985d0edf211..62631942103f0 100644 --- a/.gitignore +++ b/.gitignore -@@ -75,6 +75,7 @@ vs-chromium-project.txt +@@ -79,6 +79,7 @@ vs-chromium-project.txt /.android_emulator/ /.clangd/ /.clangd-index/ @@ -42,10 +42,10 @@ index 375db3d02ce28..1eee661c2bed4 100644 /.externalToolBuilders/ /.settings/ diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h -index 56ddbc2d4fa33..736a06ab1d673 100644 +index 7739b7379ba67..01d99a3ac5772 100644 --- a/base/threading/thread_restrictions.h +++ b/base/threading/thread_restrictions.h -@@ -405,6 +405,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; +@@ -410,6 +410,9 @@ class ScopedAllowThreadJoinForWebRtcTransport; namespace rlz_lib { class FinancialPing; } @@ -63,7 +63,7 @@ index 56ddbc2d4fa33..736a06ab1d673 100644 friend class ui::DrmDisplayHostManager; friend class ui::ScopedAllowBlockingForGbmSurface; friend class ui::SelectFileDialogLinux; -@@ -783,6 +787,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { +@@ -780,6 +784,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { friend class rlz_lib::FinancialPing; friend class shell_integration_linux:: LaunchXdgUtilityScopedAllowBaseSyncPrimitives; @@ -125,10 +125,10 @@ index 1174a704b8126..e7fd738b705fb 100644 status & sandbox::policy::SandboxLinux::kNetNS; // A second-layer sandbox is also required to be adequately sandboxed. diff --git a/content/browser/child_process_host_impl.cc b/content/browser/child_process_host_impl.cc -index 583a386414590..c1cf93992da5b 100644 +index 685af654e0832..cb2d7fb0966d1 100644 --- a/content/browser/child_process_host_impl.cc +++ b/content/browser/child_process_host_impl.cc -@@ -46,6 +46,7 @@ +@@ -37,6 +37,7 @@ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) #include "base/linux_util.h" @@ -136,7 +136,7 @@ index 583a386414590..c1cf93992da5b 100644 #elif BUILDFLAG(IS_MAC) #include "base/apple/foundation_util.h" #include "content/browser/mac_helpers.h" -@@ -72,7 +73,12 @@ base::FilePath ChildProcessHost::GetChildPath(int flags) { +@@ -62,7 +63,12 @@ base::FilePath ChildProcessHost::GetChildPath(int flags) { #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) // Use /proc/self/exe rather than our known binary path so updates // can't swap out the binary from underneath us. @@ -151,10 +151,10 @@ index 583a386414590..c1cf93992da5b 100644 } #endif diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index e84c86a30d504..595a469c765a6 100644 +index 5707dd93fd5e9..c87e1248171cf 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc -@@ -17,6 +17,7 @@ +@@ -13,6 +13,7 @@ #include "base/logging.h" #include "base/posix/unix_domain_socket.h" #include "base/process/kill.h" @@ -162,7 +162,7 @@ index e84c86a30d504..595a469c765a6 100644 #include "base/process/memory.h" #include "base/strings/string_number_conversions.h" #include "base/types/fixed_array.h" -@@ -26,6 +27,7 @@ +@@ -22,6 +23,7 @@ #include "content/common/zygote/zygote_handle_impl_linux.h" #include "content/public/common/zygote/zygote_handle.h" #include "sandbox/linux/services/credentials.h" @@ -170,7 +170,7 @@ index e84c86a30d504..595a469c765a6 100644 #include "sandbox/linux/services/namespace_sandbox.h" #include "sandbox/linux/suid/client/setuid_sandbox_host.h" #include "sandbox/linux/suid/common/sandbox.h" -@@ -76,6 +78,7 @@ ZygoteHostImpl::ZygoteHostImpl() +@@ -72,6 +74,7 @@ ZygoteHostImpl::ZygoteHostImpl() : use_namespace_sandbox_(false), use_suid_sandbox_(false), use_suid_sandbox_for_adj_oom_score_(false), @@ -178,7 +178,7 @@ index e84c86a30d504..595a469c765a6 100644 sandbox_binary_(), zygote_pids_lock_(), zygote_pids_() {} -@@ -114,9 +117,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { +@@ -110,9 +113,12 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { sandbox_binary_ = setuid_sandbox_host->GetSandboxBinaryPath().value(); } @@ -194,7 +194,7 @@ index e84c86a30d504..595a469c765a6 100644 use_namespace_sandbox_ = true; } else if (!command_line.HasSwitch( sandbox::policy::switches::kDisableSetuidSandbox) && -@@ -187,10 +193,16 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -183,10 +189,16 @@ pid_t ZygoteHostImpl::LaunchZygote( sandbox_host->SetupLaunchEnvironment(); } @@ -215,7 +215,7 @@ index e84c86a30d504..595a469c765a6 100644 CHECK(process.IsValid()) << "Failed to launch zygote process"; dummy_fd.reset(); -@@ -199,7 +211,8 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -195,7 +207,8 @@ pid_t ZygoteHostImpl::LaunchZygote( pid_t pid = process.Pid(); @@ -225,7 +225,7 @@ index e84c86a30d504..595a469c765a6 100644 // The namespace and SUID sandbox will execute the zygote in a new // PID namespace, and the main zygote process will then fork from // there. Watch now our elaborate dance to find and validate the -@@ -227,7 +240,11 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -223,7 +236,11 @@ pid_t ZygoteHostImpl::LaunchZygote( if (real_pid != pid) { // Reap the sandbox. @@ -238,7 +238,7 @@ index e84c86a30d504..595a469c765a6 100644 } pid = real_pid; } -@@ -278,6 +295,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, +@@ -274,6 +291,10 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid, selinux_valid = true; } @@ -262,10 +262,10 @@ index 8ef884a7db6f4..f441900dd6343 100644 // This lock protects the |zygote_pids_| set. diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc -index f2c3b43281d53..9f3f3f6b1bc12 100644 +index c90abfaf2e346..5b9cb3e1bd313 100644 --- a/content/zygote/zygote_linux.cc +++ b/content/zygote/zygote_linux.cc -@@ -126,7 +126,7 @@ bool Zygote::ProcessRequests() { +@@ -122,7 +122,7 @@ bool Zygote::ProcessRequests() { PCHECK(sigaddset(&sigset, SIGCHLD) == 0); PCHECK(sigprocmask(SIG_BLOCK, &sigset, &orig_sigmask) == 0); @@ -274,7 +274,7 @@ index f2c3b43281d53..9f3f3f6b1bc12 100644 // Let the ZygoteHost know we are ready to go. // The receiving code is in // content/browser/zygote_host/zygote_host_impl_linux.cc. -@@ -231,6 +231,10 @@ bool Zygote::UsingNSSandbox() const { +@@ -227,6 +227,10 @@ bool Zygote::UsingNSSandbox() const { return sandbox_flags_ & sandbox::policy::SandboxLinux::kUserNS; } @@ -362,10 +362,10 @@ index c7ee91878e6dd..9c2c7a04bd968 100644 base::GlobalDescriptors::Descriptor( static_cast(kSandboxIPCChannel), GetSandboxFD())); diff --git a/sandbox/linux/BUILD.gn b/sandbox/linux/BUILD.gn -index 4eac178764a41..8bd0de35f246f 100644 +index 478194aaf43a8..c97710907565e 100644 --- a/sandbox/linux/BUILD.gn +++ b/sandbox/linux/BUILD.gn -@@ -309,6 +309,10 @@ if (is_linux || is_chromeos) { +@@ -303,6 +303,10 @@ if (is_linux || is_chromeos) { component("sandbox_services") { sources = [ @@ -376,7 +376,7 @@ index 4eac178764a41..8bd0de35f246f 100644 "services/init_process_reaper.cc", "services/init_process_reaper.h", "services/proc_util.cc", -@@ -327,8 +331,10 @@ component("sandbox_services") { +@@ -321,8 +325,10 @@ component("sandbox_services") { defines = [ "SANDBOX_IMPLEMENTATION" ] @@ -506,7 +506,7 @@ index 0000000000000..22799eb42f782 +#endif diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc new file mode 100644 -index 0000000000000..b5da5a5801fde +index 0000000000000..c854f32b185a3 --- /dev/null +++ b/sandbox/linux/services/flatpak_sandbox.cc @@ -0,0 +1,576 @@ @@ -756,7 +756,7 @@ index 0000000000000..b5da5a5801fde + options.connection_type = dbus::Bus::PRIVATE; + options.dbus_task_runner = base::SequencedTaskRunner::GetCurrentDefault(); + -+ return base::MakeRefCounted(options); ++ return base::MakeRefCounted(std::move(options)); + }()); + + return bus->get(); @@ -1211,10 +1211,10 @@ index 0000000000000..167bbc85945ad + +#endif // SANDBOX_LINUX_SERVICES_FLATPAK_SANDBOX_H_ diff --git a/sandbox/policy/BUILD.gn b/sandbox/policy/BUILD.gn -index 793c68d50e59f..b44c986fd72ab 100644 +index 1a3c7c6cf8b15..4c1b121160df6 100644 --- a/sandbox/policy/BUILD.gn +++ b/sandbox/policy/BUILD.gn -@@ -114,6 +114,9 @@ component("policy") { +@@ -118,6 +118,9 @@ component("policy") { "//sandbox/linux:suid_sandbox_client", ] } @@ -1225,10 +1225,10 @@ index 793c68d50e59f..b44c986fd72ab 100644 sources += [ "linux/bpf_ime_policy_linux.cc", diff --git a/sandbox/policy/linux/sandbox_linux.cc b/sandbox/policy/linux/sandbox_linux.cc -index 427604b2b8a00..7384c01cc9123 100644 +index 714cb2e115b84..e85a3fb68ee90 100644 --- a/sandbox/policy/linux/sandbox_linux.cc +++ b/sandbox/policy/linux/sandbox_linux.cc -@@ -36,6 +36,7 @@ +@@ -35,6 +35,7 @@ #include "sandbox/constants.h" #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" #include "sandbox/linux/services/credentials.h" @@ -1236,7 +1236,7 @@ index 427604b2b8a00..7384c01cc9123 100644 #include "sandbox/linux/services/libc_interceptor.h" #include "sandbox/linux/services/namespace_sandbox.h" #include "sandbox/linux/services/proc_util.h" -@@ -231,6 +232,9 @@ void SandboxLinux::PreinitializeSandbox() { +@@ -220,6 +221,9 @@ void SandboxLinux::PreinitializeSandbox() { const int yama_status = Yama::GetStatus(); yama_is_enforcing_ = (yama_status & Yama::STATUS_PRESENT) && (yama_status & Yama::STATUS_ENFORCING); @@ -1246,7 +1246,7 @@ index 427604b2b8a00..7384c01cc9123 100644 pre_initialized_ = true; } -@@ -269,6 +273,10 @@ int SandboxLinux::GetStatus() { +@@ -258,6 +262,10 @@ int SandboxLinux::GetStatus() { sandbox_status_flags_ |= kPIDNS; if (NamespaceSandbox::InNewNetNamespace()) sandbox_status_flags_ |= kNetNS; @@ -1256,9 +1256,9 @@ index 427604b2b8a00..7384c01cc9123 100644 + sandbox_status_flags_ |= kFlatpak | kPIDNS | kNetNS; } - // We report whether the sandbox will be activated when renderers, workers + // We report whether the sandbox will be activated when renderers and diff --git a/sandbox/policy/linux/sandbox_linux.h b/sandbox/policy/linux/sandbox_linux.h -index 0e4f78b9e6cb7..91b638d8a96e0 100644 +index 76e20d21b71d3..3339b852fc948 100644 --- a/sandbox/policy/linux/sandbox_linux.h +++ b/sandbox/policy/linux/sandbox_linux.h @@ -13,6 +13,7 @@ @@ -1279,7 +1279,7 @@ index 0e4f78b9e6cb7..91b638d8a96e0 100644 // A flag that denotes an invalid sandbox status. kInvalid = 1 << 31, }; -@@ -292,6 +296,10 @@ class SANDBOX_POLICY_EXPORT SandboxLinux { +@@ -289,6 +293,10 @@ class SANDBOX_POLICY_EXPORT SandboxLinux { bool seccomp_bpf_with_tsync_supported_; // Accurate if pre_initialized_. bool yama_is_enforcing_; // Accurate if pre_initialized_. bool initialize_sandbox_ran_; // InitializeSandbox() was called. @@ -1291,10 +1291,10 @@ index 0e4f78b9e6cb7..91b638d8a96e0 100644 #if BUILDFLAG(USING_SANITIZER) std::unique_ptr<__sanitizer_sandbox_arguments> sanitizer_args_; diff --git a/services/service_manager/service_process_launcher.cc b/services/service_manager/service_process_launcher.cc -index bb99780fb878d..4dcdee34d2338 100644 +index 60484255e653b..797f3b9ad6cd8 100644 --- a/services/service_manager/service_process_launcher.cc +++ b/services/service_manager/service_process_launcher.cc -@@ -40,6 +40,7 @@ +@@ -41,6 +41,7 @@ #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) @@ -1302,7 +1302,7 @@ index bb99780fb878d..4dcdee34d2338 100644 #include "sandbox/linux/services/namespace_sandbox.h" #endif -@@ -285,8 +286,15 @@ void ServiceProcessLauncher::ProcessState::StopInBackground() { +@@ -286,8 +287,15 @@ void ServiceProcessLauncher::ProcessState::StopInBackground() { return; int rv = -1; @@ -1321,5 +1321,5 @@ index bb99780fb878d..4dcdee34d2338 100644 } -- -2.47.1 +2.51.2 diff --git a/flatpak-Adjust-paths-for-the-sandbox.patch b/flatpak-Adjust-paths-for-the-sandbox.patch index c396242..eeac905 100644 --- a/flatpak-Adjust-paths-for-the-sandbox.patch +++ b/flatpak-Adjust-paths-for-the-sandbox.patch @@ -1,4 +1,4 @@ -From e7fd5c3a43aed07cf0a1561c408b631090be8374 Mon Sep 17 00:00:00 2001 +From 4cf3b38a276a3963a356d22ffa01b1ca07c686ee Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 25 Aug 2020 19:26:07 -0500 Subject: [PATCH] flatpak: Adjust paths for the sandbox @@ -9,10 +9,10 @@ Subject: [PATCH] flatpak: Adjust paths for the sandbox 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn -index 40e1d1c431dd0..e4a19c80e1afc 100644 +index 45a080086dfd8..ef631e6ad5f80 100644 --- a/chrome/common/BUILD.gn +++ b/chrome/common/BUILD.gn -@@ -621,6 +621,10 @@ static_library("constants") { +@@ -614,6 +614,10 @@ static_library("constants") { "//third_party/widevine/cdm:headers", ] } @@ -24,10 +24,10 @@ index 40e1d1c431dd0..e4a19c80e1afc 100644 # Use a static library here because many test binaries depend on this but don't diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc -index 6476c59ba6378..9f1b950b14adc 100644 +index 9c4d73b730baa..318d3eef58979 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc -@@ -38,6 +38,10 @@ +@@ -39,6 +39,10 @@ #include "base/win/registry.h" #endif @@ -38,7 +38,7 @@ index 6476c59ba6378..9f1b950b14adc 100644 #if BUILDFLAG(ENABLE_WIDEVINE) #include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck #endif -@@ -502,6 +506,14 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -407,6 +411,14 @@ bool PathProvider(int key, base::FilePath* result) { #endif #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_OPENBSD) case chrome::DIR_POLICY_FILES: { @@ -53,7 +53,7 @@ index 6476c59ba6378..9f1b950b14adc 100644 cur = base::FilePath(policy::kPolicyPath); break; } -@@ -518,7 +530,13 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -423,7 +435,13 @@ bool PathProvider(int key, base::FilePath* result) { #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { @@ -68,7 +68,7 @@ index 6476c59ba6378..9f1b950b14adc 100644 break; } #endif -@@ -565,6 +583,12 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -471,6 +489,12 @@ bool PathProvider(int key, base::FilePath* result) { "/Library/Application Support/Chromium/NativeMessagingHosts")); #endif #else // BUILDFLAG(IS_MAC) @@ -82,5 +82,5 @@ index 6476c59ba6378..9f1b950b14adc 100644 cur = base::FilePath( FILE_PATH_LITERAL("/etc/opt/chrome/native-messaging-hosts")); -- -2.47.1 +2.51.2 diff --git a/flatpak-Expose-Widevine-into-the-sandbox.patch b/flatpak-Expose-Widevine-into-the-sandbox.patch index 1e9bafa..bacf9c9 100644 --- a/flatpak-Expose-Widevine-into-the-sandbox.patch +++ b/flatpak-Expose-Widevine-into-the-sandbox.patch @@ -1,4 +1,4 @@ -From c5330fa947e1db2db4055994e0da993620f2b5ef Mon Sep 17 00:00:00 2001 +From 895ee4ca3d52eee03c9604465ad5e90591969d64 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Tue, 17 Nov 2020 13:00:39 -0600 Subject: [PATCH] flatpak: Expose Widevine into the sandbox @@ -10,12 +10,12 @@ Subject: [PATCH] flatpak: Expose Widevine into the sandbox 3 files changed, 131 insertions(+), 24 deletions(-) diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index 595a469c765a6..56cbbb33addde 100644 +index c87e1248171cf..11f17a19ff949 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc -@@ -14,7 +14,10 @@ - #include +@@ -10,7 +10,10 @@ + #include "base/compiler_specific.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/logging.h" @@ -24,7 +24,7 @@ index 595a469c765a6..56cbbb33addde 100644 #include "base/posix/unix_domain_socket.h" #include "base/process/kill.h" #include "base/process/launch.h" -@@ -22,9 +25,12 @@ +@@ -18,9 +21,12 @@ #include "base/strings/string_number_conversions.h" #include "base/types/fixed_array.h" #include "build/build_config.h" @@ -37,7 +37,7 @@ index 595a469c765a6..56cbbb33addde 100644 #include "content/public/common/zygote/zygote_handle.h" #include "sandbox/linux/services/credentials.h" #include "sandbox/linux/services/flatpak_sandbox.h" -@@ -33,6 +39,7 @@ +@@ -29,6 +35,7 @@ #include "sandbox/linux/suid/common/sandbox.h" #include "sandbox/policy/linux/sandbox_linux.h" #include "sandbox/policy/switches.h" @@ -45,7 +45,7 @@ index 595a469c765a6..56cbbb33addde 100644 #if BUILDFLAG(IS_CHROMEOS) #include "content/common/zygote/zygote_communication_linux.h" -@@ -197,8 +204,51 @@ pid_t ZygoteHostImpl::LaunchZygote( +@@ -193,8 +200,51 @@ pid_t ZygoteHostImpl::LaunchZygote( if (is_sandboxed_zygote && use_namespace_sandbox_) { process = sandbox::NamespaceSandbox::LaunchProcess(*cmd_line, options); } else if (is_sandboxed_zygote && use_flatpak_sandbox_) { @@ -100,7 +100,7 @@ index 595a469c765a6..56cbbb33addde 100644 process = base::LaunchProcess(*cmd_line, options); } diff --git a/sandbox/linux/services/flatpak_sandbox.cc b/sandbox/linux/services/flatpak_sandbox.cc -index b5da5a5801fde..7c9205e7bf602 100644 +index c854f32b185a3..bcfd8df2e3cb5 100644 --- a/sandbox/linux/services/flatpak_sandbox.cc +++ b/sandbox/linux/services/flatpak_sandbox.cc @@ -4,6 +4,7 @@ @@ -322,5 +322,5 @@ index 167bbc85945ad..de8e7165b4573 100644 base::WaitableEvent* event, dbus::Response* response, -- -2.47.1 +2.51.2 From 42d5249d171b6f648acc28de8796abd9803a33e0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Dec 2025 09:57:38 +0100 Subject: [PATCH 231/244] apply swiftshader-llvm-16.0 patch --- chromium.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/chromium.spec b/chromium.spec index f099d8a..5557436 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1069,6 +1069,7 @@ Qt6 UI for chromium. %endif %patch -P318 -p1 -b .memory-allocator-dcheck-assert-fix +%patch -P319 -p1 -b .swiftshader-llvm-16.0 %if %{disable_bti} %patch -P352 -p1 -b .workaround_for_crash_on_BTI_capable_system From c285730bf0a6318c7ca6ff8a691f36c5267fe8ef Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Dec 2025 14:39:50 +0100 Subject: [PATCH 232/244] Fix build error caused by old rustc on el9 --- ...=> chromium-143-el9-rust-no-alloc-shim-is-unstable.patch | 2 +- ...mium-143-el9-rust_alloc_error_handler_should_panic.patch | 2 +- chromium.spec | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) rename chromium-142-el9-rust-no-alloc-shim-is-unstable.patch => chromium-143-el9-rust-no-alloc-shim-is-unstable.patch (97%) rename chromium-142-el9-rust_alloc_error_handler_should_panic.patch => chromium-143-el9-rust_alloc_error_handler_should_panic.patch (96%) diff --git a/chromium-142-el9-rust-no-alloc-shim-is-unstable.patch b/chromium-143-el9-rust-no-alloc-shim-is-unstable.patch similarity index 97% rename from chromium-142-el9-rust-no-alloc-shim-is-unstable.patch rename to chromium-143-el9-rust-no-alloc-shim-is-unstable.patch index 8c5a339..4154fb0 100644 --- a/chromium-142-el9-rust-no-alloc-shim-is-unstable.patch +++ b/chromium-143-el9-rust-no-alloc-shim-is-unstable.patch @@ -13,7 +13,7 @@ diff -up chromium-141.0.7390.37/build/rust/allocator/lib.rs.rust-no-alloc-shim-i static __rust_alloc_error_handler_should_panic: u8 = 0; + // Mangle the symbol name as rustc (1.84) expects on EL9 -+ #[no_mangle] ++ #[unsafe(no_mangle)] + #[linkage = "weak"] + static __rust_no_alloc_shim_is_unstable: u8 = 0; + diff --git a/chromium-142-el9-rust_alloc_error_handler_should_panic.patch b/chromium-143-el9-rust_alloc_error_handler_should_panic.patch similarity index 96% rename from chromium-142-el9-rust_alloc_error_handler_should_panic.patch rename to chromium-143-el9-rust_alloc_error_handler_should_panic.patch index 032c4a2..190f1ab 100644 --- a/chromium-142-el9-rust_alloc_error_handler_should_panic.patch +++ b/chromium-143-el9-rust_alloc_error_handler_should_panic.patch @@ -13,5 +13,5 @@ diff -up chromium-142.0.7444.162/build/rust/allocator/lib.rs.el9-rust_alloc_erro + } + // Mangle the symbol name as rustc (1.84) expects on EL9 - #[no_mangle] + #[unsafe(no_mangle)] #[linkage = "weak"] diff --git a/chromium.spec b/chromium.spec index 5557436..af92db3 100644 --- a/chromium.spec +++ b/chromium.spec @@ -348,11 +348,13 @@ Patch310: chromium-139-rust-FTBFS-suppress-warnings.patch Patch311: chromium-123-fstack-protector-strong.patch # Fix FTBFS: undefined symbol: __rust_no_alloc_shim_is_unstable on EL9 -Patch312: chromium-142-el9-rust-no-alloc-shim-is-unstable.patch +# Error: unsafe attribute used without unsafe +# --> ../../build/rust/allocator/lib.rs:107:7 +Patch312: chromium-143-el9-rust-no-alloc-shim-is-unstable.patch # Fix FTBFS on EL9 # - error: undefined symbol: __rust_alloc_error_handler_should_panic -Patch313: chromium-142-el9-rust_alloc_error_handler_should_panic.patch +Patch313: chromium-143-el9-rust_alloc_error_handler_should_panic.patch # old rust version causes build error on el8: # error[E0599]: no method named `is_none_or` found for enum `Option` in the current scope From fe4b6492581ba8e782e491115ba0107d972b934d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 4 Dec 2025 18:25:39 +0100 Subject: [PATCH 233/244] Fix build error caused by python-3.9 on EL9 --- chromium-142-python-3.9-ftbfs.patch | 65 ----------------------------- chromium-143-python-3.9-ftbfs.patch | 26 ++++++++++++ 2 files changed, 26 insertions(+), 65 deletions(-) delete mode 100644 chromium-142-python-3.9-ftbfs.patch diff --git a/chromium-142-python-3.9-ftbfs.patch b/chromium-142-python-3.9-ftbfs.patch deleted file mode 100644 index 093205a..0000000 --- a/chromium-142-python-3.9-ftbfs.patch +++ /dev/null @@ -1,65 +0,0 @@ -Fix FTBFS caused by old python-3.9.x on el9 - -File "/builddir/build/BUILD/chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py", line 81, in EnumDict - type: str | None -TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' - -File "/builddir/build/BUILD/chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py", line 106, in - - ) -> tuple[str | None, ExtractionErrors]: - -TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' - -File "/builddir/build/BUILD/chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py", line 643, in - - def _GetObsoleteReason(node: xml.dom.minidom.Element) -> str | None: - -TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' - -diff -up chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py.me chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py ---- chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py.me 2025-10-28 20:14:35.609014587 +0100 -+++ chromium-142.0.7444.52/tools/metrics/histograms/extract_histograms.py 2025-10-28 20:30:30.123641508 +0100 -@@ -21,6 +21,7 @@ from typing import Any, TypedDict - import xml.dom.minidom - - import histogram_configuration_model -+from typing import Optional, Union - - sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) - import xml_utils -@@ -78,7 +79,7 @@ class EnumDict(TypedDict, total=False): - """A dict representing an enum.""" - - name: str -- type: str | None -+ type: Optional[str] - buckets: list[_BucketDict] - summary: str - -@@ -102,7 +103,7 @@ def ExpandHistogramNameWithSuffixes( - suffix_name: str, - histogram_name: str, - histogram_suffixes_node: xml.dom.minidom.Element, --) -> tuple[str | None, ExtractionErrors]: -+) -> tuple[Optional[str], ExtractionErrors]: - """Creates a new histogram name based on a histogram suffix. - - Args: -@@ -304,7 +305,7 @@ def _ExtractOwners(node: xml.dom.minidom - - def _ExtractImprovementDirection( - histogram_node: xml.dom.minidom.Element, --) -> tuple[str | None, ExtractionErrors]: -+) -> tuple[Union[str, None], ExtractionErrors]: - """Extracts improvement direction from the given histogram element, if any. - - Args: -@@ -639,7 +640,7 @@ def ExtractVariantsFromXmlTree( - return variants_dict, errors - - --def _GetObsoleteReason(node: xml.dom.minidom.Element) -> str | None: -+def _GetObsoleteReason(node: xml.dom.minidom.Element) -> Optional[str]: - """If the node's histogram is obsolete, returns a string explanation. - - Otherwise, returns None. diff --git a/chromium-143-python-3.9-ftbfs.patch b/chromium-143-python-3.9-ftbfs.patch index fc7dc46..d69e5c3 100644 --- a/chromium-143-python-3.9-ftbfs.patch +++ b/chromium-143-python-3.9-ftbfs.patch @@ -1,3 +1,16 @@ +Author: + +Fix build error caused by python-3.9 on EL9 + +Traceback (most recent call last): + File "/builddir/build/BUILD/chromium-143.0.7499.40/out/Release/../../tools/metrics/histograms/generate_allowlist_from_histograms_file.py", line 10, in + import extract_histograms + File "/builddir/build/BUILD/chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py", line 24, in + import xml_utils + File "/builddir/build/BUILD/chromium-143.0.7499.40/tools/metrics/histograms/../common/xml_utils.py", line 14, in + DomTree = minidom.Element | minidom.Document +TypeError: unsupported operand type(s) for |: 'type' and 'type' + diff -up chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py.python-3.9-ftbfs chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py --- chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py.python-3.9-ftbfs 2025-11-19 22:40:05.000000000 +0100 +++ chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py 2025-12-02 17:23:41.996802101 +0100 @@ -45,3 +58,16 @@ diff -up chromium-143.0.7499.40/tools/metrics/histograms/extract_histograms.py.p """If the node's histogram is obsolete, returns a string explanation. Otherwise, returns None. +diff -up chromium-143.0.7499.40/tools/metrics/common/xml_utils.py.than chromium-143.0.7499.40/tools/metrics/common/xml_utils.py +--- chromium-143.0.7499.40/tools/metrics/common/xml_utils.py.than 2025-12-04 17:48:11.924111675 +0100 ++++ chromium-143.0.7499.40/tools/metrics/common/xml_utils.py 2025-12-04 17:49:42.451979769 +0100 +@@ -11,7 +11,8 @@ from xml.dom import minidom + # The implementation of Node type is possible with extra runtime checks, however + # using a more specific type makes the intent clearer and avoids potential + # warnings about attributes like `tagName` not being present on all Node types. +-DomTree = minidom.Element | minidom.Document ++from typing import Union ++DomTree = Union[minidom.Element, minidom.Document] + + _ELEMENT_NODE = minidom.Node.ELEMENT_NODE + From 538383ec0040335d67647a1affba04afc73a520a Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 9 Dec 2025 17:00:17 +0100 Subject: [PATCH 234/244] Backport Wayland Omnibox bug fix from upstream --- ...rove-cutout-mouse-handling-for-Wayla.patch | 94 +++++++++++++++++++ chromium.spec | 8 +- 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch diff --git a/chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch b/chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch new file mode 100644 index 0000000..0f4b452 --- /dev/null +++ b/chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch @@ -0,0 +1,94 @@ +From 88e4cfe5112964f9ee82926539821790c1041832 Mon Sep 17 00:00:00 2001 +From: Aviv Kiss +Date: Tue, 09 Dec 2025 09:27:11 -0800 +Subject: [PATCH] [omnibox][next] Improve cutout mouse handling for Wayland users. + +Partial revert of https://crrev.com/c/7151889 maintaining +`forward_mouse_events_` while reverting the event/lifecycle changes that +caused b:465871759. + +https://crrev.com/c/7151889 introduced a bug impacting Linux users with +Wayland windowing that results in the Omnibox ignoring click events. +Weirdly this bug doesn't seem to reproduce when the WebUI dropdown popup +is enabled although I'm not sure why. + +Keren explains why this bug is happening in +https://crrev.com/c/7240486/6/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc#b373 +on this change. Keren also suggested a simpler version of this fix that +is the version of this change that is submitted. The suggestion is to +revert back to the state prior to https://crrev.com/c/7151889 while +maintaining the `forward_mouse_events_` bool that allows the composebox +to opt out of forwarding. + +While drafting https://crrev.com/c/7151889 I recall testing this +approach and composebox mouse events being forwarded to the Omnibox +anyways. Either I didn't test what I thought I tested or perhaps I ran +into a build caching issue with Cider/Cog/Chrome. Since this seems to +work now I've updated the change to use the simpler approach. + +Bug: b:465871759 +Change-Id: Ib1ebc2ef5cb6d3bd6a00be5b59eb4b635d30c531 +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7240486 +Reviewed-by: Moe Ahmadi +Reviewed-by: Keren Zhu +Auto-Submit: Aviv Kiss +Commit-Queue: Keren Zhu +Cr-Commit-Position: refs/heads/main@{#1556206} +--- + +diff --git a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc +index 119d5fd..feb71623 100644 +--- a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc ++++ b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc +@@ -17,7 +17,6 @@ + #include "chrome/browser/ui/views/frame/browser_view.h" + #include "chrome/browser/ui/views/location_bar/location_bar_view.h" + #include "chrome/browser/ui/views/omnibox/omnibox_aim_popup_webui_content.h" +-#include "components/omnibox/common/omnibox_features.h" + #include "ui/base/cursor/cursor.h" + #include "ui/base/metadata/metadata_header_macros.h" + #include "ui/base/metadata/metadata_impl_macros.h" +@@ -356,24 +355,16 @@ + contents_->SetBoundsRect(results_bounds); + } + +-void RoundedOmniboxResultsFrame::VisibilityChanged(View* starting_from, +- bool is_visible) { +- views::View::VisibilityChanged(starting_from, is_visible); ++void RoundedOmniboxResultsFrame::AddedToWidget() { + #if defined(USE_AURA) + if (!forward_mouse_events_) { + return; + } +- +- if (is_visible) { +- // Use a ui::EventTargeter that allows mouse and touch events in the top +- // portion of the Widget to pass through to the omnibox beneath it. +- auto results_targeter = std::make_unique(); +- results_targeter->SetInsets(GetContentInsets()); +- GetWidget()->GetNativeWindow()->SetEventTargeter( +- std::move(results_targeter)); +- } else { +- GetWidget()->GetNativeWindow()->SetEventTargeter(nullptr); +- } ++ // Use a ui::EventTargeter that allows mouse and touch events in the top ++ // portion of the Widget to pass through to the omnibox beneath it. ++ auto results_targeter = std::make_unique(); ++ results_targeter->SetInsets(GetContentInsets()); ++ GetWidget()->GetNativeWindow()->SetEventTargeter(std::move(results_targeter)); + #endif // USE_AURA + } + +diff --git a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h +index d83435dc..529703f 100644 +--- a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h ++++ b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h +@@ -51,7 +51,7 @@ + + // views::View: + void Layout(PassKey) override; +- void VisibilityChanged(View* starting_from, bool is_visible) override; ++ void AddedToWidget() override; + #if !defined(USE_AURA) + void OnMouseMoved(const ui::MouseEvent& event) override; + void OnMouseEvent(ui::MouseEvent* event) override; diff --git a/chromium.spec b/chromium.spec index af92db3..b7a26c3 100644 --- a/chromium.spec +++ b/chromium.spec @@ -249,7 +249,7 @@ Name: chromium Version: 143.0.7499.40 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -470,6 +470,8 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch # Fix Wayland URI DnD issues Patch1001: chromium-142-Add-ExtractData-support-for-text-uri-list.patch Patch1002: chromium-142-Update-pointer-position-during-draggin.patch +# Fix Wayland Omnibox issue +Patch1003: chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1140,6 +1142,7 @@ Qt6 UI for chromium. # Upstream patches %patch -P1001 -p1 -b .Add-ExtractData-support-for-text-uri-list.patch %patch -P1002 -p1 -b .Update-pointer-position-during-draggin.patch +%patch -P1003 -p1 -b .Improve-cutout-mouse-handling-for-Wayla.patch # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1777,6 +1780,9 @@ fi %endif %changelog +* Tue Dec 09 2025 LuK1337 - 143.0.7499.40-2 +- Backport Wayland Omnibox bug fix from upstream + * Tue Dec 02 2025 Than Ngo - 143.0.7499.40-1 - Update to 143.0.7499.40 * High CVE-2025-13630: Type Confusion in V8 From 6196c5742999b91e3dedf1a6038616ecd0e78e46 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 11 Dec 2025 10:08:45 +0100 Subject: [PATCH 235/244] - Update to 143.0.7499.109 * High: Under coordination * Medium CVE-2025-14372: Use after free in Password Manager * Medium CVE-2025-14373: Inappropriate implementation in Toolbar - Workaround problem of auto dark mode inverting images and making them unreadable --- ...-revert-remove-darkmode-image-policy.patch | 145 ------------------ chromium-143-autodarkmode-workaround.patch | 26 ++++ chromium.spec | 16 +- sources | 2 +- 4 files changed, 40 insertions(+), 149 deletions(-) delete mode 100644 chromium-141-revert-remove-darkmode-image-policy.patch create mode 100644 chromium-143-autodarkmode-workaround.patch diff --git a/chromium-141-revert-remove-darkmode-image-policy.patch b/chromium-141-revert-remove-darkmode-image-policy.patch deleted file mode 100644 index 45891d5..0000000 --- a/chromium-141-revert-remove-darkmode-image-policy.patch +++ /dev/null @@ -1,145 +0,0 @@ -Revert it due to incorrect display of links on startpage - -commit 8e24867a503c142393388f117df94bb9b7c4b597 -Author: Prashant Nevase -Date: Mon Aug 18 10:26:18 2025 -0700 - - Remove dark mode kFilterNone image policy. - - This cl removes DarkModeImagePolicy::kFilterNone and virtual tests - related to it. DarkModeImagePolicy::kFilterSmart is used as default. - - Bug: 429404798 - Change-Id: I5983aa8bca9ed4da110130f8bc49a184c7d339dc - Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6810968 - Commit-Queue: Prashant Nevase - Reviewed-by: Philip Rogers - Cr-Commit-Position: refs/heads/main@{#1502799} - -diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc -index d4ed3585d95..62f30a3103c 100644 ---- a/chrome/browser/about_flags.cc -+++ b/chrome/browser/about_flags.cc -@@ -813,19 +813,16 @@ const FeatureEntry::Choice kSafetyHubUnifiedPasswordsModuleChoices[] = { - #if !BUILDFLAG(IS_CHROMEOS) - const FeatureEntry::FeatureParam kForceDark_SimpleHsl[] = { - {"inversion_method", "hsl_based"}, -- {"image_behavior", "none"}, - {"foreground_lightness_threshold", "150"}, - {"background_lightness_threshold", "205"}}; - - const FeatureEntry::FeatureParam kForceDark_SimpleCielab[] = { - {"inversion_method", "cielab_based"}, -- {"image_behavior", "none"}, - {"foreground_lightness_threshold", "150"}, - {"background_lightness_threshold", "205"}}; - - const FeatureEntry::FeatureParam kForceDark_SimpleRgb[] = { - {"inversion_method", "rgb_based"}, -- {"image_behavior", "none"}, - {"foreground_lightness_threshold", "150"}, - {"background_lightness_threshold", "205"}}; - -@@ -839,7 +836,6 @@ const FeatureEntry::FeatureParam kForceDark_SelectiveImageInversion[] = { - - const FeatureEntry::FeatureParam kForceDark_SelectiveElementInversion[] = { - {"inversion_method", "cielab_based"}, -- {"image_behavior", "none"}, - {"foreground_lightness_threshold", "150"}, - {"background_lightness_threshold", "205"}}; - -diff --git a/third_party/blink/common/features.cc b/third_party/blink/common/features.cc -index 14409e52162..0af032f4dbf 100644 ---- a/third_party/blink/common/features.cc -+++ b/third_party/blink/common/features.cc -@@ -1036,7 +1036,6 @@ const base::FeatureParam::Option - forcedark_image_behavior_options[] = { - {ForceDarkImageBehavior::kUseBlinkSettings, - "use_blink_settings_for_images"}, -- {ForceDarkImageBehavior::kInvertNone, "none"}, - {ForceDarkImageBehavior::kInvertSelectively, "selective"}}; - - BASE_FEATURE_ENUM_PARAM(ForceDarkImageBehavior, -diff --git a/third_party/blink/public/common/forcedark/forcedark_switches.h b/third_party/blink/public/common/forcedark/forcedark_switches.h -index 9661628ce5c..ad606effc28 100644 ---- a/third_party/blink/public/common/forcedark/forcedark_switches.h -+++ b/third_party/blink/public/common/forcedark/forcedark_switches.h -@@ -31,9 +31,6 @@ enum class ForceDarkImageBehavior { - // Same as ForceDarkInversionMethod::kUseBlinkSettings above. - kUseBlinkSettings, - -- // Do not invert any images. -- kInvertNone, -- - // Invert only some images. Images that act as icons or text should be - // inverted, but photos, avatars, etc. should not be. - kInvertSelectively -diff --git a/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc b/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc -index 1929af787b7..7cb0924924a 100644 ---- a/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc -+++ b/third_party/blink/renderer/platform/graphics/dark_mode_filter.cc -@@ -205,7 +205,6 @@ void DarkModeFilter::ApplyFilterToImage(Image* image, - const SkRect& src) { - DCHECK(image); - DCHECK(flags); -- DCHECK_NE(GetDarkModeImagePolicy(), DarkModeImagePolicy::kFilterNone); - - // Raster-side dark mode path - Just set the dark mode on flags and dark - // mode will be applied at compositor side during rasterization. -@@ -224,10 +223,6 @@ void DarkModeFilter::ApplyFilterToImage(Image* image, - } - - bool DarkModeFilter::ShouldApplyFilterToImage(ImageType type) const { -- DarkModeImagePolicy image_policy = GetDarkModeImagePolicy(); -- if (image_policy == DarkModeImagePolicy::kFilterNone) -- return false; -- - // kIcon: Do not consider images being drawn into bigger rect as these - // images are not meant for icons or representing smaller widgets. These - // images are considered as photos which should be untouched. -@@ -241,7 +236,6 @@ bool DarkModeFilter::ShouldApplyFilterToImage(ImageType type) const { - sk_sp DarkModeFilter::GenerateImageFilter( - const SkPixmap& pixmap, - const SkIRect& src) const { -- DCHECK(immutable_.settings.image_policy == DarkModeImagePolicy::kFilterSmart); - DCHECK(immutable_.image_filter); - - return (immutable_.image_classifier->Classify(pixmap, src) == -diff --git a/third_party/blink/renderer/platform/graphics/dark_mode_settings.h b/third_party/blink/renderer/platform/graphics/dark_mode_settings.h -index 19b3796f457..bce2653148a 100644 ---- a/third_party/blink/renderer/platform/graphics/dark_mode_settings.h -+++ b/third_party/blink/renderer/platform/graphics/dark_mode_settings.h -@@ -21,10 +21,9 @@ enum class DarkModeInversionAlgorithm { - // This enum will be removed soon to make dark mode simpler. - enum class DarkModeImagePolicy { - kFilterSmart, // Apply dark-mode based on image content. -- kFilterNone, // Never apply dark-mode filter to any images. - - kFirst = kFilterSmart, // First enum value. -- kLast = kFilterNone, // Last enum value. -+ kLast = kFilterSmart, // Last enum value. - }; - - enum class DarkModeImageClassifierPolicy { -@@ -45,7 +44,7 @@ struct DarkModeSettings { - DarkModeInversionAlgorithm mode = - DarkModeInversionAlgorithm::kInvertLightnessLAB; - float contrast = 0.0; // Valid range from -1.0 to 1.0 -- DarkModeImagePolicy image_policy = DarkModeImagePolicy::kFilterNone; -+ DarkModeImagePolicy image_policy = DarkModeImagePolicy::kFilterSmart; - DarkModeImageClassifierPolicy image_classifier_policy = - DarkModeImageClassifierPolicy::kNumColorsWithMlFallback; - -diff --git a/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc b/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc -index 61498c0a809..318652cb2f2 100644 ---- a/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc -+++ b/third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc -@@ -115,8 +115,6 @@ DarkModeImagePolicy GetImagePolicy(const SwitchParams& switch_params) { - case ForceDarkImageBehavior::kUseBlinkSettings: - return GetIntegerSwitchParamValue( - switch_params, "ImagePolicy", kDefaultDarkModeImagePolicy); -- case ForceDarkImageBehavior::kInvertNone: -- return DarkModeImagePolicy::kFilterNone; - case ForceDarkImageBehavior::kInvertSelectively: - return DarkModeImagePolicy::kFilterSmart; - } diff --git a/chromium-143-autodarkmode-workaround.patch b/chromium-143-autodarkmode-workaround.patch new file mode 100644 index 0000000..5bd4f87 --- /dev/null +++ b/chromium-143-autodarkmode-workaround.patch @@ -0,0 +1,26 @@ +Workaround auto darkmode issue, image are not inverted correctly in darkmode + +diff -up chromium-143.0.7499.40/third_party/blink/renderer/platform/graphics/dark_mode_image_classifier.cc.than chromium-143.0.7499.40/third_party/blink/renderer/platform/graphics/dark_mode_image_classifier.cc +--- chromium-143.0.7499.40/third_party/blink/renderer/platform/graphics/dark_mode_image_classifier.cc.than 2025-12-09 12:28:52.592092242 +0100 ++++ chromium-143.0.7499.40/third_party/blink/renderer/platform/graphics/dark_mode_image_classifier.cc 2025-12-09 12:42:57.776716951 +0100 +@@ -276,16 +276,20 @@ DarkModeResult DarkModeImageClassifier:: + float high_color_count_threshold = + kHighColorCountThreshold[features.is_colorful]; + ++#if 0 + // Very few colors means it's not a photo, apply the filter. + if (features.color_buckets_ratio < low_color_count_threshold) + return DarkModeResult::kApplyFilter; ++#endif + + // Too many colors means it's probably photorealistic, do not apply it. + if (features.color_buckets_ratio > high_color_count_threshold) + return DarkModeResult::kDoNotApplyFilter; + ++#if 0 + // In-between, decision tree cannot give a precise result. + return DarkModeResult::kNotClassified; ++#endif + } + + } // namespace blink diff --git a/chromium.spec b/chromium.spec index b7a26c3..987331a 100644 --- a/chromium.spec +++ b/chromium.spec @@ -248,8 +248,8 @@ %endif Name: chromium -Version: 143.0.7499.40 -Release: 2%{?dist} +Version: 143.0.7499.109 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -274,6 +274,9 @@ Patch22: chromium-131-fix-qt-ui.pach # needs //third_party/libpng:libpng_for_testonly(//build/toolchain/linux/unbundle:default) Patch23: chromium-143-revert-libpng_for_testonly.patch +# Get around the problem of auto darkmode webcontent inverting and making them unreadable +Patch30: chromium-143-autodarkmode-workaround.patch + # Disable tests on remoting build Patch82: chromium-98.0.4758.102-remoting-no-tests.patch @@ -995,7 +998,7 @@ Qt6 UI for chromium. %endif %patch -P23 -p1 -R -b .revert-libpng_for_testonly - +%patch -P30 -p1 -b .autodarkmode-workaround %patch -P82 -p1 -b .remoting-no-tests %if ! %{bundlebrotli} @@ -1780,6 +1783,13 @@ fi %endif %changelog +* Thu Dec 11 2025 Than Ngo - 143.0.7499.109-1 +- Update to 143.0.7499.109 + * High: Under coordination + * Medium CVE-2025-14372: Use after free in Password Manager + * Medium CVE-2025-14373: Inappropriate implementation in Toolbar +- Workaround problem of auto dark mode inverting images and making them unreadable + * Tue Dec 09 2025 LuK1337 - 143.0.7499.40-2 - Backport Wayland Omnibox bug fix from upstream diff --git a/sources b/sources index f3053ba..d53ee0f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-143.0.7499.40-clean.tar.xz) = 482721d372000d05a3e86c91f231c5ee206389890a19ad210e99de1ed86ccbb4dd155f461f98daf8648b6c9a6eeec3c9b4ae17e192bd816ead561a77174bd00c +SHA512 (chromium-143.0.7499.109-clean.tar.xz) = 353e4334516821ac491c01d4104c469ba280d3acf6d11dd1c44db0f7baad4127bbbb7c60fd750e9d6e931b311f2ee52e0fb9760bbb2e04d9b90925c0f48daab4 From 9334d87d2ce9b28d32eee05403623ef5e4bface5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 11 Dec 2025 23:14:37 +0100 Subject: [PATCH 236/244] Enable gtk4 by default --- chromium.conf | 4 ---- chromium.spec | 11 +++++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/chromium.conf b/chromium.conf index d0a610e..09adb8e 100644 --- a/chromium.conf +++ b/chromium.conf @@ -57,10 +57,6 @@ if [ "$MODE" != "none" ] ; then ENABLE_FEATURES="" fi -# Set gtk version to 3 by default -# todo: switch to gtk4 in the future -CHROMIUM_FLAGS+=" --gtk-version=3" - # Web Dark mode if [ "$WEB_AUTO_DARKMODE_WEBCONTENT" == "on" ] ; then darktype="WebContentsForceDark" diff --git a/chromium.spec b/chromium.spec index 987331a..2b7fbcd 100644 --- a/chromium.spec +++ b/chromium.spec @@ -249,7 +249,7 @@ Name: chromium Version: 143.0.7499.109 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -761,7 +761,7 @@ BuildRequires: opus-devel %endif BuildRequires: %{chromium_pybin} -BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: gtk4-devel %if ! %{bundlepylibs} %if 0%{?fedora} || 0%{?rhel} >= 8 @@ -805,8 +805,7 @@ BuildRequires: simdutf-devel Requires: nss%{_isa} >= 3.26 Requires: nss-mdns%{_isa} -# GTK modules it expects to find for some reason. -Requires: libcanberra-gtk3%{_isa} +Requires: gtk4 %if 0%{?fedora} && %{undefined flatpak} # This enables support for u2f tokens @@ -1359,6 +1358,7 @@ CHROMIUM_BROWSER_GN_DEFINES+=" use_qt6=true moc_qt6_path=\"$(%{_qt6_qmake} -quer %else CHROMIUM_BROWSER_GN_DEFINES+=' use_qt6=false' %endif +CHROMIUM_BROWSER_GN_DEFINES+=' use_gtk=true gtk_version=4' CHROMIUM_BROWSER_GN_DEFINES+=' use_gio=true use_pulseaudio=true' CHROMIUM_BROWSER_GN_DEFINES+=' enable_hangout_services_extension=true' @@ -1783,6 +1783,9 @@ fi %endif %changelog +* Thu Dec 11 2025 Than Ngo - 143.0.7499.109-2 +- Enable gtk4 by default + * Thu Dec 11 2025 Than Ngo - 143.0.7499.109-1 - Update to 143.0.7499.109 * High: Under coordination From 9cf22f9f1c757258e07e576e5ee46bd0200cb9ff Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 12 Dec 2025 09:43:04 +0100 Subject: [PATCH 237/244] Add BR for gtk4 --- chromium.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 2b7fbcd..8e42f23 100644 --- a/chromium.spec +++ b/chromium.spec @@ -761,7 +761,21 @@ BuildRequires: opus-devel %endif BuildRequires: %{chromium_pybin} -BuildRequires: gtk4-devel +BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(atspi-2) +BuildRequires: pkgconfig(atk-bridge-2.0) +BuildRequires: pkgconfig(xcomposite) +BuildRequires: pkgconfig(xcursor) +BuildRequires: pkgconfig(xi) +BuildRequires: pkgconfig(xrender) +BuildRequires: pkgconfig(xscrnsaver) +BuildRequires: pkgconfig(xshmfence) +BuildRequires: pkgconfig(xt) +BuildRequires: pkgconfig(xtst) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xcb-dri3) +BuildRequires: pkgconfig(xcb-proto) %if ! %{bundlepylibs} %if 0%{?fedora} || 0%{?rhel} >= 8 From d0c2893c13e6a9779200a5c90f3f59fdb9e9d5c0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 12 Dec 2025 11:58:21 +0100 Subject: [PATCH 238/244] Enable gtk3 for el9 as it still has old gtk4 version --- chromium.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/chromium.spec b/chromium.spec index 8e42f23..472ec62 100644 --- a/chromium.spec +++ b/chromium.spec @@ -51,6 +51,12 @@ %global system_nodejs 0 %endif +# enable gtk4 for fedora and el>9 +%global gtk_version 4 +%if 0%{?rhel} == 9 +%global gtk_version 3 +%endif + %if 0%{?rhel} == 8 %global chromium_pybin /usr/bin/python3.9 %else @@ -761,6 +767,7 @@ BuildRequires: opus-devel %endif BuildRequires: %{chromium_pybin} +%if %{gtk_version} == 4 BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(atspi-2) @@ -776,7 +783,12 @@ BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb-dri3) BuildRequires: pkgconfig(xcb-proto) - +Requires: gtk4 +%else +BuildRequires: pkgconfig(gtk+-3.0) +# GTK modules it expects to find for some reason. +Requires: libcanberra-gtk3%{_isa} +%endif %if ! %{bundlepylibs} %if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: python3-jinja2 @@ -819,8 +831,6 @@ BuildRequires: simdutf-devel Requires: nss%{_isa} >= 3.26 Requires: nss-mdns%{_isa} -Requires: gtk4 - %if 0%{?fedora} && %{undefined flatpak} # This enables support for u2f tokens Requires: u2f-hidraw-policy @@ -1372,7 +1382,7 @@ CHROMIUM_BROWSER_GN_DEFINES+=" use_qt6=true moc_qt6_path=\"$(%{_qt6_qmake} -quer %else CHROMIUM_BROWSER_GN_DEFINES+=' use_qt6=false' %endif -CHROMIUM_BROWSER_GN_DEFINES+=' use_gtk=true gtk_version=4' +CHROMIUM_BROWSER_GN_DEFINES+=' use_gtk=true gtk_version=%{gtk_version}' CHROMIUM_BROWSER_GN_DEFINES+=' use_gio=true use_pulseaudio=true' CHROMIUM_BROWSER_GN_DEFINES+=' enable_hangout_services_extension=true' From fa84178555617e070365ee581cf4c470984609c9 Mon Sep 17 00:00:00 2001 From: Hoshino Lina Date: Sat, 13 Dec 2025 14:43:33 +0900 Subject: [PATCH 239/244] Move core BRs out of GTK4 section & add missing ones These BRs are required by Chromium proper, even when built without any toolkits (e.g. as CEF). Add a few missing ones (wayland-devel, xkbcommon, pangocairo) and move others out of the GTK4 conditional, since they aren't actually related to GTK4, they just happened to be pulled in by gtk3-devel. --- chromium.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/chromium.spec b/chromium.spec index 472ec62..a659713 100644 --- a/chromium.spec +++ b/chromium.spec @@ -769,10 +769,6 @@ BuildRequires: opus-devel BuildRequires: %{chromium_pybin} %if %{gtk_version} == 4 BuildRequires: pkgconfig(gtk4) -BuildRequires: pkgconfig(xrandr) -BuildRequires: pkgconfig(atspi-2) -BuildRequires: pkgconfig(atk-bridge-2.0) -BuildRequires: pkgconfig(xcomposite) BuildRequires: pkgconfig(xcursor) BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xrender) @@ -789,6 +785,17 @@ BuildRequires: pkgconfig(gtk+-3.0) # GTK modules it expects to find for some reason. Requires: libcanberra-gtk3%{_isa} %endif + +# Build deps of Chromium proper which are often transitively pulled in by toolkits (GTK, Qt), +# but are still required without them. +BuildRequires: pkgconfig(atspi-2) +BuildRequires: pkgconfig(atk-bridge-2.0) +BuildRequires: pkgconfig(pangocairo) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xcomposite) +BuildRequires: pkgconfig(xrandr) +BuildRequires: wayland-devel + %if ! %{bundlepylibs} %if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: python3-jinja2 From cbf28082932227ac2c0a3d47e4aa0702f619596c Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 17 Dec 2025 11:30:05 +0100 Subject: [PATCH 240/244] - Update to 143.0.7499.146 * High CVE-2025-14765: Use after free in WebGPU * High CVE-2025-14766: Out of bounds read and write in V8 - Force dark mode when auto dark mode web content is on - Remove omnibox-next-Improve-cutout-mouse-handling-for-Wayla patch, as it's merged --- ...rove-cutout-mouse-handling-for-Wayla.patch | 94 ------------------- chromium.conf | 1 + chromium.spec | 14 ++- sources | 2 +- 4 files changed, 11 insertions(+), 100 deletions(-) delete mode 100644 chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch diff --git a/chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch b/chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch deleted file mode 100644 index 0f4b452..0000000 --- a/chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 88e4cfe5112964f9ee82926539821790c1041832 Mon Sep 17 00:00:00 2001 -From: Aviv Kiss -Date: Tue, 09 Dec 2025 09:27:11 -0800 -Subject: [PATCH] [omnibox][next] Improve cutout mouse handling for Wayland users. - -Partial revert of https://crrev.com/c/7151889 maintaining -`forward_mouse_events_` while reverting the event/lifecycle changes that -caused b:465871759. - -https://crrev.com/c/7151889 introduced a bug impacting Linux users with -Wayland windowing that results in the Omnibox ignoring click events. -Weirdly this bug doesn't seem to reproduce when the WebUI dropdown popup -is enabled although I'm not sure why. - -Keren explains why this bug is happening in -https://crrev.com/c/7240486/6/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc#b373 -on this change. Keren also suggested a simpler version of this fix that -is the version of this change that is submitted. The suggestion is to -revert back to the state prior to https://crrev.com/c/7151889 while -maintaining the `forward_mouse_events_` bool that allows the composebox -to opt out of forwarding. - -While drafting https://crrev.com/c/7151889 I recall testing this -approach and composebox mouse events being forwarded to the Omnibox -anyways. Either I didn't test what I thought I tested or perhaps I ran -into a build caching issue with Cider/Cog/Chrome. Since this seems to -work now I've updated the change to use the simpler approach. - -Bug: b:465871759 -Change-Id: Ib1ebc2ef5cb6d3bd6a00be5b59eb4b635d30c531 -Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7240486 -Reviewed-by: Moe Ahmadi -Reviewed-by: Keren Zhu -Auto-Submit: Aviv Kiss -Commit-Queue: Keren Zhu -Cr-Commit-Position: refs/heads/main@{#1556206} ---- - -diff --git a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc -index 119d5fd..feb71623 100644 ---- a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc -+++ b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc -@@ -17,7 +17,6 @@ - #include "chrome/browser/ui/views/frame/browser_view.h" - #include "chrome/browser/ui/views/location_bar/location_bar_view.h" - #include "chrome/browser/ui/views/omnibox/omnibox_aim_popup_webui_content.h" --#include "components/omnibox/common/omnibox_features.h" - #include "ui/base/cursor/cursor.h" - #include "ui/base/metadata/metadata_header_macros.h" - #include "ui/base/metadata/metadata_impl_macros.h" -@@ -356,24 +355,16 @@ - contents_->SetBoundsRect(results_bounds); - } - --void RoundedOmniboxResultsFrame::VisibilityChanged(View* starting_from, -- bool is_visible) { -- views::View::VisibilityChanged(starting_from, is_visible); -+void RoundedOmniboxResultsFrame::AddedToWidget() { - #if defined(USE_AURA) - if (!forward_mouse_events_) { - return; - } -- -- if (is_visible) { -- // Use a ui::EventTargeter that allows mouse and touch events in the top -- // portion of the Widget to pass through to the omnibox beneath it. -- auto results_targeter = std::make_unique(); -- results_targeter->SetInsets(GetContentInsets()); -- GetWidget()->GetNativeWindow()->SetEventTargeter( -- std::move(results_targeter)); -- } else { -- GetWidget()->GetNativeWindow()->SetEventTargeter(nullptr); -- } -+ // Use a ui::EventTargeter that allows mouse and touch events in the top -+ // portion of the Widget to pass through to the omnibox beneath it. -+ auto results_targeter = std::make_unique(); -+ results_targeter->SetInsets(GetContentInsets()); -+ GetWidget()->GetNativeWindow()->SetEventTargeter(std::move(results_targeter)); - #endif // USE_AURA - } - -diff --git a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h -index d83435dc..529703f 100644 ---- a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h -+++ b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.h -@@ -51,7 +51,7 @@ - - // views::View: - void Layout(PassKey) override; -- void VisibilityChanged(View* starting_from, bool is_visible) override; -+ void AddedToWidget() override; - #if !defined(USE_AURA) - void OnMouseMoved(const ui::MouseEvent& event) override; - void OnMouseEvent(ui::MouseEvent* event) override; diff --git a/chromium.conf b/chromium.conf index 09adb8e..31173c6 100644 --- a/chromium.conf +++ b/chromium.conf @@ -65,6 +65,7 @@ if [ "$WEB_AUTO_DARKMODE_WEBCONTENT" == "on" ] ; then else ENABLE_FEATURES+=",$darktype" fi + CHROMIUM_FLAGS+=" --force-dark-mode" fi [ -z "$DISABLE_FEATURES" ] || CHROMIUM_FLAGS+=" --disable-features=$DISABLE_FEATURES" diff --git a/chromium.spec b/chromium.spec index a659713..32afd29 100644 --- a/chromium.spec +++ b/chromium.spec @@ -254,8 +254,8 @@ %endif Name: chromium -Version: 143.0.7499.109 -Release: 2%{?dist} +Version: 143.0.7499.146 +Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) @@ -479,8 +479,6 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch # Fix Wayland URI DnD issues Patch1001: chromium-142-Add-ExtractData-support-for-text-uri-list.patch Patch1002: chromium-142-Update-pointer-position-during-draggin.patch -# Fix Wayland Omnibox issue -Patch1003: chromium-143-omnibox-next-Improve-cutout-mouse-handling-for-Wayla.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -1175,7 +1173,6 @@ Qt6 UI for chromium. # Upstream patches %patch -P1001 -p1 -b .Add-ExtractData-support-for-text-uri-list.patch %patch -P1002 -p1 -b .Update-pointer-position-during-draggin.patch -%patch -P1003 -p1 -b .Improve-cutout-mouse-handling-for-Wayla.patch # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1814,6 +1811,13 @@ fi %endif %changelog +* Wed Dec 17 2025 Than Ngo - 143.0.7499.146-1 +- Update to 143.0.7499.146 + * High CVE-2025-14765: Use after free in WebGPU + * High CVE-2025-14766: Out of bounds read and write in V8 +- Force dark mode when auto dark mode web content is on +- Remove omnibox-next-Improve-cutout-mouse-handling-for-Wayla patch, as it's merged + * Thu Dec 11 2025 Than Ngo - 143.0.7499.109-2 - Enable gtk4 by default diff --git a/sources b/sources index d53ee0f..290f4a3 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-143.0.7499.109-clean.tar.xz) = 353e4334516821ac491c01d4104c469ba280d3acf6d11dd1c44db0f7baad4127bbbb7c60fd750e9d6e931b311f2ee52e0fb9760bbb2e04d9b90925c0f48daab4 +SHA512 (chromium-143.0.7499.146-clean.tar.xz) = e88a1b6c18a3424a51f9df05189c147d24bdf078a58e942a04446e2ec186fc71127869c422b34baba1a3d748ff99ba8adc86aafe5ac5c0ff42cd49bf96d2bf1b From 5d3124cac242bdf495ccebc4b607c987550ac01e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Sat, 20 Dec 2025 10:24:21 +0100 Subject: [PATCH 241/244] Update to 143.0.7499.169 --- chromium.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chromium.spec b/chromium.spec index 32afd29..1fd4d4e 100644 --- a/chromium.spec +++ b/chromium.spec @@ -254,7 +254,7 @@ %endif Name: chromium -Version: 143.0.7499.146 +Version: 143.0.7499.169 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1811,6 +1811,9 @@ fi %endif %changelog +* Sat Dec 20 2025 Than Ngo - 143.0.7499.169-1 +- Update to 143.0.7499.169 + * Wed Dec 17 2025 Than Ngo - 143.0.7499.146-1 - Update to 143.0.7499.146 * High CVE-2025-14765: Use after free in WebGPU diff --git a/sources b/sources index 290f4a3..4745341 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-143.0.7499.146-clean.tar.xz) = e88a1b6c18a3424a51f9df05189c147d24bdf078a58e942a04446e2ec186fc71127869c422b34baba1a3d748ff99ba8adc86aafe5ac5c0ff42cd49bf96d2bf1b +SHA512 (chromium-143.0.7499.169-clean.tar.xz) = c4b456b7ce87c53c79bf2483f6903c2ef0a1af6204ea9c44d924f5d7b099d01b2f9c36f029ccb1134332e6ae16936231b8b5306bd9b68a2865f84c650269c19f From 9fa42d3890a4bae4720fb451545932a4bfc2c7a7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 7 Jan 2026 15:49:11 +0100 Subject: [PATCH 242/244] - Update tp 143.0.7499.192 * High CVE-2026-0628: Insufficient policy enforcement in WebView tag - Fix rhbz#2425338, Enable control flow integrity support for x86_64/aarch64 - Enable build for epel10.1 --- chromium.spec | 16 ++++++++++++++-- sources | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/chromium.spec b/chromium.spec index 1fd4d4e..85c31f5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1,3 +1,6 @@ +*# macro for el10 minor version +%define rhel_minor_version %(grep -oP '10\.[0-9.]*' /etc/redhat-release | cut -d '.' -f2) + %define _lto_cflags %{nil} %global _default_patch_fuzz 2 @@ -138,6 +141,9 @@ # enable|disable control flow integrity support %global cfi 0 +%ifarch x86_64 aarch64 +%global cfi 1 +%endif # enable qt backend %global enable_qt 1 @@ -254,7 +260,7 @@ %endif Name: chromium -Version: 143.0.7499.169 +Version: 143.0.7499.192 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -1089,7 +1095,7 @@ Qt6 UI for chromium. %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings %patch -P311 -p1 -b .fstack-protector-strong -%if 0%{?rhel} == 9 +%if 0%{?rhel} == 9 || 0%{?rhel_minor_version} == 1 %patch -P312 -p1 -b .el9-rust-no-alloc-shim-is-unstable %patch -P313 -p1 -b .el9-rust_alloc_error_handler_should_panic %endif @@ -1811,6 +1817,12 @@ fi %endif %changelog +* Wed Jan 07 2026 Than Ngo - 143.0.7499.192-1 +- Update tp 143.0.7499.192 + * High CVE-2026-0628: Insufficient policy enforcement in WebView tag +- Fix rhbz#2425338, Enable control flow integrity support for x86_64/aarch64 +- Enable build for epel10.1 + * Sat Dec 20 2025 Than Ngo - 143.0.7499.169-1 - Update to 143.0.7499.169 diff --git a/sources b/sources index 4745341..fb67321 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-143.0.7499.169-clean.tar.xz) = c4b456b7ce87c53c79bf2483f6903c2ef0a1af6204ea9c44d924f5d7b099d01b2f9c36f029ccb1134332e6ae16936231b8b5306bd9b68a2865f84c650269c19f +SHA512 (chromium-143.0.7499.192-clean.tar.xz) = 252f3feb974a9618f649c3ba6b848f87b747bee173d86c956a3c822305343574cfd369414c94c8e648c3d65d4f4e54c171d364989c0fb937240ed16abe6dda9a From 9d700ef13fdbc155aa5eee2671c31edd760fa701 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 7 Jan 2026 15:50:15 +0100 Subject: [PATCH 243/244] Fix typo --- chromium.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium.spec b/chromium.spec index 85c31f5..a65c8b5 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1,4 +1,4 @@ -*# macro for el10 minor version +# macro for el10 minor version %define rhel_minor_version %(grep -oP '10\.[0-9.]*' /etc/redhat-release | cut -d '.' -f2) %define _lto_cflags %{nil} From 8afd224270843061fbdb2d9d3d7a1d84f5a3ba82 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 14 Jan 2026 11:03:27 +0100 Subject: [PATCH 244/244] - Update to 144.0.7559.59 * CVE-2026-0899: Out of bounds memory access in V8 * CVE-2026-0900: Inappropriate implementation in V8 * CVE-2026-0901: Inappropriate implementation in Blink * CVE-2026-0902: Inappropriate implementation in V8 * CVE-2026-0903: Insufficient validation of untrusted input in Downloads * CVE-2026-0904: Incorrect security UI in Digital Credentials * CVE-2026-0905: Insufficient policy enforcement in Network * CVE-2026-0906: Incorrect security UI * CVE-2026-0907: Incorrect security UI in Split View * CVE-2026-0908: Use after free in ANGLE --- 0001-Add-PPC64-support-for-boringssl.patch | 206 +- 0001-Add-ppc64-target-to-libaom.patch | 12 +- ...generated-config-for-libaom-on-ppc64.patch | 24 +- 0001-Enable-ppc64-pointer-compression.patch | 8 +- ...OWER8-AltiVec-VSX-CPU-features-when-.patch | 8 +- ...Implement-support-for-PPC64-on-Linux.patch | 198 +- ...Implement-support-for-ppc64-on-Linux.patch | 138 +- 0001-add-xnn-ppc64el-support.patch | 12 +- ...sandbox-Enable-seccomp_bpf-for-ppc64.patch | 168 +- 0001-swiftshader-fix-build.patch | 13 +- ...e-Include-missing-header-cstddef-in-.patch | 6 +- ...ibvpx-Properly-generate-gni-on-ppc64.patch | 6 +- ...t-Include-altivec.h-on-ppc64-with-SI.patch | 6 +- ...-PPC64-generated-files-for-boringssl.patch | 28 +- 0002-Add-ppc64-trap-instructions.patch | 6 +- 0002-regenerate-xnn-buildgn.patch | 9917 +++++++++-------- ...party-libvpx-Remove-bad-ppc64-config.patch | 28 +- 0002-third_party-lss-kernel-structs.patch | 6 +- ...ty-libvpx-Add-ppc64-generated-config.patch | 28 +- ...y-crashpad-port-curl-transport-ppc64.patch | 6 +- ...rty-libvpx-work-around-ambiguous-vsx.patch | 18 +- HACK-debian-clang-disable-base-musttail.patch | 6 +- HACK-debian-clang-disable-pa-musttail.patch | 6 +- HACK-third_party-libvpx-use-generic-gnu.patch | 18 +- Rtc_base-system-arch.h-PPC.patch | 6 +- add-ppc64-architecture-string.patch | 6 +- add-ppc64-architecture-to-extensions.diff | 12 +- add-ppc64-pthread-stack-size.patch | 6 +- chromium-141-rust-clanglib.patch | 60 - ...xtractData-support-for-text-uri-list.patch | 72 - ...date-pointer-position-during-draggin.patch | 80 - chromium-144-rust-clanglib.patch | 66 + chromium-144-rust-libadler2.patch | 16 + chromium.spec | 37 +- dawn-fix-ppc64le-detection.patch | 6 +- fix-breakpad-compile.patch | 6 +- fix-clang-selection.patch | 12 - fix-different-data-layouts.patch | 6 +- fix-page-allocator-overflow.patch | 12 +- fix-partition-alloc-compile.patch | 6 +- fix-rust-linking.patch | 10 +- fix-rustc.patch | 8 +- fix-study-crash.patch | 14 +- fix-unknown-warning-option-messages.diff | 10 +- skia-vsx-instructions.patch | 122 +- sources | 2 +- 46 files changed, 5797 insertions(+), 5650 deletions(-) delete mode 100644 chromium-141-rust-clanglib.patch delete mode 100644 chromium-142-Add-ExtractData-support-for-text-uri-list.patch delete mode 100644 chromium-142-Update-pointer-position-during-draggin.patch create mode 100644 chromium-144-rust-clanglib.patch create mode 100644 chromium-144-rust-libadler2.patch delete mode 100644 fix-clang-selection.patch diff --git a/0001-Add-PPC64-support-for-boringssl.patch b/0001-Add-PPC64-support-for-boringssl.patch index a9139b0..11ef25c 100644 --- a/0001-Add-PPC64-support-for-boringssl.patch +++ b/0001-Add-PPC64-support-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/abi_self_test.cc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/abi_self_test.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/abi_self_test.cc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/abi_self_test.cc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/abi_self_test.cc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/abi_self_test.cc @@ -521,3 +521,289 @@ TEST(ABITest, AArch64) { CHECK_ABI_NO_UNWIND(abi_test_clobber_v15_upper); } @@ -292,10 +292,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/abi_self_test.cc + CHECK_ABI_NO_UNWIND(abi_test_clobber_lr); +} +#endif // OPENSSL_PPC64LE && SUPPORTS_ABI_TEST -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/cpu_ppc64le.cc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/cpu_ppc64le.cc =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/cpu_ppc64le.cc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/cpu_ppc64le.cc @@ -0,0 +1,38 @@ +/* Copyright (c) 2016, Google Inc. + * @@ -335,10 +335,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/cpu_ppc64le.cc +} + +#endif // OPENSSL_PPC64LE -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/crypto.cc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/crypto.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/crypto.cc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/crypto.cc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/crypto.cc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/crypto.cc @@ -67,6 +67,10 @@ uint32_t OPENSSL_get_ia32cap(int idx) { return OPENSSL_ia32cap_P[idx]; } @@ -350,10 +350,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/crypto.cc #elif (defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)) && \ !defined(OPENSSL_STATIC_ARMCAP) HIDDEN uint32_t OPENSSL_armcap_P = 0; -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesp8-ppc.pl @@ -0,0 +1,3809 @@ +#! /usr/bin/env perl +# Copyright 2014-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -4164,10 +4164,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/internal.h @@ -81,6 +81,12 @@ inline int vpaes_capable(void) { return inline int vpaes_capable(void) { return CRYPTO_is_NEON_capable(); } #endif @@ -4195,10 +4195,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/in #endif #endif // OPENSSL_NO_ASM -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/bcm.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bcm.cc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/bcm.cc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/bcm.cc @@ -105,6 +105,7 @@ #include "self_check/fips.cc.inc" #include "self_check/self_check.cc.inc" @@ -4207,10 +4207,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bcm.cc #include "sha/sha1.cc.inc" #include "sha/sha256.cc.inc" #include "sha/sha512.cc.inc" -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/bn/bn.cc.inc @@ -330,6 +330,23 @@ int bn_expand(BIGNUM *bn, size_t bits) { } @@ -4235,11 +4235,11 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/bn/bn. if ((size_t)bn->width <= words) { if (!bn_wexpand(bn, words)) { return 0; -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc -@@ -1229,6 +1229,8 @@ int EVP_has_aes_hardware(void) { +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/cipher/e_aes.cc.inc +@@ -1234,6 +1234,8 @@ int EVP_has_aes_hardware(void) { return hwaes_capable() && crypto_gcm_clmul_enabled(); #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); @@ -4248,10 +4248,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/cipher #else return 0; #endif -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/asm/ghashp8-ppc.pl @@ -0,0 +1,671 @@ +#! /usr/bin/env perl +# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -4924,10 +4924,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/as +} + +close STDOUT or die "error closing STDOUT: $!"; # enforce flush -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/gcm.cc.inc @@ -233,6 +233,13 @@ void CRYPTO_ghash_init(gmult_func *out_m *out_hash = gcm_ghash_neon; return; @@ -4942,10 +4942,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gc #endif gcm_init_nohw(out_table, H); -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/aes/gcm_test.cc @@ -169,5 +169,15 @@ TEST(GCMTest, ABI) { } } @@ -4962,10 +4962,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/aes/gc +#endif // GHASH_ASM_PPC64LE } #endif // SUPPORTS_ABI_TEST && !OPENSSL_NO_ASM -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/rand/getrandom_fillin.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/rand/getrandom_fillin.h +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/rand/getrandom_fillin.h ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/rand/getrandom_fillin.h @@ -30,6 +30,8 @@ #define EXPECTED_NR_getrandom 278 #elif defined(OPENSSL_ARM) @@ -4975,10 +4975,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/rand/getrandom_fi #elif defined(OPENSSL_RISCV64) #define EXPECTED_NR_getrandom 278 #endif -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/rand/rand.cc.inc @@ -425,6 +425,11 @@ bcm_infallible BCM_rand_bytes_with_addit // Take a read lock around accesses to |state->drbg|. This is needed to // avoid returning bad entropy if we race with @@ -4991,10 +4991,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/rand/r CRYPTO_MUTEX_lock_read(&state->clear_drbg_lock); #endif if (!CTR_DRBG_reseed_ex(&state->drbg, seed, sizeof(seed), -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/sha/internal.h @@ -23,6 +23,16 @@ extern "C" { #endif @@ -5012,10 +5012,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/in // Define SHA{n}[_{variant}]_ASM if sha{n}_block_data_order[_{variant}] is // defined in assembly. -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/sha/sha1-altivec.cc.inc @@ -0,0 +1,369 @@ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.ccom) + * All rights reserved. @@ -5386,10 +5386,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sh +#undef BODY_20_39 +#undef BODY_40_59 +#undef BODY_60_79 -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/internal.h +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/internal.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/internal.h -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/internal.h +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/internal.h ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/internal.h @@ -66,8 +66,9 @@ extern "C" { #if !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_STATIC_ARMCAP) && \ (defined(OPENSSL_X86) || defined(OPENSSL_X86_64) || \ @@ -5402,7 +5402,7 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/internal.h #define NEED_CPUID // OPENSSL_cpuid_setup initializes the platform-specific feature cache. This -@@ -1419,6 +1420,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl +@@ -1420,6 +1421,16 @@ inline int CRYPTO_is_ARMv8_SHA512_capabl #endif // OPENSSL_ARM || OPENSSL_AARCH64 @@ -5419,10 +5419,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/internal.h #if defined(BORINGSSL_DISPATCH_TEST) // Runtime CPU dispatch testing support -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/perlasm/ppc-xlate.pl @@ -0,0 +1,320 @@ +#! /usr/bin/env perl +# Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. @@ -5744,10 +5744,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/perlasm/ppc-xlate +___ + +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/abi_test.h +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/test/abi_test.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/test/abi_test.h -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/abi_test.h +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/test/abi_test.h ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/test/abi_test.h @@ -179,7 +179,78 @@ struct alignas(16) Reg128 { CALLER_STATE_REGISTER(uint64_t, x28) \ CALLER_STATE_REGISTER(uint64_t, x29) @@ -5854,10 +5854,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/abi_test.h static_assert(sizeof...(args) <= 8, "too many arguments for abi_test_trampoline"); -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/test/asm/trampoline-ppc.pl @@ -0,0 +1,262 @@ +#!/usr/bin/env perl +# Copyright (c) 2019, Google Inc. @@ -6121,10 +6121,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/test/asm/trampoli + +print $code; +close STDOUT or die "error closing STDOUT: $!"; -Index: chromium-143.0.7499.40/third_party/boringssl/src/include/openssl/target.h +Index: chromium-144.0.7559.59/third_party/boringssl/src/include/openssl/target.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/include/openssl/target.h -+++ chromium-143.0.7499.40/third_party/boringssl/src/include/openssl/target.h +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/include/openssl/target.h ++++ chromium-144.0.7559.59/third_party/boringssl/src/include/openssl/target.h @@ -34,6 +34,9 @@ #elif defined(__ARMEL__) || defined(_M_ARM) #define OPENSSL_32_BIT @@ -6135,10 +6135,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/include/openssl/target.h #elif defined(__MIPSEL__) && !defined(__LP64__) #define OPENSSL_32_BIT #define OPENSSL_MIPS -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/acvp/modulewrapper/main.cc @@ -31,6 +31,8 @@ int main(int argc, char **argv) { puts("ARM (32-bit)"); #elif defined(OPENSSL_AARCH64) @@ -6148,10 +6148,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/acvp/modu #else #error "FIPS build not supported on this architecture" #endif -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.go +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/delocate.go =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.go +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.go ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/delocate.go @@ -56,7 +56,8 @@ type stringWriter interface { type processorType int @@ -6751,10 +6751,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ case "str", "bl", "ldr", "st1": return aarch64 } -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/delocate.peg =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate.peg +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/util/fipstools/delocate/delocate.peg ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/delocate.peg @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. @@ -6768,10 +6768,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ # To regenerate delocate.peg.go: # -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/delocate_test.go @@ -39,6 +39,11 @@ func (test *delocateTest) Path(file stri var delocateTests = []delocateTest{ @@ -6784,10 +6784,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ {"x86_64-Basic", []string{"in.s"}, "out.s"}, {"x86_64-BSS", []string{"in.s"}, "out.s"}, {"x86_64-GOTRewrite", []string{"in.s"}, "out.s"}, -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/in.s @@ -0,0 +1,9 @@ + .text +foo: @@ -6798,10 +6798,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ + .localentry foo,.-foo +.LVL0: + bl -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-GlobalEntry/out.s @@ -0,0 +1,62 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6865,19 +6865,19 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/in.s @@ -0,0 +1,4 @@ + .text +foo: + addis 22,2,bar@toc@ha + ld 0,bar@toc@l(22) -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-LoadToR0/out.s @@ -0,0 +1,72 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -6951,10 +6951,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/in.s @@ -0,0 +1,161 @@ + .file "foo.cc" + .abiversion 2 @@ -7117,10 +7117,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ + .size exported_function,.-exported_function + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample/out.s @@ -0,0 +1,552 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -7674,10 +7674,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/in.s @@ -0,0 +1,226 @@ + .file "foo.cc" + .abiversion 2 @@ -7905,10 +7905,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ + .zero 20 + .ident "GCC: (Ubuntu 4.9.2-10ubuntu13) 4.9.2" + .section .note.GNU-stack,"",@progbits -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-Sample2/out.s @@ -0,0 +1,677 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8587,10 +8587,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/in.s @@ -0,0 +1,23 @@ + .text +foo: @@ -8615,10 +8615,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ + + addis 4, 2, 1+foo-2@toc@ha+3 + addi 4, 4, 1+foo-2@toc@l+3 -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/fipstools/delocate/testdata/ppc64le-TOCWithOffset/out.s @@ -0,0 +1,178 @@ +.text +.file 1 "inserted_by_delocate.cc" @@ -8798,10 +8798,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/fipstools/delocate/ +.byte 0xff +.byte 0x31 +.byte 0x80 -Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +Index: chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc -+++ chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc ++++ chromium-144.0.7559.59/third_party/boringssl/src/crypto/fipsmodule/sha/sha1.cc.inc @@ -377,6 +377,10 @@ static void sha1_block_data_order(uint32 return; } @@ -8813,10 +8813,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/crypto/fipsmodule/sha/sh sha1_block_data_order_nohw(state, data, num); } -Index: chromium-143.0.7499.40/third_party/boringssl/src/build.json +Index: chromium-144.0.7559.59/third_party/boringssl/src/build.json =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/build.json -+++ chromium-143.0.7499.40/third_party/boringssl/src/build.json +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/build.json ++++ chromium-144.0.7559.59/third_party/boringssl/src/build.json @@ -130,6 +130,10 @@ {"src": "crypto/fipsmodule/sha/asm/sha512-armv4.pl"}, {"src": "crypto/fipsmodule/aes/asm/vpaes-armv7.pl"} @@ -8836,7 +8836,7 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/build.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -803,6 +808,9 @@ +@@ -805,6 +810,9 @@ "perlasm_arm": [ {"src": "crypto/test/asm/trampoline-armv4.pl"} ], @@ -8846,10 +8846,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/build.json "perlasm_x86": [ {"src": "crypto/test/asm/trampoline-x86.pl"} ], -Index: chromium-143.0.7499.40/third_party/boringssl/src/util/pregenerate/build.go +Index: chromium-144.0.7559.59/third_party/boringssl/src/util/pregenerate/build.go =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/util/pregenerate/build.go -+++ chromium-143.0.7499.40/third_party/boringssl/src/util/pregenerate/build.go +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/util/pregenerate/build.go ++++ chromium-144.0.7559.59/third_party/boringssl/src/util/pregenerate/build.go @@ -38,6 +38,7 @@ type InputTarget struct { // architecture. PerlasmAarch64 []PerlasmSource `json:"perlasm_aarch64,omitempty"` @@ -8868,10 +8868,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/util/pregenerate/build.g for _, p := range in.PerlasmX86 { addPerlasmTask(&out.Asm, &p, "-apple.S", []string{"macosx", "-fPIC"}) addPerlasmTask(&out.Asm, &p, "-linux.S", []string{"elf", "-fPIC"}) -Index: chromium-143.0.7499.40/third_party/boringssl/README.ppc64le +Index: chromium-144.0.7559.59/third_party/boringssl/README.ppc64le =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/README.ppc64le ++++ chromium-144.0.7559.59/third_party/boringssl/README.ppc64le @@ -0,0 +1,8 @@ +============================================================== +To recreate boringssl pregenerated files patch for ppc64le: @@ -8881,10 +8881,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/README.ppc64le +go run ./util/pregenerate +cd ../../../../ +diff -urN chromium-*/third_party/boringssl/src/gen.orig chromium-*/third_party/boringssl/src/gen -Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.gni +Index: chromium-144.0.7559.59/third_party/boringssl/src/gen/sources.gni =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/gen/sources.gni -+++ chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.gni +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/gen/sources.gni ++++ chromium-144.0.7559.59/third_party/boringssl/src/gen/sources.gni @@ -123,6 +123,7 @@ bcm_sources_asm = [ "gen/bcm/aesv8-gcm-armv8-apple.S", "gen/bcm/aesv8-gcm-armv8-linux.S", diff --git a/0001-Add-ppc64-target-to-libaom.patch b/0001-Add-ppc64-target-to-libaom.patch index c328bda..b6d5ffe 100644 --- a/0001-Add-ppc64-target-to-libaom.patch +++ b/0001-Add-ppc64-target-to-libaom.patch @@ -8,10 +8,10 @@ Subject: [PATCH] Add ppc64 target to libaom third_party/libaom/cmake_update.sh | 3 +++ 2 files changed, 15 insertions(+) -Index: chromium-143.0.7499.40/third_party/libaom/BUILD.gn +Index: chromium-144.0.7559.59/third_party/libaom/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libaom/BUILD.gn -+++ chromium-143.0.7499.40/third_party/libaom/BUILD.gn +--- chromium-144.0.7559.59.orig/third_party/libaom/BUILD.gn ++++ chromium-144.0.7559.59/third_party/libaom/BUILD.gn @@ -299,6 +299,18 @@ if (current_cpu == "arm64" || current_cp } } @@ -41,10 +41,10 @@ Index: chromium-143.0.7499.40/third_party/libaom/BUILD.gn if (is_android) { deps += [ "//third_party/cpu_features:ndk_compat" ] } -Index: chromium-143.0.7499.40/third_party/libaom/cmake_update.sh +Index: chromium-144.0.7559.59/third_party/libaom/cmake_update.sh =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libaom/cmake_update.sh -+++ chromium-143.0.7499.40/third_party/libaom/cmake_update.sh +--- chromium-144.0.7559.59.orig/third_party/libaom/cmake_update.sh ++++ chromium-144.0.7559.59/third_party/libaom/cmake_update.sh @@ -167,6 +167,9 @@ egrep \ "#define [A-Z0-9_]+[[:space:]]+[01]" "${CFG}/win/ia32/config/aom_config.h" \ | awk '{print "%define " $2 " " $3}' > "${CFG}/win/ia32/config/aom_config.asm" diff --git a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 176ab0d..2f82037 100644 --- a/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm +Index: chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm ++++ chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm @@ -0,0 +1,100 @@ +; +; Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -103,10 +103,10 @@ Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/confi +HAVE_VSX equ 1 +HAVE_WXWIDGETS equ 0 +STATIC_LINK_JXL equ 0 -Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.c +Index: chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_config.c =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.c ++++ chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_config.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -121,10 +121,10 @@ Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/confi +#include "aom/aom_codec.h" +static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"; +const char *aom_codec_build_config(void) {return cfg;} -Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.h +Index: chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_config.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_config.h ++++ chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_config.h @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -229,10 +229,10 @@ Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/confi +#define HAVE_WXWIDGETS 0 +#define STATIC_LINK_JXL 0 +#endif // AOM_CONFIG_H_ -Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h +Index: chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h ++++ chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h @@ -0,0 +1,1177 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -1411,10 +1411,10 @@ Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif // AOM_DSP_RTCD_H_ -Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h +Index: chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h ++++ chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. @@ -1507,10 +1507,10 @@ Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/confi +#endif + +#endif // AOM_SCALE_RTCD_H_ -Index: chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h +Index: chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h ++++ chromium-144.0.7559.59/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h @@ -0,0 +1,405 @@ +/* + * Copyright (c) 2025, Alliance for Open Media. All rights reserved. diff --git a/0001-Enable-ppc64-pointer-compression.patch b/0001-Enable-ppc64-pointer-compression.patch index b8ef777..a7197a5 100644 --- a/0001-Enable-ppc64-pointer-compression.patch +++ b/0001-Enable-ppc64-pointer-compression.patch @@ -1,8 +1,8 @@ -Index: chromium-143.0.7499.40/v8/gni/v8.gni +Index: chromium-144.0.7559.59/v8/gni/v8.gni =================================================================== ---- chromium-143.0.7499.40.orig/v8/gni/v8.gni -+++ chromium-143.0.7499.40/v8/gni/v8.gni -@@ -298,7 +298,7 @@ assert( +--- chromium-144.0.7559.59.orig/v8/gni/v8.gni ++++ chromium-144.0.7559.59/v8/gni/v8.gni +@@ -317,7 +317,7 @@ assert( if (v8_enable_pointer_compression == "") { v8_enable_pointer_compression = v8_current_cpu == "arm64" || v8_current_cpu == "x64" || diff --git a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch index 6842368..3c1c68d 100644 --- a/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch +++ b/0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch @@ -8,11 +8,11 @@ Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) -Index: chromium-143.0.7499.40/v8/BUILD.gn +Index: chromium-144.0.7559.59/v8/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/v8/BUILD.gn -+++ chromium-143.0.7499.40/v8/BUILD.gn -@@ -1577,7 +1577,14 @@ config("toolchain") { +--- chromium-144.0.7559.59.orig/v8/BUILD.gn ++++ chromium-144.0.7559.59/v8/BUILD.gn +@@ -1596,7 +1596,14 @@ config("toolchain") { if (v8_current_cpu == "ppc64") { defines += [ "V8_TARGET_ARCH_PPC64" ] cflags += [ "-ffp-contract=off" ] diff --git a/0001-Implement-support-for-PPC64-on-Linux.patch b/0001-Implement-support-for-PPC64-on-Linux.patch index 2bfce0a..772cd3c 100644 --- a/0001-Implement-support-for-PPC64-on-Linux.patch +++ b/0001-Implement-support-for-PPC64-on-Linux.patch @@ -40,20 +40,20 @@ This patch implements support for the PPC64 architecture on Linux hosts. util/misc/capture_context_test_util_linux.cc | 6 + 36 files changed, 932 insertions(+), 12 deletions(-) -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/CONTRIBUTORS +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/CONTRIBUTORS =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/CONTRIBUTORS -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/CONTRIBUTORS +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/CONTRIBUTORS ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/CONTRIBUTORS @@ -13,3 +13,5 @@ Mark Mentovai Robert Sesek Scott Graham Joshua Peraza +Shawn Anastasio +Timothy Pearson -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/minidump_context.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context.h @@ -686,6 +686,70 @@ struct MinidumpContextRISCV64 { uint32_t fcsr; }; @@ -125,10 +125,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_H_ -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context_writer.cc @@ -110,6 +110,13 @@ MinidumpContextWriter::CreateFromSnapsho break; } @@ -192,10 +192,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_co +} } // namespace crashpad -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context_writer.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context_writer.h @@ -413,6 +413,49 @@ class MinidumpContextRISCV64Writer final MinidumpContextRISCV64 context_; }; @@ -246,10 +246,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_co } // namespace crashpad #endif // CRASHPAD_MINIDUMP_MINIDUMP_CONTEXT_WRITER_H_ -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_context_writer_test.cc @@ -322,6 +322,21 @@ TYPED_TEST(MinidumpContextWriter, RISCV6 TypeParam>(context, ExpectMinidumpContextRISCV64, kSeed); } @@ -272,10 +272,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_co } // namespace } // namespace test } // namespace crashpad -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/minidump_misc_info_writer.cc @@ -177,6 +177,8 @@ std::string MinidumpMiscInfoDebugBuildSt static constexpr char kCPU[] = "mips64"; #elif defined(ARCH_CPU_RISCV64) @@ -285,10 +285,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/minidump_mi #else #error define kCPU for this CPU #endif -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.cc @@ -297,6 +297,40 @@ void InitializeMinidumpContextRISCV64(Mi context->fcsr = value++; } @@ -369,10 +369,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidu + } // namespace test } // namespace crashpad -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/minidump/test/minidump_context_test_util.h @@ -90,6 +90,9 @@ void ExpectMinidumpContextMIPS64(uint32_ void ExpectMinidumpContextRISCV64(uint32_t expect_seed, const MinidumpContextRISCV64* observed, @@ -383,10 +383,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/minidump/test/minidu //! \} } // namespace test -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/capture_memory.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/capture_memory.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/capture_memory.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/capture_memory.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/capture_memory.cc @@ -123,6 +123,11 @@ void CaptureMemory::PointedToByContext(c for (size_t i = 0; i < std::size(context.riscv64->regs); ++i) { MaybeCaptureMemoryAround(delegate, context.riscv64->regs[i]); @@ -399,10 +399,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/capture_mem #else #error Port. #endif -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/cpu_architecture.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_architecture.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/cpu_architecture.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/cpu_architecture.h @@ -47,6 +47,9 @@ enum CPUArchitecture { //! \brief 64-bit RISC-V. @@ -413,10 +413,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_archite }; } // namespace crashpad -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/cpu_context.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/cpu_context.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/cpu_context.cc @@ -173,6 +173,8 @@ uint64_t CPUContext::InstructionPointer( return arm64->pc; case kCPUArchitectureRISCV64: @@ -443,10 +443,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context case kCPUArchitectureRISCV64: return true; case kCPUArchitectureX86: -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/cpu_context.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/cpu_context.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/cpu_context.h @@ -371,6 +371,24 @@ struct CPUContextRISCV64 { uint32_t fcsr; }; @@ -480,10 +480,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/cpu_context }; }; -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/cpu_context_linux.h @@ -15,6 +15,7 @@ #ifndef CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ #define CRASHPAD_SNAPSHOT_LINUX_CPU_CONTEXT_LINUX_H_ @@ -571,10 +571,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/cpu_c } // namespace internal } // namespace crashpad -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/debug_rendezvous_test.cc @@ -194,12 +194,15 @@ void TestAgainstTarget(PtraceConnection* device == 0 && inode == 0 && mapping_name == "[vdso]"; #if defined(ARCH_CPU_X86) @@ -592,10 +592,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/debug }, module_mapping->name, module_mapping->device, -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.cc @@ -367,6 +367,69 @@ bool ExceptionSnapshotLinux::ReadContext return internal::ReadContext(reader, context_address, context_.riscv64); } @@ -666,10 +666,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/excep #endif // ARCH_CPU_X86_FAMILY bool ExceptionSnapshotLinux::Initialize( -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux.h @@ -94,6 +94,8 @@ class ExceptionSnapshotLinux final : pub CPUContextMIPS64 mips64; #elif defined(ARCH_CPU_RISCV64) @@ -679,10 +679,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/excep #endif } context_union_; CPUContext context_; -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/exception_snapshot_linux_test.cc @@ -325,7 +325,28 @@ void ExpectContext(const CPUContext& act sizeof(actual.riscv64->fpregs)), 0); @@ -712,10 +712,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/excep #else #error Port. #endif -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/process_reader_linux.cc @@ -129,6 +129,8 @@ void ProcessReaderLinux::Thread::Initial : thread_info.thread_context.t32.regs[29]; #elif defined(ARCH_CPU_RISCV64) @@ -725,10 +725,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/proce #else #error Port. #endif -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/signal_context.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/linux/signal_context.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/linux/signal_context.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/linux/signal_context.h @@ -456,6 +456,89 @@ static_assert(offsetof(UContextfcsr = value++; } @@ -937,10 +937,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/test/test_c + } // namespace test } // namespace crashpad -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.h @@ -64,6 +64,7 @@ void InitializeCPUContextARM64(CPUContex void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed); void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed); @@ -949,10 +949,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/snapshot/test/test_c //! \} } // namespace test -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/test/linux/get_tls.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/test/linux/get_tls.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/test/linux/get_tls.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/test/linux/get_tls.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/test/linux/get_tls.cc @@ -51,6 +51,8 @@ LinuxVMAddress GetTLS() { : "$3"); #elif defined(ARCH_CPU_RISCV64) @@ -962,10 +962,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/test/linux/get_tls.c #else #error Port. #endif // ARCH_CPU_ARMEL -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/test/multiprocess_posix.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/test/multiprocess_posix.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/test/multiprocess_posix.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/test/multiprocess_posix.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/test/multiprocess_posix.cc @@ -162,7 +162,8 @@ void Multiprocess::SetExpectedChildTermi } @@ -976,10 +976,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/test/multiprocess_po SetExpectedChildTermination(kTerminationSignal, SIGTRAP); #else SetExpectedChildTermination(kTerminationSignal, SIGILL); -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/linux/auxiliary_vector.cc @@ -56,6 +56,11 @@ bool AuxiliaryVector::Read(PtraceConnect if (type == AT_IGNORE) { continue; @@ -992,10 +992,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/auxiliary if (!MapInsertOrReplace(&values_, type, value, nullptr)) { LOG(ERROR) << "duplicate auxv entry"; return false; -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/ptracer.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/linux/ptracer.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/ptracer.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/linux/ptracer.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/linux/ptracer.cc @@ -430,6 +430,64 @@ bool GetThreadArea64(pid_t tid, return true; } @@ -1071,10 +1071,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/ptracer.c GetThreadArea64(tid, info->thread_context, &info->thread_specific_data_address, -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/thread_info.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/linux/thread_info.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/linux/thread_info.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/thread_info.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/linux/thread_info.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/linux/thread_info.h @@ -34,6 +34,10 @@ #include #endif @@ -1193,10 +1193,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/linux/thread_in //! \brief The thread-local storage address for the thread. LinuxVMAddress thread_specific_data_address; }; -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context.h +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context.h -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context.h +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/misc/capture_context.h ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context.h @@ -70,6 +70,7 @@ using NativeCPUContext = ucontext_t; //! Linux | ARM/ARM64 | `r0`/`x0` //! Linux | MIPS/MIPS64 | `$a0` @@ -1205,10 +1205,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_co //! //! Additionally, the value `LR` on ARM/ARM64 will be the return address of //! this function. -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context_linux.S =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_linux.S +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/misc/capture_context_linux.S ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context_linux.S @@ -30,7 +30,7 @@ .globl CAPTURECONTEXT_SYMBOL2 #if defined(__i386__) || defined(__x86_64__) @@ -1435,10 +1435,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_co #elif defined(__riscv) #define MCONTEXT_GREGS_OFFSET 176 -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context_test.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/misc/capture_context_test.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context_test.cc @@ -48,7 +48,7 @@ void TestCaptureContext() { uintptr_t pc = ProgramCounterFromContext(context_1); @@ -1448,10 +1448,10 @@ Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_co // Sanitizers can cause enough code bloat that the “nearby” check would // likely fail. const uintptr_t kReferencePC = -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/misc/capture_context_test_util_linux.cc @@ -38,6 +38,8 @@ void SanityCheckContext(const NativeCPUC #elif defined(ARCH_CPU_RISCV64) EXPECT_EQ(context.uc_mcontext.__gregs[10], diff --git a/0001-Implement-support-for-ppc64-on-Linux.patch b/0001-Implement-support-for-ppc64-on-Linux.patch index 5923874..fa7ef9f 100644 --- a/0001-Implement-support-for-ppc64-on-Linux.patch +++ b/0001-Implement-support-for-ppc64-on-Linux.patch @@ -54,10 +54,10 @@ https://wiki.raptorcs.com/wiki/Porting/Chromium src/tools/linux/md2core/minidump-2-core.cc | 45 +++++++++++++++ 25 files changed, 281 insertions(+), 35 deletions(-) -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/raw_context_cpu.h @@ -51,6 +51,8 @@ typedef MDRawContextRISCV64 RawContextCP # else # error "Unexpected __riscv_xlen" @@ -67,10 +67,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dum #else #error "This code has not been ported to your platform yet." #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.cc @@ -336,7 +336,42 @@ void ThreadInfo::FillCPUContext(RawConte #error "Unexpected __riscv_xlen" #endif @@ -153,10 +153,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dum +#endif + } // namespace google_breakpad -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/thread_info.h @@ -67,6 +67,10 @@ struct ThreadInfo { // Use the structures defined in struct user_regs_struct regs; @@ -180,10 +180,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dum }; } // namespace google_breakpad -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.cc @@ -324,6 +324,48 @@ void UContextReader::FillCPUContext(RawC #error "Unexpected __riscv_xlen" #endif @@ -233,10 +233,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dum #endif } // namespace google_breakpad -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/dump_writer_common/ucontext_reader.h @@ -54,6 +54,9 @@ struct UContextReader { #elif defined(__aarch64__) static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc, @@ -247,10 +247,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/dum #else static void FillCPUContext(RawContextCPU* out, const ucontext_t* uc); #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc @@ -466,6 +466,13 @@ bool ExceptionHandler::HandleSignal(int memcpy(&g_crash_context_.float_state, fp_ptr, sizeof(g_crash_context_.float_state)); @@ -295,10 +295,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/han #elif defined(__riscv) context.siginfo.si_addr = reinterpret_cast(context.context.uc_mcontext.__gregs[REG_PC]); -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h @@ -197,7 +197,11 @@ class ExceptionHandler { siginfo_t siginfo; pid_t tid; // the crashing thread. @@ -312,10 +312,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/han fpstate_t float_state; #endif }; -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler_unittest.cc @@ -325,7 +325,7 @@ TEST(ExceptionHandlerTest, ParallelChild ASSERT_EQ(SIGSEGV, WTERMSIG(status)); return; @@ -347,10 +347,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/han const int kOffset = kMemorySize - sizeof(kIllegalInstruction); const pid_t child = fork(); -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer.cc @@ -143,7 +143,9 @@ class MicrodumpWriter { const MicrodumpExtraInfo& microdump_extra_info, LinuxDumper* dumper) @@ -393,10 +393,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/mic const google_breakpad::fpstate_t* const float_state_; #endif LinuxDumper* dumper_; -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/microdump_writer/microdump_writer_unittest.cc @@ -281,10 +281,19 @@ TEST(MicrodumpWriterTest, BasicWithMappi CrashAndGetMicrodump(mappings, MicrodumpExtraInfo(), &buf); ASSERT_TRUE(ContainsMicrodump(buf)); @@ -420,10 +420,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/mic #else ASSERT_NE(std::string::npos, buf.find("M 00001000 0000002A 00001000 " -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc @@ -118,6 +118,9 @@ bool LinuxCoreDumper::GetThreadInfoByInd #elif defined(__riscv) stack_pointer = reinterpret_cast( @@ -446,10 +446,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min # if defined(__ANDROID__) for (int i = EF_R0; i <= EF_R31; i++) info.mcontext.gregs[i - EF_R0] = status->pr_reg[i]; -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.cc @@ -789,7 +789,9 @@ bool LinuxDumper::GetStackInfo(const voi reinterpret_cast(int_stack_pointer & ~(page_size - 1)); @@ -461,10 +461,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min const MappingInfo* mapping = FindMapping(stack_pointer); if (!mapping) -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper.h @@ -64,7 +64,8 @@ namespace google_breakpad { typedef Elf32_auxv_t elf_aux_entry; #elif defined(__x86_64) || defined(__aarch64__) || \ @@ -475,10 +475,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min typedef Elf64_auxv_t elf_aux_entry; #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc @@ -57,6 +57,8 @@ #define TID_PTR_REGISTER "$1" #elif defined(__riscv) @@ -488,10 +488,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc @@ -208,12 +208,12 @@ bool LinuxPtraceDumper::ReadRegisterSet( #ifdef PTRACE_GETREGSET struct iovec io; @@ -533,10 +533,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code hasn't been ported to your platform yet." #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -469,6 +469,9 @@ TEST(LinuxPtraceDumperTest, VerifyStackR #elif defined(__riscv) pid_t* process_tid_location = @@ -556,10 +556,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min #else #error This test has not been ported to this platform. #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.cc @@ -145,7 +145,9 @@ class MinidumpWriter { : fd_(minidump_fd), path_(minidump_path), @@ -613,10 +613,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min const google_breakpad::fpstate_t* const float_state_; // ditto #endif LinuxDumper* dumper_; -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer.h @@ -47,6 +47,8 @@ class ExceptionHandler; #if defined(__aarch64__) @@ -626,10 +626,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min #elif !defined(__ARM_EABI__) && !defined(__mips__) typedef std::remove_pointer::type fpstate_t; #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc @@ -723,6 +723,9 @@ TEST(MinidumpWriterTest, InvalidStackPoi #elif defined(__riscv) context.context.uc_mcontext.__gregs[MD_CONTEXT_RISCV_REG_SP] = @@ -640,10 +640,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/client/linux/min #else # error "This code has not been ported to your platform yet." #endif -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file.cc @@ -72,8 +72,7 @@ bool MemoryMappedFile::Map(const char* p #if defined(__x86_64__) || defined(__aarch64__) || \ @@ -654,10 +654,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/mem struct kernel_stat st; if (sys_fstat(fd, &st) == -1 || st.st_size < 0) { #else -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/common/linux/memory_mapped_file_unittest.cc @@ -178,9 +178,10 @@ TEST_F(MemoryMappedFileTest, RemapAfterM TEST_F(MemoryMappedFileTest, MapWithOffset) { // Put more data in the test file this time. Offsets can only be @@ -672,10 +672,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/linux/mem for (size_t i = 0; i < data1_size; ++i) { data1[i] = i & 0x7f; } -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/common/memory_allocator_unittest.cc @@ -64,8 +64,9 @@ TEST(PageAllocatorTest, LargeObject) { EXPECT_EQ(0U, allocator.pages_allocated()); @@ -687,10 +687,10 @@ Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/common/memory_al for (unsigned i = 1; i < 10; ++i) { uint8_t* p = reinterpret_cast(allocator.Alloc(i)); ASSERT_FALSE(p == nullptr); -Index: chromium-143.0.7499.40/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +Index: chromium-144.0.7559.59/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc -+++ chromium-143.0.7499.40/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc +--- chromium-144.0.7559.59.orig/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc ++++ chromium-144.0.7559.59/third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc @@ -82,6 +82,8 @@ #define ELF_ARCH EM_AARCH64 #elif defined(__riscv) diff --git a/0001-add-xnn-ppc64el-support.patch b/0001-add-xnn-ppc64el-support.patch index 9fd2f46..f8415ac 100644 --- a/0001-add-xnn-ppc64el-support.patch +++ b/0001-add-xnn-ppc64el-support.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/xnnpack/generate_build_gn.py +Index: chromium-144.0.7559.59/third_party/xnnpack/generate_build_gn.py =================================================================== ---- chromium-143.0.7499.40.orig/third_party/xnnpack/generate_build_gn.py -+++ chromium-143.0.7499.40/third_party/xnnpack/generate_build_gn.py +--- chromium-144.0.7559.59.orig/third_party/xnnpack/generate_build_gn.py ++++ chromium-144.0.7559.59/third_party/xnnpack/generate_build_gn.py @@ -239,7 +239,10 @@ _PLATFORMS = [ bazel_platform='//:linux_aarch64'), _Platform(gn_cpu='riscv64', @@ -14,10 +14,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/generate_build_gn.py ] -Index: chromium-143.0.7499.40/third_party/xnnpack/bazelroot/BUILD +Index: chromium-144.0.7559.59/third_party/xnnpack/bazelroot/BUILD =================================================================== ---- chromium-143.0.7499.40.orig/third_party/xnnpack/bazelroot/BUILD -+++ chromium-143.0.7499.40/third_party/xnnpack/bazelroot/BUILD +--- chromium-144.0.7559.59.orig/third_party/xnnpack/bazelroot/BUILD ++++ chromium-144.0.7559.59/third_party/xnnpack/bazelroot/BUILD @@ -29,6 +29,14 @@ platform( ], ) diff --git a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch index 2e4cbc3..29ab492 100644 --- a/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch +++ b/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch @@ -1,8 +1,8 @@ -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/trap.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf/trap.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf/trap.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/trap.cc -@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf/trap.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf/trap.cc +@@ -231,6 +231,20 @@ void Trap::SigSys(int nr, LinuxSigInfo* SetIsInSigHandler(); } @@ -23,10 +23,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/trap.cc // Copy the seccomp-specific data into a arch_seccomp_data structure. This // is what we are showing to TrapFnc callbacks that the system call // evaluator registered with the sandbox. -Index: chromium-143.0.7499.40/sandbox/features.gni +Index: chromium-144.0.7559.59/sandbox/features.gni =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/features.gni -+++ chromium-143.0.7499.40/sandbox/features.gni +--- chromium-144.0.7559.59.orig/sandbox/features.gni ++++ chromium-144.0.7559.59/sandbox/features.gni @@ -9,4 +9,5 @@ use_seccomp_bpf = (is_linux || is_chromeos || is_android) && (current_cpu == "x86" || current_cpu == "x64" || @@ -34,10 +34,10 @@ Index: chromium-143.0.7499.40/sandbox/features.gni - current_cpu == "mipsel" || current_cpu == "mips64el") + current_cpu == "mipsel" || current_cpu == "mips64el" || + current_cpu == "ppc64") -Index: chromium-143.0.7499.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc +Index: chromium-144.0.7559.59/sandbox/policy/linux/bpf_renderer_policy_linux.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc -+++ chromium-143.0.7499.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc +--- chromium-144.0.7559.59.orig/sandbox/policy/linux/bpf_renderer_policy_linux.cc ++++ chromium-144.0.7559.59/sandbox/policy/linux/bpf_renderer_policy_linux.cc @@ -17,6 +17,11 @@ #include "sandbox/linux/system_headers/linux_syscalls.h" #include "sandbox/policy/linux/sandbox_linux.h" @@ -59,10 +59,10 @@ Index: chromium-143.0.7499.40/sandbox/policy/linux/bpf_renderer_policy_linux.cc case __NR_getrlimit: case __NR_setrlimit: // We allow setrlimit to dynamically adjust the address space limit as -Index: chromium-143.0.7499.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +Index: chromium-144.0.7559.59/sandbox/linux/bpf_dsl/linux_syscall_ranges.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h -+++ chromium-143.0.7499.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h +--- chromium-144.0.7559.59.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h ++++ chromium-144.0.7559.59/sandbox/linux/bpf_dsl/linux_syscall_ranges.h @@ -56,6 +56,13 @@ #define MAX_PUBLIC_SYSCALL __NR_syscalls #define MAX_SYSCALL MAX_PUBLIC_SYSCALL @@ -77,10 +77,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h #else #error "Unsupported architecture" #endif -Index: chromium-143.0.7499.40/sandbox/linux/BUILD.gn +Index: chromium-144.0.7559.59/sandbox/linux/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/BUILD.gn -+++ chromium-143.0.7499.40/sandbox/linux/BUILD.gn +--- chromium-144.0.7559.59.orig/sandbox/linux/BUILD.gn ++++ chromium-144.0.7559.59/sandbox/linux/BUILD.gn @@ -376,6 +376,8 @@ component("sandbox_services") { source_set("sandbox_services_headers") { @@ -90,10 +90,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/BUILD.gn "system_headers/arm64_linux_syscalls.h", "system_headers/arm_linux_syscalls.h", "system_headers/arm_linux_ucontext.h", -Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_syscalls.h +Index: chromium-144.0.7559.59/sandbox/linux/system_headers/linux_syscalls.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_syscalls.h -+++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_syscalls.h +--- chromium-144.0.7559.59.orig/sandbox/linux/system_headers/linux_syscalls.h ++++ chromium-144.0.7559.59/sandbox/linux/system_headers/linux_syscalls.h @@ -44,4 +44,8 @@ #include "sandbox/linux/system_headers/arm64_linux_syscalls.h" #endif @@ -103,10 +103,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_syscalls.h +#endif + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_ -Index: chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_syscalls.h +Index: chromium-144.0.7559.59/sandbox/linux/system_headers/ppc64_linux_syscalls.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_syscalls.h ++++ chromium-144.0.7559.59/sandbox/linux/system_headers/ppc64_linux_syscalls.h @@ -0,0 +1,25 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -133,10 +133,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_syscalls. +#endif + +#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_ -Index: chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_ucontext.h +Index: chromium-144.0.7559.59/sandbox/linux/system_headers/ppc64_linux_ucontext.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_ucontext.h ++++ chromium-144.0.7559.59/sandbox/linux/system_headers/ppc64_linux_ucontext.h @@ -0,0 +1,12 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -150,11 +150,11 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/ppc64_linux_ucontext. +//TODO: is it necessary to redefine ucontext on PPC64? + +#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_UCONTEXT_H_ -Index: chromium-143.0.7499.40/sandbox/linux/syscall_broker/broker_process.cc +Index: chromium-144.0.7559.59/sandbox/linux/syscall_broker/broker_process.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/syscall_broker/broker_process.cc -+++ chromium-143.0.7499.40/sandbox/linux/syscall_broker/broker_process.cc -@@ -167,7 +167,7 @@ bool BrokerProcess::IsSyscallBrokerable( +--- chromium-144.0.7559.59.orig/sandbox/linux/syscall_broker/broker_process.cc ++++ chromium-144.0.7559.59/sandbox/linux/syscall_broker/broker_process.cc +@@ -166,7 +166,7 @@ bool BrokerProcess::IsSyscallBrokerable( #if defined(__NR_fstatat64) case __NR_fstatat64: #endif @@ -163,10 +163,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/syscall_broker/broker_process.cc case __NR_newfstatat: #endif return !fast_check || policy_->allowed_command_set.test(COMMAND_STAT); -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc @@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno) SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || @@ -196,11 +196,11 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (SyscallSets::IsSocketCall(sysno)) return RestrictSocketcallCommand(); #endif -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc -@@ -44,7 +44,7 @@ +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +@@ -43,7 +43,7 @@ #define MAP_DROPPABLE 0x08 // Zero memory under memory pressure. #endif @@ -209,7 +209,7 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_paramete !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -53,6 +53,11 @@ +@@ -52,6 +52,11 @@ #include #endif @@ -219,8 +219,8 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_paramete +#endif + #if BUILDFLAG(IS_ANDROID) + #include "base/android/background_thread_pool_field_trial.h" - #if !defined(F_DUPFD_CLOEXEC) @@ -110,6 +115,15 @@ inline bool IsArchitectureMips() { #endif } @@ -305,10 +305,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_paramete case __NR_sendto: // Could specify destination. argIndex = 3; break; -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h @@ -56,7 +56,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr // O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME. SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands(); @@ -318,10 +318,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_paramete // Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2), // sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2). SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand(); -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s switch (sysno) { case __NR_gettimeofday: @@ -781,10 +781,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc case __NR_vserver: #endif return true; -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h @@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets { static bool IsDeniedGetOrModifySocket(int sysno); @@ -834,11 +834,11 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h // Big system V multiplexing system call. static bool IsSystemVIpc(int sysno); #endif -Index: chromium-143.0.7499.40/sandbox/linux/services/syscall_wrappers.cc +Index: chromium-144.0.7559.59/sandbox/linux/services/syscall_wrappers.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/services/syscall_wrappers.cc -+++ chromium-143.0.7499.40/sandbox/linux/services/syscall_wrappers.cc -@@ -68,7 +68,7 @@ long sys_clone(unsigned long flags, +--- chromium-144.0.7559.59.orig/sandbox/linux/services/syscall_wrappers.cc ++++ chromium-144.0.7559.59/sandbox/linux/services/syscall_wrappers.cc +@@ -63,7 +63,7 @@ long sys_clone(unsigned long flags, #if defined(ARCH_CPU_X86_64) return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls); #elif defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARM_FAMILY) || \ @@ -847,10 +847,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/services/syscall_wrappers.cc // CONFIG_CLONE_BACKWARDS defined. return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); #endif -Index: chromium-143.0.7499.40/sandbox/linux/bpf_dsl/seccomp_macros.h +Index: chromium-144.0.7559.59/sandbox/linux/bpf_dsl/seccomp_macros.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/bpf_dsl/seccomp_macros.h -+++ chromium-143.0.7499.40/sandbox/linux/bpf_dsl/seccomp_macros.h +--- chromium-144.0.7559.59.orig/sandbox/linux/bpf_dsl/seccomp_macros.h ++++ chromium-144.0.7559.59/sandbox/linux/bpf_dsl/seccomp_macros.h @@ -14,6 +14,9 @@ #if defined(__mips__) // sys/user.h in eglibc misses size_t definition @@ -913,10 +913,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/bpf_dsl/seccomp_macros.h #else #error Unsupported target platform -Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_seccomp.h +Index: chromium-144.0.7559.59/sandbox/linux/system_headers/linux_seccomp.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_seccomp.h -+++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_seccomp.h +--- chromium-144.0.7559.59.orig/sandbox/linux/system_headers/linux_seccomp.h ++++ chromium-144.0.7559.59/sandbox/linux/system_headers/linux_seccomp.h @@ -38,6 +38,9 @@ #ifndef EM_AARCH64 #define EM_AARCH64 183 @@ -940,10 +940,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_seccomp.h // For prctl.h #ifndef PR_SET_SECCOMP -Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_signal.h +Index: chromium-144.0.7559.59/sandbox/linux/system_headers/linux_signal.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_signal.h -+++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_signal.h +--- chromium-144.0.7559.59.orig/sandbox/linux/system_headers/linux_signal.h ++++ chromium-144.0.7559.59/sandbox/linux/system_headers/linux_signal.h @@ -13,7 +13,7 @@ // (not undefined, but defined different values and in different memory // layouts). So, fill the gap here. @@ -953,10 +953,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_signal.h #define LINUX_SIGHUP 1 #define LINUX_SIGINT 2 -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/syscall.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf/syscall.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf/syscall.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/syscall.cc +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf/syscall.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf/syscall.cc @@ -19,7 +19,7 @@ namespace sandbox { namespace { @@ -1051,11 +1051,11 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf/syscall.cc #endif SECCOMP_RESULT(ctx) = static_cast(ret_val); } -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc -@@ -350,8 +350,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc +@@ -354,8 +354,10 @@ TEST_BASELINE_SIGSYS(__NR_timer_create) #if !defined(__aarch64__) TEST_BASELINE_SIGSYS(__NR_inotify_init) @@ -1066,10 +1066,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/baseline_policy_ #if defined(LIBC_GLIBC) && !BUILDFLAG(IS_CHROMEOS) BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) { -Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_stat.h +Index: chromium-144.0.7559.59/sandbox/linux/system_headers/linux_stat.h =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/system_headers/linux_stat.h -+++ chromium-143.0.7499.40/sandbox/linux/system_headers/linux_stat.h +--- chromium-144.0.7559.59.orig/sandbox/linux/system_headers/linux_stat.h ++++ chromium-144.0.7559.59/sandbox/linux/system_headers/linux_stat.h @@ -173,6 +173,28 @@ struct kernel_stat { unsigned int __unused4; unsigned int __unused5; @@ -1086,12 +1086,12 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_stat.h + long st_size; + unsigned long st_blksize; + unsigned long st_blocks; -+ // unsigned long st_atime; -+ unsigned long st_atime_nsec; -+ //unsigned long st_mtime; -+ unsigned long st_mtime_nsec; -+ //unsigned long st_ctime; -+ unsigned long st_ctime_nsec; ++ unsigned long st_atime_; ++ unsigned long st_atime_nsec_; ++ unsigned long st_mtime_; ++ unsigned long st_mtime_nsec_; ++ unsigned long st_ctime_; ++ unsigned long st_ctime_nsec_; + unsigned long __unused4; + unsigned long __unused5; + unsigned long __unused6; @@ -1099,10 +1099,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/system_headers/linux_stat.h #endif #if !defined(AT_EMPTY_PATH) -Index: chromium-143.0.7499.40/sandbox/linux/services/credentials.cc +Index: chromium-144.0.7559.59/sandbox/linux/services/credentials.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/services/credentials.cc -+++ chromium-143.0.7499.40/sandbox/linux/services/credentials.cc +--- chromium-144.0.7559.59.orig/sandbox/linux/services/credentials.cc ++++ chromium-144.0.7559.59/sandbox/linux/services/credentials.cc @@ -85,7 +85,7 @@ bool ChrootToSafeEmptyDir() { alignas(16) std::array stack_buf; @@ -1134,10 +1134,10 @@ Index: chromium-143.0.7499.40/sandbox/linux/services/credentials.cc clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS; char tls_buf[PTHREAD_STACK_MIN_CONST] = {}; -Index: chromium-143.0.7499.40/sandbox/policy/linux/bpf_utility_policy_linux.cc +Index: chromium-144.0.7559.59/sandbox/policy/linux/bpf_utility_policy_linux.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc -+++ chromium-143.0.7499.40/sandbox/policy/linux/bpf_utility_policy_linux.cc +--- chromium-144.0.7559.59.orig/sandbox/policy/linux/bpf_utility_policy_linux.cc ++++ chromium-144.0.7559.59/sandbox/policy/linux/bpf_utility_policy_linux.cc @@ -34,7 +34,7 @@ ResultExpr UtilityProcessPolicy::Evaluat case __NR_fdatasync: case __NR_fsync: @@ -1147,11 +1147,11 @@ Index: chromium-143.0.7499.40/sandbox/policy/linux/bpf_utility_policy_linux.cc case __NR_getrlimit: #endif #if defined(__i386__) || defined(__arm__) -Index: chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +Index: chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc =================================================================== ---- chromium-143.0.7499.40.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -+++ chromium-143.0.7499.40/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc -@@ -389,7 +389,16 @@ intptr_t SIGSYSFstatatHandler(const stru +--- chromium-144.0.7559.59.orig/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc ++++ chromium-144.0.7559.59/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc +@@ -384,7 +384,16 @@ intptr_t SIGSYSFstatatHandler(const stru if (args.nr == __NR_fstatat_default) { if (*reinterpret_cast(args.args[1]) == '\0' && args.args[3] == static_cast(AT_EMPTY_PATH)) { diff --git a/0001-swiftshader-fix-build.patch b/0001-swiftshader-fix-build.patch index c3f8771..efd12dc 100644 --- a/0001-swiftshader-fix-build.patch +++ b/0001-swiftshader-fix-build.patch @@ -1,6 +1,13 @@ -diff -up chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn.me chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn ---- chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn.me 2025-09-04 06:45:21.570780130 +0200 -+++ chromium-140.0.7339.80/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn 2025-09-04 06:55:56.278501043 +0200 +Description: fix swiftshader build issue on ppc64el +Origin: vendor, https://gitlab.raptorengineering.com/raptor-engineering-public/chromium/openpower-patches/-/blob/chromium-131/patches/ppc64le/third_party/0001-swiftshader-fix-build.patch +Bug: https://buildd.debian.org/status/fetch.php?pkg=chromium&arch=ppc64el&ver=131.0.6778.204-1&stamp=1734633529&raw=0 +Last-Update: 2024-12-20 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: chromium-144.0.7559.59/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn +=================================================================== +--- chromium-144.0.7559.59.orig/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn ++++ chromium-144.0.7559.59/third_party/swiftshader/third_party/llvm-16.0/BUILD.gn @@ -1599,6 +1599,9 @@ swiftshader_llvm_source_set("swiftshader "llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp", "llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp", diff --git a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch index 0377a9b..72b1e2a 100644 --- a/0001-third_party-angle-Include-missing-header-cstddef-in-.patch +++ b/0001-third_party-angle-Include-missing-header-cstddef-in-.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/angle/src/libANGLE/Constants.h +Index: chromium-144.0.7559.59/third_party/angle/src/libANGLE/Constants.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/angle/src/libANGLE/Constants.h -+++ chromium-143.0.7499.40/third_party/angle/src/libANGLE/Constants.h +--- chromium-144.0.7559.59.orig/third_party/angle/src/libANGLE/Constants.h ++++ chromium-144.0.7559.59/third_party/angle/src/libANGLE/Constants.h @@ -9,6 +9,7 @@ #ifndef LIBANGLE_CONSTANTS_H_ #define LIBANGLE_CONSTANTS_H_ diff --git a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch index 8f06a2d..358582b 100644 --- a/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch +++ b/0001-third_party-libvpx-Properly-generate-gni-on-ppc64.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/libvpx: Properly generate gni on ppc64 third_party/libvpx/generate_gni.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) -Index: chromium-143.0.7499.40/third_party/libvpx/BUILD.gn +Index: chromium-144.0.7559.59/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/BUILD.gn -+++ chromium-143.0.7499.40/third_party/libvpx/BUILD.gn +--- chromium-144.0.7559.59.orig/third_party/libvpx/BUILD.gn ++++ chromium-144.0.7559.59/third_party/libvpx/BUILD.gn @@ -297,6 +297,8 @@ if (current_cpu == "x86" || (current_cpu } else if (current_cpu == "x64") { deps = [ ":libvpx_x86_64_headers" ] diff --git a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch index 2ba1e48..06a8f9e 100644 --- a/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch +++ b/0001-third_party-pffft-Include-altivec.h-on-ppc64-with-SI.patch @@ -8,10 +8,10 @@ Subject: [PATCH] third_party/pffft: Include altivec.h on ppc64 with SIMD third_party/pffft/src/pffft.c | 1 + 1 file changed, 1 insertion(+) -Index: chromium-143.0.7499.40/third_party/pffft/src/pffft.c +Index: chromium-144.0.7559.59/third_party/pffft/src/pffft.c =================================================================== ---- chromium-143.0.7499.40.orig/third_party/pffft/src/pffft.c -+++ chromium-143.0.7499.40/third_party/pffft/src/pffft.c +--- chromium-144.0.7559.59.orig/third_party/pffft/src/pffft.c ++++ chromium-144.0.7559.59/third_party/pffft/src/pffft.c @@ -100,6 +100,7 @@ Altivec support macros */ diff --git a/0002-Add-PPC64-generated-files-for-boringssl.patch b/0002-Add-PPC64-generated-files-for-boringssl.patch index 12d7619..79e72c5 100644 --- a/0002-Add-PPC64-generated-files-for-boringssl.patch +++ b/0002-Add-PPC64-generated-files-for-boringssl.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S +Index: chromium-144.0.7559.59/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S ++++ chromium-144.0.7559.59/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux.S @@ -0,0 +1,3673 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -3676,10 +3676,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/aesp8-ppc-linux. +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S +Index: chromium-144.0.7559.59/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S ++++ chromium-144.0.7559.59/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linux.S @@ -0,0 +1,590 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. @@ -4271,10 +4271,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/bcm/ghashp8-ppc-linu +// See https://www.airs.ccom/blog/archives/518. +.section .note.GNU-stack,"",%progbits +#endif -Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.cmake +Index: chromium-144.0.7559.59/third_party/boringssl/src/gen/sources.cmake =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/gen/sources.cmake -+++ chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.cmake +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/gen/sources.cmake ++++ chromium-144.0.7559.59/third_party/boringssl/src/gen/sources.cmake @@ -122,6 +122,7 @@ set( gen/bcm/aesni-x86-linux.S gen/bcm/aesni-x86_64-apple.S @@ -4299,7 +4299,7 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.cmake crypto/crypto.cc crypto/curve25519/curve25519.cc crypto/curve25519/curve25519_64_adx.cc -@@ -2971,6 +2974,7 @@ set( +@@ -2980,6 +2983,7 @@ set( gen/test_support/trampoline-armv8-apple.S gen/test_support/trampoline-armv8-linux.S gen/test_support/trampoline-armv8-win.S @@ -4307,10 +4307,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.cmake gen/test_support/trampoline-x86-apple.S gen/test_support/trampoline-x86-linux.S gen/test_support/trampoline-x86_64-apple.S -Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.json +Index: chromium-144.0.7559.59/third_party/boringssl/src/gen/sources.json =================================================================== ---- chromium-143.0.7499.40.orig/third_party/boringssl/src/gen/sources.json -+++ chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.json +--- chromium-144.0.7559.59.orig/third_party/boringssl/src/gen/sources.json ++++ chromium-144.0.7559.59/third_party/boringssl/src/gen/sources.json @@ -100,6 +100,7 @@ "gen/bcm/aesni-x86-linux.S", "gen/bcm/aesni-x86_64-apple.S", @@ -4335,7 +4335,7 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.json "crypto/crypto.cc", "crypto/curve25519/curve25519.cc", "crypto/curve25519/curve25519_64_adx.cc", -@@ -2883,6 +2886,7 @@ +@@ -2892,6 +2895,7 @@ "gen/test_support/trampoline-armv8-apple.S", "gen/test_support/trampoline-armv8-linux.S", "gen/test_support/trampoline-armv8-win.S", @@ -4343,10 +4343,10 @@ Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/sources.json "gen/test_support/trampoline-x86-apple.S", "gen/test_support/trampoline-x86-linux.S", "gen/test_support/trampoline-x86_64-apple.S", -Index: chromium-143.0.7499.40/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S +Index: chromium-144.0.7559.59/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S ++++ chromium-144.0.7559.59/third_party/boringssl/src/gen/test_support/trampoline-ppc-linux.S @@ -0,0 +1,1413 @@ +// This file is generated from a similarly-named Perl script in the BoringSSL +// source tree. Do not edit by hand. diff --git a/0002-Add-ppc64-trap-instructions.patch b/0002-Add-ppc64-trap-instructions.patch index 61e9992..9559580 100644 --- a/0002-Add-ppc64-trap-instructions.patch +++ b/0002-Add-ppc64-trap-instructions.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/v8/src/base/immediate-crash.h +Index: chromium-144.0.7559.59/v8/src/base/immediate-crash.h =================================================================== ---- chromium-143.0.7499.40.orig/v8/src/base/immediate-crash.h -+++ chromium-143.0.7499.40/v8/src/base/immediate-crash.h +--- chromium-144.0.7559.59.orig/v8/src/base/immediate-crash.h ++++ chromium-144.0.7559.59/v8/src/base/immediate-crash.h @@ -98,6 +98,13 @@ #define TRAP_SEQUENCE1_() asm volatile(".2byte 0x0001"); #define TRAP_SEQUENCE2_() asm volatile("") diff --git a/0002-regenerate-xnn-buildgn.patch b/0002-regenerate-xnn-buildgn.patch index 09eb811..21211da 100644 --- a/0002-regenerate-xnn-buildgn.patch +++ b/0002-regenerate-xnn-buildgn.patch @@ -1,10 +1,10 @@ File regenerated by running 'python3 generate_build_gn.py' Requires Bazel 8 or higher to regenerate -Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +Index: chromium-144.0.7559.59/third_party/xnnpack/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/xnnpack/BUILD.gn -+++ chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +--- chromium-144.0.7559.59.orig/third_party/xnnpack/BUILD.gn ++++ chromium-144.0.7559.59/third_party/xnnpack/BUILD.gn @@ -35,10 +35,10 @@ config("xnnpack_public_config") { } @@ -20,7 +20,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } config("xnnpack_private_config") { -@@ -48,1840 +48,2104 @@ config("xnnpack_private_config") { +@@ -48,1844 +48,2108 @@ config("xnnpack_private_config") { ] } @@ -1687,6 +1687,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ":f32-vtanh_arm64", + ":f32-vunary_arm64", + ":operators_arm64", ++ ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2", + ":pf16-gemm_arch=armv8.2-a+sve+sve2", + ":pf32-gemm_arch=armv8.2-a+sve+sve2", + ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2", @@ -1709,6 +1710,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", + ":qd8-f32-qb4w-gemm_arm64", ++ ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", + ":qd8-f32-qc4w-gemm_arm64", @@ -2425,6 +2427,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ":f32-vtanh_arm64_standalone", + ":f32-vunary_arm64_standalone", + ":operators_arm64_standalone", ++ ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone", + ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", + ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", + ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", @@ -2447,6 +2450,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f32-qb4w-gemm_arm64_standalone", ++ ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f32-qc4w-gemm_arm64_standalone", @@ -2650,6 +2654,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ":f32-vtanh_arm64", - ":f32-vunary_arm64", - ":operators_arm64", +- ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2", - ":pf16-gemm_arch=armv8.2-a+sve+sve2", - ":pf32-gemm_arch=armv8.2-a+sve+sve2", - ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2", @@ -2672,6 +2677,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", - ":qd8-f32-qb4w-gemm_arm64", +- ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", - ":qd8-f32-qc4w-gemm_arm64", @@ -3042,6 +3048,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ":f32-vtanh_arm64_standalone", - ":f32-vunary_arm64_standalone", - ":operators_arm64_standalone", +- ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone", - ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", - ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", - ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", @@ -3064,6 +3071,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f32-qb4w-gemm_arm64_standalone", +- ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f32-qc4w-gemm_arm64_standalone", @@ -3933,7 +3941,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn ] } } else { -@@ -1891,6 +2155,7 @@ if (current_cpu == "x64" || current_cpu +@@ -1895,6 +2159,7 @@ if (current_cpu == "x64" || current_cpu } } @@ -3941,7 +3949,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn if (build_with_chromium) { source_set("xnnpack") { public = [ "src/include/xnnpack.h" ] -@@ -1901,37 +2166,37 @@ if (build_with_chromium) { +@@ -1905,38 +2170,38 @@ if (build_with_chromium) { configs += [ ":xnnpack_private_config" ] sources = [ @@ -3970,6 +3978,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/sanitizers.c", - "src/src/subgraph.c", - "src/src/tensor.c", +- "src/src/xnnpack/fingerprint_check.c", + "src/src/cache.c", + "src/src/datatype.c", + "src/src/indirection.c", @@ -3989,7 +3998,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/runtime.c", + "src/src/sanitizers.c", + "src/src/subgraph.c", -+ "src/src/tensor.c" ++ "src/src/tensor.c", ++ "src/src/xnnpack/fingerprint_check.c" ] deps = xnnpack_deps + [ @@ -4006,7 +4016,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn public_configs = [ ":xnnpack_public_config" ] } -@@ -1948,37 +2213,37 @@ if (build_with_internal_optimization_gui +@@ -1953,38 +2218,38 @@ if (build_with_internal_optimization_gui configs += [ ":xnnpack_private_config" ] sources = [ @@ -4035,6 +4045,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/sanitizers.c", - "src/src/subgraph.c", - "src/src/tensor.c", +- "src/src/xnnpack/fingerprint_check.c", + "src/src/cache.c", + "src/src/datatype.c", + "src/src/indirection.c", @@ -4054,7 +4065,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/runtime.c", + "src/src/sanitizers.c", + "src/src/subgraph.c", -+ "src/src/tensor.c" ++ "src/src/tensor.c", ++ "src/src/xnnpack/fingerprint_check.c" ] deps = xnnpack_standalone_deps + [ @@ -4071,7 +4083,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn public_configs = [ ":xnnpack_public_config" ] -@@ -1989,56289 +2254,65801 @@ if (build_with_internal_optimization_gui +@@ -1995,56421 +2260,65945 @@ if (build_with_internal_optimization_gui } if (current_cpu == "x64" || current_cpu == "x86") { @@ -5368,7 +5380,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5424,7 +5436,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5463,7 +5475,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5497,7 +5509,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -7213,7 +7225,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -7285,7 +7297,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c" + ] - sources = [ @@ -7362,7 +7374,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c" + ] - if (build_with_chromium) { @@ -7454,7 +7466,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c" + ] - sources = [ @@ -24962,6 +24974,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", @@ -25035,6 +25049,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", @@ -30881,6 +30897,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +if (build_with_chromium) { + source_set("f32-vcmul_sse-no-sse2") { + cflags = [ @@ -30906,39 +30923,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_sse-no-sse2_standalone") { -+ cflags = [ -+ "-mno-sse2", -+ "-msse" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } } +} @@ -30966,43 +30950,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("f32-vcmul_x64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_x64_standalone") { ++ source_set("f32-vcmul_sse-no-sse2_standalone") { + cflags = [ -+ ++ "-mno-sse2", ++ "-msse" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-sse-u8.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -31016,10 +30974,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -31057,20 +31015,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +if (build_with_chromium) { -+ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { ++ source_set("f32-vcmul_x64") { + cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -31086,77 +31040,23 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { -+ cflags = [ -+ "-mavx", -+ "-mno-avx2", -+ "-mno-f16c", -+ "-mno-fma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } } +} - if (build_with_chromium) { - source_set("qd8-f32-qc8w-igemm_x64") { - cflags = [] -+if (build_with_chromium) { -+ source_set("f32-vcopysign_avx512f") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcmul_x64_standalone") { + cflags = [ -+ "-mavx512f" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} - sources = [ - "src/include/xnnpack.h", @@ -31164,20 +31064,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", - ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" -+ ] -+ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -31208,69 +31094,26 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } } +} -+ -+if (build_with_chromium) { -+ source_set("f32-vcopysign_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qd8-f32-qc8w-igemm_x64_standalone") { - cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_sse2-no-sse3_standalone") { ++if (build_with_chromium) { ++ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { + cflags = [ -+ "-mno-sse3", -+ "-msse2" ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" + ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", @@ -31296,9 +31139,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -31328,6 +31182,263 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma_standalone") { ++ cflags = [ ++ "-mavx", ++ "-mno-avx2", ++ "-mno-f16c", ++ "-mno-fma" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++if (build_with_chromium) { ++ source_set("f32-vcopysign_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-avx512f.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx512f.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcopysign_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcopysign_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcopysign/gen/f32-vcopysign-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-sse2.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-sse2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vcopysign_x64") { + cflags = [ @@ -31384,28 +31495,30 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- if (build_with_chromium) { +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { - cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -31417,14 +31530,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -31483,279 +31590,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("f32-vcos_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+if (build_with_chromium) { -+ source_set("f32-vcos_f16c-fma-no-avx2") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_f16c-fma-no-avx2_standalone") { -+ cflags = [ -+ "-mf16c", -+ "-mfma", -+ "-mno-avx2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("f32-vcos_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", -+ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { @@ -31802,6 +31636,271 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } +if (build_with_chromium) { ++ source_set("f32-vcos_avx512f") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_avx512f_standalone") { ++ cflags = [ ++ "-mavx512f" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-avx512f-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vcos_f16c-fma-no-avx2") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_f16c-fma-no-avx2_standalone") { ++ cflags = [ ++ "-mf16c", ++ "-mfma", ++ "-mno-avx2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-fma3-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++if (build_with_chromium) { ++ source_set("f32-vcos_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vcos_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcos/gen/f32-vcos-sse2-rational-5-4-div.c", ++ "src/src/f32-vcos/gen/f32-vcos-sse2fma-rational-5-4-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { + source_set("f32-vcos_x64") { + cflags = [ + @@ -31851,7 +31950,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -31860,17 +31960,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-dwconv_sse2-no-sse3") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mno-sse4.2", +- "-msse4.1", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -31882,8 +31983,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -31942,45 +32049,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- if (build_with_chromium) { +- source_set("qs8-dwconv_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-velu_avx512f") { + cflags = [ @@ -32031,26 +32109,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -- if (build_with_chromium) { -- source_set("qs8-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32064,6 +32129,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-velu_f16c-fma-avx2") { + cflags = [ @@ -32106,8 +32184,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-velu/gen/f32-velu-avx2-rr1-lut4-p4-perm-u32.c" + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32119,27 +32196,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32159,6 +32222,38 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-velu_sse2-no-sse3") { + cflags = [ @@ -32211,7 +32306,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -32220,9 +32316,37 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-dwconv_x64") { -- cflags = [] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-velu_x64") { + cflags = [ @@ -32273,13 +32397,27 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32293,19 +32431,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_x64_standalone") { -- cflags = [] +if (build_with_chromium) { + source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -32365,12 +32490,26 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + public_configs = [ ":xnnpack_public_config" ] +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32390,36 +32529,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-f16-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +if (build_with_chromium) { + source_set("f32-vexp_avx512f") { + cflags = [ @@ -32458,8 +32567,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-vexp/gen/f32-vexp-avx512f-rational-3-2-div.c" + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -32480,9 +32588,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_f16c-fma-avx2") { - cflags = [ - "-mavx2", - "-mf16c", @@ -32491,7 +32598,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32503,14 +32610,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vexp_f16c-fma-no-avx2") { + cflags = [ @@ -32558,7 +32659,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -32574,18 +32676,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { - cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- "-mavx2", +- "-mf16c", +- "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32597,8 +32699,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vexp_sse2-no-sse3") { + cflags = [ @@ -32653,8 +32761,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -32663,19 +32770,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- if (build_with_chromium) { +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { - cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32687,14 +32797,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vexp_x64") { + cflags = [ @@ -32747,24 +32851,31 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ -- "-mavx2", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", - "-mf16c", - "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32776,8 +32887,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -32836,26 +32953,23 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_sse2-no-sse3") { - cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", +- "-mno-sse3", +- "-msse2", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32867,14 +32981,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vgelu_avx512f") { + cflags = [ @@ -32925,7 +33033,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -32934,22 +33043,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { - cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", +- "-mno-sse3", +- "-msse2", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -32961,8 +33065,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vgelu_f16c-fma-no-avx2") { + cflags = [ @@ -32987,8 +33097,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -33027,23 +33136,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { - cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", +- "-mno-sse4.2", +- "-msse4.1", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33055,14 +33157,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vgelu_sse2-no-sse3") { + cflags = [ @@ -33119,23 +33215,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_sse2-no-sse3") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mno-sse4.2", +- "-msse4.1", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33147,8 +33245,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vgelu_x64") { + cflags = [ @@ -33201,14 +33305,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -33239,36 +33345,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -33288,45 +33368,33 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ +if (build_with_chromium) { + source_set("f32-vhswish_avx512f") { + cflags = [ @@ -33353,7 +33421,11 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_x64_standalone") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vhswish_avx512f_standalone") { @@ -33377,27 +33449,12 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} ++ public_configs = [ ":xnnpack_public_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33417,6 +33474,39 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vhswish_f16c-fma-no-avx2") { + cflags = [ @@ -33473,16 +33563,48 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_x64") { -- cflags = [] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vhswish_sse2-no-sse3") { + cflags = [ @@ -33525,46 +33647,51 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/f32-vhswish/gen/f32-vhswish-sse2.c", + "src/src/f32-vhswish/gen/f32-vhswish-sse2fma.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_x64_standalone") { -- cflags = [] +- if (build_with_chromium) { +- source_set("qs8-packw_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vhswish_x64") { + cflags = [ @@ -33591,29 +33718,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + public_configs = [ ":xnnpack_public_config" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vhswish_x64_standalone") { @@ -33637,7 +33742,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -33646,20 +33752,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", - "-mf16c", - "-mfma", -- "-mgfni", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33671,8 +33775,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlog_avx512f") { + cflags = [ @@ -33695,8 +33805,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -33733,21 +33842,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { +- if (build_with_chromium) { +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { - cflags = [ -- "-mavx2", -- "-mavxvnni", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", - "-mf16c", - "-mfma", -- "-mgfni", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33759,14 +33872,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vlog_f16c-fma-avx2") { + cflags = [ @@ -33823,24 +33930,34 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { -- source_set("qs8-packw_f16c-fma-avx2") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ -- "-mavx2", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", - "-mf16c", - "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33852,8 +33969,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlog_f16c-fma-no-avx2") { + cflags = [ @@ -33910,14 +34033,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-packw_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vlog_sse2-no-sse3") { + cflags = [ @@ -33947,18 +34072,12 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -33970,14 +34089,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vlog_sse2-no-sse3_standalone") { @@ -34005,45 +34118,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vlog_x64") { + cflags = [ @@ -34094,36 +34180,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} ++ public_configs = [ ":xnnpack_public_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34143,6 +34208,38 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -34201,16 +34298,47 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { -- source_set("qs8-packw_x64") { -- cflags = [] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlrelu_avx512f") { + cflags = [ @@ -34261,13 +34389,29 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34281,19 +34425,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_x64_standalone") { -- cflags = [] +if (build_with_chromium) { + source_set("f32-vlrelu_sse-no-sse2") { + cflags = [ @@ -34321,7 +34452,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vlrelu_sse-no-sse2_standalone") { @@ -34346,13 +34478,30 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34372,40 +34521,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +if (build_with_chromium) { + source_set("f32-vlrelu_sse4.1-no-sse4.2") { + cflags = [ @@ -34422,8 +34537,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -34468,20 +34582,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { - cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- "-mavx2", +- "-mf16c", +- "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34493,14 +34605,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vlrelu_x64") { + cflags = [ @@ -34539,7 +34645,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/include/xnnpack.h", + "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -34560,20 +34667,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { - cflags = [ - "-mavx2", -- "-mavxvnni", - "-mf16c", - "-mfma", -- "-mgfni", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34585,8 +34691,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vmulcaddc_sse-no-sse2") { + cflags = [ @@ -34641,29 +34753,32 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- if (build_with_chromium) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { - cflags = [ -- "-mavx2", -- "-mavxvnni", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", - "-mf16c", - "-mfma", -- "-mgfni", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34675,14 +34790,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vmulcaddc_x64") { + cflags = [ @@ -34733,7 +34842,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -34742,18 +34852,26 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { - cflags = [ -- "-mavx2", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", - "-mf16c", - "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34765,8 +34883,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -34831,27 +34955,31 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { +- if (build_with_chromium) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { - cflags = [ -- "-mavx2", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", - "-mf16c", - "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34863,14 +34991,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vrnd_avx512f") { + cflags = [ @@ -34929,32 +35051,33 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- if (build_with_chromium) { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { - source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { - cflags = [ - "-mavx512bw", - "-mavx512cd", - "-mavx512dq", - "-mavx512f", - "-mavx512vl", +- "-mavx512vnni", - "-mf16c", - "-mfma", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -34966,8 +35089,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrnd_sse2-no-sse3") { + cflags = [ @@ -35028,34 +35157,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { - cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", +- "-mno-sse4.1", +- "-mssse3", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -35067,14 +35186,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", +- "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +if (build_with_chromium) { + source_set("f32-vrnd_sse4.1-no-sse4.2") { + cflags = [ @@ -35101,7 +35214,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -35142,24 +35256,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { - cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", +- "-mno-sse4.1", +- "-mssse3", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -35171,8 +35279,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrnd_x64") { + cflags = [ @@ -35229,8 +35343,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -35239,44 +35352,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -35323,51 +35401,47 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vrsqrt_avx512f") { + cflags = [ @@ -35420,28 +35494,11 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -35461,6 +35518,41 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vrsqrt_sse2-no-sse3") { + cflags = [ @@ -35515,7 +35607,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -35524,9 +35617,40 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_x64") { -- cflags = [] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrsqrt_x64") { + cflags = [ @@ -35567,47 +35691,53 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_x64_standalone") { -- cflags = [] +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -35667,301 +35797,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + public_configs = [ ":xnnpack_public_config" ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- - public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("f32-vsigmoid_avx512f") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_avx512f_standalone") { -+ cflags = [ -+ "-mavx512f" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+if (build_with_chromium) { -+ source_set("f32-vsigmoid_f16c-fma-avx2") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { -+ cflags = [ -+ "-mavx2", -+ "-mf16c", -+ "-mfma" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("f32-vsigmoid_sse2-no-sse3") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} -+ -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_sse2-no-sse3_standalone") { -+ cflags = [ -+ "-mno-sse3", -+ "-msse2" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -+ public_configs = [ ":xnnpack_public_config" ] -+ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -36002,15 +35838,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } +if (build_with_chromium) { -+ source_set("f32-vsigmoid_sse4.1-no-sse4.2") { ++ source_set("f32-vsigmoid_avx512f") { + cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" ++ "-mavx512f" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -36031,15 +35866,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { ++ source_set("f32-vsigmoid_avx512f_standalone") { + cflags = [ -+ "-mno-sse4.2", -+ "-msse4.1" ++ "-mavx512f" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx512f-rr2-lut32-p2-perm2-scalef-div-u64.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -36094,14 +35928,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vsigmoid_x64") { ++ source_set("f32-vsigmoid_f16c-fma-avx2") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -36115,21 +35951,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + } +} + +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_x64_standalone") { ++ source_set("f32-vsigmoid_f16c-fma-avx2_standalone") { + cflags = [ -+ ++ "-mavx2", ++ "-mf16c", ++ "-mfma" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-avx2-rr1-p5-div-u16.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -36145,8 +35984,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -36192,6 +36030,270 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } +if (build_with_chromium) { ++ source_set("f32-vsigmoid_sse2-no-sse3") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_sse2-no-sse3_standalone") { ++ cflags = [ ++ "-mno-sse3", ++ "-msse2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse2-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_sse4.1-no-sse4.2") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_sse4.1-no-sse4.2_standalone") { ++ cflags = [ ++ "-mno-sse4.2", ++ "-msse4.1" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-sse41-rr2-lut64-p2-div-u8.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} ++ ++if (build_with_chromium) { ++ source_set("f32-vsigmoid_x64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vsigmoid_x64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { + source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { + cflags = [ + "-mavx", @@ -36247,7 +36349,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { @@ -36256,18 +36359,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { - cflags = [ -- "-mno-sse3", -- "-msse2", +- "-mno-sse4.2", +- "-msse4.1", - ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36279,8 +36383,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vsin_avx512f") { + cflags = [ @@ -36324,8 +36434,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -36341,38 +36450,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vsin_f16c-fma-no-avx2") { + cflags = [ @@ -36427,27 +36507,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36461,6 +36529,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vsin_sse2-no-sse3") { + cflags = [ @@ -36515,29 +36596,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36557,6 +36624,40 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsin_x64") { + cflags = [ @@ -36572,7 +36673,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -36616,9 +36718,39 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn } +} -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_x64") { -- cflags = [] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -36677,15 +36809,29 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- - sources = [ - "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -36699,15 +36845,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} -+ +if (build_with_chromium) { + source_set("f32-vsqrt_avx512f") { + cflags = [ @@ -37475,6 +37612,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -37523,6 +37662,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -62239,6 +62380,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -62287,6 +62430,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -62322,6 +62467,65 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { ++ source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { + source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ + "-march=armv8.2-a+sve+sve2" @@ -63686,6 +63890,67 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} + +if (build_with_chromium) { ++ source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ ++if (build_with_chromium) { + source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ + "-march=armv8.2-a+dotprod" @@ -66824,169 +67089,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_x64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - public_configs = [ ":xnnpack_public_config" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } + public_configs = [ ":xnnpack_public_config" ] - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67022,16 +67128,11 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - if (build_with_chromium) { - source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni") { @@ -67060,6 +67161,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++if (build_with_chromium) { ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -67068,14 +67180,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { @@ -67112,12 +67216,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { - source_set("qs8-qc8w-gemm_f16c-fma-avx2") { @@ -67144,12 +67246,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -67187,22 +67293,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+if (build_with_chromium) { -+ source_set("qu8-gemm_arm64") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+fp16+dotprod" + ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] ++ asmflags = cflags - if (build_with_chromium) { - source_set( @@ -67236,20 +67334,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67291,9 +67390,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - if (build_with_chromium) { - source_set( @@ -67326,27 +67429,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -- ++ public_configs = [ ":xnnpack_public_config" ] + - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67388,10 +67478,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++if (build_with_chromium) { ++ source_set("qu8-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] - if (build_with_chromium) { - source_set( @@ -67427,17 +67529,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67480,9 +67585,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -67510,23 +67614,26 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - +- - public_configs = [ ":xnnpack_public_config" ] - } - } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - # This is a target that cannot depend on //base. @@ -67595,14 +67702,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_public_config" ] - } +- } + public_configs = [ ":xnnpack_public_config" ] - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67635,20 +67741,28 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ + "-march=armv8.2-a+fp16+dotprod" + ] + + asmflags = cflags -- if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_x64") { -- cflags = [] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -67657,26 +67771,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - deps = [ - "//third_party/cpuinfo", @@ -67684,12 +67786,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -67697,23 +67803,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_x64_standalone") { - cflags = [] -+if (build_with_chromium) { -+ source_set("qu8-igemm_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", @@ -67739,10 +67829,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags - if (build_with_chromium) { - source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { @@ -67770,18 +67864,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] - public_configs = [ ":xnnpack_public_config" ] - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67818,22 +67915,11 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - if (build_with_chromium) { @@ -67863,20 +67949,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67912,13 +67992,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] -+ -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++if (build_with_chromium) { ++ source_set("qu8-igemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] - if (build_with_chromium) { - source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni") { @@ -67947,27 +68038,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("qu8-rdsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { @@ -68003,13 +68088,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -68041,16 +68119,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_arm64_standalone") { ++ source_set("qu8-igemm_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -68185,15 +68267,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("qu8-rsum_arm64") { ++ source_set("qu8-rdsum_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - if (build_with_chromium) { @@ -68321,15 +68404,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_arm64_standalone") { ++ source_set("qu8-rdsum_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -68457,17 +68541,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("qu8-vadd_arm64") { ++ source_set("qu8-rsum_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - if (build_with_chromium) { @@ -68550,17 +68632,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_arm64_standalone") { ++ source_set("qu8-rsum_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - sources = [ @@ -68604,17 +68684,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qs8-qc8w-igemm_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qu8-vaddc_arm64") { ++ source_set("qu8-vadd_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - sources = [ @@ -68723,17 +68803,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_arm64_standalone") { ++ source_set("qu8-vadd_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - if (build_with_chromium) { @@ -68835,15 +68915,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", - ] +if (build_with_chromium) { -+ source_set("qu8-vcvt_arm64") { ++ source_set("qu8-vaddc_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -68880,15 +68962,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_arm64_standalone") { ++ source_set("qu8-vaddc_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - sources = [ @@ -69023,15 +69107,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vlrelu_arm64") { ++ source_set("qu8-vcvt_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -69115,15 +69199,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_arm64_standalone") { ++ source_set("qu8-vcvt_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-neon-u32.c", ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -69188,15 +69272,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c", - ] +if (build_with_chromium) { -+ source_set("qu8-vmul_arm64") { ++ source_set("qu8-vlrelu_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -69233,15 +69317,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_arm64_standalone") { ++ source_set("qu8-vlrelu_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-neon-u32.c", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - sources = [ @@ -69375,15 +69459,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vmulc_arm64") { ++ source_set("qu8-vmul_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -69469,15 +69553,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_arm64_standalone") { ++ source_set("qu8-vmul_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-rndnu-neon-ld64-u16.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -69613,14 +69697,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("qu8-vprelu_arm64") { ++ source_set("qu8-vmulc_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - if (build_with_chromium) { @@ -69701,14 +69786,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_arm64_standalone") { ++ source_set("qu8-vmulc_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c", ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-rndnu-neon-ld64-u16.c" + ] - sources = [ @@ -69776,14 +69862,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("qu8-vpreluc_arm64") { ++ source_set("qu8-vprelu_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - if (build_with_chromium) { @@ -69889,14 +69975,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_arm64_standalone") { ++ source_set("qu8-vprelu_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -70024,14 +70110,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("qu8-vrpreluc_arm64") { ++ source_set("qu8-vpreluc_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - if (build_with_chromium) { @@ -70132,14 +70218,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_arm64_standalone") { ++ source_set("qu8-vpreluc_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -70205,16 +70291,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c", - ] +if (build_with_chromium) { -+ source_set("reference_arm64") { ++ source_set("qu8-vrpreluc_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -70251,16 +70335,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("reference_arm64_standalone") { ++ source_set("qu8-vrpreluc_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/reference/binary-elementwise.cc", -+ "src/src/reference/packing.cc", -+ "src/src/reference/unary-elementwise.cc" ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - sources = [ @@ -70393,16 +70475,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("s8-ibilinear_arm64") { ++ source_set("reference_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -70487,16 +70569,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_arm64_standalone") { ++ source_set("reference_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -70617,15 +70699,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("s8-maxpool_arm64") { ++ source_set("s8-ibilinear_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" + ] - if (build_with_chromium) { @@ -70706,15 +70789,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_arm64_standalone") { ++ source_set("s8-ibilinear_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u16.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-neon-u8.c", ++ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" + ] - sources = [ @@ -70784,17 +70868,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("s8-rdminmax_arm64") { ++ source_set("s8-maxpool_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - if (build_with_chromium) { @@ -70900,17 +70982,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_arm64_standalone") { ++ source_set("s8-maxpool_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -71026,19 +71106,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("s8-rminmax_arm64") { ++ source_set("s8-rdminmax_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" + ] - if (build_with_chromium) { @@ -71139,19 +71217,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_arm64_standalone") { ++ source_set("s8-rdminmax_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -71216,15 +71292,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c", - ] +if (build_with_chromium) { -+ source_set("s8-vclamp_arm64") { ++ source_set("s8-rminmax_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -71261,15 +71341,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_arm64_standalone") { ++ source_set("s8-rminmax_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -71401,42 +71485,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("subgraph_arm64") { ++ source_set("s8-vclamp_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -71515,42 +71572,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("subgraph_arm64_standalone") { ++ source_set("s8-vclamp_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "src/src/s8-vclamp/s8-vclamp-neon-u64.c", ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -71665,22 +71695,42 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("tables_arm64") { ++ source_set("subgraph_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" + ] - if (build_with_chromium) { @@ -71761,22 +71811,42 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("tables_arm64_standalone") { ++ source_set("subgraph_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" + ] - sources = [ @@ -71819,16 +71889,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qs8-vlrelu_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("u8-ibilinear_arm64") { ++ source_set("tables_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" + ] - sources = [ @@ -71934,16 +72010,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_arm64_standalone") { ++ source_set("tables_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ "src/src/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" + ] - if (build_with_chromium) { @@ -72046,14 +72128,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("u8-lut32norm_arm64") { ++ source_set("u8-ibilinear_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -72111,14 +72195,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-lut32norm_arm64_standalone") { ++ source_set("u8-ibilinear_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u16.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-neon-u8.c", ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" + ] - sources = [ @@ -72161,15 +72247,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qs8-vmul_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("u8-maxpool_arm64") { ++ source_set("u8-lut32norm_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - sources = [ @@ -72275,15 +72360,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_arm64_standalone") { ++ source_set("u8-lut32norm_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - if (build_with_chromium) { @@ -72386,17 +72470,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("u8-rdminmax_arm64") { ++ source_set("u8-maxpool_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -72454,17 +72536,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_arm64_standalone") { ++ source_set("u8-maxpool_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-neon-u16.c", ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -72532,19 +72612,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("u8-rminmax_arm64") { ++ source_set("u8-rdminmax_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" + ] - if (build_with_chromium) { @@ -72627,19 +72705,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_arm64_standalone") { ++ source_set("u8-rdminmax_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", -+ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-neon-u32.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" + ] - sources = [ @@ -72707,15 +72783,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("u8-vclamp_arm64") { ++ source_set("u8-rminmax_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - if (build_with_chromium) { @@ -72798,15 +72878,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_arm64_standalone") { ++ source_set("u8-rminmax_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/u8-rminmax/gen/u8-rmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-neon-u32-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -72874,14 +72958,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { ++ source_set("u8-vclamp_arm64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - if (build_with_chromium) { @@ -72964,14 +73049,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ source_set("u8-vclamp_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ "src/src/u8-vclamp/u8-vclamp-neon-u64.c", ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - sources = [ @@ -73014,15 +73100,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qs8-vrpreluc_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("x16-packw_arm64") { ++ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" + ] - sources = [ @@ -73130,15 +73218,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-packw_arm64_standalone") { ++ source_set("x16-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", -+ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" + ] - if (build_with_chromium) { @@ -73252,15 +73342,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("x16-transposec_arm64") { ++ source_set("x16-packw_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -73346,15 +73436,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_arm64_standalone") { ++ source_set("x16-packw_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", -+ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" ++ "src/src/x16-packw/gen/x16-packw-x16-gemm-goi-neon-ld4lane-u8-prfm.c", ++ "src/src/x16-packw/gen/x16-packw-x8-gemm-goi-neon-ld4lane-u8-prfm.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -73472,15 +73562,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x16-x32-packw_arm64") { ++ source_set("x16-transposec_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" + ] - if (build_with_chromium) { @@ -73529,15 +73619,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-x32-packw_arm64_standalone") { ++ source_set("x16-transposec_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c", ++ "src/src/x16-transposec/gen/x16-transposec-8x8-reuse-dec-zip-neon.c" + ] - sources = [ @@ -73672,16 +73762,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("x24-transposec_arm64") { ++ source_set("x16-x32-packw_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -73766,16 +73855,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_arm64_standalone") { ++ source_set("x16-x32-packw_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", -+ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", -+ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -73896,14 +73984,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { ++ source_set("x24-transposec_arm64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] - if (build_with_chromium) { @@ -73984,14 +74074,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ source_set("x24-transposec_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c", ++ "src/src/x24-transposec/x24-transposec-2x2-neon-tbl64.c", ++ "src/src/x24-transposec/x24-transposec-4x4-aarch64-neon-tbl128.c" + ] - sources = [ @@ -74059,24 +74151,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x32-packw_arm64") { ++ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" ++ "src/src/x32-pack-lh/x32-packlh-neonsme.c", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" + ] - if (build_with_chromium) { @@ -74185,24 +74268,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-packw_arm64_standalone") { ++ source_set("x32-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", -+ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" ++ "src/src/x32-pack-lh/x32-packlh-neonsme.c", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -74333,16 +74407,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x32-transposec_arm64") { ++ source_set("x32-packw_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -+ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -+ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" + ] - if (build_with_chromium) { @@ -74446,16 +74528,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-transposec_arm64_standalone") { ++ source_set("x32-packw_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", -+ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", -+ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" ++ "src/src/x32-packw/gen/x32-packw-gio-neon-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x16-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-neon-ld2lane-u2-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", ++ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", ++ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c", ++ "src/src/x32-packw/gen/x32-packw-x8-gemm-goi-neon-ld4lane-u4-prfm.c", ++ "src/src/x32-packw/gen/x32-packw-x8s4-gemm-goi-neon-ld4lane-u4-prfm.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -74522,15 +74612,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", - ] +if (build_with_chromium) { -+ source_set("x32-unpool_arm64") { ++ source_set("x32-transposec_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-neon.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", ++ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -74567,15 +74658,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x32-unpool_arm64_standalone") { ++ source_set("x32-transposec_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-unpool/x32-unpool-neon.c", -+ "src/src/x32-unpool/x32-unpool-scalar.c" ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", ++ "src/src/x32-transposec/gen/x32-transposec-4x4-reuse-dec-zip-neon.c", ++ "src/src/x32-transposec/x32-transposec-4x4-aarch64-neon-tbl128.c" + ] - sources = [ @@ -74711,16 +74803,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("x64-transposec_arm64") { ++ source_set("x32-unpool_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -74807,16 +74898,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x64-transposec_arm64_standalone") { ++ source_set("x32-unpool_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", -+ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" ++ "src/src/x32-unpool/x32-unpool-neon.c", ++ "src/src/x32-unpool/x32-unpool-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -74940,15 +75030,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x8-lut_arm64") { ++ source_set("x64-transposec_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - if (build_with_chromium) { @@ -75031,15 +75122,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_arm64_standalone") { ++ source_set("x64-transposec_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ "src/src/x64-transposec/gen/x64-transposec-2x2-multi-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-2x2-reuse-dec-zip-neon.c", ++ "src/src/x64-transposec/gen/x64-transposec-4x2-scalar-int.c" + ] - sources = [ @@ -75109,15 +75201,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { ++ source_set("x8-lut_arm64") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", -+ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - if (build_with_chromium) { @@ -75198,15 +75290,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { ++ source_set("x8-lut_arm64_standalone") { + cflags = [ -+ "-march=armv8.2-a+sve+sve2" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", -+ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" ++ "src/src/x8-lut/gen/x8-lut-aarch64-neon-tbx128x4-u64.c", ++ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] - sources = [ @@ -75249,15 +75341,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qu8-rdsum_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("x8-packq_arm64") { ++ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", ++ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" + ] - sources = [ @@ -75361,15 +75453,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-packq_arm64_standalone") { ++ source_set("x8-pack-lh_arch=armv8.2-a+sve+sve2_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+sve+sve2" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ "src/src/x8-pack-lh/x8-packlh-igemm-neonsme2.c", ++ "src/src/x8-pack-lh/x8-packlh-neonsme2.c" + ] - if (build_with_chromium) { @@ -75456,65 +75548,47 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c", - ] -+if (build_with_chromium) { -+ source_set("x8-packw_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qu8-rsum_x64_standalone") { -- cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-packw_arm64_standalone") { ++if (build_with_chromium) { ++ source_set("x8-packq_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qu8-rsum_x64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -75540,11 +75614,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - if (build_with_chromium) { - source_set("qu8-vadd_avx-no-avx2-no-f16c-no-fma") { @@ -75571,17 +75643,26 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packq_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-aarch64-neon-f32qp8-u2.c", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -75615,11 +75696,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - if (build_with_chromium) { - source_set("qu8-vadd_f16c-fma-avx2") { @@ -75645,25 +75729,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("x8-transposec_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -75697,16 +75770,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", +- } ++if (build_with_chromium) { ++ source_set("x8-packw_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - if (build_with_chromium) { - source_set( @@ -75737,27 +75814,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-transposec_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", -+ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set( @@ -75795,13 +75866,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - if (build_with_chromium) { - source_set("qu8-vadd_sse2-no-sse3") { @@ -75826,14 +75893,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-packw_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -75867,16 +75944,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+if (build_with_chromium) { -+ source_set("xx-copy_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { - source_set("qu8-vadd_sse4.1-no-sse4.2") { @@ -75901,21 +75972,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qu8-vadd_sse4.1-no-sse4.2_standalone") { @@ -75946,46 +76014,41 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } } +} - if (build_with_chromium) { - source_set("qu8-vadd_x64") { - cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-copy_arm64_standalone") { +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", +- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", +- ] ++if (build_with_chromium) { ++ source_set("x8-transposec_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -- "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - deps = [ - "//third_party/cpuinfo", @@ -75993,12 +76056,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -76006,16 +76073,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vadd_x64_standalone") { - cflags = [] -+if (build_with_chromium) { -+ source_set("xx-fill_arm64") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("x8-transposec_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" ++ "src/src/x8-transposec/gen/x8-transposec-16x16-reuse-dec-zip-neon.c", ++ "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] - sources = [ @@ -76077,14 +76145,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_public_config" ] - } +- } + public_configs = [ ":xnnpack_public_config" ] - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -76118,20 +76185,11 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-fill_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-fill/xx-fill-neon-u64.c", -+ "src/src/xx-fill/xx-fill-scalar-u16.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - if (build_with_chromium) { - source_set("qu8-vaddc_f16c-fma-avx2") { @@ -76157,20 +76215,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++if (build_with_chromium) { ++ source_set("xx-copy_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" ++ ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -76203,11 +76265,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ public_configs = [ ":xnnpack_public_config" ] +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -76240,16 +76306,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("xx-pad_arm64") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("xx-copy_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" ++ "src/src/xx-copy/xx-copy-scalar-memcpy.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -76297,16 +76363,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - if (build_with_chromium) { - source_set("qu8-vaddc_sse2-no-sse3") { @@ -76331,26 +76394,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("xx-pad_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-pad/xx-pad-p16-neon-u16.c", -+ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -76384,11 +76435,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++if (build_with_chromium) { ++ source_set("xx-fill_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - if (build_with_chromium) { @@ -76414,14 +76470,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -76454,29 +76516,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+if (build_with_chromium) { -+ source_set("xx-transposev_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -76486,14 +76525,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("xx-transposev_arm64_standalone") { ++ source_set("xx-fill_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" ++ "src/src/xx-fill/xx-fill-neon-u64.c", ++ "src/src/xx-fill/xx-fill-scalar-u16.c" + ] - sources = [ @@ -76536,8 +76576,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("qu8-vaddc_x64_standalone") { - cflags = [] -+} - +- - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", @@ -76563,39 +76602,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } - } -+if (current_cpu == "riscv64") { +if (build_with_chromium) { -+ source_set("configs_riscv64") { ++ source_set("xx-pad_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - if (build_with_chromium) { @@ -76701,37 +76717,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("configs_riscv64_standalone") { ++ source_set("xx-pad_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/configs/argmaxpool-config.c", -+ "src/src/configs/avgpool-config.c", -+ "src/src/configs/binary-elementwise-config.c", -+ "src/src/configs/cmul-config.c", -+ "src/src/configs/conv-hwc2chw-config.c", -+ "src/src/configs/dwconv-config.c", -+ "src/src/configs/dwconv2d-chw-config.c", -+ "src/src/configs/gemm-config.c", -+ "src/src/configs/hardware-config.c", -+ "src/src/configs/ibilinear-chw-config.c", -+ "src/src/configs/ibilinear-config.c", -+ "src/src/configs/lut32norm-config.c", -+ "src/src/configs/maxpool-config.c", -+ "src/src/configs/pack-lh-config.c", -+ "src/src/configs/raddstoreexpminusmax-config.c", -+ "src/src/configs/reduce-config.c", -+ "src/src/configs/spmm-config.c", -+ "src/src/configs/transpose-config.c", -+ "src/src/configs/unary-elementwise-config.c", -+ "src/src/configs/unpool-config.c", -+ "src/src/configs/vmulcaddc-config.c", -+ "src/src/configs/x8-lut-config.c", -+ "src/src/configs/xx-fill-config.c", -+ "src/src/configs/xx-pad-config.c" ++ "src/src/xx-pad/xx-pad-p16-neon-u16.c", ++ "src/src/xx-pad/xx-pad-p4-scalar-u16.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -76847,18 +76841,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("enums_riscv64") { ++ source_set("xx-transposev_arm64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - if (build_with_chromium) { @@ -76959,18 +76949,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("enums_riscv64_standalone") { ++ source_set("xx-transposev_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/enums/allocation-type.c", -+ "src/src/enums/datatype-strings.c", -+ "src/src/enums/microkernel-type.c", -+ "src/src/enums/node-type.c", -+ "src/src/enums/operator-type.c" ++ "src/src/xx-transposev/xx-transposev-1x1-scalar-memcpy.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -77029,20 +77015,45 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (build_with_chromium) { - source_set("qu8-vcvt_x64") { - cflags = [] -- ++} + - sources = [ - "src/include/xnnpack.h", - "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c", - ] ++if (current_cpu == "riscv64") { +if (build_with_chromium) { -+ source_set("f16-f32-vcvt_riscv64") { ++ source_set("configs_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -77079,14 +77090,37 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-f32-vcvt_riscv64_standalone") { ++ source_set("configs_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" ++ "src/src/configs/argmaxpool-config.c", ++ "src/src/configs/avgpool-config.c", ++ "src/src/configs/binary-elementwise-config.c", ++ "src/src/configs/cmul-config.c", ++ "src/src/configs/conv-hwc2chw-config.c", ++ "src/src/configs/dwconv-config.c", ++ "src/src/configs/dwconv2d-chw-config.c", ++ "src/src/configs/gemm-config.c", ++ "src/src/configs/hardware-config.c", ++ "src/src/configs/ibilinear-chw-config.c", ++ "src/src/configs/ibilinear-config.c", ++ "src/src/configs/lut32norm-config.c", ++ "src/src/configs/maxpool-config.c", ++ "src/src/configs/pack-lh-config.c", ++ "src/src/configs/raddstoreexpminusmax-config.c", ++ "src/src/configs/reduce-config.c", ++ "src/src/configs/spmm-config.c", ++ "src/src/configs/transpose-config.c", ++ "src/src/configs/unary-elementwise-config.c", ++ "src/src/configs/unpool-config.c", ++ "src/src/configs/vmulcaddc-config.c", ++ "src/src/configs/x8-lut-config.c", ++ "src/src/configs/xx-fill-config.c", ++ "src/src/configs/xx-pad-config.c" + ] - sources = [ @@ -77218,14 +77252,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f16-qs8-vcvt_riscv64") { ++ source_set("enums_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -77304,14 +77342,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-qs8-vcvt_riscv64_standalone") { ++ source_set("enums_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" ++ "src/src/enums/allocation-type.c", ++ "src/src/enums/datatype-strings.c", ++ "src/src/enums/microkernel-type.c", ++ "src/src/enums/node-type.c", ++ "src/src/enums/operator-type.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -77426,14 +77468,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f16-qu8-vcvt_riscv64") { ++ source_set("f16-f32-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - if (build_with_chromium) { @@ -77514,14 +77556,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-qu8-vcvt_riscv64_standalone") { ++ source_set("f16-f32-vcvt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" ++ "src/src/f16-f32-vcvt/gen/f16-f32-vcvt-scalar-u4.c" + ] - sources = [ @@ -77564,15 +77606,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qu8-vlrelu_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f16-rdminmax_riscv64") { ++ source_set("f16-qs8-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - sources = [ @@ -77678,15 +77719,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-rdminmax_riscv64_standalone") { ++ source_set("f16-qs8-vcvt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", -+ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" ++ "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c" + ] - if (build_with_chromium) { @@ -77789,16 +77829,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f16-rminmax_riscv64") { ++ source_set("f16-qu8-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -77856,16 +77894,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-rminmax_riscv64_standalone") { ++ source_set("f16-qu8-vcvt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", -+ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" ++ "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c" + ] - sources = [ @@ -77908,14 +77944,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qu8-vmul_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f16-vapproxgelu_riscv64") { ++ source_set("f16-rdminmax_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" + ] - sources = [ @@ -78021,14 +78058,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_riscv64_standalone") { ++ source_set("f16-rdminmax_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-rdminmax/gen/f16-rdmax-2p2x-scalar-u2.c", ++ "src/src/f16-rdminmax/gen/f16-rdmin-2p2x-scalar-u2.c" + ] - if (build_with_chromium) { @@ -78131,14 +78169,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f16-vcos_riscv64") { ++ source_set("f16-rminmax_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -78196,14 +78236,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_riscv64_standalone") { ++ source_set("f16-rminmax_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-rminmax/gen/f16-rmax-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rmin-scalar-u2-acc2.c", ++ "src/src/f16-rminmax/gen/f16-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -78271,14 +78313,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f16-vexp_riscv64") { ++ source_set("f16-vapproxgelu_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] - if (build_with_chromium) { @@ -78361,14 +78403,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_riscv64_standalone") { ++ source_set("f16-vapproxgelu_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" + ] - sources = [ @@ -78436,14 +78478,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f16-vgelu_riscv64") { ++ source_set("f16-vcos_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - if (build_with_chromium) { @@ -78526,14 +78568,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_riscv64_standalone") { ++ source_set("f16-vcos_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - sources = [ @@ -78601,14 +78643,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f16-vsin_riscv64") { ++ source_set("f16-vexp_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - if (build_with_chromium) { @@ -78701,14 +78743,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_riscv64_standalone") { ++ source_set("f16-vexp_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - deps = [ @@ -78777,15 +78819,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/reference/unary-elementwise.cc", - ] +if (build_with_chromium) { -+ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { ++ source_set("f16-vgelu_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -78822,15 +78863,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f16-vgelu_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - sources = [ @@ -78959,14 +78999,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-argmaxpool_riscv64") { ++ source_set("f16-vsin_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -79024,14 +79064,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_riscv64_standalone") { ++ source_set("f16-vsin_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - sources = [ @@ -79099,14 +79139,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-avgpool_riscv64") { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" + ] - if (build_with_chromium) { @@ -79187,14 +79228,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_riscv64_standalone") { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" + ] - sources = [ @@ -79262,15 +79304,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-argmaxpool_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - if (build_with_chromium) { @@ -79353,15 +79394,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-argmaxpool_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - sources = [ @@ -79431,14 +79471,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-conv-hwc2chw_riscv64") { ++ source_set("f32-avgpool_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - if (build_with_chromium) { @@ -79523,14 +79563,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_riscv64_standalone") { ++ source_set("f32-avgpool_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -79602,7 +79642,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -79610,8 +79650,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" + ] - if (build_with_chromium) { @@ -79720,7 +79759,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -79728,8 +79767,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -79850,21 +79888,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-dwconv2d-chw_riscv64") { ++ source_set("f32-conv-hwc2chw_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - if (build_with_chromium) { @@ -79945,21 +79976,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_riscv64_standalone") { ++ source_set("f32-conv-hwc2chw_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", -+ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - sources = [ @@ -80001,25 +80025,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("s8-vclamp_x64_standalone") { - cflags = [] -+if (build_with_chromium) { -+ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", @@ -80043,28 +80049,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- if (build_with_chromium) { -- source_set("subgraph_x64") { -- cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { +- } ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -80072,16 +80059,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" + ] +- if (build_with_chromium) { +- source_set("subgraph_x64") { +- cflags = [] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/subgraph/argmax-pooling-2d.c", @@ -80126,26 +80115,36 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("subgraph_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-rvv-7x1v.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-rvv-2x2v.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -80197,33 +80196,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { - source_set("tables_x64") { - cflags = [] -+if (build_with_chromium) { -+ source_set("f32-dwconv_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - sources = [ @@ -80250,21 +80237,12 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } } +} @@ -80272,25 +80250,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (build_with_internal_optimization_guide) { - source_set("tables_x64_standalone") { - cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("f32-dwconv2d-chw_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - sources = [ @@ -80357,13 +80332,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] - public_configs = [ ":xnnpack_public_config" ] - } -- } + public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -80395,11 +80371,26 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-dwconv2d-chw_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" ++ ] - if (build_with_chromium) { - source_set("u8-ibilinear_sse4.1-no-sse4.2") { @@ -80424,25 +80415,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("f32-f16-vcvt_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-ibilinear_sse4.1-no-sse4.2_standalone") { @@ -80473,74 +80460,36 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } } +} - if (build_with_chromium) { - source_set("u8-ibilinear_x64") { - cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" -+ ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("u8-ibilinear_x64_standalone") { -- cflags = [] +if (build_with_chromium) { -+ source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -80548,32 +80497,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- - public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } - } - } + configs -= [ "//build/config/compiler:chromium_code" ] @@ -80581,8 +80515,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (build_with_chromium) { -- source_set("u8-lut32norm_x64") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("u8-ibilinear_x64_standalone") { - cflags = [] + deps = [ + "//third_party/cpuinfo", @@ -80593,19 +80528,37 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c", - ] -+ public_configs = [ ":xnnpack_public_config" ] -+ } -+} - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("u8-lut32norm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -80613,8 +80566,34 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", -+ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/u8-lut32norm/u8-lut32norm-scalar.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - deps = [ @@ -80623,27 +80602,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-lut32norm_x64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/u8-lut32norm/u8-lut32norm-scalar.c", @@ -80666,11 +80638,27 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++if (build_with_chromium) { ++ source_set("f32-dwconv_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ ] - if (build_with_chromium) { - source_set("u8-maxpool_sse2-no-sse3") { @@ -80695,32 +80683,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("f32-gemm_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("u8-maxpool_sse2-no-sse3_standalone") { @@ -80752,13 +80729,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -80768,21 +80738,23 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_riscv64_standalone") { ++ source_set("f32-dwconv_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - sources = [ @@ -80850,14 +80822,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-ibilinear-chw_riscv64") { ++ source_set("f32-f16-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - if (build_with_chromium) { @@ -80940,14 +80912,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_riscv64_standalone") { ++ source_set("f32-f16-vcvt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - sources = [ @@ -81017,14 +80989,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-ibilinear_riscv64") { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" + ] - if (build_with_chromium) { @@ -81109,14 +81083,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_riscv64_standalone") { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" + ] - sources = [ @@ -81161,16 +81137,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("u8-rminmax_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-gemm_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - sources = [ @@ -81276,16 +81257,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-gemm_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - if (build_with_chromium) { @@ -81400,21 +81386,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-igemm_riscv64") { ++ source_set("f32-ibilinear-chw_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -81472,21 +81451,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_riscv64_standalone") { ++ source_set("f32-ibilinear-chw_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", -+ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - sources = [ @@ -81529,15 +81501,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("u8-vclamp_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-ibilinear_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] - sources = [ @@ -81641,15 +81612,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-ibilinear_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] - if (build_with_chromium) { @@ -81754,14 +81724,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-maxpool_riscv64") { ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -81819,14 +81791,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_riscv64_standalone") { ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" + ] - sources = [ @@ -81869,15 +81843,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x16-transposec_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-qc4w-gemm_riscv64") { ++ source_set("f32-igemm_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - sources = [ @@ -81934,15 +81914,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_riscv64_standalone") { ++ source_set("f32-igemm_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - deps = [ @@ -82025,15 +82011,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-qc8w-gemm_riscv64") { ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -82091,15 +82077,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_riscv64_standalone") { ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" + ] - sources = [ @@ -82142,15 +82128,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x24-transposec_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-maxpool_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -82264,15 +82249,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-maxpool_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - if (build_with_chromium) { @@ -82324,15 +82308,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x32-packw_avx512f_standalone") { - cflags = [ "-mavx512f" ] +if (build_with_chromium) { -+ source_set("f32-qs8-vcvt_riscv64") { ++ source_set("f32-qc4w-gemm_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -82440,15 +82424,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_riscv64_standalone") { ++ source_set("f32-qc4w-gemm_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - if (build_with_chromium) { @@ -82458,6 +82442,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - sources = [ - "src/include/xnnpack.h", @@ -82480,13 +82471,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] @@ -82501,15 +82485,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x32-packw_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-qc8w-gemm_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -82620,15 +82604,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-qc8w-gemm_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - if (build_with_chromium) { @@ -82716,15 +82700,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c", - ] +if (build_with_chromium) { -+ source_set("f32-qu8-vcvt_riscv64") { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -82761,15 +82745,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_riscv64_standalone") { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" + ] - sources = [ @@ -82881,15 +82865,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/x32-unpool/x32-unpool-scalar.c", - ] +if (build_with_chromium) { -+ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-qs8-vcvt_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -82926,15 +82910,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-qs8-vcvt_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - sources = [ @@ -83065,14 +83049,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-raddstoreexpminusmax_riscv64") { ++ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -83130,14 +83115,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { ++ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" + ] - sources = [ @@ -83205,15 +83191,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-rdminmax_riscv64") { ++ source_set("f32-qu8-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - if (build_with_chromium) { @@ -83319,15 +83305,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_riscv64_standalone") { ++ source_set("f32-qu8-vcvt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -83454,14 +83440,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-rdsum2_riscv64") { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" + ] - if (build_with_chromium) { @@ -83556,14 +83543,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum2_riscv64_standalone") { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" + ] - sources = [ @@ -83606,15 +83594,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x8-lut_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-raddstoreexpminusmax_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - sources = [ @@ -83670,15 +83657,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - deps = [ @@ -83740,15 +83726,21 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x8-packw_x64") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-rdsum_riscv64") { ++ source_set("f32-rdminmax_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" + ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -83769,20 +83761,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } + public_configs = [ ":xnnpack_public_config" ] } +} @@ -83793,14 +83780,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_riscv64_standalone") { ++ source_set("f32-rdminmax_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" + ] - sources = [ @@ -83932,17 +83920,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-rdsum2_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -84000,17 +83985,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-rdsum2_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" + ] - sources = [ @@ -84053,16 +84035,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("x8-transposec_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-rminmax_riscv64") { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" + ] - sources = [ @@ -84118,16 +84099,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_riscv64_standalone") { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" + ] - deps = [ @@ -84209,14 +84189,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-rsum2_riscv64") { ++ source_set("f32-rdsum_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -84274,14 +84254,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum2_riscv64_standalone") { ++ source_set("f32-rdsum_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - sources = [ @@ -84349,14 +84329,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - } - } +if (build_with_chromium) { -+ source_set("f32-rsum_riscv64") { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" + ] - if (build_with_chromium) { @@ -84437,14 +84420,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_riscv64_standalone") { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" + ] - sources = [ @@ -84487,17 +84473,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("xx-pad_x64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-rminmax_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - sources = [ @@ -84553,17 +84538,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-rminmax_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - deps = [ @@ -84626,16 +84610,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("configs_arm64") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-spmm_riscv64") { ++ source_set("f32-rsum2_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -84701,16 +84683,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_riscv64_standalone") { ++ source_set("f32-rsum2_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" + ] - sources = [ @@ -84809,14 +84789,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("enums_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-vapproxgelu_riscv64") { ++ source_set("f32-rsum_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - sources = [ @@ -84867,14 +84847,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_riscv64_standalone") { ++ source_set("f32-rsum_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - sources = [ @@ -84917,7 +84897,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -84925,22 +84905,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" + ] - sources = [ @@ -84996,7 +84963,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -85004,22 +84971,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" + ] - deps = [ @@ -85081,33 +85035,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vbinary_riscv64") { ++ source_set("f32-spmm_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -85128,20 +85071,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } + public_configs = [ ":xnnpack_public_config" ] } +} @@ -85152,32 +85090,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_riscv64_standalone") { ++ source_set("f32-spmm_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - sources = [ @@ -85256,14 +85178,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vclamp_riscv64") { ++ source_set("f32-vapproxgelu_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - sources = [ @@ -85314,14 +85236,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vclamp_riscv64_standalone") { ++ source_set("f32-vapproxgelu_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - sources = [ @@ -85366,7 +85288,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-f32-vcvt_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -85374,7 +85296,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" + ] - sources = [ @@ -85423,7 +85360,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -85431,7 +85368,22 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" + ] - sources = [ @@ -85474,14 +85426,32 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-f32acc-rdsum2_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vcmul_riscv64") { ++ source_set("f32-vbinary_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - sources = [ @@ -85528,14 +85498,32 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcmul_riscv64_standalone") { ++ source_set("f32-vbinary_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" ++ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - sources = [ @@ -85578,16 +85566,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vcopysign_riscv64") { ++ source_set("f32-vclamp_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - sources = [ @@ -85643,16 +85629,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcopysign_riscv64_standalone") { ++ source_set("f32-vclamp_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", -+ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" ++ "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] - deps = [ @@ -85719,14 +85703,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", - ] +if (build_with_chromium) { -+ source_set("f32-vcos_riscv64") { ++ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -85763,14 +85748,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vcos_riscv64_standalone") { ++ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" + ] - sources = [ @@ -85845,14 +85831,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-velu_riscv64") { ++ source_set("f32-vcmul_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] - sources = [ @@ -85902,14 +85888,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-velu_riscv64_standalone") { ++ source_set("f32-vcmul_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" ++ "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -85960,22 +85946,31 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-vexp_riscv64") { ++ source_set("f32-vcopysign_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -86004,13 +85999,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -86020,14 +86008,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vexp_riscv64_standalone") { ++ source_set("f32-vcopysign_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" ++ "src/src/f32-vcopysign/gen/f32-vcopysign-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vcopysignc-scalar.c", ++ "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - sources = [ @@ -86070,14 +86060,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vgelu_riscv64") { ++ source_set("f32-vcos_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - sources = [ @@ -86133,14 +86123,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vgelu_riscv64_standalone") { ++ source_set("f32-vcos_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - deps = [ @@ -86222,15 +86212,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-velu_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -86287,23 +86276,29 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-velu_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ "src/src/f32-velu/gen/f32-velu-scalar-rr2-lut16-p3-u4.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -86325,13 +86320,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] @@ -86346,14 +86334,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-vhswish_riscv64") { ++ source_set("f32-vexp_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - asmflags = cflags @@ -86406,14 +86394,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vhswish_riscv64_standalone") { ++ source_set("f32-vexp_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ "src/src/f32-vexp/gen/f32-vexp-scalar-rational-3-2-div.c" + ] - sources = [ @@ -86456,14 +86444,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vlog_riscv64") { ++ source_set("f32-vgelu_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - sources = [ @@ -86510,14 +86498,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlog_riscv64_standalone") { ++ source_set("f32-vgelu_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ "src/src/f32-vgelu/gen/f32-vgelu-scalar-rational-12-10-div.c" + ] - sources = [ @@ -86560,7 +86548,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -86568,7 +86556,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" + ] - sources = [ @@ -86594,37 +86582,28 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("f16-qs8-vcvt_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("f16-qs8-vcvt_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-vhswish_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -86632,7 +86611,27 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-rvv-u4v.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qs8-vcvt/gen/f16-qs8-vcvt-scalar-imagic-u4.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - deps = [ @@ -86641,26 +86640,29 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-qs8-vcvt_arm64_standalone") { - cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] ++if (build_with_chromium) { ++ source_set("f32-vhswish_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] - sources = [ - "src/include/xnnpack.h", @@ -86684,55 +86686,93 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] } +} - if (build_with_chromium) { - source_set("f16-qu8-vcvt_arm64") { - cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("f32-vlrelu_riscv64") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vhswish_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-qu8-vcvt/gen/f16-qu8-vcvt-scalar-imagic-u4.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-qu8-vcvt_arm64_standalone") { - cflags = [] ++if (build_with_chromium) { ++ source_set("f32-vlog_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -86772,14 +86812,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_riscv64_standalone") { ++ source_set("f32-vlog_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ "src/src/f32-vlog/gen/f32-vlog-scalar-rational-3-3-div.c" + ] - sources = [ @@ -86822,14 +86862,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vmulcaddc_riscv64") { ++ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" + ] - sources = [ @@ -86886,14 +86927,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_riscv64_standalone") { ++ source_set("f32-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-vlrelu/gen/f32-vlrelu-rvv-u4v.c" + ] - deps = [ @@ -86974,18 +87016,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-vlrelu_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -87040,18 +87078,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-vlrelu_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" + ] - sources = [ @@ -87096,17 +87130,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vrnd_riscv64") { ++ source_set("f32-vmulcaddc_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - sources = [ @@ -87166,17 +87197,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_riscv64_standalone") { ++ source_set("f32-vmulcaddc_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - deps = [ @@ -87257,7 +87285,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -87265,7 +87293,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -87319,7 +87350,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-vrnd_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", + "-march=rv64gcv" @@ -87327,7 +87358,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-rvv-u4v.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-rvv-u4v.c" + ] - sources = [ @@ -87370,15 +87404,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vrsqrt_riscv64") { ++ source_set("f32-vrnd_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - sources = [ @@ -87434,15 +87470,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_riscv64_standalone") { ++ source_set("f32-vrnd_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - deps = [ @@ -87542,14 +87580,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vsigmoid_riscv64") { ++ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -87624,14 +87663,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_riscv64_standalone") { ++ source_set("f32-vrsqrt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-rvv-rsqrt-u4v.c" + ] - sources = [ @@ -87674,14 +87714,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vsin_riscv64") { ++ source_set("f32-vrsqrt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - sources = [ @@ -87737,14 +87778,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_riscv64_standalone") { ++ source_set("f32-vrsqrt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - deps = [ @@ -87823,14 +87865,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vsqrt_riscv64") { ++ source_set("f32-vsigmoid_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -87884,14 +87926,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_riscv64_standalone") { ++ source_set("f32-vsigmoid_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - sources = [ @@ -87934,14 +87976,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-vcos_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-vtanh_riscv64") { ++ source_set("f32-vsin_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - sources = [ @@ -87997,14 +88039,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_riscv64_standalone") { ++ source_set("f32-vsin_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - deps = [ @@ -88083,16 +88125,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vunary_riscv64") { ++ source_set("f32-vsqrt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -88146,16 +88186,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_riscv64_standalone") { ++ source_set("f32-vsqrt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - sources = [ @@ -88198,34 +88236,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-vexp_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("operators_riscv64") { ++ source_set("f32-vtanh_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - sources = [ @@ -88281,34 +88299,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("operators_riscv64_standalone") { ++ source_set("f32-vtanh_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - deps = [ @@ -88387,15 +88385,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qd8-f32-qb4w-gemm_riscv64") { ++ source_set("f32-vunary_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -88449,15 +88448,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { ++ source_set("f32-vunary_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - sources = [ @@ -88500,16 +88500,36 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { ++ source_set("operators_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - sources = [ @@ -88565,16 +88585,36 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("operators_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - deps = [ @@ -88640,6 +88680,279 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/include/xnnpack.h", - "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", - ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qb4w-gemm_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qb4w-gemm_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-vrnd_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", +- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc4w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4v-minmax-rvv.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4v-minmax-rvv.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- ] - - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] @@ -88674,7 +88987,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f16-vmulcaddc_arch=armv8.2-a+fp16_standalone") { +- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] + deps = [ + "//third_party/cpuinfo", @@ -88685,7 +88998,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", +- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -88711,7 +89025,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("f16-vrnd_arch=armv8.2-a+fp16") { +- source_set("f16-vsin_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -88728,31 +89042,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88760,63 +89060,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrnd/gen/f16-vrndd-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndne-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndu-neonfp16arith-u16.c", -- "src/src/f16-vrnd/gen/f16-vrndz-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { + source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ @@ -88830,28 +89092,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vrsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vrsqrt/gen/f16-vrsqrt-neonfp16arith-rsqrt-u16.c", +- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -88872,13 +89115,34 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] +- source_set("f16-vsin_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f32-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { @@ -88893,20 +89157,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4v-minmax-rvv.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -88914,25 +89178,61 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsin_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_public_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsigmoid_arch=armv8.2-a+fp16_standalone") { +- if (build_with_chromium) { +- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("qd8-f32-qc8w-gemm_riscv64") { + cflags = [ @@ -88946,10 +89246,29 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1fma-u32.c", -- "src/src/f16-vsigmoid/gen/f16-vsigmoid-neonfp16arith-rr2-p2-nr1recps-u16.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", +- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -88970,34 +89289,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("f16-vsin_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -- ] + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("f16-vtanh_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f32-qc8w-gemm_riscv64_standalone") { @@ -89012,20 +89310,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -89033,60 +89331,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-neonfp16arith-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("f16-vsin_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { + source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ @@ -89100,28 +89363,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsin_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c", +- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", +- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -89142,13 +89387,36 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("f16-vsqrt_arch=armv8.2-a+fp16") { +- source_set("f16-vunary_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f32-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { @@ -89163,20 +89431,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4v-minmax-rvv.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -89184,25 +89452,63 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", +- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_public_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vsqrt_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] +- if (build_with_chromium) { +- source_set("f32-argmaxpool_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("qd8-f32-qc8w-igemm_riscv64") { + cflags = [ @@ -89216,10 +89522,29 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-argmaxpool_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vsqrt/gen/f16-vsqrt-aarch64-neonfp16arith-sqrt-u8.c", -- "src/src/f16-vsqrt/gen/f16-vsqrt-neonfp16arith-nr1fma1adj-u8.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", +- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -89240,35 +89565,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("f16-vtanh_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -- ] + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("f32-avgpool_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f32-qc8w-igemm_riscv64_standalone") { @@ -89283,20 +89586,20 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -89304,63 +89607,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vtanh/gen/f16-vtanh-aarch64-neonfp16arith-expm1minus-rr1-p3h2ts-div-u32.c", -- "src/src/f16-vtanh/gen/f16-vtanh-neonfp16arith-expm1minus-rr1-p3h2ts-nr1fma-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("f16-vunary_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-avgpool_arm64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("qs8-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ @@ -89374,30 +89639,10 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p8vc-minmax-fp32-rvv.c" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f16-vunary_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-vunary/gen/f16-vabs-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vneg-neonfp16arith-u16.c", -- "src/src/f16-vunary/gen/f16-vsqr-neonfp16arith-u16.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", +- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -89418,12 +89663,24 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ + public_configs = [ ":xnnpack_public_config" ] } +} - if (build_with_chromium) { -- source_set("f32-argmaxpool_arm64") { +- source_set("f32-conv-hwc2chw_arm64") { - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -89441,8 +89698,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -89477,7 +89735,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-argmaxpool_arm64_standalone") { +- source_set("f32-conv-hwc2chw_arm64_standalone") { - cflags = [] +if (build_with_chromium) { + source_set("qs8-dwconv_riscv64") { @@ -89495,8 +89753,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-neon-c4.c", -- "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", +- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -89517,35 +89776,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("f32-avgpool_arm64") { -- cflags = [] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("f32-dwconv2d-chw_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qs8-dwconv_riscv64_standalone") { @@ -89561,160 +89810,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-avgpool_arm64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-neon-u4.c", -- "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("f32-conv-hwc2chw_arm64") { -- cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-conv-hwc2chw_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-aarch64-neonfma-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-neon-2x2.c", -- "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- if (build_with_chromium) { -- source_set("f32-dwconv2d-chw_arm64") { -- cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" -+ ] - - sources = [ - "src/include/xnnpack.h", - "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-aarch64-neonfma-3x4.c", @@ -89814,14 +89909,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qs8-f32-vcvt_riscv64") { ++ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" + ] - asmflags = cflags @@ -89857,14 +89953,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_riscv64_standalone") { ++ source_set("qs8-f32-vcvt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-rvv-u2v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -89955,17 +90052,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-packw_riscv64") { ++ source_set("qs8-f32-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -90036,17 +90130,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_riscv64_standalone") { ++ source_set("qs8-f32-vcvt_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - sources = [ @@ -90091,15 +90182,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-f16-vcvt_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-qc4w-gemm_riscv64") { ++ source_set("qs8-packw_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] - sources = [ @@ -90186,15 +90279,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_riscv64_standalone") { ++ source_set("qs8-packw_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", ++ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -90306,17 +90401,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-qc4w-gemm_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -90388,17 +90481,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-qc4w-gemm_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" + ] - sources = [ @@ -90443,19 +90534,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-ibilinear-chw_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-qc8w-dwconv_riscv64") { ++ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" + ] - sources = [ @@ -90515,19 +90604,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_riscv64_standalone") { ++ source_set("qs8-qc8w-dwconv_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8vc-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8vc-minmax-fp32-rvv.c" + ] - deps = [ @@ -90591,16 +90678,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-qc8w-dwconv_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - asmflags = cflags @@ -90663,16 +90753,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-qc8w-dwconv_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -90779,15 +90872,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-igemm_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-qc8w-gemm_riscv64") { ++ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" + ] - sources = [ @@ -90862,15 +90956,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_riscv64_standalone") { ++ source_set("qs8-qc8w-gemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-4x4v-minmax-fp32-rvv.c" + ] - deps = [ @@ -90956,16 +91051,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-qc8w-gemm_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -91027,16 +91121,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-qc8w-gemm_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -91081,15 +91174,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-igemm_riscv64") { ++ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -91139,15 +91233,16 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_riscv64_standalone") { ++ source_set("qs8-qc8w-igemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4v-minmax-fp32-rvv.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x4v-minmax-fp32-rvv.c" + ] - sources = [ @@ -91249,14 +91344,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-qu8-packw_riscv64") { ++ source_set("qs8-qc8w-igemm_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -91313,14 +91409,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_riscv64_standalone") { ++ source_set("qs8-qc8w-igemm_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -91404,15 +91501,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] +if (build_with_chromium) { -+ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-qu8-packw_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -91449,15 +91545,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-qu8-packw_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - sources = [ @@ -91533,14 +91628,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-rdminmax_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-rdsum_riscv64") { ++ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" + ] - sources = [ @@ -91600,14 +91696,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_riscv64_standalone") { ++ source_set("qs8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-7p7x-rvv-u2v.c" + ] - deps = [ @@ -91676,15 +91773,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] +if (build_with_chromium) { -+ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-rdsum_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -91721,15 +91817,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-rdsum_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - sources = [ @@ -91807,14 +91902,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-rminmax_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-rsum_riscv64") { ++ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" + ] - sources = [ @@ -91876,14 +91972,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_riscv64_standalone") { ++ source_set("qs8-rsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-rvv-u2v.c" + ] - deps = [ @@ -91964,15 +92061,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-rsum_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -92027,15 +92123,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-rsum_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - sources = [ @@ -92125,15 +92220,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] +if (build_with_chromium) { -+ source_set("qs8-vadd_riscv64") { ++ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -92170,15 +92265,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_riscv64_standalone") { ++ source_set("qs8-vadd_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", -+ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-rvv-u2v.c" + ] - sources = [ @@ -92288,15 +92383,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-vbinary_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-vadd_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - sources = [ @@ -92390,15 +92485,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-vadd_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - deps = [ @@ -92467,15 +92562,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] +if (build_with_chromium) { -+ source_set("qs8-vaddc_riscv64") { ++ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -92512,15 +92607,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_riscv64_standalone") { ++ source_set("qs8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-rvv-u2v.c" + ] - sources = [ @@ -92598,14 +92693,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-vcopysign_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vcvt_riscv64") { ++ source_set("qs8-vaddc_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - sources = [ @@ -92667,14 +92763,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_riscv64_standalone") { ++ source_set("qs8-vaddc_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - deps = [ @@ -92757,15 +92854,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-vcvt_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -92822,15 +92918,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-vcvt_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - sources = [ @@ -92874,14 +92969,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-vexp_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vlrelu_riscv64") { ++ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" + ] - sources = [ @@ -92939,14 +93035,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_riscv64_standalone") { ++ source_set("qs8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-rvv-u2v.c" + ] - deps = [ @@ -93027,15 +93124,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-vlrelu_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -93090,15 +93186,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-vlrelu_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - sources = [ @@ -93142,14 +93237,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-vlog_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vmul_riscv64") { ++ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" + ] - sources = [ @@ -93207,14 +93303,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_riscv64_standalone") { ++ source_set("qs8-vmul_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-f32-rvv-u2v.c" + ] - deps = [ @@ -93284,15 +93381,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", - ] +if (build_with_chromium) { -+ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { ++ source_set("qs8-vmul_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -93329,15 +93425,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qs8-vmul_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -93422,14 +93517,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-vrnd_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vmulc_riscv64") { ++ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" + ] - sources = [ @@ -93498,14 +93594,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_riscv64_standalone") { ++ source_set("qs8-vmulc_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-f32-rvv-u2v.c" + ] - deps = [ @@ -93588,14 +93685,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vprelu_riscv64") { ++ source_set("qs8-vmulc_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -93651,14 +93748,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_riscv64_standalone") { ++ source_set("qs8-vmulc_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -93702,14 +93799,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("f32-vsin_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vpreluc_riscv64") { ++ source_set("qs8-vprelu_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - sources = [ @@ -93767,14 +93864,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_riscv64_standalone") { ++ source_set("qs8-vprelu_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - deps = [ @@ -93842,59 +93939,46 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", - "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", - ] -+if (build_with_chromium) { -+ source_set("qs8-vrpreluc_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vtanh_arm64_standalone") { -- cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_riscv64_standalone") { ++if (build_with_chromium) { ++ source_set("qs8-vpreluc_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -93921,20 +94005,23 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - if (build_with_chromium) { - source_set("f32-vunary_arm64") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - sources = [ @@ -93952,6 +94039,222 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] - +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("operators_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("qs8-vrpreluc_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("operators_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- if (build_with_chromium) { +- source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qs8-vrpreluc_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", @@ -93969,8 +94272,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_arm64_standalone") { -- cflags = [] +- source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +if (build_with_chromium) { + source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d") { + cflags = [ @@ -93986,12 +94289,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94012,25 +94310,35 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- if (build_with_chromium) { +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- ] + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} -- if (build_with_chromium) { -- source_set("operators_arm64") { -- cflags = [] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qu8-dwconv_arch=rv64gcv-abi=lp64d_standalone") { @@ -94045,36 +94353,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-9p8vc-minmax-fp32-rvv.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", @@ -94098,33 +94376,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("operators_arm64_standalone") { -- cflags = [] +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94151,13 +94410,27 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", - ] +if (build_with_chromium) { + source_set("qu8-dwconv_riscv64") { @@ -94173,21 +94446,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94195,15 +94465,38 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- - public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + public_configs = [ ":xnnpack_public_config" ] } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -94222,37 +94515,17 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", +- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", - ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (build_with_chromium) { -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94260,19 +94533,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", @@ -94290,7 +94550,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] +if (build_with_chromium) { + source_set("qu8-f32-vcvt_arch=rv64gcv-abi=lp64d") { @@ -94306,10 +94566,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94337,7 +94594,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", @@ -94348,7 +94605,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -94394,13 +94652,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] + public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94427,13 +94686,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- source_set("qb4-packw_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94468,8 +94727,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94479,8 +94738,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94506,8 +94765,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qb4-packw_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qu8-f32-vcvt_riscv64_standalone") { @@ -94522,8 +94781,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", -- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -94558,8 +94817,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +if (build_with_chromium) { + source_set("qu8-gemm_riscv64") { + cflags = [ @@ -94574,8 +94833,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", -- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94603,8 +94862,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94614,8 +94873,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -94661,14 +94920,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] + public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c4-minmax-neondotfp16arith.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c4-minmax-neondotfp16arith.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94695,13 +94954,13 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94737,8 +94996,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94748,8 +95007,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94775,8 +95034,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { +- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qu8-igemm_riscv64_standalone") { @@ -94790,114 +95049,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+if (build_with_chromium) { -+ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { -- cflags = [ "-march=armv8.2-a+dotprod+fp16" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" -+ ] - - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c4-minmax-neondotfp16arith.c", @@ -94939,14 +95090,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +if (build_with_chromium) { -+ source_set("qu8-rdsum_riscv64") { ++ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" + ] - sources = [ @@ -95004,14 +95156,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_riscv64_standalone") { ++ source_set("qu8-rdsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-rvv-u2v.c" + ] - deps = [ @@ -95080,15 +95233,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c", - ] +if (build_with_chromium) { -+ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { ++ source_set("qu8-rdsum_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -95125,15 +95277,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qu8-rdsum_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - sources = [ @@ -95209,14 +95360,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +if (build_with_chromium) { -+ source_set("qu8-rsum_riscv64") { ++ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" + ] - sources = [ @@ -95276,14 +95428,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_riscv64_standalone") { ++ source_set("qu8-rsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-rvv-u2v.c" + ] - deps = [ @@ -95346,15 +95499,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { ++ source_set("qu8-rsum_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - asmflags = cflags @@ -95391,15 +95543,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qu8-rsum_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -95463,15 +95614,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-4x16c8-minmax-neoni8mm.c", - ] +if (build_with_chromium) { -+ source_set("qu8-vadd_riscv64") { ++ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -95508,15 +95659,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_riscv64_standalone") { ++ source_set("qu8-vadd_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-rvv-u2v.c" + ] - sources = [ @@ -95592,15 +95743,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16_standalone") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +if (build_with_chromium) { -+ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { ++ source_set("qu8-vadd_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - sources = [ @@ -95660,15 +95811,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qu8-vadd_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - deps = [ @@ -95731,15 +95882,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-vaddc_riscv64") { ++ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" + ] - asmflags = cflags @@ -95776,15 +95927,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_riscv64_standalone") { ++ source_set("qu8-vaddc_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-rvv-u2v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -95860,14 +96011,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vcvt_riscv64") { ++ source_set("qu8-vaddc_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -95922,14 +96074,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_riscv64_standalone") { ++ source_set("qu8-vaddc_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - sources = [ @@ -95973,15 +96126,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { ++ source_set("qu8-vcvt_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - sources = [ @@ -96039,15 +96191,14 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("qu8-vcvt_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - deps = [ @@ -96130,14 +96281,15 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vlrelu_riscv64") { ++ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -96190,24 +96342,25 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn +} - if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod") { - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_riscv64_standalone") { ++ source_set("qu8-vlrelu_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-rvv-u2v.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -96242,24 +96395,23 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { ++ source_set("qu8-vlrelu_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -96287,8 +96439,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -96298,8 +96450,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -96311,6 +96463,127 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { ++ source_set("qu8-vlrelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { + source_set("qu8-vmul_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ + "-mabi=lp64d", @@ -96322,33 +96595,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-vmul/gen/qu8-vmul-minmax-f32-rvv-u2v.c" + ] -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] -+ public_configs = [ ":xnnpack_public_config" ] - - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", @@ -96372,16 +96618,23 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { - source_set("qd8-f32-qc4w-gemm_arm64") { - cflags = [] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -96401,6 +96654,19 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("qu8-vmul_riscv64") { + cflags = [ @@ -96412,25 +96678,6 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -96457,6 +96704,18 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -103571,6 +103830,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - - sources = [ - "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", +- "src/src/x16-pack-lh/x16-packlh-neonsme.c", - "src/src/x16-pack-lh/x16-packlh-neonsme2.c", - ] - @@ -103617,6 +103879,9 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", +- "src/src/x16-pack-lh/x16-packlh-neonsme.c", - "src/src/x16-pack-lh/x16-packlh-neonsme2.c", - ] - @@ -104019,6 +104284,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", - "src/src/x32-pack-lh/x32-packlh-neonsme.c", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -104070,6 +104336,7 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - sources = [ - "src/include/xnnpack.h", - "src/src/x32-pack-lh/x32-packlh-neonsme.c", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -110226,6 +110493,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -110311,6 +110580,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -112026,6 +112297,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", @@ -112083,6 +112356,8 @@ Index: chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", diff --git a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch index c8c0a6e..a6dba00 100644 --- a/0002-third_party-libvpx-Remove-bad-ppc64-config.patch +++ b/0002-third_party-libvpx-Remove-bad-ppc64-config.patch @@ -1,6 +1,6 @@ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +++ /dev/null @@ -1,186 +0,0 @@ -/* @@ -189,9 +189,9 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_r -#endif - -#endif // VP8_RTCD_H_ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +++ /dev/null @@ -1,119 +0,0 @@ -/* @@ -313,9 +313,9 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_r -#endif - -#endif // VP9_RTCD_H_ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +++ /dev/null @@ -1,107 +0,0 @@ -@ This file was created from a .asm file @@ -425,9 +425,9 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_c -.equ DECODE_WIDTH_LIMIT , 16384 -.equ DECODE_HEIGHT_LIMIT , 16384 - .section .note.GNU-stack,"",%progbits -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -440,9 +440,9 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_c -#include "vpx/vpx_codec.h" -static const char* const cfg = "--target=ppc64le-linux-gcc --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv --enable-unit-tests"; -const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +++ /dev/null @@ -1,116 +0,0 @@ -/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ @@ -561,9 +561,9 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_c -#define DECODE_WIDTH_LIMIT 16384 -#define DECODE_HEIGHT_LIMIT 16384 -#endif /* VPX_CONFIG_H */ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +++ /dev/null @@ -1,858 +0,0 @@ -/* @@ -1424,9 +1424,9 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_d -#endif - -#endif // VPX_DSP_RTCD_H_ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +++ /dev/null @@ -1,83 +0,0 @@ -/* diff --git a/0002-third_party-lss-kernel-structs.patch b/0002-third_party-lss-kernel-structs.patch index 9b2d8e5..a81d439 100644 --- a/0002-third_party-lss-kernel-structs.patch +++ b/0002-third_party-lss-kernel-structs.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/lss/linux_syscall_support.h +Index: chromium-144.0.7559.59/third_party/lss/linux_syscall_support.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/lss/linux_syscall_support.h -+++ chromium-143.0.7499.40/third_party/lss/linux_syscall_support.h +--- chromium-144.0.7559.59.orig/third_party/lss/linux_syscall_support.h ++++ chromium-144.0.7559.59/third_party/lss/linux_syscall_support.h @@ -86,7 +86,7 @@ * Porting to other related platforms should not be difficult. */ diff --git a/0003-third_party-libvpx-Add-ppc64-generated-config.patch b/0003-third_party-libvpx-Add-ppc64-generated-config.patch index b4d484c..e329359 100644 --- a/0003-third_party-libvpx-Add-ppc64-generated-config.patch +++ b/0003-third_party-libvpx-Add-ppc64-generated-config.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vp8_rtcd.h @@ -0,0 +1,316 @@ +// This file is generated. Do not edit. +#ifndef VP8_RTCD_H_ @@ -319,10 +319,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp8_r +#endif + +#endif -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vp9_rtcd.h @@ -0,0 +1,267 @@ +// This file is generated. Do not edit. +#ifndef VP9_RTCD_H_ @@ -591,10 +591,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vp9_r +#endif + +#endif -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.asm @@ -0,0 +1,107 @@ +@ This file was created from a .asm file +@ using the ads2gas.pl script. @@ -703,10 +703,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_c +.equ DECODE_WIDTH_LIMIT , 16384 +.equ DECODE_HEIGHT_LIMIT , 16384 + .section .note.GNU-stack,"",%progbits -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.c =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.c ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.c @@ -0,0 +1,10 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -718,10 +718,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_c +#include "vpx/vpx_codec.h" +static const char* const cfg = "--target=generic-gnu --enable-vp9-highbitdepth --enable-external-build --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --size-limit=16384x16384 --enable-realtime-only --disable-install-docs --disable-libyuv"; +const char *vpx_codec_build_config(void) {return cfg;} -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_config.h ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_config.h @@ -0,0 +1,116 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ @@ -839,10 +839,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_c +#define DECODE_WIDTH_LIMIT 16384 +#define DECODE_HEIGHT_LIMIT 16384 +#endif /* VPX_CONFIG_H */ -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_dsp_rtcd.h @@ -0,0 +1,4128 @@ +// This file is generated. Do not edit. +#ifndef VPX_DSP_RTCD_H_ @@ -4972,10 +4972,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_d +#endif + +#endif -Index: chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h +Index: chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h =================================================================== --- /dev/null -+++ chromium-143.0.7499.40/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h ++++ chromium-144.0.7559.59/third_party/libvpx/source/config/linux/ppc64/vpx_scale_rtcd.h @@ -0,0 +1,96 @@ +// This file is generated. Do not edit. +#ifndef VPX_SCALE_RTCD_H_ diff --git a/0004-third_party-crashpad-port-curl-transport-ppc64.patch b/0004-third_party-crashpad-port-curl-transport-ppc64.patch index 550213d..bb55c2e 100644 --- a/0004-third_party-crashpad-port-curl-transport-ppc64.patch +++ b/0004-third_party-crashpad-port-curl-transport-ppc64.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +Index: chromium-144.0.7559.59/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc -+++ chromium-143.0.7499.40/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc +--- chromium-144.0.7559.59.orig/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc ++++ chromium-144.0.7559.59/third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc @@ -239,6 +239,12 @@ std::string UserAgent() { #endif #elif defined (ARCH_CPU_RISCV64) diff --git a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch index 58aed49..9adceb3 100644 --- a/0004-third_party-libvpx-work-around-ambiguous-vsx.patch +++ b/0004-third_party-libvpx-work-around-ambiguous-vsx.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +Index: chromium-144.0.7559.59/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c -+++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c ++++ chromium-144.0.7559.59/third_party/libvpx/source/libvpx/vp9/encoder/ppc/vp9_quantize_vsx.c @@ -38,6 +38,28 @@ static INLINE int16x8_t vec_max_across(i return vec_max(a, vec_perm(a, a, vec_perm16)); } @@ -137,10 +137,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vp9/encoder/ppc/v eob = vec_max(eob, vec_or(scan0, zero_coeff0)); eob2 = vec_max(vec_or(scan1, zero_coeff1), vec_or(scan2, zero_coeff2)); -Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +Index: chromium-144.0.7559.59/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c -+++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c ++++ chromium-144.0.7559.59/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct32x32_vsx.c @@ -15,6 +15,28 @@ #include "vpx_dsp/ppc/txfm_common_vsx.h" #include "vpx_dsp/ppc/types_vsx.h" @@ -255,10 +255,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/fdct3 } // Returns 1 if negative 0 if positive -Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +Index: chromium-144.0.7559.59/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c -+++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c ++++ chromium-144.0.7559.59/third_party/libvpx/source/libvpx/vpx_dsp/ppc/quantize_vsx.c @@ -13,6 +13,28 @@ #include "./vpx_dsp_rtcd.h" #include "vpx_dsp/ppc/types_vsx.h" diff --git a/HACK-debian-clang-disable-base-musttail.patch b/HACK-debian-clang-disable-base-musttail.patch index 566c8d9..07e60f7 100644 --- a/HACK-debian-clang-disable-base-musttail.patch +++ b/HACK-debian-clang-disable-base-musttail.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/base/compiler_specific.h +Index: chromium-144.0.7559.59/base/compiler_specific.h =================================================================== ---- chromium-143.0.7499.40.orig/base/compiler_specific.h -+++ chromium-143.0.7499.40/base/compiler_specific.h +--- chromium-144.0.7559.59.orig/base/compiler_specific.h ++++ chromium-144.0.7559.59/base/compiler_specific.h @@ -198,7 +198,7 @@ // MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. // } diff --git a/HACK-debian-clang-disable-pa-musttail.patch b/HACK-debian-clang-disable-pa-musttail.patch index f124de4..d06c52e 100644 --- a/HACK-debian-clang-disable-pa-musttail.patch +++ b/HACK-debian-clang-disable-pa-musttail.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +Index: chromium-144.0.7559.59/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h =================================================================== ---- chromium-143.0.7499.40.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h -+++ chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h +--- chromium-144.0.7559.59.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h ++++ chromium-144.0.7559.59/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/compiler_specific.h @@ -139,7 +139,7 @@ // PA_MUSTTAIL return Func1(d + 1); // `Func1()` will be tail-called. // } diff --git a/HACK-third_party-libvpx-use-generic-gnu.patch b/HACK-third_party-libvpx-use-generic-gnu.patch index 44c118d..215eb0d 100644 --- a/HACK-third_party-libvpx-use-generic-gnu.patch +++ b/HACK-third_party-libvpx-use-generic-gnu.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/libvpx/generate_gni.sh +Index: chromium-144.0.7559.59/third_party/libvpx/generate_gni.sh =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/generate_gni.sh -+++ chromium-143.0.7499.40/third_party/libvpx/generate_gni.sh +--- chromium-144.0.7559.59.orig/third_party/libvpx/generate_gni.sh ++++ chromium-144.0.7559.59/third_party/libvpx/generate_gni.sh @@ -429,7 +429,7 @@ gen_config_files linux/mipsel "--target= gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" gen_config_files linux/loongarch \ @@ -11,10 +11,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/generate_gni.sh gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}" gen_config_files win/arm64-highbd \ "--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD} ${disable_sve}" -Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/build/make/rtcd.pl +Index: chromium-144.0.7559.59/third_party/libvpx/source/libvpx/build/make/rtcd.pl =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl -+++ chromium-143.0.7499.40/third_party/libvpx/source/libvpx/build/make/rtcd.pl +--- chromium-144.0.7559.59.orig/third_party/libvpx/source/libvpx/build/make/rtcd.pl ++++ chromium-144.0.7559.59/third_party/libvpx/source/libvpx/build/make/rtcd.pl @@ -527,8 +527,9 @@ if ($opts{arch} eq 'x86') { } arm; @@ -27,10 +27,10 @@ Index: chromium-143.0.7499.40/third_party/libvpx/source/libvpx/build/make/rtcd.p } elsif ($opts{arch} =~ /loongarch/ ) { @ALL_ARCHS = filter(qw/lsx lasx/); loongarch; -Index: chromium-143.0.7499.40/third_party/libvpx/BUILD.gn +Index: chromium-144.0.7559.59/third_party/libvpx/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/libvpx/BUILD.gn -+++ chromium-143.0.7499.40/third_party/libvpx/BUILD.gn +--- chromium-144.0.7559.59.orig/third_party/libvpx/BUILD.gn ++++ chromium-144.0.7559.59/third_party/libvpx/BUILD.gn @@ -98,6 +98,14 @@ config("libvpx_config") { "-Wno-sign-compare", ] diff --git a/Rtc_base-system-arch.h-PPC.patch b/Rtc_base-system-arch.h-PPC.patch index 4985a70..b5a4185 100644 --- a/Rtc_base-system-arch.h-PPC.patch +++ b/Rtc_base-system-arch.h-PPC.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/webrtc/rtc_base/system/arch.h +Index: chromium-144.0.7559.59/third_party/webrtc/rtc_base/system/arch.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/webrtc/rtc_base/system/arch.h -+++ chromium-143.0.7499.40/third_party/webrtc/rtc_base/system/arch.h +--- chromium-144.0.7559.59.orig/third_party/webrtc/rtc_base/system/arch.h ++++ chromium-144.0.7559.59/third_party/webrtc/rtc_base/system/arch.h @@ -46,6 +46,18 @@ #endif #if defined(__MIPSEL__) diff --git a/add-ppc64-architecture-string.patch b/add-ppc64-architecture-string.patch index ab36e41..3983cfa 100644 --- a/add-ppc64-architecture-string.patch +++ b/add-ppc64-architecture-string.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/base/system/sys_info.cc +Index: chromium-144.0.7559.59/base/system/sys_info.cc =================================================================== ---- chromium-143.0.7499.40.orig/base/system/sys_info.cc -+++ chromium-143.0.7499.40/base/system/sys_info.cc +--- chromium-144.0.7559.59.orig/base/system/sys_info.cc ++++ chromium-144.0.7559.59/base/system/sys_info.cc @@ -263,6 +263,8 @@ std::string SysInfo::ProcessCPUArchitect return "ARM"; #elif defined(ARCH_CPU_ARM64) diff --git a/add-ppc64-architecture-to-extensions.diff b/add-ppc64-architecture-to-extensions.diff index 2053505..39e0495 100644 --- a/add-ppc64-architecture-to-extensions.diff +++ b/add-ppc64-architecture-to-extensions.diff @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +Index: chromium-144.0.7559.59/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc =================================================================== ---- chromium-143.0.7499.40.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -+++ chromium-143.0.7499.40/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc +--- chromium-144.0.7559.59.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc ++++ chromium-144.0.7559.59/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc @@ -383,6 +383,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo info->arch = extensions::api::runtime::PlatformArch::kMips64; } else if (arch == "riscv64") { @@ -11,10 +11,10 @@ Index: chromium-143.0.7499.40/chrome/browser/extensions/api/runtime/chrome_runti } else { NOTREACHED(); } -Index: chromium-143.0.7499.40/extensions/common/api/runtime.json +Index: chromium-144.0.7559.59/extensions/common/api/runtime.json =================================================================== ---- chromium-143.0.7499.40.orig/extensions/common/api/runtime.json -+++ chromium-143.0.7499.40/extensions/common/api/runtime.json +--- chromium-144.0.7559.59.orig/extensions/common/api/runtime.json ++++ chromium-144.0.7559.59/extensions/common/api/runtime.json @@ -98,7 +98,8 @@ {"name": "x86-64", "description": "Specifies the processer architecture as x86-64."}, {"name": "mips", "description": "Specifies the processer architecture as mips."}, diff --git a/add-ppc64-pthread-stack-size.patch b/add-ppc64-pthread-stack-size.patch index ceb2849..8f4472b 100644 --- a/add-ppc64-pthread-stack-size.patch +++ b/add-ppc64-pthread-stack-size.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/base/process/launch.h +Index: chromium-144.0.7559.59/base/process/launch.h =================================================================== ---- chromium-143.0.7499.40.orig/base/process/launch.h -+++ chromium-143.0.7499.40/base/process/launch.h +--- chromium-144.0.7559.59.orig/base/process/launch.h ++++ chromium-144.0.7559.59/base/process/launch.h @@ -58,6 +58,9 @@ enum TerminationStatus : int; #if defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_LOONGARCH64) #define PTHREAD_STACK_MIN_CONST \ diff --git a/chromium-141-rust-clanglib.patch b/chromium-141-rust-clanglib.patch deleted file mode 100644 index b9142c8..0000000 --- a/chromium-141-rust-clanglib.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff -up chromium-141.0.7390.37/build/config/clang/BUILD.gn.rust-clang_lib chromium-141.0.7390.37/build/config/clang/BUILD.gn ---- chromium-141.0.7390.37/build/config/clang/BUILD.gn.rust-clang_lib 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/build/config/clang/BUILD.gn 2025-09-27 12:15:44.380395911 +0200 -@@ -168,7 +168,21 @@ template("clang_lib") { - } - } else if (is_apple) { - _dir = "darwin" -- } else if (is_linux || is_chromeos) { -+ } else if (is_linux) { -+ if (current_cpu == "x64") { -+ _dir = "x86_64-redhat-linux-gnu" -+ } else if (current_cpu == "x86") { -+ _dir = "i386-redhat-linux-gnu" -+ } else if (current_cpu == "arm64") { -+ _dir = "aarch64-redhat-linux-gnu" -+ } else if (current_cpu == "arm") { -+ _dir = "armhf-redhat-linux-gnu" -+ } else if (current_cpu == "ppc64") { -+ _dir = "ppc64le-redhat-linux-gnu" -+ } else { -+ assert(false) # Unhandled cpu type -+ } -+ } else if (is_chromeos) { - if (current_cpu == "x64") { - _dir = "x86_64-unknown-linux-gnu" - } else if (current_cpu == "x86") { -diff -up chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni.rust-clang_lib chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni ---- chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni.rust-clang_lib 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/build/rust/rust_bindgen_generator.gni 2025-09-27 11:41:29.777786734 +0200 -@@ -18,11 +18,11 @@ if (host_os == "win") { - - # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in - # ../lib. --_libclang_path = rust_bindgen_root -+_libclang_path = clang_base_path - if (host_os == "win") { - _libclang_path += "/bin" - } else { -- _libclang_path += "/lib" -+ _libclang_path += "/lib64" - } - - # Template to build Rust/C bindings with bindgen. -diff -up chromium-141.0.7390.37/build/rust/rust_bindgen.gni.rust-clang_lib chromium-141.0.7390.37/build/rust/rust_bindgen.gni ---- chromium-141.0.7390.37/build/rust/rust_bindgen.gni.rust-clang_lib 2025-09-23 22:21:14.000000000 +0200 -+++ chromium-141.0.7390.37/build/rust/rust_bindgen.gni 2025-09-27 11:41:29.777891843 +0200 -@@ -19,11 +19,11 @@ if (host_os == "win") { - - # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in - # ../lib. --_libclang_path = rust_bindgen_root -+_libclang_path = clang_base_path - if (host_os == "win") { - _libclang_path += "/bin" - } else { -- _libclang_path += "/lib" -+ _libclang_path += "/lib64" - } - - # Template to build Rust/C bindings with bindgen. diff --git a/chromium-142-Add-ExtractData-support-for-text-uri-list.patch b/chromium-142-Add-ExtractData-support-for-text-uri-list.patch deleted file mode 100644 index 71d7e94..0000000 --- a/chromium-142-Add-ExtractData-support-for-text-uri-list.patch +++ /dev/null @@ -1,72 +0,0 @@ -From 3e6fd579fa63e68c9d0092ea56f7a457c03bdb7d Mon Sep 17 00:00:00 2001 -From: LuK1337 -Date: Thu, 20 Nov 2025 14:27:50 -0800 -Subject: [PATCH] [ozone/wayland] Add ExtractData() support for text/uri-list - -When dragging a file from chrome://downloads to KDE Konsole, the -following message shows up in the debug output: "Cannot deliver data of -type text/uri-list and no text representation is available.". - -After making it so text/uri-list is handled the same way as -text/x-moz-url, the log message is gone and path to file is pasted into -terminal as one would expect. - -Bug: 460074619 -Test: ozone_unittests -Change-Id: Iab0144ca7d3d3983d0e61d74f42a53b366f9e830 -Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7145698 -Auto-Submit: Łukasz Patron -Reviewed-by: Kramer Ge -Reviewed-by: Peter McNeeley -Commit-Queue: Peter McNeeley -Cr-Commit-Position: refs/heads/main@{#1548075} ---- - -diff --git a/AUTHORS b/AUTHORS -index abceab66..98ced4a 100644 ---- a/AUTHORS -+++ b/AUTHORS -@@ -943,6 +943,7 @@ - Luka Dojcilovic - Lukas Lihotzki - Lukasz Krakowiak -+Lukasz Patron - Luke Inman-Semerau - Luke Gu - Luke Warlow -diff --git a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc -index 2d32cc9..da6da7ae 100644 ---- a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc -+++ b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider.cc -@@ -277,7 +277,8 @@ - DCHECK(out_content); - DCHECK(IsMimeTypeSupported(mime_type)); - if (std::optional url_info; -- mime_type == ui::kMimeTypeMozillaUrl && -+ (mime_type == ui::kMimeTypeMozillaUrl || -+ mime_type == ui::kMimeTypeUriList) && - (url_info = GetURLAndTitle(kFilenameToURLPolicy)).has_value()) { - out_content->append(url_info->url.spec()); - return true; -diff --git a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc -index 70b6d9d..29a8ad0 100644 ---- a/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc -+++ b/ui/ozone/platform/wayland/host/wayland_exchange_data_provider_unittest.cc -@@ -61,6 +61,17 @@ - EXPECT_EQ("pickled-str", read_pickled_str); - } - -+TEST(WaylandExchangeDataProviderTest, FileNameAsUriList) { -+ WaylandExchangeDataProvider provider; -+ std::string extracted; -+ EXPECT_FALSE(provider.ExtractData(kMimeTypeUriList, &extracted)); -+ -+ extracted.clear(); -+ provider.AddData(ToClipboardData("file:///dev/null"), kMimeTypeUriList); -+ EXPECT_TRUE(provider.ExtractData(kMimeTypeUriList, &extracted)); -+ EXPECT_EQ("file:///dev/null", extracted); -+} -+ - TEST(WaylandExchangeDataProviderTest, FileContents) { - constexpr std::string kName("filename"); - constexpr std::string kContents("contents"); diff --git a/chromium-142-Update-pointer-position-during-draggin.patch b/chromium-142-Update-pointer-position-during-draggin.patch deleted file mode 100644 index eb0e1c8..0000000 --- a/chromium-142-Update-pointer-position-during-draggin.patch +++ /dev/null @@ -1,80 +0,0 @@ -From 4aed3650884fb2eb5605a051e92387204ae88cad Mon Sep 17 00:00:00 2001 -From: LuK1337 -Date: Sun, 30 Nov 2025 20:36:28 -0800 -Subject: [PATCH] [ozone/wayland] Update pointer position during dragging - -Prior to this change, dragging a file from chrome://downloads by its -filename would often open the file after it was dropped somewhere, this -is because the synthetic mouse release has outdated location. - -After ensuring that pointer location is updated during drag motion, -similarly to WaylandWindowDragController::OnDragLeave(), this is no -longer a problem. - -Bug: 462468355 -Test: ozone_unittests -Change-Id: Ib377b7ec04a9f5a02a21e36f7c43871a3e414798 -Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7182320 -Reviewed-by: Peter McNeeley -Commit-Queue: Peter McNeeley -Auto-Submit: Łukasz Patron -Reviewed-by: Kramer Ge -Cr-Commit-Position: refs/heads/main@{#1551919} ---- - -diff --git a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc -index b557e465..47b0911 100644 ---- a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc -+++ b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.cc -@@ -486,17 +486,9 @@ - if (drag_source_.has_value()) { - // Update the cursor position only for drag with mouse. - if (*drag_source_ == mojom::DragEventSource::kMouse) { -- auto* cursor_position = connection_->wayland_cursor_position(); -- if (cursor_position) { -- CHECK(window_); -- // TODO(crbug.com/41494257): Once we enable the input region for -- // subsurfaces, we need to update this part since the location will no -- // longer be relative to the window. -- auto location_in_screen = -- gfx::ToRoundedPoint(location) + -- window_->GetBoundsInDIP().origin().OffsetFromOrigin(); -- cursor_position->OnCursorPositionChanged(location_in_screen); -- } -+ pointer_delegate_->OnPointerMotionEvent( -+ location, timestamp, wl::EventDispatchPolicy::kImmediate, -+ /*is_synthesized=*/true); - } - } - -diff --git a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h -index e1239e6b..9a3ea8a2 100644 ---- a/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h -+++ b/ui/ozone/platform/wayland/host/wayland_data_drag_controller.h -@@ -130,6 +130,10 @@ - // TODO(crbug.com/40598679): Remove once focus is fixed during DND sessions. - WaylandWindow* entered_window() const { return window_; } - -+ WaylandPointer::Delegate* pointer_delegate() const { -+ return pointer_delegate_; -+ } -+ - // Returns false iff the data is for a window dragging session. - bool ShouldReleaseCaptureForDrag(ui::OSExchangeData* data) const; - -diff --git a/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc b/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc -index 4156ce4..d2a867acaf 100644 ---- a/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc -+++ b/ui/ozone/platform/wayland/host/wayland_data_drag_controller_unittest.cc -@@ -1441,8 +1441,10 @@ - // Send a drag motion and see if cursor position is updated. - SendDndMotion(gfx::Point(10, 11)); - WaitForDragDropTasks(); -- // Cursor position should be updated. -+ // Cursor and pointer positions should be updated. -+ auto* pointer_delegate = drag_controller()->pointer_delegate(); - EXPECT_EQ(gfx::Point(10, 11), cursor_position->GetCursorSurfacePoint()); -+ EXPECT_EQ(gfx::PointF(10, 11), pointer_delegate->GetPointerLocation()); - - SendDndLeave(); - SendDndCancelled(); diff --git a/chromium-144-rust-clanglib.patch b/chromium-144-rust-clanglib.patch new file mode 100644 index 0000000..981fe52 --- /dev/null +++ b/chromium-144-rust-clanglib.patch @@ -0,0 +1,66 @@ +diff -up chromium-144.0.7559.31/build/config/clang/BUILD.gn.rust-clang_lib chromium-144.0.7559.31/build/config/clang/BUILD.gn +--- chromium-144.0.7559.31/build/config/clang/BUILD.gn.rust-clang_lib 2025-12-17 01:06:32.000000000 +0100 ++++ chromium-144.0.7559.31/build/config/clang/BUILD.gn 2025-12-23 19:01:33.876897379 +0100 +@@ -177,7 +177,21 @@ template("clang_lib") { + } + } else if (is_apple) { + _dir = "darwin" +- } else if (is_linux || is_chromeos) { ++ } else if (is_linux) { ++ if (current_cpu == "x64") { ++ _dir = "x86_64-redhat-linux-gnu" ++ } else if (current_cpu == "x86") { ++ _dir = "i386-redhat-linux-gnu" ++ } else if (current_cpu == "arm64") { ++ _dir = "aarch64-redhat-linux-gnu" ++ } else if (current_cpu == "arm") { ++ _dir = "armhf-redhat-linux-gnu" ++ } else if (current_cpu == "ppc64") { ++ _dir = "ppc64le-redhat-linux-gnu" ++ } else { ++ assert(false) # Unhandled cpu type ++ } ++ } else if (is_chromeos) { + if (current_cpu == "x64") { + _dir = "x86_64-unknown-linux-gnu" + } else if (current_cpu == "x86") { +diff -up chromium-144.0.7559.31/build/rust/rust_bindgen_generator.gni.rust-clang_lib chromium-144.0.7559.31/build/rust/rust_bindgen_generator.gni +--- chromium-144.0.7559.31/build/rust/rust_bindgen_generator.gni.rust-clang_lib 2025-12-17 01:06:32.000000000 +0100 ++++ chromium-144.0.7559.31/build/rust/rust_bindgen_generator.gni 2025-12-23 19:21:34.335924481 +0100 +@@ -26,14 +26,14 @@ if (!use_chromium_rust_toolchain && + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path + if (!use_chromium_rust_toolchain && + (host_cpu == "ppc64" || host_cpu == "s390x")) { + _libclang_path = rust_sysroot_absolute + "/lib64" + } else if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. +diff -up chromium-144.0.7559.31/build/rust/rust_bindgen.gni.rust-clang_lib chromium-144.0.7559.31/build/rust/rust_bindgen.gni +--- chromium-144.0.7559.31/build/rust/rust_bindgen.gni.rust-clang_lib 2025-12-17 01:06:32.000000000 +0100 ++++ chromium-144.0.7559.31/build/rust/rust_bindgen.gni 2025-12-23 19:22:12.089755683 +0100 +@@ -19,14 +19,14 @@ if (host_os == "win") { + + # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in + # ../lib. +-_libclang_path = rust_bindgen_root ++_libclang_path = clang_base_path + if (!use_chromium_rust_toolchain && + (current_cpu == "ppc64" || current_cpu == "s390x")) { + _libclang_path = rust_sysroot_absolute + "/lib64" + } else if (host_os == "win") { + _libclang_path += "/bin" + } else { +- _libclang_path += "/lib" ++ _libclang_path += "/lib64" + } + + # Template to build Rust/C bindings with bindgen. diff --git a/chromium-144-rust-libadler2.patch b/chromium-144-rust-libadler2.patch new file mode 100644 index 0000000..631a321 --- /dev/null +++ b/chromium-144-rust-libadler2.patch @@ -0,0 +1,16 @@ +diff -up chromium-144.0.7559.31/build/rust/std/BUILD.gn.than chromium-144.0.7559.31/build/rust/std/BUILD.gn +--- chromium-144.0.7559.31/build/rust/std/BUILD.gn.than 2025-12-26 15:06:36.274081861 +0100 ++++ chromium-144.0.7559.31/build/rust/std/BUILD.gn 2025-12-26 16:11:45.697054423 +0100 +@@ -55,11 +55,7 @@ if (toolchain_has_rust) { + "miniz_oxide", + "object", + ] +- if (rustc_nightly_capability) { +- stdlib_files += [ "adler2" ] +- } else { +- stdlib_files += [ "adler" ] +- } ++ stdlib_files += [ "adler2" ] + } + + if (toolchain_for_rust_host_build_tools) { diff --git a/chromium.spec b/chromium.spec index a65c8b5..735d788 100644 --- a/chromium.spec +++ b/chromium.spec @@ -260,7 +260,7 @@ %endif Name: chromium -Version: 143.0.7499.192 +Version: 144.0.7559.59 Release: 1%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home @@ -345,6 +345,9 @@ Patch150: chromium-124-qt6.patch # revert, it causes ramdom crash on aarch64 Patch300: chromium-131-revert-decommit-pooled-pages-by-default.patch +# Disable rust nightly features +Patch301: chromium-144-rust-libadler2.patch + # disable memory tagging (epel8 on aarch64) due to new feature IFUNC-Resolver # it is not supported in old glibc < 2.30, error: fatal error: 'sys/ifunc.h' file not found Patch305: chromium-124-el8-arm64-memory_tagging.patch @@ -408,7 +411,7 @@ Patch356: chromium-141-use_libcxx_modules.patch Patch357: chromium-134-type-mismatch-error.patch # set clang_lib path -Patch358: chromium-141-rust-clanglib.patch +Patch358: chromium-144-rust-clanglib.patch # PowerPC64 LE support # Timothy Pearson's patchset @@ -447,7 +450,6 @@ Patch396: skia-vsx-instructions.patch Patch397: 0001-Implement-support-for-ppc64-on-Linux.patch Patch398: 0001-Implement-support-for-PPC64-on-Linux.patch Patch399: 0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch -Patch400: fix-clang-selection.patch Patch401: fix-rustc.patch Patch402: fix-rust-linking.patch Patch403: fix-breakpad-compile.patch @@ -482,9 +484,6 @@ Patch511: 0002-Fix-Missing-OPENSSL_NO_ENGINE-Guard.patch %endif # upstream patches -# Fix Wayland URI DnD issues -Patch1001: chromium-142-Add-ExtractData-support-for-text-uri-list.patch -Patch1002: chromium-142-Update-pointer-position-during-draggin.patch # Use chromium-latest.py to generate clean tarball from released build tarballs, found here: # http://build.chromium.org/buildbot/official/ @@ -532,6 +531,7 @@ BuildRequires: gcc-toolset-14-libatomic-devel %endif BuildRequires: rustc +BuildRequires: rustfmt BuildRequires: bindgen-cli %if ! %{bundlezstd} @@ -1081,6 +1081,8 @@ Qt6 UI for chromium. %patch -P300 -p1 -R -b .revert-decommit-pooled-pages-by-default %endif +%patch -P301 -p1 -b .rust-libadler2 + %if 0%{?rhel} == 8 %ifarch aarch64 %patch -P305 -p1 -b .el8-memory_tagging @@ -1095,11 +1097,6 @@ Qt6 UI for chromium. %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings %patch -P311 -p1 -b .fstack-protector-strong -%if 0%{?rhel} == 9 || 0%{?rhel_minor_version} == 1 -%patch -P312 -p1 -b .el9-rust-no-alloc-shim-is-unstable -%patch -P313 -p1 -b .el9-rust_alloc_error_handler_should_panic -%endif - %if 0%{?rhel} && 0%{?rhel} < 10 %patch -P354 -p1 -b .split-threshold-for-reg-with-hint %endif @@ -1152,7 +1149,6 @@ Qt6 UI for chromium. %patch -P397 -p1 -b .0001-Implement-support-for-ppc64-on-Linux %patch -P398 -p1 -b .0001-Implement-support-for-PPC64-on-Linux %patch -P399 -p1 -b .0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when- -%patch -P400 -p1 -b .fix-clang-selection %patch -P401 -p1 -b .fix-rustc %patch -P402 -p1 -b .fix-rust-linking %patch -P403 -p1 -b .fix-breakpad-compile @@ -1177,8 +1173,6 @@ Qt6 UI for chromium. %endif # Upstream patches -%patch -P1001 -p1 -b .Add-ExtractData-support-for-text-uri-list.patch -%patch -P1002 -p1 -b .Update-pointer-position-during-draggin.patch # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works @@ -1817,8 +1811,21 @@ fi %endif %changelog +* Wed Jan 14 2026 Than Ngo - 144.0.7559.59-1 +- Update to 144.0.7559.59 + * CVE-2026-0899: Out of bounds memory access in V8 + * CVE-2026-0900: Inappropriate implementation in V8 + * CVE-2026-0901: Inappropriate implementation in Blink + * CVE-2026-0902: Inappropriate implementation in V8 + * CVE-2026-0903: Insufficient validation of untrusted input in Downloads + * CVE-2026-0904: Incorrect security UI in Digital Credentials + * CVE-2026-0905: Insufficient policy enforcement in Network + * CVE-2026-0906: Incorrect security UI + * CVE-2026-0907: Incorrect security UI in Split View + * CVE-2026-0908: Use after free in ANGLE + * Wed Jan 07 2026 Than Ngo - 143.0.7499.192-1 -- Update tp 143.0.7499.192 +- Update to 143.0.7499.192 * High CVE-2026-0628: Insufficient policy enforcement in WebView tag - Fix rhbz#2425338, Enable control flow integrity support for x86_64/aarch64 - Enable build for epel10.1 diff --git a/dawn-fix-ppc64le-detection.patch b/dawn-fix-ppc64le-detection.patch index a32fa4e..9eb8581 100644 --- a/dawn-fix-ppc64le-detection.patch +++ b/dawn-fix-ppc64le-detection.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/dawn/src/dawn/common/Platform.h +Index: chromium-144.0.7559.59/third_party/dawn/src/dawn/common/Platform.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/dawn/src/dawn/common/Platform.h -+++ chromium-143.0.7499.40/third_party/dawn/src/dawn/common/Platform.h +--- chromium-144.0.7559.59.orig/third_party/dawn/src/dawn/common/Platform.h ++++ chromium-144.0.7559.59/third_party/dawn/src/dawn/common/Platform.h @@ -163,10 +163,12 @@ #elif defined(__s390x__) #define DAWN_PLATFORM_IS_S390X 1 diff --git a/fix-breakpad-compile.patch b/fix-breakpad-compile.patch index 1ce2a60..7ad360b 100644 --- a/fix-breakpad-compile.patch +++ b/fix-breakpad-compile.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/third_party/breakpad/BUILD.gn +Index: chromium-144.0.7559.59/third_party/breakpad/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/breakpad/BUILD.gn -+++ chromium-143.0.7499.40/third_party/breakpad/BUILD.gn +--- chromium-144.0.7559.59.orig/third_party/breakpad/BUILD.gn ++++ chromium-144.0.7559.59/third_party/breakpad/BUILD.gn @@ -804,7 +804,6 @@ if (is_linux || is_chromeos || is_androi "breakpad/src/client/minidump_file_writer.h", "breakpad/src/common/convert_UTF.cc", diff --git a/fix-clang-selection.patch b/fix-clang-selection.patch deleted file mode 100644 index a503030..0000000 --- a/fix-clang-selection.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: chromium-143.0.7499.40/build/config/BUILDCONFIG.gn -=================================================================== ---- chromium-143.0.7499.40.orig/build/config/BUILDCONFIG.gn -+++ chromium-143.0.7499.40/build/config/BUILDCONFIG.gn -@@ -138,7 +138,6 @@ declare_args() { - # Set to true when compiling with the Clang compiler. - is_clang = current_os != "linux" || - (current_cpu != "s390x" && current_cpu != "s390" && -- current_cpu != "ppc64" && current_cpu != "ppc" && - current_cpu != "mips" && current_cpu != "mips64") - - # Allows the path to a custom target toolchain to be injected as a single diff --git a/fix-different-data-layouts.patch b/fix-different-data-layouts.patch index f2e5403..31e5254 100644 --- a/fix-different-data-layouts.patch +++ b/fix-different-data-layouts.patch @@ -24,10 +24,10 @@ inconsistency in data layouts when targeting this particular platform. The error reported by the linker is not technically an error, however, only a warning goosed up by a --fatal-warnings flag. -Index: chromium-143.0.7499.40/build/config/compiler/BUILD.gn +Index: chromium-144.0.7559.59/build/config/compiler/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/build/config/compiler/BUILD.gn -+++ chromium-143.0.7499.40/build/config/compiler/BUILD.gn +--- chromium-144.0.7559.59.orig/build/config/compiler/BUILD.gn ++++ chromium-144.0.7559.59/build/config/compiler/BUILD.gn @@ -470,7 +470,7 @@ config("compiler") { # Linker warnings. diff --git a/fix-page-allocator-overflow.patch b/fix-page-allocator-overflow.patch index dbfc560..0cda503 100644 --- a/fix-page-allocator-overflow.patch +++ b/fix-page-allocator-overflow.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/base/allocator/dispatcher/tls.h +Index: chromium-144.0.7559.59/base/allocator/dispatcher/tls.h =================================================================== ---- chromium-143.0.7499.40.orig/base/allocator/dispatcher/tls.h -+++ chromium-143.0.7499.40/base/allocator/dispatcher/tls.h +--- chromium-144.0.7559.59.orig/base/allocator/dispatcher/tls.h ++++ chromium-144.0.7559.59/base/allocator/dispatcher/tls.h @@ -88,6 +88,8 @@ struct BASE_EXPORT MMapAllocator { constexpr static size_t AllocationChunkSize = 16384; #elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) @@ -11,10 +11,10 @@ Index: chromium-143.0.7499.40/base/allocator/dispatcher/tls.h #else constexpr static size_t AllocationChunkSize = 4096; #endif -Index: chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +Index: chromium-144.0.7559.59/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h =================================================================== ---- chromium-143.0.7499.40.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h -+++ chromium-143.0.7499.40/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +--- chromium-144.0.7559.59.orig/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h ++++ chromium-144.0.7559.59/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h @@ -399,7 +399,7 @@ PA_ALWAYS_INLINE constexpr size_t MaxDir // TODO(casey.smalley@arm.com): under 64k pages we can end up in a situation // where a normal slot span will be large enough to contain multiple items, diff --git a/fix-partition-alloc-compile.patch b/fix-partition-alloc-compile.patch index 8721f1b..2fd5cfb 100644 --- a/fix-partition-alloc-compile.patch +++ b/fix-partition-alloc-compile.patch @@ -1,9 +1,9 @@ kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni =================================================================== -Index: chromium-143.0.7499.40/base/allocator/partition_allocator/partition_alloc.gni +Index: chromium-144.0.7559.59/base/allocator/partition_allocator/partition_alloc.gni =================================================================== ---- chromium-143.0.7499.40.orig/base/allocator/partition_allocator/partition_alloc.gni -+++ chromium-143.0.7499.40/base/allocator/partition_allocator/partition_alloc.gni +--- chromium-144.0.7559.59.orig/base/allocator/partition_allocator/partition_alloc.gni ++++ chromium-144.0.7559.59/base/allocator/partition_allocator/partition_alloc.gni @@ -71,7 +71,7 @@ is_clang_or_gcc = is_clang || !is_win # Whether 64-bit pointers are used. # A static_assert in partition_alloc_config.h verifies that. diff --git a/fix-rust-linking.patch b/fix-rust-linking.patch index 28f2a1f..dca5333 100644 --- a/fix-rust-linking.patch +++ b/fix-rust-linking.patch @@ -1,8 +1,8 @@ -Index: chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni +Index: chromium-144.0.7559.59/build/toolchain/gcc_toolchain.gni =================================================================== ---- chromium-143.0.7499.40.orig/build/toolchain/gcc_toolchain.gni -+++ chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni -@@ -422,7 +422,13 @@ template("single_gcc_toolchain") { +--- chromium-144.0.7559.59.orig/build/toolchain/gcc_toolchain.gni ++++ chromium-144.0.7559.59/build/toolchain/gcc_toolchain.gni +@@ -415,7 +415,13 @@ template("single_gcc_toolchain") { # -soname flag is not available on aix ld soname_flag = "-Wl,-soname=\"$soname\"" } @@ -17,7 +17,7 @@ Index: chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni # Generate a map file to be used for binary size analysis. # Map file adds ~10% to the link time on a z620. -@@ -534,7 +540,13 @@ template("single_gcc_toolchain") { +@@ -527,7 +533,13 @@ template("single_gcc_toolchain") { whole_archive_flag = "-Wl,--whole-archive" no_whole_archive_flag = "-Wl,--no-whole-archive" } diff --git a/fix-rustc.patch b/fix-rustc.patch index 1655042..d5b7a2c 100644 --- a/fix-rustc.patch +++ b/fix-rustc.patch @@ -1,10 +1,10 @@ author: Andres Salomon description: allow ppc64le to build by using proper rustc target -Index: chromium-143.0.7499.40/build/config/rust.gni +Index: chromium-144.0.7559.59/build/config/rust.gni =================================================================== ---- chromium-143.0.7499.40.orig/build/config/rust.gni -+++ chromium-143.0.7499.40/build/config/rust.gni -@@ -176,6 +176,9 @@ rust_abi_target = "" +--- chromium-144.0.7559.59.orig/build/config/rust.gni ++++ chromium-144.0.7559.59/build/config/rust.gni +@@ -186,6 +186,9 @@ rust_abi_target = "" if (is_linux || is_chromeos) { if (current_cpu == "arm64") { rust_abi_target = "aarch64-unknown-linux-gnu" diff --git a/fix-study-crash.patch b/fix-study-crash.patch index 2d1058a..0a0dd1b 100644 --- a/fix-study-crash.patch +++ b/fix-study-crash.patch @@ -1,7 +1,7 @@ -Index: chromium-143.0.7499.40/components/variations/proto/study.proto +Index: chromium-144.0.7559.59/components/variations/proto/study.proto =================================================================== ---- chromium-143.0.7499.40.orig/components/variations/proto/study.proto -+++ chromium-143.0.7499.40/components/variations/proto/study.proto +--- chromium-144.0.7559.59.orig/components/variations/proto/study.proto ++++ chromium-144.0.7559.59/components/variations/proto/study.proto @@ -293,6 +293,9 @@ message Study { // A Mac-only value, indicating an x86-64 binary running on an arm64 host // via "Rosetta 2" binary translation. @@ -12,11 +12,11 @@ Index: chromium-143.0.7499.40/components/variations/proto/study.proto } // Enum to pass as optional bool. -Index: chromium-143.0.7499.40/components/variations/service/variations_field_trial_creator.cc +Index: chromium-144.0.7559.59/components/variations/service/variations_field_trial_creator.cc =================================================================== ---- chromium-143.0.7499.40.orig/components/variations/service/variations_field_trial_creator.cc -+++ chromium-143.0.7499.40/components/variations/service/variations_field_trial_creator.cc -@@ -105,6 +105,9 @@ Study::CpuArchitecture GetCurrentCpuArch +--- chromium-144.0.7559.59.orig/components/variations/service/variations_field_trial_creator.cc ++++ chromium-144.0.7559.59/components/variations/service/variations_field_trial_creator.cc +@@ -108,6 +108,9 @@ Study::CpuArchitecture GetCurrentCpuArch if (process_arch == "x86") { return Study::X86_32; } diff --git a/fix-unknown-warning-option-messages.diff b/fix-unknown-warning-option-messages.diff index 8c767e1..1555a08 100644 --- a/fix-unknown-warning-option-messages.diff +++ b/fix-unknown-warning-option-messages.diff @@ -1,8 +1,8 @@ -Index: chromium-143.0.7499.40/build/config/compiler/BUILD.gn +Index: chromium-144.0.7559.59/build/config/compiler/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/build/config/compiler/BUILD.gn -+++ chromium-143.0.7499.40/build/config/compiler/BUILD.gn -@@ -2134,7 +2134,9 @@ config("default_warnings") { +--- chromium-144.0.7559.59.orig/build/config/compiler/BUILD.gn ++++ chromium-144.0.7559.59/build/config/compiler/BUILD.gn +@@ -2129,7 +2129,9 @@ config("default_warnings") { # Don't warn about "maybe" uninitialized. Clang doesn't include this # in -Wall but gcc does, and it gives false positives. @@ -13,7 +13,7 @@ Index: chromium-143.0.7499.40/build/config/compiler/BUILD.gn cflags += [ "-Wno-deprecated-declarations" ] # -Wcomment gives too many false positives in the case a -@@ -2145,7 +2147,9 @@ config("default_warnings") { +@@ -2140,7 +2142,9 @@ config("default_warnings") { # -Wpacked-not-aligned complains all generated mojom-shared-internal.h # files. diff --git a/skia-vsx-instructions.patch b/skia-vsx-instructions.patch index b84166c..acffaa2 100644 --- a/skia-vsx-instructions.patch +++ b/skia-vsx-instructions.patch @@ -1,8 +1,8 @@ -Index: chromium-143.0.7499.40/third_party/skia/BUILD.gn +Index: chromium-144.0.7559.59/third_party/skia/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/BUILD.gn -+++ chromium-143.0.7499.40/third_party/skia/BUILD.gn -@@ -192,6 +192,12 @@ opts("lasx") { +--- chromium-144.0.7559.59.orig/third_party/skia/BUILD.gn ++++ chromium-144.0.7559.59/third_party/skia/BUILD.gn +@@ -199,6 +199,12 @@ opts("lasx") { cflags = [ "-mlasx" ] } @@ -15,7 +15,7 @@ Index: chromium-143.0.7499.40/third_party/skia/BUILD.gn # Any feature of Skia that requires third-party code should be optional and use this template. template("optional") { if (invoker.enabled) { -@@ -1686,6 +1692,7 @@ skia_component("skia") { +@@ -1700,6 +1706,7 @@ skia_component("skia") { ":skx", ":typeface_fontations", ":vello", @@ -23,10 +23,10 @@ Index: chromium-143.0.7499.40/third_party/skia/BUILD.gn ":webp_decode", ":wuffs", ":xml", -Index: chromium-143.0.7499.40/third_party/skia/gn/skia/BUILD.gn +Index: chromium-144.0.7559.59/third_party/skia/gn/skia/BUILD.gn =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/gn/skia/BUILD.gn -+++ chromium-143.0.7499.40/third_party/skia/gn/skia/BUILD.gn +--- chromium-144.0.7559.59.orig/third_party/skia/gn/skia/BUILD.gn ++++ chromium-144.0.7559.59/third_party/skia/gn/skia/BUILD.gn @@ -142,6 +142,8 @@ config("default") { "-mfpmath=sse", ] @@ -36,10 +36,10 @@ Index: chromium-143.0.7499.40/third_party/skia/gn/skia/BUILD.gn } else if (current_cpu == "loong64") { cflags += [ "-mlsx", -Index: chromium-143.0.7499.40/third_party/skia/include/core/SkTypes.h +Index: chromium-144.0.7559.59/third_party/skia/include/core/SkTypes.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/include/core/SkTypes.h -+++ chromium-143.0.7499.40/third_party/skia/include/core/SkTypes.h +--- chromium-144.0.7559.59.orig/third_party/skia/include/core/SkTypes.h ++++ chromium-144.0.7559.59/third_party/skia/include/core/SkTypes.h @@ -198,4 +198,43 @@ static constexpr uint32_t SK_InvalidGenI */ static constexpr uint32_t SK_InvalidUniqueID = 0; @@ -84,10 +84,10 @@ Index: chromium-143.0.7499.40/third_party/skia/include/core/SkTypes.h +#endif + #endif -Index: chromium-143.0.7499.40/third_party/skia/src/base/SkSpinlock.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/base/SkSpinlock.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/base/SkSpinlock.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/base/SkSpinlock.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/base/SkSpinlock.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/base/SkSpinlock.cpp @@ -33,7 +33,8 @@ #endif @@ -98,10 +98,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/base/SkSpinlock.cpp #include static void do_pause() { _mm_pause(); } #else -Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkBitmapProcState_opts.h +Index: chromium-144.0.7559.59/third_party/skia/src/opts/SkBitmapProcState_opts.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h -+++ chromium-143.0.7499.40/third_party/skia/src/opts/SkBitmapProcState_opts.h +--- chromium-144.0.7559.59.orig/third_party/skia/src/opts/SkBitmapProcState_opts.h ++++ chromium-144.0.7559.59/third_party/skia/src/opts/SkBitmapProcState_opts.h @@ -21,7 +21,13 @@ // The rest are scattershot at the moment but I want to get them // all migrated to be normal code inside SkBitmapProcState.cpp. @@ -117,10 +117,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkBitmapProcState_opts.h #include #elif defined(SK_ARM_HAS_NEON) #include -Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkBlitRow_opts.h +Index: chromium-144.0.7559.59/third_party/skia/src/opts/SkBlitRow_opts.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkBlitRow_opts.h -+++ chromium-143.0.7499.40/third_party/skia/src/opts/SkBlitRow_opts.h +--- chromium-144.0.7559.59.orig/third_party/skia/src/opts/SkBlitRow_opts.h ++++ chromium-144.0.7559.59/third_party/skia/src/opts/SkBlitRow_opts.h @@ -69,7 +69,7 @@ #endif @@ -130,10 +130,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkBlitRow_opts.h static inline __m128i SkPMSrcOver_SSE2(const __m128i& src, const __m128i& dst) { __m128i scale = _mm_sub_epi32(_mm_set1_epi32(256), -Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h +Index: chromium-144.0.7559.59/third_party/skia/src/opts/SkRasterPipeline_opts.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h -+++ chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h +--- chromium-144.0.7559.59.orig/third_party/skia/src/opts/SkRasterPipeline_opts.h ++++ chromium-144.0.7559.59/third_party/skia/src/opts/SkRasterPipeline_opts.h @@ -1,5 +1,6 @@ /* * Copyright 2018 Google Inc. @@ -394,7 +394,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h // These platforms are ideal for wider stages, and their default ABI is ideal. #define ABI #define SKRP_NARROW_STAGES 0 -@@ -5574,6 +5784,10 @@ SI F sqrt_(F x) { +@@ -5600,6 +5810,10 @@ SI F sqrt_(F x) { float32x4_t lo,hi; split(x, &lo,&hi); return join(sqrt(lo), sqrt(hi)); @@ -405,7 +405,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5605,6 +5819,10 @@ SI F floor_(F x) { +@@ -5631,6 +5845,10 @@ SI F floor_(F x) { __m128 lo,hi; split(x, &lo,&hi); return join(_mm_floor_ps(lo), _mm_floor_ps(hi)); @@ -416,7 +416,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) __m256 lo,hi; split(x, &lo,&hi); -@@ -5624,6 +5842,7 @@ SI F floor_(F x) { +@@ -5650,6 +5868,7 @@ SI F floor_(F x) { // (2 * a * b + (1 << 15)) >> 16 // The result is a number on [-1, 1). // Note: on neon this is a saturating multiply while the others are not. @@ -424,7 +424,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h SI I16 scaled_mult(I16 a, I16 b) { #if defined(SKRP_CPU_SKX) return (I16)_mm256_mulhrs_epi16((__m256i)a, (__m256i)b); -@@ -5635,6 +5854,22 @@ SI I16 scaled_mult(I16 a, I16 b) { +@@ -5661,6 +5880,22 @@ SI I16 scaled_mult(I16 a, I16 b) { return vqrdmulhq_s16(a, b); #elif defined(SKRP_CPU_NEON) return vqrdmulhq_s16(a, b); @@ -447,7 +447,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h #elif defined(SKRP_CPU_LASX) I16 res = __lasx_xvmuh_h(a, b); return __lasx_xvslli_h(res, 1); -@@ -5662,7 +5897,26 @@ SI U16 constrained_add(I16 a, U16 b) { +@@ -5688,7 +5923,26 @@ SI U16 constrained_add(I16 a, U16 b) { SkASSERT(-ib <= ia && ia <= 65535 - ib); } #endif @@ -474,7 +474,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h } SI F fract(F x) { return x - floor_(x); } -@@ -6718,8 +6972,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6744,8 +6998,14 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S // 2^-8 * v = 2^-9 * (tx*(R - L) + (R + L)) // v = 1/2 * (tx*(R - L) + (R + L)) auto lerpX = [&](U16 left, U16 right) -> U16 { @@ -489,7 +489,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h // The constrained_add is the most subtle part of lerp. The first term is on the interval // [-1, 1), and the second term is on the interval is on the interval [0, 1) because // both terms are too high by a factor of 2 which will be handled below. (Both R and L are -@@ -6731,7 +6991,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6757,7 +7017,12 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S U16 v2 = constrained_add(scaled_mult(tx, width), middle) + 1; // Divide by 2 to calculate v and at the same time bring the intermediate value onto the // interval [0, 1/2] to set up for the lerpY. @@ -502,7 +502,7 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h }; const uint32_t* ptr; -@@ -6765,9 +7030,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S +@@ -6791,9 +7056,15 @@ LOWP_STAGE_GP(bilerp_clamp_8888, const S I16 width = (I16)bottom - (I16)top; U16 middle = bottom + top; // Add + 0x80 for rounding. @@ -519,10 +519,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkRasterPipeline_opts.h }; r = lerpY(topR, bottomR); -Index: chromium-143.0.7499.40/third_party/skia/src/base/SkVx.h +Index: chromium-144.0.7559.59/third_party/skia/src/base/SkVx.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/base/SkVx.h -+++ chromium-143.0.7499.40/third_party/skia/src/base/SkVx.h +--- chromium-144.0.7559.59.orig/third_party/skia/src/base/SkVx.h ++++ chromium-144.0.7559.59/third_party/skia/src/base/SkVx.h @@ -41,7 +41,12 @@ #endif @@ -537,10 +537,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/base/SkVx.h #include #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE41 #include -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkBlitMask_opts_ssse3.cpp @@ -9,7 +9,7 @@ #include "src/core/SkBlitMask.h" #include "src/core/SkOptsTargets.h" @@ -550,10 +550,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts_ssse3.cp // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkSwizzler_opts_ssse3.cpp @@ -10,7 +10,7 @@ #include "src/core/SkOptsTargets.h" #include "src/core/SkSwizzlePriv.h" @@ -563,10 +563,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/core/SkSwizzler_opts_ssse3.cp !defined(SK_ENABLE_OPTIMIZE_SIZE) && \ SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkBlitMask_opts.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBlitMask_opts.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkBlitMask_opts.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkBlitMask_opts.cpp @@ -25,7 +25,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -576,10 +576,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitMask_opts.cpp #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BlitMask_ssse3(); } #endif -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkBitmapProcState_opts.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkBitmapProcState_opts.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkBitmapProcState_opts.cpp @@ -27,7 +27,7 @@ namespace SkOpts { static bool init() { #if defined(SK_ENABLE_OPTIMIZE_SIZE) @@ -589,10 +589,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts.c #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSSE3 if (SkCpu::Supports(SkCpu::SSSE3)) { Init_BitmapProcState_ssse3(); } #endif -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkCpu.h +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkCpu.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkCpu.h -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkCpu.h +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkCpu.h ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkCpu.h @@ -60,7 +60,7 @@ inline bool SkCpu::Supports(uint32_t mas // If we mask in compile-time known lower limits, the compiler can @@ -602,10 +602,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/core/SkCpu.h #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 features |= SSE1; #endif -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkBitmapProcState_opts_ssse3.cpp @@ -8,7 +8,7 @@ #include "include/private/base/SkFeatures.h" #include "src/core/SkOptsTargets.h" @@ -615,10 +615,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBitmapProcState_opts_s // The order of these includes is important: // 1) Select the target CPU architecture by defining SK_OPTS_TARGET and including SkOpts_SetTarget -Index: chromium-143.0.7499.40/third_party/skia/include/private/base/SkFeatures.h +Index: chromium-144.0.7559.59/third_party/skia/include/private/base/SkFeatures.h =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/include/private/base/SkFeatures.h -+++ chromium-143.0.7499.40/third_party/skia/include/private/base/SkFeatures.h +--- chromium-144.0.7559.59.orig/third_party/skia/include/private/base/SkFeatures.h ++++ chromium-144.0.7559.59/third_party/skia/include/private/base/SkFeatures.h @@ -63,6 +63,8 @@ #if defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64) @@ -628,10 +628,10 @@ Index: chromium-143.0.7499.40/third_party/skia/include/private/base/SkFeatures.h #endif #if defined(__loongarch__) || defined (__loongarch64) -Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkSwizzler_opts.inc +Index: chromium-144.0.7559.59/third_party/skia/src/opts/SkSwizzler_opts.inc =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/opts/SkSwizzler_opts.inc -+++ chromium-143.0.7499.40/third_party/skia/src/opts/SkSwizzler_opts.inc +--- chromium-144.0.7559.59.orig/third_party/skia/src/opts/SkSwizzler_opts.inc ++++ chromium-144.0.7559.59/third_party/skia/src/opts/SkSwizzler_opts.inc @@ -14,7 +14,10 @@ #include #include @@ -678,10 +678,10 @@ Index: chromium-143.0.7499.40/third_party/skia/src/opts/SkSwizzler_opts.inc #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 && (defined(__clang__) || !defined(_MSC_VER)) // -- SSE -- Harden against timing attacks -- MSVC is not supported. using F4 = __m128; -Index: chromium-143.0.7499.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp +Index: chromium-144.0.7559.59/third_party/skia/src/core/SkBlitter_ARGB32.cpp =================================================================== ---- chromium-143.0.7499.40.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp -+++ chromium-143.0.7499.40/third_party/skia/src/core/SkBlitter_ARGB32.cpp +--- chromium-144.0.7559.59.orig/third_party/skia/src/core/SkBlitter_ARGB32.cpp ++++ chromium-144.0.7559.59/third_party/skia/src/core/SkBlitter_ARGB32.cpp @@ -129,6 +129,16 @@ static inline SkPMColor blend_lcd16_opaq #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 #include diff --git a/sources b/sources index fb67321..c0bc4dc 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (node-v22.14.0-stripped.tar.gz) = affddb541009c6d378049c2d7845b981335d9e7aa387efcc472e5efb621c345cd58ca69778a394f7e4ebbb5e4b1a115a389838ef1b6458ef5e98f2071b166e15 -SHA512 (chromium-143.0.7499.192-clean.tar.xz) = 252f3feb974a9618f649c3ba6b848f87b747bee173d86c956a3c822305343574cfd369414c94c8e648c3d65d4f4e54c171d364989c0fb937240ed16abe6dda9a +SHA512 (chromium-144.0.7559.59-clean.tar.xz) = 15c866cb35455daac4cbec3dc600966c13f4dff2a1665395fe1f6cc769f614c08cd5ff7819ff0838dcf1201ffc4a04f03ae0c32beed8e44eb8dca24c2fd7e042